Skip to content

Commit

Permalink
CLI update for dynatrace
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivansh Agarwal committed Oct 18, 2024
1 parent 4be35c6 commit c963381
Show file tree
Hide file tree
Showing 54 changed files with 13,355 additions and 6 deletions.
16 changes: 16 additions & 0 deletions Commands/dynatrace/_get-marketplace-saas-resource-detail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _dynatrace get-marketplace-saas-resource-detail_

Get Marketplace SaaS resource details of a tenant under a specific subscription

## Versions

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L2dldG1hcmtldHBsYWNlc2Fhc3Jlc291cmNlZGV0YWlscw==/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/dynatrace.observability/getmarketplacesaasresourcedetails 2023-04-27 -->

#### examples

- Monitors_GetMarketplaceSaaSResourceDetails_MaximumSet_Gen
```bash
dynatrace get-marketplace-saas-resource-detail --tenant-id urnmattojzhktcfw
```
11 changes: 11 additions & 0 deletions Commands/dynatrace/monitor/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ Create a monitor resource
```bash
dynatrace monitor create -g rg -n monitor --user-info "{first-name:Alice,last-name:Bobab,email-address:[email protected],phone-number:1234567890,country:US}" --plan-data "{usage-type:committed,billing-cycle:Monthly,plan-details:azureportalintegration_privatepreview@TIDhjdtn7tfnxcy,effective-date:2022-08-20}" --environment "{single-sign-on:{aad-domains:['abc']}}"
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{} 2023-04-27 -->

#### examples

- Create a monitor
```bash
dynatrace monitor create -g rg -n monitor --user-info "{first-name:Alice,last-name:Bobab,email-address:[email protected],phone-number:1234567890,country:US}" --plan-data "{usage-type:committed,billing-cycle:Monthly,plan-details:azureportalintegration_privatepreview@TIDhjdtn7tfnxcy,effective-date:2022-08-20}" --environment "{single-sign-on:{aad-domains:['abc']}}"
```
11 changes: 11 additions & 0 deletions Commands/dynatrace/monitor/_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ Delete a monitor resource
```bash
dynatrace monitor delete -n monitor -g rg -y
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{} 2023-04-27 -->

#### examples

- Delete a monitor
```bash
dynatrace monitor delete -n monitor -g rg -y
```
16 changes: 16 additions & 0 deletions Commands/dynatrace/monitor/_get-metric-status.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _dynatrace monitor get-metric-status_

Get metric status

## Versions

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9L2dldG1ldHJpY3N0YXR1cw==/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{}/getmetricstatus 2023-04-27 -->

#### examples

- Monitors_GetMetricStatus_MaximumSet_Gen
```bash
dynatrace monitor get-metric-status --resource-group rgDynatrace --monitor-name fhcjxnxumkdlgpwanewtkdnyuz
```
11 changes: 11 additions & 0 deletions Commands/dynatrace/monitor/_get-sso-detail.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Get the SSO configuration details from the partner
```bash
dynatrace monitor get-sso-detail -g rg --monitor-name monitor --user-principal [email protected]
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9L2dldHNzb2RldGFpbHM=/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{}/getssodetails 2023-04-27 -->

#### examples

- Get-sso-detail
```bash
dynatrace monitor get-sso-detail -g rg --monitor-name monitor --user-principal [email protected]
```
11 changes: 11 additions & 0 deletions Commands/dynatrace/monitor/_get-vm-host-payload.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Return the payload that need to be passed in the request body for installing Dyn
```bash
dynatrace monitor get-vm-host-payload -g rg --monitor-name monitor
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9L2dldHZtaG9zdHBheWxvYWQ=/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{}/getvmhostpayload 2023-04-27 -->

#### examples

- Get-vm-host-payload
```bash
dynatrace monitor get-vm-host-payload -g rg --monitor-name monitor
```
11 changes: 11 additions & 0 deletions Commands/dynatrace/monitor/_list-app-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Get list of app services with dynatrace PaaS OneAgent enabled
```bash
dynatrace monitor list-app-service -g rg --monitor-name monitor
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9L2xpc3RhcHBzZXJ2aWNlcw==/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{}/listappservices 2023-04-27 -->

#### examples

- List-app-service
```bash
dynatrace monitor list-app-service -g rg --monitor-name monitor
```
11 changes: 11 additions & 0 deletions Commands/dynatrace/monitor/_list-host.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ List the compute resources currently being monitored by the dynatrace resource
```bash
dynatrace monitor list-host -g rg --monitor-name monitor
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9L2xpc3Rob3N0cw==/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{}/listhosts 2023-04-27 -->

