Skip to content

Commit 64dd4e3

Browse files
author
SDKAuto
committed
CodeGen from PR 12371 in Azure/azure-rest-api-specs
Merge 5481aacd70c581bd45d8a8cd97536153e200b08c into 14313ea8bb4807f71b970334262b4e199797a4a1
1 parent 7f2e413 commit 64dd4e3

Some content is hidden

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

51 files changed

+566
-187
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) 2021 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: 5 additions & 6 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 listByResourceGroup autoscaleSettings as an example written in TypeScript.
1919

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

@@ -26,11 +26,10 @@ 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) => {
@@ -98,4 +97,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
9897

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

101-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmonitor%2Farm-monitor%2FREADME.png)
100+
![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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -76,6 +76,7 @@ export {
7676
ScaleAction,
7777
ScaleCapacity,
7878
ScaleRule,
79+
ScaleRuleMetricDimension,
7980
Schedule,
8081
SmsReceiver,
8182
Source,
@@ -86,5 +87,6 @@ export {
8687
VoiceReceiver,
8788
WebhookNotification,
8889
WebhookReceiver,
90+
WebtestLocationAvailabilityCriteria,
8991
WorkspaceInfo
9092
} from "../models/mappers";

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -75,6 +75,7 @@ export {
7575
ScaleAction,
7676
ScaleCapacity,
7777
ScaleRule,
78+
ScaleRuleMetricDimension,
7879
Schedule,
7980
SmsReceiver,
8081
Source,
@@ -85,5 +86,6 @@ export {
8586
VoiceReceiver,
8687
WebhookNotification,
8788
WebhookReceiver,
89+
WebtestLocationAvailabilityCriteria,
8890
WorkspaceInfo
8991
} from "../models/mappers";

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -76,6 +76,7 @@ export {
7676
ScaleAction,
7777
ScaleCapacity,
7878
ScaleRule,
79+
ScaleRuleMetricDimension,
7980
Schedule,
8081
SmsReceiver,
8182
Source,
@@ -86,5 +87,6 @@ export {
8687
VoiceReceiver,
8788
WebhookNotification,
8889
WebhookReceiver,
90+
WebtestLocationAvailabilityCriteria,
8991
WorkspaceInfo
9092
} from "../models/mappers";

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -75,6 +75,7 @@ export {
7575
ScaleAction,
7676
ScaleCapacity,
7777
ScaleRule,
78+
ScaleRuleMetricDimension,
7879
Schedule,
7980
SmsReceiver,
8081
Source,
@@ -85,5 +86,6 @@ export {
8586
VoiceReceiver,
8687
WebhookNotification,
8788
WebhookReceiver,
89+
WebtestLocationAvailabilityCriteria,
8890
WorkspaceInfo
8991
} from "../models/mappers";

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

0 commit comments

Comments
 (0)