-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #603 from dipeshbhakat-microsoft/nrcli_2024-01-01
Release New-Relic CLI for stable version 2024-01-01
- Loading branch information
Showing
71 changed files
with
5,807 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,14 @@ List all the existing accounts | |
```bash | ||
new-relic account list --location eastus2euap --user-email [email protected] | ||
``` | ||
|
||
### [2024-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvYWNjb3VudHM=/2024-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/providers/newrelic.observability/accounts 2024-01-01 --> | ||
|
||
#### examples | ||
|
||
- List all the existing accounts. | ||
```bash | ||
new-relic account list --location eastus2euap --user-email [email protected] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,14 @@ Create a NewRelicMonitorResource | |
```bash | ||
new-relic monitor create --resource-group MyResourceGroup --name MyNewRelicMonitor --location eastus2euap --user-info first-name="vdftzcggiref" last-name="bcsztgqovdlmzf" email-address="[email protected]" phone-number="123456" --plan-data billing-cycle="MONTHLY" effective-date='2022-10-25T15:14:33+02:00' plan-details="newrelic-pay-as-you-go-free-live@[email protected]_liftr_payg" usage-type="PAYG" --account-creation-source "LIFTR" --org-creation-source "LIFTR" --tags key6976=oaxfhf | ||
``` | ||
|
||
### [2024-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvbW9uaXRvcnMve30=/2024-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/newrelic.observability/monitors/{} 2024-01-01 --> | ||
|
||
#### examples | ||
|
||
- Create a NewRelicMonitorResource. | ||
```bash | ||
new-relic monitor create --resource-group MyResourceGroup --name MyNewRelicMonitor --location eastus2euap --user-info first-name="vdftzcggiref" last-name="bcsztgqovdlmzf" email-address="[email protected]" phone-number="123456" --plan-data billing-cycle="MONTHLY" effective-date='2022-10-25T15:14:33+02:00' plan-details="newrelic-pay-as-you-go-free-live@[email protected]_liftr_payg" usage-type="PAYG" --account-creation-source "LIFTR" --org-creation-source "LIFTR" --tags key6976=oaxfhf | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,14 @@ Delete a NewRelicMonitorResource | |
```bash | ||
new-relic monitor delete --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --user-email [email protected] | ||
``` | ||
|
||
### [2024-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvbW9uaXRvcnMve30=/2024-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/newrelic.observability/monitors/{} 2024-01-01 --> | ||
|
||
#### examples | ||
|
||
- Delete a NewRelicMonitorResource. | ||
```bash | ||
new-relic monitor delete --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --user-email [email protected] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Command] _new-relic monitor get-billing-info_ | ||
|
||
Get marketplace info mapped to the given monitor. | ||
|
||
## Versions | ||
|
||
### [2024-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvbW9uaXRvcnMve30vZ2V0YmlsbGluZ2luZm8=/2024-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/newrelic.observability/monitors/{}/getbillinginfo 2024-01-01 --> | ||
|
||
#### examples | ||
|
||
- Get marketplace info mapped to the given monitor. | ||
```bash | ||
new-relic monitor get-billing-info --monitor-name MyNewRelicMonitor --resource-group MyResourceGroup | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,14 @@ Get metric rules | |
```bash | ||
new-relic monitor get-metric-rule --monitor-name MyNewRelicMonitor --resource-group MyResourceGroup --user-email [email protected] | ||
``` | ||
|
||
### [2024-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvbW9uaXRvcnMve30vZ2V0bWV0cmljcnVsZXM=/2024-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/newrelic.observability/monitors/{}/getmetricrules 2024-01-01 --> | ||
|
||
#### examples | ||
|
||
- Get metric rules. | ||
```bash | ||
new-relic monitor get-metric-rule --monitor-name MyNewRelicMonitor --resource-group MyResourceGroup --user-email [email protected] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,14 @@ Get metric status | |
```bash | ||
new-relic monitor get-metric-statu --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --user-email [email protected] --azure-resource-ids MyAzureResourceIds | ||
``` | ||
|
||
### [2024-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvbW9uaXRvcnMve30vZ2V0bWV0cmljc3RhdHVz/2024-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/newrelic.observability/monitors/{}/getmetricstatus 2024-01-01 --> | ||
|
||
#### examples | ||
|
||
- Get metric status. | ||
```bash | ||
new-relic monitor get-metric-statu --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --user-email [email protected] --azure-resource-ids MyAzureResourceIds | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,14 @@ List the app service resources currently being monitored by the NewRelic resourc | |
```bash | ||
new-relic monitor list-app-service --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --user-email [email protected] --azure-resource-ids MyAzureResourceIds | ||
``` | ||
|
||
### [2024-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvbW9uaXRvcnMve30vbGlzdGFwcHNlcnZpY2Vz/2024-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/newrelic.observability/monitors/{}/listappservices 2024-01-01 --> | ||
|
||
#### examples | ||
|
||
- List the app service resources currently being monitored by the NewRelic resource. | ||
```bash | ||
new-relic monitor list-app-service --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --user-email [email protected] --azure-resource-ids MyAzureResourceIds | ||
``` |
16 changes: 16 additions & 0 deletions
16
Commands/new-relic/monitor/_list-connected-partner-resource.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Command] _new-relic monitor list-connected-partner-resource_ | ||
|
||
List of all active deployments that are associated with the marketplace subscription linked to the given monitor. | ||
|
||
## Versions | ||
|
||
### [2024-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvbW9uaXRvcnMve30vbGlzdGNvbm5lY3RlZHBhcnRuZXJyZXNvdXJjZXM=/2024-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/newrelic.observability/monitors/{}/listconnectedpartnerresources 2024-01-01 --> | ||
|
||
#### examples | ||
|
||
- List of all active deployments that are associated with the marketplace subscription linked to the given monitor. | ||
```bash | ||
new-relic monitor list-connected-partner-resource --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --body [email protected] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,14 @@ List the compute vm resources currently being monitored by the NewRelic resource | |
```bash | ||
new-relic monitor list-host --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --user-email [email protected] --vm-ids MyVmIds | ||
``` | ||
|
||
### [2024-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvbW9uaXRvcnMve30vbGlzdGhvc3Rz/2024-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/newrelic.observability/monitors/{}/listhosts 2024-01-01 --> | ||
|
||
#### examples | ||
|
||
- List the compute vm resources currently being monitored by the NewRelic resource. | ||
```bash | ||
new-relic monitor list-host --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --user-email [email protected] --vm-ids MyVmIds | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Command] _new-relic monitor list-linked-resource_ | ||
|
||
List all Azure resources associated to the same NewRelic organization and account as the target resource. | ||
|
||
## Versions | ||
|
||
### [2024-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvbW9uaXRvcnMve30vbGlzdGxpbmtlZHJlc291cmNlcw==/2024-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/newrelic.observability/monitors/{}/listlinkedresources 2024-01-01 --> | ||
|
||
#### examples | ||
|
||
- List all Azure resources associated to the same NewRelic organization and account as the target resource. | ||
```bash | ||
new-relic monitor list-linked-resource --monitor-name MyNewRelicMonitor --resource-group MyResourceGroup | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,14 @@ Switches the billing for NewRelic monitor resource. | |
### [2022-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvbW9uaXRvcnMve30vc3dpdGNoYmlsbGluZw==/2022-07-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/newrelic.observability/monitors/{}/switchbilling 2022-07-01 --> | ||
|
||
### [2024-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvbW9uaXRvcnMve30vc3dpdGNoYmlsbGluZw==/2024-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/newrelic.observability/monitors/{}/switchbilling 2024-01-01 --> | ||
|
||
#### examples | ||
|
||
- Switches the billing for NewRelic monitor resource. | ||
```bash | ||
new-relic monitor switch-billing --monitor-name MyNewRelicMonitor --resource-group MyResourceGroup --azure-resource-id resourceId --organization-id organizationId --user-email="[email protected]" --plan-data billing-cycle="MONTHLY" effective-date='2022-10-25T15:14:33+02:00' plan-details="newrelic-pay-as-you-go-free-live@[email protected]_liftr_payg" usage-type="PAYG" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,14 @@ Update a NewRelicMonitorResource | |
### [2022-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvbW9uaXRvcnMve30=/2022-07-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/newrelic.observability/monitors/{} 2022-07-01 --> | ||
|
||
### [2024-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvbW9uaXRvcnMve30=/2024-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/newrelic.observability/monitors/{} 2024-01-01 --> | ||
|
||
#### examples | ||
|
||
- Update a NewRelicMonitorResource | ||
```bash | ||
new-relic monitor update --resource-group MyResourceGroup --name MyNewRelicMonitor --user-info first-name="vdftzcggiref" last-name="bcsztgqovdlmzf" email-address="[email protected]" phone-number="123456" --plan-data billing-cycle="MONTHLY" effective-date='2022-10-25T15:14:33+02:00' plan-details="newrelic-pay-as-you-go-free-live@[email protected]_liftr_payg" usage-type="PAYG" --account-creation-source "LIFTR" --org-creation-source "LIFTR" --tags key6976=oaxfhf | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
Commands/new-relic/monitor/monitored-subscription/_create.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Command] _new-relic monitor monitored-subscription create_ | ||
|
||
Create the subscriptions that should be monitored by the NewRelic monitor resource. | ||
|
||
## Versions | ||
|
||
### [2024-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvbW9uaXRvcnMve30vbW9uaXRvcmVkc3Vic2NyaXB0aW9ucy97fQ==/2024-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/newrelic.observability/monitors/{}/monitoredsubscriptions/{} 2024-01-01 --> | ||
|
||
#### examples | ||
|
||
- Create the subscriptions that should be monitored by the NewRelic monitor resource. | ||
```bash | ||
new-relic monitor monitored-subscription create --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --configuration-name default --patch-operation Active --monitored-subscription-list=[{"subscription-id":"subscription-id", "status":"Active","error":"error","tag-rules":"log-rules=[{"send-aad-logs"="Enabled","send-subscription-logs"="Enabled","send-activity-logs"="Enabled",filtering-tags=[]}]","metric-rules"=[{"user-email"="[email protected]",filtering-tags=[{"name":"Environment","value":"Prod","action":"Include"}]}] | ||
``` |
16 changes: 16 additions & 0 deletions
16
Commands/new-relic/monitor/monitored-subscription/_delete.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Command] _new-relic monitor monitored-subscription delete_ | ||
|
||
Delete the subscriptions that are being monitored by the NewRelic monitor resource | ||
|
||
## Versions | ||
|
||
### [2024-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvbW9uaXRvcnMve30vbW9uaXRvcmVkc3Vic2NyaXB0aW9ucy97fQ==/2024-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/newrelic.observability/monitors/{}/monitoredsubscriptions/{} 2024-01-01 --> | ||
|
||
#### examples | ||
|
||
- Delete the subscriptions that are being monitored by the NewRelic monitor resource | ||
```bash | ||
new-relic monitor monitored-subscription delete --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --name default | ||
``` |
16 changes: 16 additions & 0 deletions
16
Commands/new-relic/monitor/monitored-subscription/_list.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Command] _new-relic monitor monitored-subscription list_ | ||
|
||
List the subscriptions currently being monitored by the NewRelic monitor resource. | ||
|
||
## Versions | ||
|
||
### [2024-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvbW9uaXRvcnMve30vbW9uaXRvcmVkc3Vic2NyaXB0aW9ucw==/2024-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/newrelic.observability/monitors/{}/monitoredsubscriptions 2024-01-01 --> | ||
|
||
#### examples | ||
|
||
- List the subscriptions currently being monitored by the NewRelic monitor resource. | ||
```bash | ||
new-relic monitor monitored-subscription list --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor | ||
``` |
16 changes: 16 additions & 0 deletions
16
Commands/new-relic/monitor/monitored-subscription/_show.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Command] _new-relic monitor monitored-subscription show_ | ||
|
||
Get the subscriptions currently being monitored by the NewRelic monitor resource. | ||
|
||
## Versions | ||
|
||
### [2024-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvbW9uaXRvcnMve30vbW9uaXRvcmVkc3Vic2NyaXB0aW9ucy97fQ==/2024-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/newrelic.observability/monitors/{}/monitoredsubscriptions/{} 2024-01-01 --> | ||
|
||
#### examples | ||
|
||
- List the subscriptions currently being monitored by the NewRelic monitor resource. | ||
```bash | ||
new-relic monitor monitored-subscription show --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --configuration-name default | ||
``` |
16 changes: 16 additions & 0 deletions
16
Commands/new-relic/monitor/monitored-subscription/_update.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Command] _new-relic monitor monitored-subscription update_ | ||
|
||
Update the subscriptions that should be monitored by the NewRelic monitor resource. | ||
|
||
## Versions | ||
|
||
### [2024-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25ld3JlbGljLm9ic2VydmFiaWxpdHkvbW9uaXRvcnMve30vbW9uaXRvcmVkc3Vic2NyaXB0aW9ucy97fQ==/2024-01-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/newrelic.observability/monitors/{}/monitoredsubscriptions/{} 2024-01-01 --> | ||
|
||
#### examples | ||
|
||
- Update the subscriptions that should be monitored by the NewRelic monitor resource. | ||
```bash | ||
new-relic monitor monitored-subscription update --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --configuration-name default --patch-operation Active --monitored-subscription-list=[{"subscription-id":"subscription-id", "status":"Active","error":"error","tag-rules":"log-rules=[{"send-aad-logs"="Enabled","send-subscription-logs"="Enabled","send-activity-logs"="Enabled",filtering-tags=[]}]","metric-rules"=[{"user-email"="[email protected]",filtering-tags=[{"name":"Environment","value":"Prod","action":"Include"}]}] | ||
``` |
20 changes: 20 additions & 0 deletions
20
Commands/new-relic/monitor/monitored-subscription/readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# [Group] _new-relic monitor monitored-subscription_ | ||
|
||
Manage list of subscriptions and the state of the monitoring. | ||
|
||
## Commands | ||
|
||
- [create](/Commands/new-relic/monitor/monitored-subscription/_create.md) | ||
: Create the subscriptions that should be monitored by the NewRelic monitor resource. | ||
|
||
- [delete](/Commands/new-relic/monitor/monitored-subscription/_delete.md) | ||
: Delete the subscriptions that are being monitored by the NewRelic monitor resource | ||
|
||
- [list](/Commands/new-relic/monitor/monitored-subscription/_list.md) | ||
: List the subscriptions currently being monitored by the NewRelic monitor resource. | ||
|
||
- [show](/Commands/new-relic/monitor/monitored-subscription/_show.md) | ||
: Get the subscriptions currently being monitored by the NewRelic monitor resource. | ||
|
||
- [update](/Commands/new-relic/monitor/monitored-subscription/_update.md) | ||
: Update the subscriptions that should be monitored by the NewRelic monitor resource. |
Oops, something went wrong.