Skip to content

Commit d2fb6d0

Browse files
author
SDKAuto
committed
CodeGen from PR 13418 in Azure/azure-rest-api-specs
Merge bbcc64611511a2bbad81c53fc284984e7037b1ec into 8bfa3fbfb7afc27ccff6cd3a8bbe978f873ed673
1 parent 6df2614 commit d2fb6d0

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

+469
-15027
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: 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 activityLogAlerts 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 activityLogAlertName = "testactivityLogAlertName";
39+
client.activityLogAlerts.get(resourceGroupName, activityLogAlertName).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 activityLogAlerts 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 activityLogAlertName = "testactivityLogAlertName";
84+
client.activityLogAlerts.get(resourceGroupName, activityLogAlertName).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: 11 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,21 @@
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.
77
*/
88

99
export {
10-
discriminators,
11-
Action,
12-
ActionGroupResource,
13-
ActivityLogAlertActionGroup,
14-
ActivityLogAlertActionList,
15-
ActivityLogAlertAllOfCondition,
16-
ActivityLogAlertLeafCondition,
17-
ActivityLogAlertList,
18-
ActivityLogAlertPatchBody,
10+
ActionGroup,
11+
ActionList,
1912
ActivityLogAlertResource,
20-
AlertingAction,
21-
AlertRuleResource,
22-
ArmRoleReceiver,
23-
AutomationRunbookReceiver,
24-
AutoscaleNotification,
25-
AutoscaleProfile,
26-
AutoscaleSettingResource,
27-
AzNsActionGroup,
28-
AzureAppPushReceiver,
29-
AzureFunctionReceiver,
13+
AlertRuleAllOfCondition,
14+
AlertRuleAnyOfOrLeafCondition,
15+
AlertRuleLeafCondition,
16+
AlertRuleList,
17+
AlertRulePatchObject,
18+
AzureResource,
3019
BaseResource,
31-
Criteria,
32-
DataContainer,
33-
DiagnosticSettingsCategoryResource,
34-
DiagnosticSettingsResource,
35-
Dimension,
36-
DynamicMetricCriteria,
37-
DynamicThresholdFailingPeriods,
38-
EmailNotification,
39-
EmailReceiver,
40-
ErrorResponse,
41-
ItsmReceiver,
42-
LocationThresholdRuleCondition,
43-
LogicAppReceiver,
44-
LogMetricTrigger,
45-
LogProfileResource,
46-
LogSearchRuleResource,
47-
LogSettings,
48-
LogToMetricAction,
49-
ManagementEventAggregationCondition,
50-
ManagementEventRuleCondition,
51-
MetricAlertAction,
52-
MetricAlertCriteria,
53-
MetricAlertMultipleResourceMultipleMetricCriteria,
54-
MetricAlertResource,
55-
MetricAlertSingleResourceMultipleMetricCriteria,
56-
MetricCriteria,
57-
MetricDimension,
58-
MetricSettings,
59-
MetricTrigger,
60-
MultiMetricCriteria,
61-
ProxyOnlyResource,
62-
ProxyResource,
63-
Recurrence,
64-
RecurrentSchedule,
65-
Resource,
66-
RetentionPolicy,
67-
RuleAction,
68-
RuleCondition,
69-
RuleDataSource,
70-
RuleEmailAction,
71-
RuleManagementEventClaimsDataSource,
72-
RuleManagementEventDataSource,
73-
RuleMetricDataSource,
74-
RuleWebhookAction,
75-
ScaleAction,
76-
ScaleCapacity,
77-
ScaleRule,
78-
Schedule,
79-
SmsReceiver,
80-
Source,
81-
ThresholdRuleCondition,
82-
TimeWindow,
83-
TriggerCondition,
84-
VMInsightsOnboardingStatus,
85-
VoiceReceiver,
86-
WebhookNotification,
87-
WebhookReceiver,
88-
WorkspaceInfo
20+
ErrorResponse
8921
} from "../models/mappers";

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.

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

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

0 commit comments

Comments
 (0)