@azure/arm-datadog 2.1.1 → 3.0.1-alpha.20220120.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/LICENSE +21 -0
- package/README.md +69 -80
- package/dist/index.js +3359 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/microsoftDatadogClient.d.ts +22 -0
- package/dist-esm/src/microsoftDatadogClient.d.ts.map +1 -0
- package/dist-esm/src/microsoftDatadogClient.js +55 -0
- package/dist-esm/src/microsoftDatadogClient.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +790 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +69 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +42 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +551 -600
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +18 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +145 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/marketplaceAgreements.d.ts +37 -0
- package/dist-esm/src/operations/marketplaceAgreements.d.ts.map +1 -0
- package/dist-esm/src/operations/marketplaceAgreements.js +149 -0
- package/dist-esm/src/operations/marketplaceAgreements.js.map +1 -0
- package/dist-esm/src/operations/monitors.d.ts +220 -0
- package/dist-esm/src/operations/monitors.d.ts.map +1 -0
- package/dist-esm/src/operations/monitors.js +1035 -0
- package/dist-esm/src/operations/monitors.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/singleSignOnConfigurations.d.ts +63 -0
- package/dist-esm/src/operations/singleSignOnConfigurations.d.ts.map +1 -0
- package/dist-esm/src/operations/singleSignOnConfigurations.js +256 -0
- package/dist-esm/src/operations/singleSignOnConfigurations.js.map +1 -0
- package/dist-esm/src/operations/tagRules.d.ts +54 -0
- package/dist-esm/src/operations/tagRules.d.ts.map +1 -0
- package/dist-esm/src/operations/tagRules.js +203 -0
- package/dist-esm/src/operations/tagRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/marketplaceAgreements.d.ts +16 -0
- package/dist-esm/src/operationsInterfaces/marketplaceAgreements.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/marketplaceAgreements.js} +2 -9
- package/dist-esm/src/operationsInterfaces/marketplaceAgreements.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/monitors.d.ts +116 -0
- package/dist-esm/src/operationsInterfaces/monitors.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/monitors.js} +2 -1
- package/dist-esm/src/operationsInterfaces/monitors.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/operations.js} +2 -2
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/singleSignOnConfigurations.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/singleSignOnConfigurations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/singleSignOnConfigurations.js +9 -0
- package/dist-esm/src/operationsInterfaces/singleSignOnConfigurations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/tagRules.d.ts +29 -0
- package/dist-esm/src/operationsInterfaces/tagRules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/tagRules.js +9 -0
- package/dist-esm/src/operationsInterfaces/tagRules.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -22
- package/review/arm-datadog.api.md +746 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/microsoftDatadogClient.ts +80 -40
- package/src/models/index.ts +650 -1297
- package/src/models/mappers.ts +561 -609
- package/src/models/parameters.ts +104 -34
- package/src/operations/index.ts +1 -2
- package/src/operations/marketplaceAgreements.ts +110 -116
- package/src/operations/monitors.ts +960 -819
- package/src/operations/operations.ts +87 -75
- package/src/operations/singleSignOnConfigurations.ts +247 -166
- package/src/operations/tagRules.ts +169 -171
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/marketplaceAgreements.ts +34 -0
- package/src/operationsInterfaces/monitors.ts +220 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/singleSignOnConfigurations.ts +78 -0
- package/src/operationsInterfaces/tagRules.ts +59 -0
- package/tsconfig.json +3 -3
- package/types/arm-datadog.d.ts +1130 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-datadog.js +0 -2855
- package/dist/arm-datadog.js.map +0 -1
- package/dist/arm-datadog.min.js +0 -1
- package/dist/arm-datadog.min.js.map +0 -1
- package/esm/microsoftDatadogClient.d.ts +0 -28
- package/esm/microsoftDatadogClient.d.ts.map +0 -1
- package/esm/microsoftDatadogClient.js +0 -41
- package/esm/microsoftDatadogClient.js.map +0 -1
- package/esm/microsoftDatadogClientContext.d.ts +0 -22
- package/esm/microsoftDatadogClientContext.d.ts.map +0 -1
- package/esm/microsoftDatadogClientContext.js +0 -61
- package/esm/microsoftDatadogClientContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -1422
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -44
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/marketplaceAgreementsMappers.d.ts +0 -2
- package/esm/models/marketplaceAgreementsMappers.d.ts.map +0 -1
- package/esm/models/marketplaceAgreementsMappers.js +0 -9
- package/esm/models/marketplaceAgreementsMappers.js.map +0 -1
- package/esm/models/monitorsMappers.d.ts +0 -2
- package/esm/models/monitorsMappers.d.ts.map +0 -1
- package/esm/models/monitorsMappers.js +0 -9
- package/esm/models/monitorsMappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -10
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -101
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/singleSignOnConfigurationsMappers.d.ts +0 -2
- package/esm/models/singleSignOnConfigurationsMappers.d.ts.map +0 -1
- package/esm/models/singleSignOnConfigurationsMappers.js +0 -9
- package/esm/models/singleSignOnConfigurationsMappers.js.map +0 -1
- package/esm/models/tagRulesMappers.d.ts +0 -2
- package/esm/models/tagRulesMappers.d.ts.map +0 -1
- package/esm/models/tagRulesMappers.js +0 -9
- package/esm/models/tagRulesMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/marketplaceAgreements.d.ts +0 -61
- package/esm/operations/marketplaceAgreements.d.ts.map +0 -1
- package/esm/operations/marketplaceAgreements.js +0 -116
- package/esm/operations/marketplaceAgreements.js.map +0 -1
- package/esm/operations/monitors.d.ts +0 -373
- package/esm/operations/monitors.d.ts.map +0 -1
- package/esm/operations/monitors.js +0 -533
- package/esm/operations/monitors.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/singleSignOnConfigurations.d.ts +0 -95
- package/esm/operations/singleSignOnConfigurations.d.ts.map +0 -1
- package/esm/operations/singleSignOnConfigurations.js +0 -182
- package/esm/operations/singleSignOnConfigurations.js.map +0 -1
- package/esm/operations/tagRules.d.ts +0 -100
- package/esm/operations/tagRules.d.ts.map +0 -1
- package/esm/operations/tagRules.js +0 -159
- package/esm/operations/tagRules.js.map +0 -1
- package/src/microsoftDatadogClientContext.ts +0 -74
- package/src/models/marketplaceAgreementsMappers.ts +0 -31
- package/src/models/monitorsMappers.ts +0 -45
- package/src/models/singleSignOnConfigurationsMappers.ts +0 -31
- package/src/models/tagRulesMappers.ts +0 -31
@@ -0,0 +1,1035 @@
|
|
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
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
9
|
+
import * as coreClient from "@azure/core-client";
|
10
|
+
import * as Mappers from "../models/mappers";
|
11
|
+
import * as Parameters from "../models/parameters";
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
13
|
+
import { LroImpl } from "../lroImpl";
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
15
|
+
/** Class containing Monitors operations. */
|
16
|
+
export class MonitorsImpl {
|
17
|
+
/**
|
18
|
+
* Initialize a new instance of the class Monitors class.
|
19
|
+
* @param client Reference to the service client
|
20
|
+
*/
|
21
|
+
constructor(client) {
|
22
|
+
this.client = client;
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* List the api keys for a given monitor resource.
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
27
|
+
* @param monitorName Monitor resource name
|
28
|
+
* @param options The options parameters.
|
29
|
+
*/
|
30
|
+
listApiKeys(resourceGroupName, monitorName, options) {
|
31
|
+
const iter = this.listApiKeysPagingAll(resourceGroupName, monitorName, options);
|
32
|
+
return {
|
33
|
+
next() {
|
34
|
+
return iter.next();
|
35
|
+
},
|
36
|
+
[Symbol.asyncIterator]() {
|
37
|
+
return this;
|
38
|
+
},
|
39
|
+
byPage: () => {
|
40
|
+
return this.listApiKeysPagingPage(resourceGroupName, monitorName, options);
|
41
|
+
}
|
42
|
+
};
|
43
|
+
}
|
44
|
+
listApiKeysPagingPage(resourceGroupName, monitorName, options) {
|
45
|
+
return __asyncGenerator(this, arguments, function* listApiKeysPagingPage_1() {
|
46
|
+
let result = yield __await(this._listApiKeys(resourceGroupName, monitorName, options));
|
47
|
+
yield yield __await(result.value || []);
|
48
|
+
let continuationToken = result.nextLink;
|
49
|
+
while (continuationToken) {
|
50
|
+
result = yield __await(this._listApiKeysNext(resourceGroupName, monitorName, continuationToken, options));
|
51
|
+
continuationToken = result.nextLink;
|
52
|
+
yield yield __await(result.value || []);
|
53
|
+
}
|
54
|
+
});
|
55
|
+
}
|
56
|
+
listApiKeysPagingAll(resourceGroupName, monitorName, options) {
|
57
|
+
return __asyncGenerator(this, arguments, function* listApiKeysPagingAll_1() {
|
58
|
+
var e_1, _a;
|
59
|
+
try {
|
60
|
+
for (var _b = __asyncValues(this.listApiKeysPagingPage(resourceGroupName, monitorName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
61
|
+
const page = _c.value;
|
62
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
63
|
+
}
|
64
|
+
}
|
65
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
66
|
+
finally {
|
67
|
+
try {
|
68
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
69
|
+
}
|
70
|
+
finally { if (e_1) throw e_1.error; }
|
71
|
+
}
|
72
|
+
});
|
73
|
+
}
|
74
|
+
/**
|
75
|
+
* List the hosts for a given monitor resource.
|
76
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
77
|
+
* @param monitorName Monitor resource name
|
78
|
+
* @param options The options parameters.
|
79
|
+
*/
|
80
|
+
listHosts(resourceGroupName, monitorName, options) {
|
81
|
+
const iter = this.listHostsPagingAll(resourceGroupName, monitorName, options);
|
82
|
+
return {
|
83
|
+
next() {
|
84
|
+
return iter.next();
|
85
|
+
},
|
86
|
+
[Symbol.asyncIterator]() {
|
87
|
+
return this;
|
88
|
+
},
|
89
|
+
byPage: () => {
|
90
|
+
return this.listHostsPagingPage(resourceGroupName, monitorName, options);
|
91
|
+
}
|
92
|
+
};
|
93
|
+
}
|
94
|
+
listHostsPagingPage(resourceGroupName, monitorName, options) {
|
95
|
+
return __asyncGenerator(this, arguments, function* listHostsPagingPage_1() {
|
96
|
+
let result = yield __await(this._listHosts(resourceGroupName, monitorName, options));
|
97
|
+
yield yield __await(result.value || []);
|
98
|
+
let continuationToken = result.nextLink;
|
99
|
+
while (continuationToken) {
|
100
|
+
result = yield __await(this._listHostsNext(resourceGroupName, monitorName, continuationToken, options));
|
101
|
+
continuationToken = result.nextLink;
|
102
|
+
yield yield __await(result.value || []);
|
103
|
+
}
|
104
|
+
});
|
105
|
+
}
|
106
|
+
listHostsPagingAll(resourceGroupName, monitorName, options) {
|
107
|
+
return __asyncGenerator(this, arguments, function* listHostsPagingAll_1() {
|
108
|
+
var e_2, _a;
|
109
|
+
try {
|
110
|
+
for (var _b = __asyncValues(this.listHostsPagingPage(resourceGroupName, monitorName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
111
|
+
const page = _c.value;
|
112
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
113
|
+
}
|
114
|
+
}
|
115
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
116
|
+
finally {
|
117
|
+
try {
|
118
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
119
|
+
}
|
120
|
+
finally { if (e_2) throw e_2.error; }
|
121
|
+
}
|
122
|
+
});
|
123
|
+
}
|
124
|
+
/**
|
125
|
+
* List all Azure resources associated to the same Datadog organization as the target resource.
|
126
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
127
|
+
* @param monitorName Monitor resource name
|
128
|
+
* @param options The options parameters.
|
129
|
+
*/
|
130
|
+
listLinkedResources(resourceGroupName, monitorName, options) {
|
131
|
+
const iter = this.listLinkedResourcesPagingAll(resourceGroupName, monitorName, options);
|
132
|
+
return {
|
133
|
+
next() {
|
134
|
+
return iter.next();
|
135
|
+
},
|
136
|
+
[Symbol.asyncIterator]() {
|
137
|
+
return this;
|
138
|
+
},
|
139
|
+
byPage: () => {
|
140
|
+
return this.listLinkedResourcesPagingPage(resourceGroupName, monitorName, options);
|
141
|
+
}
|
142
|
+
};
|
143
|
+
}
|
144
|
+
listLinkedResourcesPagingPage(resourceGroupName, monitorName, options) {
|
145
|
+
return __asyncGenerator(this, arguments, function* listLinkedResourcesPagingPage_1() {
|
146
|
+
let result = yield __await(this._listLinkedResources(resourceGroupName, monitorName, options));
|
147
|
+
yield yield __await(result.value || []);
|
148
|
+
let continuationToken = result.nextLink;
|
149
|
+
while (continuationToken) {
|
150
|
+
result = yield __await(this._listLinkedResourcesNext(resourceGroupName, monitorName, continuationToken, options));
|
151
|
+
continuationToken = result.nextLink;
|
152
|
+
yield yield __await(result.value || []);
|
153
|
+
}
|
154
|
+
});
|
155
|
+
}
|
156
|
+
listLinkedResourcesPagingAll(resourceGroupName, monitorName, options) {
|
157
|
+
return __asyncGenerator(this, arguments, function* listLinkedResourcesPagingAll_1() {
|
158
|
+
var e_3, _a;
|
159
|
+
try {
|
160
|
+
for (var _b = __asyncValues(this.listLinkedResourcesPagingPage(resourceGroupName, monitorName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
161
|
+
const page = _c.value;
|
162
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
163
|
+
}
|
164
|
+
}
|
165
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
166
|
+
finally {
|
167
|
+
try {
|
168
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
169
|
+
}
|
170
|
+
finally { if (e_3) throw e_3.error; }
|
171
|
+
}
|
172
|
+
});
|
173
|
+
}
|
174
|
+
/**
|
175
|
+
* List the resources currently being monitored by the Datadog monitor resource.
|
176
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
177
|
+
* @param monitorName Monitor resource name
|
178
|
+
* @param options The options parameters.
|
179
|
+
*/
|
180
|
+
listMonitoredResources(resourceGroupName, monitorName, options) {
|
181
|
+
const iter = this.listMonitoredResourcesPagingAll(resourceGroupName, monitorName, options);
|
182
|
+
return {
|
183
|
+
next() {
|
184
|
+
return iter.next();
|
185
|
+
},
|
186
|
+
[Symbol.asyncIterator]() {
|
187
|
+
return this;
|
188
|
+
},
|
189
|
+
byPage: () => {
|
190
|
+
return this.listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options);
|
191
|
+
}
|
192
|
+
};
|
193
|
+
}
|
194
|
+
listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options) {
|
195
|
+
return __asyncGenerator(this, arguments, function* listMonitoredResourcesPagingPage_1() {
|
196
|
+
let result = yield __await(this._listMonitoredResources(resourceGroupName, monitorName, options));
|
197
|
+
yield yield __await(result.value || []);
|
198
|
+
let continuationToken = result.nextLink;
|
199
|
+
while (continuationToken) {
|
200
|
+
result = yield __await(this._listMonitoredResourcesNext(resourceGroupName, monitorName, continuationToken, options));
|
201
|
+
continuationToken = result.nextLink;
|
202
|
+
yield yield __await(result.value || []);
|
203
|
+
}
|
204
|
+
});
|
205
|
+
}
|
206
|
+
listMonitoredResourcesPagingAll(resourceGroupName, monitorName, options) {
|
207
|
+
return __asyncGenerator(this, arguments, function* listMonitoredResourcesPagingAll_1() {
|
208
|
+
var e_4, _a;
|
209
|
+
try {
|
210
|
+
for (var _b = __asyncValues(this.listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
211
|
+
const page = _c.value;
|
212
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
213
|
+
}
|
214
|
+
}
|
215
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
216
|
+
finally {
|
217
|
+
try {
|
218
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
219
|
+
}
|
220
|
+
finally { if (e_4) throw e_4.error; }
|
221
|
+
}
|
222
|
+
});
|
223
|
+
}
|
224
|
+
/**
|
225
|
+
* List all monitors under the specified subscription.
|
226
|
+
* @param options The options parameters.
|
227
|
+
*/
|
228
|
+
list(options) {
|
229
|
+
const iter = this.listPagingAll(options);
|
230
|
+
return {
|
231
|
+
next() {
|
232
|
+
return iter.next();
|
233
|
+
},
|
234
|
+
[Symbol.asyncIterator]() {
|
235
|
+
return this;
|
236
|
+
},
|
237
|
+
byPage: () => {
|
238
|
+
return this.listPagingPage(options);
|
239
|
+
}
|
240
|
+
};
|
241
|
+
}
|
242
|
+
listPagingPage(options) {
|
243
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
244
|
+
let result = yield __await(this._list(options));
|
245
|
+
yield yield __await(result.value || []);
|
246
|
+
let continuationToken = result.nextLink;
|
247
|
+
while (continuationToken) {
|
248
|
+
result = yield __await(this._listNext(continuationToken, options));
|
249
|
+
continuationToken = result.nextLink;
|
250
|
+
yield yield __await(result.value || []);
|
251
|
+
}
|
252
|
+
});
|
253
|
+
}
|
254
|
+
listPagingAll(options) {
|
255
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
256
|
+
var e_5, _a;
|
257
|
+
try {
|
258
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
259
|
+
const page = _c.value;
|
260
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
261
|
+
}
|
262
|
+
}
|
263
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
264
|
+
finally {
|
265
|
+
try {
|
266
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
267
|
+
}
|
268
|
+
finally { if (e_5) throw e_5.error; }
|
269
|
+
}
|
270
|
+
});
|
271
|
+
}
|
272
|
+
/**
|
273
|
+
* List all monitors under the specified resource group.
|
274
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
275
|
+
* @param options The options parameters.
|
276
|
+
*/
|
277
|
+
listByResourceGroup(resourceGroupName, options) {
|
278
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
279
|
+
return {
|
280
|
+
next() {
|
281
|
+
return iter.next();
|
282
|
+
},
|
283
|
+
[Symbol.asyncIterator]() {
|
284
|
+
return this;
|
285
|
+
},
|
286
|
+
byPage: () => {
|
287
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
288
|
+
}
|
289
|
+
};
|
290
|
+
}
|
291
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
292
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
293
|
+
let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
294
|
+
yield yield __await(result.value || []);
|
295
|
+
let continuationToken = result.nextLink;
|
296
|
+
while (continuationToken) {
|
297
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
298
|
+
continuationToken = result.nextLink;
|
299
|
+
yield yield __await(result.value || []);
|
300
|
+
}
|
301
|
+
});
|
302
|
+
}
|
303
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
304
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
305
|
+
var e_6, _a;
|
306
|
+
try {
|
307
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
308
|
+
const page = _c.value;
|
309
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
310
|
+
}
|
311
|
+
}
|
312
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
313
|
+
finally {
|
314
|
+
try {
|
315
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
316
|
+
}
|
317
|
+
finally { if (e_6) throw e_6.error; }
|
318
|
+
}
|
319
|
+
});
|
320
|
+
}
|
321
|
+
/**
|
322
|
+
* List the api keys for a given monitor resource.
|
323
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
324
|
+
* @param monitorName Monitor resource name
|
325
|
+
* @param options The options parameters.
|
326
|
+
*/
|
327
|
+
_listApiKeys(resourceGroupName, monitorName, options) {
|
328
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listApiKeysOperationSpec);
|
329
|
+
}
|
330
|
+
/**
|
331
|
+
* Get the default api key.
|
332
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
333
|
+
* @param monitorName Monitor resource name
|
334
|
+
* @param options The options parameters.
|
335
|
+
*/
|
336
|
+
getDefaultKey(resourceGroupName, monitorName, options) {
|
337
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getDefaultKeyOperationSpec);
|
338
|
+
}
|
339
|
+
/**
|
340
|
+
* Set the default api key.
|
341
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
342
|
+
* @param monitorName Monitor resource name
|
343
|
+
* @param options The options parameters.
|
344
|
+
*/
|
345
|
+
setDefaultKey(resourceGroupName, monitorName, options) {
|
346
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, setDefaultKeyOperationSpec);
|
347
|
+
}
|
348
|
+
/**
|
349
|
+
* List the hosts for a given monitor resource.
|
350
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
351
|
+
* @param monitorName Monitor resource name
|
352
|
+
* @param options The options parameters.
|
353
|
+
*/
|
354
|
+
_listHosts(resourceGroupName, monitorName, options) {
|
355
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listHostsOperationSpec);
|
356
|
+
}
|
357
|
+
/**
|
358
|
+
* List all Azure resources associated to the same Datadog organization as the target resource.
|
359
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
360
|
+
* @param monitorName Monitor resource name
|
361
|
+
* @param options The options parameters.
|
362
|
+
*/
|
363
|
+
_listLinkedResources(resourceGroupName, monitorName, options) {
|
364
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listLinkedResourcesOperationSpec);
|
365
|
+
}
|
366
|
+
/**
|
367
|
+
* List the resources currently being monitored by the Datadog monitor resource.
|
368
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
369
|
+
* @param monitorName Monitor resource name
|
370
|
+
* @param options The options parameters.
|
371
|
+
*/
|
372
|
+
_listMonitoredResources(resourceGroupName, monitorName, options) {
|
373
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listMonitoredResourcesOperationSpec);
|
374
|
+
}
|
375
|
+
/**
|
376
|
+
* List all monitors under the specified subscription.
|
377
|
+
* @param options The options parameters.
|
378
|
+
*/
|
379
|
+
_list(options) {
|
380
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
381
|
+
}
|
382
|
+
/**
|
383
|
+
* List all monitors under the specified resource group.
|
384
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
385
|
+
* @param options The options parameters.
|
386
|
+
*/
|
387
|
+
_listByResourceGroup(resourceGroupName, options) {
|
388
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
389
|
+
}
|
390
|
+
/**
|
391
|
+
* Get the properties of a specific monitor resource.
|
392
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
393
|
+
* @param monitorName Monitor resource name
|
394
|
+
* @param options The options parameters.
|
395
|
+
*/
|
396
|
+
get(resourceGroupName, monitorName, options) {
|
397
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getOperationSpec);
|
398
|
+
}
|
399
|
+
/**
|
400
|
+
* Create a monitor resource.
|
401
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
402
|
+
* @param monitorName Monitor resource name
|
403
|
+
* @param options The options parameters.
|
404
|
+
*/
|
405
|
+
beginCreate(resourceGroupName, monitorName, options) {
|
406
|
+
return __awaiter(this, void 0, void 0, function* () {
|
407
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
408
|
+
return this.client.sendOperationRequest(args, spec);
|
409
|
+
});
|
410
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
411
|
+
var _a;
|
412
|
+
let currentRawResponse = undefined;
|
413
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
414
|
+
const callback = (rawResponse, flatResponse) => {
|
415
|
+
currentRawResponse = rawResponse;
|
416
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
417
|
+
};
|
418
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
419
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
420
|
+
return {
|
421
|
+
flatResponse,
|
422
|
+
rawResponse: {
|
423
|
+
statusCode: currentRawResponse.status,
|
424
|
+
body: currentRawResponse.parsedBody,
|
425
|
+
headers: currentRawResponse.headers.toJSON()
|
426
|
+
}
|
427
|
+
};
|
428
|
+
});
|
429
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, monitorName, options }, createOperationSpec);
|
430
|
+
return new LroEngine(lro, {
|
431
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
432
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
433
|
+
lroResourceLocationConfig: "azure-async-operation"
|
434
|
+
});
|
435
|
+
});
|
436
|
+
}
|
437
|
+
/**
|
438
|
+
* Create a monitor resource.
|
439
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
440
|
+
* @param monitorName Monitor resource name
|
441
|
+
* @param options The options parameters.
|
442
|
+
*/
|
443
|
+
beginCreateAndWait(resourceGroupName, monitorName, options) {
|
444
|
+
return __awaiter(this, void 0, void 0, function* () {
|
445
|
+
const poller = yield this.beginCreate(resourceGroupName, monitorName, options);
|
446
|
+
return poller.pollUntilDone();
|
447
|
+
});
|
448
|
+
}
|
449
|
+
/**
|
450
|
+
* Update a monitor resource.
|
451
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
452
|
+
* @param monitorName Monitor resource name
|
453
|
+
* @param options The options parameters.
|
454
|
+
*/
|
455
|
+
beginUpdate(resourceGroupName, monitorName, options) {
|
456
|
+
return __awaiter(this, void 0, void 0, function* () {
|
457
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
458
|
+
return this.client.sendOperationRequest(args, spec);
|
459
|
+
});
|
460
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
461
|
+
var _a;
|
462
|
+
let currentRawResponse = undefined;
|
463
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
464
|
+
const callback = (rawResponse, flatResponse) => {
|
465
|
+
currentRawResponse = rawResponse;
|
466
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
467
|
+
};
|
468
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
469
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
470
|
+
return {
|
471
|
+
flatResponse,
|
472
|
+
rawResponse: {
|
473
|
+
statusCode: currentRawResponse.status,
|
474
|
+
body: currentRawResponse.parsedBody,
|
475
|
+
headers: currentRawResponse.headers.toJSON()
|
476
|
+
}
|
477
|
+
};
|
478
|
+
});
|
479
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, monitorName, options }, updateOperationSpec);
|
480
|
+
return new LroEngine(lro, {
|
481
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
482
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
483
|
+
});
|
484
|
+
});
|
485
|
+
}
|
486
|
+
/**
|
487
|
+
* Update a monitor resource.
|
488
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
489
|
+
* @param monitorName Monitor resource name
|
490
|
+
* @param options The options parameters.
|
491
|
+
*/
|
492
|
+
beginUpdateAndWait(resourceGroupName, monitorName, options) {
|
493
|
+
return __awaiter(this, void 0, void 0, function* () {
|
494
|
+
const poller = yield this.beginUpdate(resourceGroupName, monitorName, options);
|
495
|
+
return poller.pollUntilDone();
|
496
|
+
});
|
497
|
+
}
|
498
|
+
/**
|
499
|
+
* Delete a monitor resource.
|
500
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
501
|
+
* @param monitorName Monitor resource name
|
502
|
+
* @param options The options parameters.
|
503
|
+
*/
|
504
|
+
beginDelete(resourceGroupName, monitorName, options) {
|
505
|
+
return __awaiter(this, void 0, void 0, function* () {
|
506
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
507
|
+
return this.client.sendOperationRequest(args, spec);
|
508
|
+
});
|
509
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
510
|
+
var _a;
|
511
|
+
let currentRawResponse = undefined;
|
512
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
513
|
+
const callback = (rawResponse, flatResponse) => {
|
514
|
+
currentRawResponse = rawResponse;
|
515
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
516
|
+
};
|
517
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
518
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
519
|
+
return {
|
520
|
+
flatResponse,
|
521
|
+
rawResponse: {
|
522
|
+
statusCode: currentRawResponse.status,
|
523
|
+
body: currentRawResponse.parsedBody,
|
524
|
+
headers: currentRawResponse.headers.toJSON()
|
525
|
+
}
|
526
|
+
};
|
527
|
+
});
|
528
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, monitorName, options }, deleteOperationSpec);
|
529
|
+
return new LroEngine(lro, {
|
530
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
531
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
532
|
+
});
|
533
|
+
});
|
534
|
+
}
|
535
|
+
/**
|
536
|
+
* Delete a monitor resource.
|
537
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
538
|
+
* @param monitorName Monitor resource name
|
539
|
+
* @param options The options parameters.
|
540
|
+
*/
|
541
|
+
beginDeleteAndWait(resourceGroupName, monitorName, options) {
|
542
|
+
return __awaiter(this, void 0, void 0, function* () {
|
543
|
+
const poller = yield this.beginDelete(resourceGroupName, monitorName, options);
|
544
|
+
return poller.pollUntilDone();
|
545
|
+
});
|
546
|
+
}
|
547
|
+
/**
|
548
|
+
* Refresh the set password link and return a latest one.
|
549
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
550
|
+
* @param monitorName Monitor resource name
|
551
|
+
* @param options The options parameters.
|
552
|
+
*/
|
553
|
+
refreshSetPasswordLink(resourceGroupName, monitorName, options) {
|
554
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, refreshSetPasswordLinkOperationSpec);
|
555
|
+
}
|
556
|
+
/**
|
557
|
+
* ListApiKeysNext
|
558
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
559
|
+
* @param monitorName Monitor resource name
|
560
|
+
* @param nextLink The nextLink from the previous successful call to the ListApiKeys method.
|
561
|
+
* @param options The options parameters.
|
562
|
+
*/
|
563
|
+
_listApiKeysNext(resourceGroupName, monitorName, nextLink, options) {
|
564
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listApiKeysNextOperationSpec);
|
565
|
+
}
|
566
|
+
/**
|
567
|
+
* ListHostsNext
|
568
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
569
|
+
* @param monitorName Monitor resource name
|
570
|
+
* @param nextLink The nextLink from the previous successful call to the ListHosts method.
|
571
|
+
* @param options The options parameters.
|
572
|
+
*/
|
573
|
+
_listHostsNext(resourceGroupName, monitorName, nextLink, options) {
|
574
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listHostsNextOperationSpec);
|
575
|
+
}
|
576
|
+
/**
|
577
|
+
* ListLinkedResourcesNext
|
578
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
579
|
+
* @param monitorName Monitor resource name
|
580
|
+
* @param nextLink The nextLink from the previous successful call to the ListLinkedResources method.
|
581
|
+
* @param options The options parameters.
|
582
|
+
*/
|
583
|
+
_listLinkedResourcesNext(resourceGroupName, monitorName, nextLink, options) {
|
584
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listLinkedResourcesNextOperationSpec);
|
585
|
+
}
|
586
|
+
/**
|
587
|
+
* ListMonitoredResourcesNext
|
588
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
589
|
+
* @param monitorName Monitor resource name
|
590
|
+
* @param nextLink The nextLink from the previous successful call to the ListMonitoredResources method.
|
591
|
+
* @param options The options parameters.
|
592
|
+
*/
|
593
|
+
_listMonitoredResourcesNext(resourceGroupName, monitorName, nextLink, options) {
|
594
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listMonitoredResourcesNextOperationSpec);
|
595
|
+
}
|
596
|
+
/**
|
597
|
+
* ListNext
|
598
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
599
|
+
* @param options The options parameters.
|
600
|
+
*/
|
601
|
+
_listNext(nextLink, options) {
|
602
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
603
|
+
}
|
604
|
+
/**
|
605
|
+
* ListByResourceGroupNext
|
606
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
607
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
608
|
+
* @param options The options parameters.
|
609
|
+
*/
|
610
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
611
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
612
|
+
}
|
613
|
+
}
|
614
|
+
// Operation Specifications
|
615
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
616
|
+
const listApiKeysOperationSpec = {
|
617
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listApiKeys",
|
618
|
+
httpMethod: "POST",
|
619
|
+
responses: {
|
620
|
+
200: {
|
621
|
+
bodyMapper: Mappers.DatadogApiKeyListResponse
|
622
|
+
},
|
623
|
+
default: {
|
624
|
+
bodyMapper: Mappers.ErrorResponse
|
625
|
+
}
|
626
|
+
},
|
627
|
+
queryParameters: [Parameters.apiVersion],
|
628
|
+
urlParameters: [
|
629
|
+
Parameters.$host,
|
630
|
+
Parameters.subscriptionId,
|
631
|
+
Parameters.resourceGroupName,
|
632
|
+
Parameters.monitorName
|
633
|
+
],
|
634
|
+
headerParameters: [Parameters.accept],
|
635
|
+
serializer
|
636
|
+
};
|
637
|
+
const getDefaultKeyOperationSpec = {
|
638
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getDefaultKey",
|
639
|
+
httpMethod: "POST",
|
640
|
+
responses: {
|
641
|
+
200: {
|
642
|
+
bodyMapper: Mappers.DatadogApiKey
|
643
|
+
},
|
644
|
+
default: {
|
645
|
+
bodyMapper: Mappers.ErrorResponse
|
646
|
+
}
|
647
|
+
},
|
648
|
+
queryParameters: [Parameters.apiVersion],
|
649
|
+
urlParameters: [
|
650
|
+
Parameters.$host,
|
651
|
+
Parameters.subscriptionId,
|
652
|
+
Parameters.resourceGroupName,
|
653
|
+
Parameters.monitorName
|
654
|
+
],
|
655
|
+
headerParameters: [Parameters.accept],
|
656
|
+
serializer
|
657
|
+
};
|
658
|
+
const setDefaultKeyOperationSpec = {
|
659
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/setDefaultKey",
|
660
|
+
httpMethod: "POST",
|
661
|
+
responses: {
|
662
|
+
200: {},
|
663
|
+
default: {
|
664
|
+
bodyMapper: Mappers.ErrorResponse
|
665
|
+
}
|
666
|
+
},
|
667
|
+
requestBody: Parameters.body1,
|
668
|
+
queryParameters: [Parameters.apiVersion],
|
669
|
+
urlParameters: [
|
670
|
+
Parameters.$host,
|
671
|
+
Parameters.subscriptionId,
|
672
|
+
Parameters.resourceGroupName,
|
673
|
+
Parameters.monitorName
|
674
|
+
],
|
675
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
676
|
+
mediaType: "json",
|
677
|
+
serializer
|
678
|
+
};
|
679
|
+
const listHostsOperationSpec = {
|
680
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listHosts",
|
681
|
+
httpMethod: "POST",
|
682
|
+
responses: {
|
683
|
+
200: {
|
684
|
+
bodyMapper: Mappers.DatadogHostListResponse
|
685
|
+
},
|
686
|
+
default: {
|
687
|
+
bodyMapper: Mappers.ErrorResponse
|
688
|
+
}
|
689
|
+
},
|
690
|
+
queryParameters: [Parameters.apiVersion],
|
691
|
+
urlParameters: [
|
692
|
+
Parameters.$host,
|
693
|
+
Parameters.subscriptionId,
|
694
|
+
Parameters.resourceGroupName,
|
695
|
+
Parameters.monitorName
|
696
|
+
],
|
697
|
+
headerParameters: [Parameters.accept],
|
698
|
+
serializer
|
699
|
+
};
|
700
|
+
const listLinkedResourcesOperationSpec = {
|
701
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listLinkedResources",
|
702
|
+
httpMethod: "POST",
|
703
|
+
responses: {
|
704
|
+
200: {
|
705
|
+
bodyMapper: Mappers.LinkedResourceListResponse
|
706
|
+
},
|
707
|
+
default: {
|
708
|
+
bodyMapper: Mappers.ErrorResponse
|
709
|
+
}
|
710
|
+
},
|
711
|
+
queryParameters: [Parameters.apiVersion],
|
712
|
+
urlParameters: [
|
713
|
+
Parameters.$host,
|
714
|
+
Parameters.subscriptionId,
|
715
|
+
Parameters.resourceGroupName,
|
716
|
+
Parameters.monitorName
|
717
|
+
],
|
718
|
+
headerParameters: [Parameters.accept],
|
719
|
+
serializer
|
720
|
+
};
|
721
|
+
const listMonitoredResourcesOperationSpec = {
|
722
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listMonitoredResources",
|
723
|
+
httpMethod: "POST",
|
724
|
+
responses: {
|
725
|
+
200: {
|
726
|
+
bodyMapper: Mappers.MonitoredResourceListResponse
|
727
|
+
},
|
728
|
+
default: {
|
729
|
+
bodyMapper: Mappers.ErrorResponse
|
730
|
+
}
|
731
|
+
},
|
732
|
+
queryParameters: [Parameters.apiVersion],
|
733
|
+
urlParameters: [
|
734
|
+
Parameters.$host,
|
735
|
+
Parameters.subscriptionId,
|
736
|
+
Parameters.resourceGroupName,
|
737
|
+
Parameters.monitorName
|
738
|
+
],
|
739
|
+
headerParameters: [Parameters.accept],
|
740
|
+
serializer
|
741
|
+
};
|
742
|
+
const listOperationSpec = {
|
743
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/monitors",
|
744
|
+
httpMethod: "GET",
|
745
|
+
responses: {
|
746
|
+
200: {
|
747
|
+
bodyMapper: Mappers.DatadogMonitorResourceListResponse
|
748
|
+
},
|
749
|
+
default: {
|
750
|
+
bodyMapper: Mappers.ErrorResponse
|
751
|
+
}
|
752
|
+
},
|
753
|
+
queryParameters: [Parameters.apiVersion],
|
754
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
755
|
+
headerParameters: [Parameters.accept],
|
756
|
+
serializer
|
757
|
+
};
|
758
|
+
const listByResourceGroupOperationSpec = {
|
759
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors",
|
760
|
+
httpMethod: "GET",
|
761
|
+
responses: {
|
762
|
+
200: {
|
763
|
+
bodyMapper: Mappers.DatadogMonitorResourceListResponse
|
764
|
+
},
|
765
|
+
default: {
|
766
|
+
bodyMapper: Mappers.ErrorResponse
|
767
|
+
}
|
768
|
+
},
|
769
|
+
queryParameters: [Parameters.apiVersion],
|
770
|
+
urlParameters: [
|
771
|
+
Parameters.$host,
|
772
|
+
Parameters.subscriptionId,
|
773
|
+
Parameters.resourceGroupName
|
774
|
+
],
|
775
|
+
headerParameters: [Parameters.accept],
|
776
|
+
serializer
|
777
|
+
};
|
778
|
+
const getOperationSpec = {
|
779
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}",
|
780
|
+
httpMethod: "GET",
|
781
|
+
responses: {
|
782
|
+
200: {
|
783
|
+
bodyMapper: Mappers.DatadogMonitorResource
|
784
|
+
},
|
785
|
+
default: {
|
786
|
+
bodyMapper: Mappers.ErrorResponse
|
787
|
+
}
|
788
|
+
},
|
789
|
+
queryParameters: [Parameters.apiVersion],
|
790
|
+
urlParameters: [
|
791
|
+
Parameters.$host,
|
792
|
+
Parameters.subscriptionId,
|
793
|
+
Parameters.resourceGroupName,
|
794
|
+
Parameters.monitorName
|
795
|
+
],
|
796
|
+
headerParameters: [Parameters.accept],
|
797
|
+
serializer
|
798
|
+
};
|
799
|
+
const createOperationSpec = {
|
800
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}",
|
801
|
+
httpMethod: "PUT",
|
802
|
+
responses: {
|
803
|
+
200: {
|
804
|
+
bodyMapper: Mappers.DatadogMonitorResource
|
805
|
+
},
|
806
|
+
201: {
|
807
|
+
bodyMapper: Mappers.DatadogMonitorResource
|
808
|
+
},
|
809
|
+
202: {
|
810
|
+
bodyMapper: Mappers.DatadogMonitorResource
|
811
|
+
},
|
812
|
+
204: {
|
813
|
+
bodyMapper: Mappers.DatadogMonitorResource
|
814
|
+
},
|
815
|
+
default: {
|
816
|
+
bodyMapper: Mappers.ErrorResponse
|
817
|
+
}
|
818
|
+
},
|
819
|
+
requestBody: Parameters.body2,
|
820
|
+
queryParameters: [Parameters.apiVersion],
|
821
|
+
urlParameters: [
|
822
|
+
Parameters.$host,
|
823
|
+
Parameters.subscriptionId,
|
824
|
+
Parameters.resourceGroupName,
|
825
|
+
Parameters.monitorName
|
826
|
+
],
|
827
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
828
|
+
mediaType: "json",
|
829
|
+
serializer
|
830
|
+
};
|
831
|
+
const updateOperationSpec = {
|
832
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}",
|
833
|
+
httpMethod: "PATCH",
|
834
|
+
responses: {
|
835
|
+
200: {
|
836
|
+
bodyMapper: Mappers.DatadogMonitorResource
|
837
|
+
},
|
838
|
+
201: {
|
839
|
+
bodyMapper: Mappers.DatadogMonitorResource
|
840
|
+
},
|
841
|
+
202: {
|
842
|
+
bodyMapper: Mappers.DatadogMonitorResource
|
843
|
+
},
|
844
|
+
204: {
|
845
|
+
bodyMapper: Mappers.DatadogMonitorResource
|
846
|
+
},
|
847
|
+
default: {
|
848
|
+
bodyMapper: Mappers.ErrorResponse
|
849
|
+
}
|
850
|
+
},
|
851
|
+
requestBody: Parameters.body3,
|
852
|
+
queryParameters: [Parameters.apiVersion],
|
853
|
+
urlParameters: [
|
854
|
+
Parameters.$host,
|
855
|
+
Parameters.subscriptionId,
|
856
|
+
Parameters.resourceGroupName,
|
857
|
+
Parameters.monitorName
|
858
|
+
],
|
859
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
860
|
+
mediaType: "json",
|
861
|
+
serializer
|
862
|
+
};
|
863
|
+
const deleteOperationSpec = {
|
864
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}",
|
865
|
+
httpMethod: "DELETE",
|
866
|
+
responses: {
|
867
|
+
200: {},
|
868
|
+
201: {},
|
869
|
+
202: {},
|
870
|
+
204: {},
|
871
|
+
default: {
|
872
|
+
bodyMapper: Mappers.ErrorResponse
|
873
|
+
}
|
874
|
+
},
|
875
|
+
queryParameters: [Parameters.apiVersion],
|
876
|
+
urlParameters: [
|
877
|
+
Parameters.$host,
|
878
|
+
Parameters.subscriptionId,
|
879
|
+
Parameters.resourceGroupName,
|
880
|
+
Parameters.monitorName
|
881
|
+
],
|
882
|
+
headerParameters: [Parameters.accept],
|
883
|
+
serializer
|
884
|
+
};
|
885
|
+
const refreshSetPasswordLinkOperationSpec = {
|
886
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/refreshSetPasswordLink",
|
887
|
+
httpMethod: "POST",
|
888
|
+
responses: {
|
889
|
+
200: {
|
890
|
+
bodyMapper: Mappers.DatadogSetPasswordLink
|
891
|
+
},
|
892
|
+
default: {
|
893
|
+
bodyMapper: Mappers.ErrorResponse
|
894
|
+
}
|
895
|
+
},
|
896
|
+
queryParameters: [Parameters.apiVersion],
|
897
|
+
urlParameters: [
|
898
|
+
Parameters.$host,
|
899
|
+
Parameters.subscriptionId,
|
900
|
+
Parameters.resourceGroupName,
|
901
|
+
Parameters.monitorName
|
902
|
+
],
|
903
|
+
headerParameters: [Parameters.accept],
|
904
|
+
serializer
|
905
|
+
};
|
906
|
+
const listApiKeysNextOperationSpec = {
|
907
|
+
path: "{nextLink}",
|
908
|
+
httpMethod: "GET",
|
909
|
+
responses: {
|
910
|
+
200: {
|
911
|
+
bodyMapper: Mappers.DatadogApiKeyListResponse
|
912
|
+
},
|
913
|
+
default: {
|
914
|
+
bodyMapper: Mappers.ErrorResponse
|
915
|
+
}
|
916
|
+
},
|
917
|
+
queryParameters: [Parameters.apiVersion],
|
918
|
+
urlParameters: [
|
919
|
+
Parameters.$host,
|
920
|
+
Parameters.subscriptionId,
|
921
|
+
Parameters.nextLink,
|
922
|
+
Parameters.resourceGroupName,
|
923
|
+
Parameters.monitorName
|
924
|
+
],
|
925
|
+
headerParameters: [Parameters.accept],
|
926
|
+
serializer
|
927
|
+
};
|
928
|
+
const listHostsNextOperationSpec = {
|
929
|
+
path: "{nextLink}",
|
930
|
+
httpMethod: "GET",
|
931
|
+
responses: {
|
932
|
+
200: {
|
933
|
+
bodyMapper: Mappers.DatadogHostListResponse
|
934
|
+
},
|
935
|
+
default: {
|
936
|
+
bodyMapper: Mappers.ErrorResponse
|
937
|
+
}
|
938
|
+
},
|
939
|
+
queryParameters: [Parameters.apiVersion],
|
940
|
+
urlParameters: [
|
941
|
+
Parameters.$host,
|
942
|
+
Parameters.subscriptionId,
|
943
|
+
Parameters.nextLink,
|
944
|
+
Parameters.resourceGroupName,
|
945
|
+
Parameters.monitorName
|
946
|
+
],
|
947
|
+
headerParameters: [Parameters.accept],
|
948
|
+
serializer
|
949
|
+
};
|
950
|
+
const listLinkedResourcesNextOperationSpec = {
|
951
|
+
path: "{nextLink}",
|
952
|
+
httpMethod: "GET",
|
953
|
+
responses: {
|
954
|
+
200: {
|
955
|
+
bodyMapper: Mappers.LinkedResourceListResponse
|
956
|
+
},
|
957
|
+
default: {
|
958
|
+
bodyMapper: Mappers.ErrorResponse
|
959
|
+
}
|
960
|
+
},
|
961
|
+
queryParameters: [Parameters.apiVersion],
|
962
|
+
urlParameters: [
|
963
|
+
Parameters.$host,
|
964
|
+
Parameters.subscriptionId,
|
965
|
+
Parameters.nextLink,
|
966
|
+
Parameters.resourceGroupName,
|
967
|
+
Parameters.monitorName
|
968
|
+
],
|
969
|
+
headerParameters: [Parameters.accept],
|
970
|
+
serializer
|
971
|
+
};
|
972
|
+
const listMonitoredResourcesNextOperationSpec = {
|
973
|
+
path: "{nextLink}",
|
974
|
+
httpMethod: "GET",
|
975
|
+
responses: {
|
976
|
+
200: {
|
977
|
+
bodyMapper: Mappers.MonitoredResourceListResponse
|
978
|
+
},
|
979
|
+
default: {
|
980
|
+
bodyMapper: Mappers.ErrorResponse
|
981
|
+
}
|
982
|
+
},
|
983
|
+
queryParameters: [Parameters.apiVersion],
|
984
|
+
urlParameters: [
|
985
|
+
Parameters.$host,
|
986
|
+
Parameters.subscriptionId,
|
987
|
+
Parameters.nextLink,
|
988
|
+
Parameters.resourceGroupName,
|
989
|
+
Parameters.monitorName
|
990
|
+
],
|
991
|
+
headerParameters: [Parameters.accept],
|
992
|
+
serializer
|
993
|
+
};
|
994
|
+
const listNextOperationSpec = {
|
995
|
+
path: "{nextLink}",
|
996
|
+
httpMethod: "GET",
|
997
|
+
responses: {
|
998
|
+
200: {
|
999
|
+
bodyMapper: Mappers.DatadogMonitorResourceListResponse
|
1000
|
+
},
|
1001
|
+
default: {
|
1002
|
+
bodyMapper: Mappers.ErrorResponse
|
1003
|
+
}
|
1004
|
+
},
|
1005
|
+
queryParameters: [Parameters.apiVersion],
|
1006
|
+
urlParameters: [
|
1007
|
+
Parameters.$host,
|
1008
|
+
Parameters.subscriptionId,
|
1009
|
+
Parameters.nextLink
|
1010
|
+
],
|
1011
|
+
headerParameters: [Parameters.accept],
|
1012
|
+
serializer
|
1013
|
+
};
|
1014
|
+
const listByResourceGroupNextOperationSpec = {
|
1015
|
+
path: "{nextLink}",
|
1016
|
+
httpMethod: "GET",
|
1017
|
+
responses: {
|
1018
|
+
200: {
|
1019
|
+
bodyMapper: Mappers.DatadogMonitorResourceListResponse
|
1020
|
+
},
|
1021
|
+
default: {
|
1022
|
+
bodyMapper: Mappers.ErrorResponse
|
1023
|
+
}
|
1024
|
+
},
|
1025
|
+
queryParameters: [Parameters.apiVersion],
|
1026
|
+
urlParameters: [
|
1027
|
+
Parameters.$host,
|
1028
|
+
Parameters.subscriptionId,
|
1029
|
+
Parameters.nextLink,
|
1030
|
+
Parameters.resourceGroupName
|
1031
|
+
],
|
1032
|
+
headerParameters: [Parameters.accept],
|
1033
|
+
serializer
|
1034
|
+
};
|
1035
|
+
//# sourceMappingURL=monitors.js.map
|