#### examples

- List-host
```bash
dynatrace monitor list-host -g rg --monitor-name monitor
```
11 changes: 11 additions & 0 deletions Commands/dynatrace/monitor/_list-linkable-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Get all the dynatrace environments that a user can link a azure resource to
```bash
dynatrace monitor list-linkable-environment -g rg --monitor-name monitor --user-principal [email protected] --region eastus2euap
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9L2xpc3RsaW5rYWJsZWVudmlyb25tZW50cw==/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{}/listlinkableenvironments 2023-04-27 -->

#### examples

- List-linkable-environment
```bash
dynatrace monitor list-linkable-environment -g rg --monitor-name monitor --user-principal [email protected] --region eastus2euap
```
11 changes: 11 additions & 0 deletions Commands/dynatrace/monitor/_list-monitored-resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ List the resources currently being monitored by the dynatrace monitor resource
```bash
dynatrace monitor list-monitored-resource -g rg --monitor-name monitor
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9L2xpc3Rtb25pdG9yZWRyZXNvdXJjZXM=/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{}/listmonitoredresources 2023-04-27 -->

#### examples

- List-monitored-resource
```bash
dynatrace monitor list-monitored-resource -g rg --monitor-name monitor
```
11 changes: 11 additions & 0 deletions Commands/dynatrace/monitor/_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ List all monitor resource by monitor name in a resource group
```bash
dynatrace monitor list -g rg --monitor-name monitor
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3Jz/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors 2023-04-27 -->

#### examples

- List monitor
```bash
dynatrace monitor list -g rg --monitor-name monitor
```
11 changes: 11 additions & 0 deletions Commands/dynatrace/monitor/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ Show a monitor resource
```bash
dynatrace monitor show -g rg -n monitor
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{} 2023-04-27 -->

#### examples

- Show a monitor
```bash
dynatrace monitor show -g rg -n monitor
```
13 changes: 12 additions & 1 deletion Commands/dynatrace/monitor/_update.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [Command] _dynatrace monitor update_

Update a monitor resource
Update a MonitorResource

## Versions

Expand All @@ -25,3 +25,14 @@ Update a monitor resource
```bash
dynatrace monitor update -g {rg} -n {monitor} --tags {{env:dev}}
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{} 2023-04-27 -->

#### examples

- Update monitor
```bash
dynatrace monitor update -g {rg} -n {monitor} --tags {{env:dev}}
```
5 changes: 4 additions & 1 deletion Commands/dynatrace/monitor/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ Manage dynatrace monitor
- [delete](/Commands/dynatrace/monitor/_delete.md)
: Delete a monitor resource

- [get-metric-status](/Commands/dynatrace/monitor/_get-metric-status.md)
: Get metric status

- [get-sso-detail](/Commands/dynatrace/monitor/_get-sso-detail.md)
: Get the SSO configuration details from the partner

Expand All @@ -43,4 +46,4 @@ Manage dynatrace monitor
: Show a monitor resource

- [update](/Commands/dynatrace/monitor/_update.md)
: Update a monitor resource
: Update a MonitorResource
11 changes: 11 additions & 0 deletions Commands/dynatrace/monitor/sso-config/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Create a dynatrace sso-config resource
```bash
dynatrace monitor sso-config create -g rg --monitor-name monitor -n default --aad-domains "['mpliftrdt20210811outlook.onmicrosoft.com']" --single-sign-on-url "https://www.dynatrace.io"
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9L3NpbmdsZXNpZ25vbmNvbmZpZ3VyYXRpb25zL3t9/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{}/singlesignonconfigurations/{} 2023-04-27 -->

#### examples

- Create a sso-config
```bash
dynatrace monitor sso-config create -g rg --monitor-name monitor -n default --aad-domains "['mpliftrdt20210811outlook.onmicrosoft.com']" --single-sign-on-url "https://www.dynatrace.io"
```
11 changes: 11 additions & 0 deletions Commands/dynatrace/monitor/sso-config/_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ List all dynatrace sso-config by monitor name
```bash
dynatrace monitor sso-config list -g rg --monitor-name monitor
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9L3NpbmdsZXNpZ25vbmNvbmZpZ3VyYXRpb25z/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{}/singlesignonconfigurations 2023-04-27 -->

#### examples

- List sso-config
```bash
dynatrace monitor sso-config list -g rg --monitor-name monitor
```
11 changes: 11 additions & 0 deletions Commands/dynatrace/monitor/sso-config/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Show a dynatrace sso-config
```bash
dynatrace monitor sso-config show -g rg --monitor-name monitor -n default
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9L3NpbmdsZXNpZ25vbmNvbmZpZ3VyYXRpb25zL3t9/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{}/singlesignonconfigurations/{} 2023-04-27 -->

