Skip to content

Commit 06515b4

Browse files
author
SDK Automation
committed
Generated from da35acf0942f2eddb9cbc59da77060011dda7df0
1 parent 7e9fcae commit 06515b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+806
-15336
lines changed

sdk/monitor/arm-monitor/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 Microsoft
3+
Copyright (c) 2020 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/monitor/arm-monitor/README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install @azure/arm-monitor
1515

1616
### How to use
1717

18-
#### nodejs - Authentication, client creation and listByResourceGroup autoscaleSettings as an example written in TypeScript.
18+
#### nodejs - client creation and get activityLogAlertRule as an example written in TypeScript.
1919

2020
##### Install @azure/ms-rest-nodeauth
2121

@@ -26,17 +26,17 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"
2626

2727
##### Sample code
2828

29+
While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
2930
```typescript
30-
import * as msRest from "@azure/ms-rest-js";
31-
import * as msRestAzure from "@azure/ms-rest-azure-js";
32-
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
33-
import { MonitorManagementClient, MonitorManagementModels, MonitorManagementMappers } from "@azure/arm-monitor";
31+
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
32+
const { MonitorManagementClient } = require("@azure/arm-monitor");
3433
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
3534

3635
msRestNodeAuth.interactiveLogin().then((creds) => {
3736
const client = new MonitorManagementClient(creds, subscriptionId);
3837
const resourceGroupName = "testresourceGroupName";
39-
client.autoscaleSettings.listByResourceGroup(resourceGroupName).then((result) => {
38+
const alertRuleName = "testalertRuleName";
39+
client.activityLogAlertRule.get(resourceGroupName, alertRuleName).then((result) => {
4040
console.log("The result is:");
4141
console.log(result);
4242
});
@@ -45,7 +45,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
4545
});
4646
```
4747

48-
#### browser - Authentication, client creation and listByResourceGroup autoscaleSettings as an example written in JavaScript.
48+
#### browser - Authentication, client creation and get activityLogAlertRule as an example written in JavaScript.
4949

5050
##### Install @azure/ms-rest-browserauth
5151

@@ -80,7 +80,8 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
8080
}
8181
const client = new Azure.ArmMonitor.MonitorManagementClient(res.creds, subscriptionId);
8282
const resourceGroupName = "testresourceGroupName";
83-
client.autoscaleSettings.listByResourceGroup(resourceGroupName).then((result) => {
83+
const alertRuleName = "testalertRuleName";
84+
client.activityLogAlertRule.get(resourceGroupName, alertRuleName).then((result) => {
8485
console.log("The result is:");
8586
console.log(result);
8687
}).catch((err) => {
@@ -98,4 +99,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
9899

99100
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
100101

101-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmonitor%2Farm-monitor%2FREADME.png)
102+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/monitor/arm-monitor/README.png)

sdk/monitor/arm-monitor/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/monitor/arm-monitor/src/models/actionGroupsMappers.ts

Lines changed: 0 additions & 90 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
export {
10+
ActionGroup,
11+
ActionList,
12+
AlertRuleAllOfCondition,
13+
AlertRuleAnyOfOrLeafCondition,
14+
AlertRuleLeafCondition,
15+
AlertRuleList,
16+
AlertRulePatchObject,
17+
AlertRuleResource,
18+
AzureResource,
19+
BaseResource,
20+
ErrorResponse,
21+
ErrorResponseError
22+
} from "../models/mappers";

sdk/monitor/arm-monitor/src/models/activityLogAlertsMappers.ts

Lines changed: 0 additions & 89 deletions
This file was deleted.

sdk/monitor/arm-monitor/src/models/activityLogsMappers.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

sdk/monitor/arm-monitor/src/models/alertRuleIncidentsMappers.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)