#### examples

- Show sso-config
```bash
dynatrace monitor sso-config show -g rg --monitor-name monitor -n default
```
3 changes: 3 additions & 0 deletions Commands/dynatrace/monitor/sso-config/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ Manage monitor sso-config

- [show](/Commands/dynatrace/monitor/sso-config/_show.md)
: Show a dynatrace sso-config

- [update](/Commands/dynatrace/monitor/sso-config/_update.md)
: Update a DynatraceSingleSignOnResource
11 changes: 11 additions & 0 deletions Commands/dynatrace/monitor/tag-rule/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Create a tag rule
```bash
dynatrace monitor tag-rule create -g rg --monitor-name monitor -n default --log-rules "{send-aad-logs:enabled,send-subscription-logs:enabled,send-activity-logs:enabled,filtering-tags:[{name:env,value:prod,action:include},{name:env,value:dev,action:exclude}]}" --metric-rules "{filtering-tags:[{name:env,value:prod,action:include}]}"
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9L3RhZ3J1bGVzL3t9/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{}/tagrules/{} 2023-04-27 -->

#### examples

- Create tag-rule
```bash
dynatrace monitor tag-rule create -g rg --monitor-name monitor -n default --log-rules "{send-aad-logs:enabled,send-subscription-logs:enabled,send-activity-logs:enabled,filtering-tags:[{name:env,value:prod,action:include},{name:env,value:dev,action:exclude}]}" --metric-rules "{filtering-tags:[{name:env,value:prod,action:include}]}"
```
11 changes: 11 additions & 0 deletions Commands/dynatrace/monitor/tag-rule/_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Delete a tag rule
```bash
dynatrace monitor tag-rule delete -g rg --monitor-name monitor -n default -y
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9L3RhZ3J1bGVzL3t9/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{}/tagrules/{} 2023-04-27 -->

#### examples

- Delete tag-rule
```bash
dynatrace monitor tag-rule delete -g rg --monitor-name monitor -n default -y
```
11 changes: 11 additions & 0 deletions Commands/dynatrace/monitor/tag-rule/_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ List all tag rule by monitor name
```bash
dynatrace monitor tag-rule list -g rg --monitor-name monitor
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9L3RhZ3J1bGVz/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{}/tagrules 2023-04-27 -->

#### examples

- List tag-rule
```bash
dynatrace monitor tag-rule list -g rg --monitor-name monitor
```
11 changes: 11 additions & 0 deletions Commands/dynatrace/monitor/tag-rule/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Show a tag rule
```bash
dynatrace monitor tag-rule show -g rg --monitor-name monitor -n default
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9L3RhZ3J1bGVzL3t9/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{}/tagrules/{} 2023-04-27 -->

#### examples

- Show tag-rule
```bash
dynatrace monitor tag-rule show -g rg --monitor-name monitor -n default
```
13 changes: 12 additions & 1 deletion Commands/dynatrace/monitor/tag-rule/_update.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [Command] _dynatrace monitor tag-rule update_

Update a tag rule
Update a TagRule

## Versions

Expand All @@ -14,3 +14,14 @@ Update a tag rule
```bash
dynatrace monitor tag-rule delete -g rg --monitor-name monitor -n default -y
```

### [2023-04-27](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL2R5bmF0cmFjZS5vYnNlcnZhYmlsaXR5L21vbml0b3JzL3t9L3RhZ3J1bGVzL3t9/2023-04-27.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/dynatrace.observability/monitors/{}/tagrules/{} 2023-04-27 -->

#### examples

- Update tag-rule
```bash
dynatrace monitor tag-rule delete -g rg --monitor-name monitor -n default -y
```
2 changes: 1 addition & 1 deletion Commands/dynatrace/monitor/tag-rule/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ Manage dynatrace monitor tag-rule
: Show a tag rule

- [update](/Commands/dynatrace/monitor/tag-rule/_update.md)
: Update a tag rule
: Update a TagRule
5 changes: 5 additions & 0 deletions Commands/dynatrace/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ Manage dynatrace

- [monitor](/Commands/dynatrace/monitor/readme.md)
: Manage dynatrace monitor

## Commands

- [get-marketplace-saas-resource-detail](/Commands/dynatrace/_get-marketplace-saas-resource-detail.md)
: Get Marketplace SaaS resource details of a tenant under a specific subscription
Loading

0 comments on commit c963381

Please sign in to comment.