@azure/arm-newrelicobservability 1.0.0-beta.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 +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +4065 -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/samples-dev/accountsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListSample.js +84 -0
- package/dist-esm/samples-dev/accountsListSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.js +77 -0
- package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsDeleteSample.js +58 -0
- package/dist-esm/samples-dev/monitorsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsGetMetricRulesSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsGetMetricRulesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsGetMetricRulesSample.js +58 -0
- package/dist-esm/samples-dev/monitorsGetMetricRulesSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsGetMetricStatusSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsGetMetricStatusSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsGetMetricStatusSample.js +63 -0
- package/dist-esm/samples-dev/monitorsGetMetricStatusSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsGetSample.js +38 -0
- package/dist-esm/samples-dev/monitorsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsListAppServicesSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsListAppServicesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsListAppServicesSample.js +91 -0
- package/dist-esm/samples-dev/monitorsListAppServicesSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js +51 -0
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsListBySubscriptionSample.js +50 -0
- package/dist-esm/samples-dev/monitorsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsListHostsSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsListHostsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsListHostsSample.js +92 -0
- package/dist-esm/samples-dev/monitorsListHostsSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js +84 -0
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsSwitchBillingSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsSwitchBillingSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsSwitchBillingSample.js +70 -0
- package/dist-esm/samples-dev/monitorsSwitchBillingSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsUpdateSample.js +72 -0
- package/dist-esm/samples-dev/monitorsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsVMHostPayloadSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsVMHostPayloadSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsVMHostPayloadSample.js +56 -0
- package/dist-esm/samples-dev/monitorsVMHostPayloadSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +82 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/organizationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/organizationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/organizationsListSample.js +84 -0
- package/dist-esm/samples-dev/organizationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/plansListSample.d.ts +2 -0
- package/dist-esm/samples-dev/plansListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/plansListSample.js +83 -0
- package/dist-esm/samples-dev/plansListSample.js.map +1 -0
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js +84 -0
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/tagRulesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/tagRulesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tagRulesDeleteSample.js +58 -0
- package/dist-esm/samples-dev/tagRulesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/tagRulesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/tagRulesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tagRulesGetSample.js +58 -0
- package/dist-esm/samples-dev/tagRulesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/tagRulesListByNewRelicMonitorResourceSample.d.ts +2 -0
- package/dist-esm/samples-dev/tagRulesListByNewRelicMonitorResourceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tagRulesListByNewRelicMonitorResourceSample.js +84 -0
- package/dist-esm/samples-dev/tagRulesListByNewRelicMonitorResourceSample.js.map +1 -0
- package/dist-esm/samples-dev/tagRulesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/tagRulesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tagRulesUpdateSample.js +83 -0
- package/dist-esm/samples-dev/tagRulesUpdateSample.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +11 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +21 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1138 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +204 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +57 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +1525 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +24 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +185 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/newRelicObservability.d.ts +25 -0
- package/dist-esm/src/newRelicObservability.d.ts.map +1 -0
- package/dist-esm/src/newRelicObservability.js +105 -0
- package/dist-esm/src/newRelicObservability.js.map +1 -0
- package/dist-esm/src/operations/accounts.d.ts +36 -0
- package/dist-esm/src/operations/accounts.d.ts.map +1 -0
- package/dist-esm/src/operations/accounts.js +143 -0
- package/dist-esm/src/operations/accounts.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +7 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +14 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/monitors.d.ts +211 -0
- package/dist-esm/src/operations/monitors.d.ts.map +1 -0
- package/dist-esm/src/operations/monitors.js +993 -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 +131 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/organizations.d.ts +36 -0
- package/dist-esm/src/operations/organizations.d.ts.map +1 -0
- package/dist-esm/src/operations/organizations.js +143 -0
- package/dist-esm/src/operations/organizations.js.map +1 -0
- package/dist-esm/src/operations/plans.d.ts +32 -0
- package/dist-esm/src/operations/plans.d.ts.map +1 -0
- package/dist-esm/src/operations/plans.js +139 -0
- package/dist-esm/src/operations/plans.js.map +1 -0
- package/dist-esm/src/operations/tagRules.d.ts +91 -0
- package/dist-esm/src/operations/tagRules.d.ts.map +1 -0
- package/dist-esm/src/operations/tagRules.js +392 -0
- package/dist-esm/src/operations/tagRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +7 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +14 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/monitors.d.ts +120 -0
- package/dist-esm/src/operationsInterfaces/monitors.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/monitors.js +9 -0
- 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/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/organizations.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/organizations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/organizations.js +9 -0
- package/dist-esm/src/operationsInterfaces/organizations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/plans.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/plans.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/plans.js +9 -0
- package/dist-esm/src/operationsInterfaces/plans.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/tagRules.d.ts +65 -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/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/newrelicobservability_operations_test.spec.ts.d.ts +4 -0
- package/dist-esm/test/newrelicobservability_operations_test.spec.ts.d.ts.map +1 -0
- package/dist-esm/test/newrelicobservability_operations_test.spec.ts.js +69 -0
- package/dist-esm/test/newrelicobservability_operations_test.spec.ts.js.map +1 -0
- package/package.json +123 -0
- package/review/arm-newrelicobservability.api.md +903 -0
- package/rollup.config.js +122 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +42 -0
- package/src/models/index.ts +1302 -0
- package/src/models/mappers.ts +1636 -0
- package/src/models/parameters.ts +222 -0
- package/src/newRelicObservability.ts +164 -0
- package/src/operations/accounts.ts +177 -0
- package/src/operations/index.ts +14 -0
- package/src/operations/monitors.ts +1354 -0
- package/src/operations/operations.ts +149 -0
- package/src/operations/organizations.ts +177 -0
- package/src/operations/plans.ts +156 -0
- package/src/operations/tagRules.ts +552 -0
- package/src/operationsInterfaces/accounts.ts +26 -0
- package/src/operationsInterfaces/index.ts +14 -0
- package/src/operationsInterfaces/monitors.ts +231 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/organizations.ts +29 -0
- package/src/operationsInterfaces/plans.ts +22 -0
- package/src/operationsInterfaces/tagRules.ts +127 -0
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +33 -0
- package/types/arm-newrelicobservability.d.ts +1551 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,993 @@
|
|
|
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 { setContinuationToken } from "../pagingHelper";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
|
+
import * as Parameters from "../models/parameters";
|
|
13
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
14
|
+
import { createLroSpec } from "../lroImpl";
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Class containing Monitors operations. */
|
|
17
|
+
export class MonitorsImpl {
|
|
18
|
+
/**
|
|
19
|
+
* Initialize a new instance of the class Monitors class.
|
|
20
|
+
* @param client Reference to the service client
|
|
21
|
+
*/
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.client = client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* List NewRelicMonitorResource resources by subscription ID
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
listBySubscription(options) {
|
|
30
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
31
|
+
return {
|
|
32
|
+
next() {
|
|
33
|
+
return iter.next();
|
|
34
|
+
},
|
|
35
|
+
[Symbol.asyncIterator]() {
|
|
36
|
+
return this;
|
|
37
|
+
},
|
|
38
|
+
byPage: (settings) => {
|
|
39
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
40
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
|
+
}
|
|
42
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
47
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = yield __await(this._listBySubscription(options));
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield yield __await(page);
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = yield __await(this._listBySubscriptionNext(continuationToken, options));
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield yield __await(page);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
listBySubscriptionPagingAll(options) {
|
|
67
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
68
|
+
var e_1, _a;
|
|
69
|
+
try {
|
|
70
|
+
for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
71
|
+
const page = _c.value;
|
|
72
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
76
|
+
finally {
|
|
77
|
+
try {
|
|
78
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
79
|
+
}
|
|
80
|
+
finally { if (e_1) throw e_1.error; }
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* List NewRelicMonitorResource resources by resource group
|
|
86
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
87
|
+
* @param options The options parameters.
|
|
88
|
+
*/
|
|
89
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
90
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
91
|
+
return {
|
|
92
|
+
next() {
|
|
93
|
+
return iter.next();
|
|
94
|
+
},
|
|
95
|
+
[Symbol.asyncIterator]() {
|
|
96
|
+
return this;
|
|
97
|
+
},
|
|
98
|
+
byPage: (settings) => {
|
|
99
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
100
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
101
|
+
}
|
|
102
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
107
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
108
|
+
let result;
|
|
109
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
110
|
+
if (!continuationToken) {
|
|
111
|
+
result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
112
|
+
let page = result.value || [];
|
|
113
|
+
continuationToken = result.nextLink;
|
|
114
|
+
setContinuationToken(page, continuationToken);
|
|
115
|
+
yield yield __await(page);
|
|
116
|
+
}
|
|
117
|
+
while (continuationToken) {
|
|
118
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
119
|
+
continuationToken = result.nextLink;
|
|
120
|
+
let page = result.value || [];
|
|
121
|
+
setContinuationToken(page, continuationToken);
|
|
122
|
+
yield yield __await(page);
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
127
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
128
|
+
var e_2, _a;
|
|
129
|
+
try {
|
|
130
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
131
|
+
const page = _c.value;
|
|
132
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
136
|
+
finally {
|
|
137
|
+
try {
|
|
138
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
139
|
+
}
|
|
140
|
+
finally { if (e_2) throw e_2.error; }
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* List the app service resources currently being monitored by the NewRelic resource.
|
|
146
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
147
|
+
* @param monitorName Name of the Monitors resource
|
|
148
|
+
* @param request The details of the app services get request.
|
|
149
|
+
* @param options The options parameters.
|
|
150
|
+
*/
|
|
151
|
+
listAppServices(resourceGroupName, monitorName, request, options) {
|
|
152
|
+
const iter = this.listAppServicesPagingAll(resourceGroupName, monitorName, request, options);
|
|
153
|
+
return {
|
|
154
|
+
next() {
|
|
155
|
+
return iter.next();
|
|
156
|
+
},
|
|
157
|
+
[Symbol.asyncIterator]() {
|
|
158
|
+
return this;
|
|
159
|
+
},
|
|
160
|
+
byPage: (settings) => {
|
|
161
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
162
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
163
|
+
}
|
|
164
|
+
return this.listAppServicesPagingPage(resourceGroupName, monitorName, request, options, settings);
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
listAppServicesPagingPage(resourceGroupName, monitorName, request, options, settings) {
|
|
169
|
+
return __asyncGenerator(this, arguments, function* listAppServicesPagingPage_1() {
|
|
170
|
+
let result;
|
|
171
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
172
|
+
if (!continuationToken) {
|
|
173
|
+
result = yield __await(this._listAppServices(resourceGroupName, monitorName, request, options));
|
|
174
|
+
let page = result.value || [];
|
|
175
|
+
continuationToken = result.nextLink;
|
|
176
|
+
setContinuationToken(page, continuationToken);
|
|
177
|
+
yield yield __await(page);
|
|
178
|
+
}
|
|
179
|
+
while (continuationToken) {
|
|
180
|
+
result = yield __await(this._listAppServicesNext(resourceGroupName, monitorName, request, continuationToken, options));
|
|
181
|
+
continuationToken = result.nextLink;
|
|
182
|
+
let page = result.value || [];
|
|
183
|
+
setContinuationToken(page, continuationToken);
|
|
184
|
+
yield yield __await(page);
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
listAppServicesPagingAll(resourceGroupName, monitorName, request, options) {
|
|
189
|
+
return __asyncGenerator(this, arguments, function* listAppServicesPagingAll_1() {
|
|
190
|
+
var e_3, _a;
|
|
191
|
+
try {
|
|
192
|
+
for (var _b = __asyncValues(this.listAppServicesPagingPage(resourceGroupName, monitorName, request, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
193
|
+
const page = _c.value;
|
|
194
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
198
|
+
finally {
|
|
199
|
+
try {
|
|
200
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
201
|
+
}
|
|
202
|
+
finally { if (e_3) throw e_3.error; }
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* List the compute vm resources currently being monitored by the NewRelic resource.
|
|
208
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
209
|
+
* @param monitorName Name of the Monitors resource
|
|
210
|
+
* @param request The details of the Hosts get request.
|
|
211
|
+
* @param options The options parameters.
|
|
212
|
+
*/
|
|
213
|
+
listHosts(resourceGroupName, monitorName, request, options) {
|
|
214
|
+
const iter = this.listHostsPagingAll(resourceGroupName, monitorName, request, options);
|
|
215
|
+
return {
|
|
216
|
+
next() {
|
|
217
|
+
return iter.next();
|
|
218
|
+
},
|
|
219
|
+
[Symbol.asyncIterator]() {
|
|
220
|
+
return this;
|
|
221
|
+
},
|
|
222
|
+
byPage: (settings) => {
|
|
223
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
224
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
225
|
+
}
|
|
226
|
+
return this.listHostsPagingPage(resourceGroupName, monitorName, request, options, settings);
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
listHostsPagingPage(resourceGroupName, monitorName, request, options, settings) {
|
|
231
|
+
return __asyncGenerator(this, arguments, function* listHostsPagingPage_1() {
|
|
232
|
+
let result;
|
|
233
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
234
|
+
if (!continuationToken) {
|
|
235
|
+
result = yield __await(this._listHosts(resourceGroupName, monitorName, request, options));
|
|
236
|
+
let page = result.value || [];
|
|
237
|
+
continuationToken = result.nextLink;
|
|
238
|
+
setContinuationToken(page, continuationToken);
|
|
239
|
+
yield yield __await(page);
|
|
240
|
+
}
|
|
241
|
+
while (continuationToken) {
|
|
242
|
+
result = yield __await(this._listHostsNext(resourceGroupName, monitorName, request, continuationToken, options));
|
|
243
|
+
continuationToken = result.nextLink;
|
|
244
|
+
let page = result.value || [];
|
|
245
|
+
setContinuationToken(page, continuationToken);
|
|
246
|
+
yield yield __await(page);
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
listHostsPagingAll(resourceGroupName, monitorName, request, options) {
|
|
251
|
+
return __asyncGenerator(this, arguments, function* listHostsPagingAll_1() {
|
|
252
|
+
var e_4, _a;
|
|
253
|
+
try {
|
|
254
|
+
for (var _b = __asyncValues(this.listHostsPagingPage(resourceGroupName, monitorName, request, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
255
|
+
const page = _c.value;
|
|
256
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
260
|
+
finally {
|
|
261
|
+
try {
|
|
262
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
263
|
+
}
|
|
264
|
+
finally { if (e_4) throw e_4.error; }
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* List the resources currently being monitored by the NewRelic monitor resource.
|
|
270
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
271
|
+
* @param monitorName Name of the Monitors resource
|
|
272
|
+
* @param options The options parameters.
|
|
273
|
+
*/
|
|
274
|
+
listMonitoredResources(resourceGroupName, monitorName, options) {
|
|
275
|
+
const iter = this.listMonitoredResourcesPagingAll(resourceGroupName, monitorName, options);
|
|
276
|
+
return {
|
|
277
|
+
next() {
|
|
278
|
+
return iter.next();
|
|
279
|
+
},
|
|
280
|
+
[Symbol.asyncIterator]() {
|
|
281
|
+
return this;
|
|
282
|
+
},
|
|
283
|
+
byPage: (settings) => {
|
|
284
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
285
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
286
|
+
}
|
|
287
|
+
return this.listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options, settings);
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options, settings) {
|
|
292
|
+
return __asyncGenerator(this, arguments, function* listMonitoredResourcesPagingPage_1() {
|
|
293
|
+
let result;
|
|
294
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
295
|
+
if (!continuationToken) {
|
|
296
|
+
result = yield __await(this._listMonitoredResources(resourceGroupName, monitorName, options));
|
|
297
|
+
let page = result.value || [];
|
|
298
|
+
continuationToken = result.nextLink;
|
|
299
|
+
setContinuationToken(page, continuationToken);
|
|
300
|
+
yield yield __await(page);
|
|
301
|
+
}
|
|
302
|
+
while (continuationToken) {
|
|
303
|
+
result = yield __await(this._listMonitoredResourcesNext(resourceGroupName, monitorName, continuationToken, options));
|
|
304
|
+
continuationToken = result.nextLink;
|
|
305
|
+
let page = result.value || [];
|
|
306
|
+
setContinuationToken(page, continuationToken);
|
|
307
|
+
yield yield __await(page);
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
listMonitoredResourcesPagingAll(resourceGroupName, monitorName, options) {
|
|
312
|
+
return __asyncGenerator(this, arguments, function* listMonitoredResourcesPagingAll_1() {
|
|
313
|
+
var e_5, _a;
|
|
314
|
+
try {
|
|
315
|
+
for (var _b = __asyncValues(this.listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
316
|
+
const page = _c.value;
|
|
317
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
321
|
+
finally {
|
|
322
|
+
try {
|
|
323
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
324
|
+
}
|
|
325
|
+
finally { if (e_5) throw e_5.error; }
|
|
326
|
+
}
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* List NewRelicMonitorResource resources by subscription ID
|
|
331
|
+
* @param options The options parameters.
|
|
332
|
+
*/
|
|
333
|
+
_listBySubscription(options) {
|
|
334
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* List NewRelicMonitorResource resources by resource group
|
|
338
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
339
|
+
* @param options The options parameters.
|
|
340
|
+
*/
|
|
341
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
342
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Get a NewRelicMonitorResource
|
|
346
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
347
|
+
* @param monitorName Name of the Monitors resource
|
|
348
|
+
* @param options The options parameters.
|
|
349
|
+
*/
|
|
350
|
+
get(resourceGroupName, monitorName, options) {
|
|
351
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getOperationSpec);
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Create a NewRelicMonitorResource
|
|
355
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
356
|
+
* @param monitorName Name of the Monitors resource
|
|
357
|
+
* @param resource Resource create parameters.
|
|
358
|
+
* @param options The options parameters.
|
|
359
|
+
*/
|
|
360
|
+
beginCreateOrUpdate(resourceGroupName, monitorName, resource, options) {
|
|
361
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
362
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
363
|
+
return this.client.sendOperationRequest(args, spec);
|
|
364
|
+
});
|
|
365
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
366
|
+
var _a;
|
|
367
|
+
let currentRawResponse = undefined;
|
|
368
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
369
|
+
const callback = (rawResponse, flatResponse) => {
|
|
370
|
+
currentRawResponse = rawResponse;
|
|
371
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
372
|
+
};
|
|
373
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
374
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
375
|
+
return {
|
|
376
|
+
flatResponse,
|
|
377
|
+
rawResponse: {
|
|
378
|
+
statusCode: currentRawResponse.status,
|
|
379
|
+
body: currentRawResponse.parsedBody,
|
|
380
|
+
headers: currentRawResponse.headers.toJSON()
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
});
|
|
384
|
+
const lro = createLroSpec({
|
|
385
|
+
sendOperationFn,
|
|
386
|
+
args: { resourceGroupName, monitorName, resource, options },
|
|
387
|
+
spec: createOrUpdateOperationSpec
|
|
388
|
+
});
|
|
389
|
+
const poller = yield createHttpPoller(lro, {
|
|
390
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
391
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
392
|
+
resourceLocationConfig: "azure-async-operation"
|
|
393
|
+
});
|
|
394
|
+
yield poller.poll();
|
|
395
|
+
return poller;
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Create a NewRelicMonitorResource
|
|
400
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
401
|
+
* @param monitorName Name of the Monitors resource
|
|
402
|
+
* @param resource Resource create parameters.
|
|
403
|
+
* @param options The options parameters.
|
|
404
|
+
*/
|
|
405
|
+
beginCreateOrUpdateAndWait(resourceGroupName, monitorName, resource, options) {
|
|
406
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
407
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, monitorName, resource, options);
|
|
408
|
+
return poller.pollUntilDone();
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Update a NewRelicMonitorResource
|
|
413
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
414
|
+
* @param monitorName Name of the Monitors resource
|
|
415
|
+
* @param properties The resource properties to be updated.
|
|
416
|
+
* @param options The options parameters.
|
|
417
|
+
*/
|
|
418
|
+
update(resourceGroupName, monitorName, properties, options) {
|
|
419
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, properties, options }, updateOperationSpec);
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Delete a NewRelicMonitorResource
|
|
423
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
424
|
+
* @param userEmail User Email.
|
|
425
|
+
* @param monitorName Name of the Monitors resource
|
|
426
|
+
* @param options The options parameters.
|
|
427
|
+
*/
|
|
428
|
+
beginDelete(resourceGroupName, userEmail, monitorName, options) {
|
|
429
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
430
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
431
|
+
return this.client.sendOperationRequest(args, spec);
|
|
432
|
+
});
|
|
433
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
434
|
+
var _a;
|
|
435
|
+
let currentRawResponse = undefined;
|
|
436
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
437
|
+
const callback = (rawResponse, flatResponse) => {
|
|
438
|
+
currentRawResponse = rawResponse;
|
|
439
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
440
|
+
};
|
|
441
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
442
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
443
|
+
return {
|
|
444
|
+
flatResponse,
|
|
445
|
+
rawResponse: {
|
|
446
|
+
statusCode: currentRawResponse.status,
|
|
447
|
+
body: currentRawResponse.parsedBody,
|
|
448
|
+
headers: currentRawResponse.headers.toJSON()
|
|
449
|
+
}
|
|
450
|
+
};
|
|
451
|
+
});
|
|
452
|
+
const lro = createLroSpec({
|
|
453
|
+
sendOperationFn,
|
|
454
|
+
args: { resourceGroupName, userEmail, monitorName, options },
|
|
455
|
+
spec: deleteOperationSpec
|
|
456
|
+
});
|
|
457
|
+
const poller = yield createHttpPoller(lro, {
|
|
458
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
459
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
460
|
+
resourceLocationConfig: "azure-async-operation"
|
|
461
|
+
});
|
|
462
|
+
yield poller.poll();
|
|
463
|
+
return poller;
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Delete a NewRelicMonitorResource
|
|
468
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
469
|
+
* @param userEmail User Email.
|
|
470
|
+
* @param monitorName Name of the Monitors resource
|
|
471
|
+
* @param options The options parameters.
|
|
472
|
+
*/
|
|
473
|
+
beginDeleteAndWait(resourceGroupName, userEmail, monitorName, options) {
|
|
474
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
475
|
+
const poller = yield this.beginDelete(resourceGroupName, userEmail, monitorName, options);
|
|
476
|
+
return poller.pollUntilDone();
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Get metric rules
|
|
481
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
482
|
+
* @param monitorName Name of the Monitors resource
|
|
483
|
+
* @param request The details of the get metrics status request.
|
|
484
|
+
* @param options The options parameters.
|
|
485
|
+
*/
|
|
486
|
+
getMetricRules(resourceGroupName, monitorName, request, options) {
|
|
487
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, request, options }, getMetricRulesOperationSpec);
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Get metric status
|
|
491
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
492
|
+
* @param monitorName Name of the Monitors resource
|
|
493
|
+
* @param request The details of the get metrics status request.
|
|
494
|
+
* @param options The options parameters.
|
|
495
|
+
*/
|
|
496
|
+
getMetricStatus(resourceGroupName, monitorName, request, options) {
|
|
497
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, request, options }, getMetricStatusOperationSpec);
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* List the app service resources currently being monitored by the NewRelic resource.
|
|
501
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
502
|
+
* @param monitorName Name of the Monitors resource
|
|
503
|
+
* @param request The details of the app services get request.
|
|
504
|
+
* @param options The options parameters.
|
|
505
|
+
*/
|
|
506
|
+
_listAppServices(resourceGroupName, monitorName, request, options) {
|
|
507
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, request, options }, listAppServicesOperationSpec);
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* Switches the billing for NewRelic monitor resource.
|
|
511
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
512
|
+
* @param monitorName Name of the Monitors resource
|
|
513
|
+
* @param request The details of the switch billing request.
|
|
514
|
+
* @param options The options parameters.
|
|
515
|
+
*/
|
|
516
|
+
switchBilling(resourceGroupName, monitorName, request, options) {
|
|
517
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, request, options }, switchBillingOperationSpec);
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* List the compute vm resources currently being monitored by the NewRelic resource.
|
|
521
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
522
|
+
* @param monitorName Name of the Monitors resource
|
|
523
|
+
* @param request The details of the Hosts get request.
|
|
524
|
+
* @param options The options parameters.
|
|
525
|
+
*/
|
|
526
|
+
_listHosts(resourceGroupName, monitorName, request, options) {
|
|
527
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, request, options }, listHostsOperationSpec);
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* List the resources currently being monitored by the NewRelic monitor resource.
|
|
531
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
532
|
+
* @param monitorName Name of the Monitors resource
|
|
533
|
+
* @param options The options parameters.
|
|
534
|
+
*/
|
|
535
|
+
_listMonitoredResources(resourceGroupName, monitorName, options) {
|
|
536
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listMonitoredResourcesOperationSpec);
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Returns the payload that needs to be passed in the request body for installing NewRelic agent on a
|
|
540
|
+
* VM.
|
|
541
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
542
|
+
* @param monitorName Name of the Monitors resource
|
|
543
|
+
* @param options The options parameters.
|
|
544
|
+
*/
|
|
545
|
+
vmHostPayload(resourceGroupName, monitorName, options) {
|
|
546
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, vmHostPayloadOperationSpec);
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* ListBySubscriptionNext
|
|
550
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
551
|
+
* @param options The options parameters.
|
|
552
|
+
*/
|
|
553
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
554
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* ListByResourceGroupNext
|
|
558
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
559
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
560
|
+
* @param options The options parameters.
|
|
561
|
+
*/
|
|
562
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
563
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* ListAppServicesNext
|
|
567
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
568
|
+
* @param monitorName Name of the Monitors resource
|
|
569
|
+
* @param request The details of the app services get request.
|
|
570
|
+
* @param nextLink The nextLink from the previous successful call to the ListAppServices method.
|
|
571
|
+
* @param options The options parameters.
|
|
572
|
+
*/
|
|
573
|
+
_listAppServicesNext(resourceGroupName, monitorName, request, nextLink, options) {
|
|
574
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, request, nextLink, options }, listAppServicesNextOperationSpec);
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* ListHostsNext
|
|
578
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
579
|
+
* @param monitorName Name of the Monitors resource
|
|
580
|
+
* @param request The details of the Hosts get request.
|
|
581
|
+
* @param nextLink The nextLink from the previous successful call to the ListHosts method.
|
|
582
|
+
* @param options The options parameters.
|
|
583
|
+
*/
|
|
584
|
+
_listHostsNext(resourceGroupName, monitorName, request, nextLink, options) {
|
|
585
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, request, nextLink, options }, listHostsNextOperationSpec);
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* ListMonitoredResourcesNext
|
|
589
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
590
|
+
* @param monitorName Name of the Monitors resource
|
|
591
|
+
* @param nextLink The nextLink from the previous successful call to the ListMonitoredResources method.
|
|
592
|
+
* @param options The options parameters.
|
|
593
|
+
*/
|
|
594
|
+
_listMonitoredResourcesNext(resourceGroupName, monitorName, nextLink, options) {
|
|
595
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listMonitoredResourcesNextOperationSpec);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
// Operation Specifications
|
|
599
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
600
|
+
const listBySubscriptionOperationSpec = {
|
|
601
|
+
path: "/subscriptions/{subscriptionId}/providers/NewRelic.Observability/monitors",
|
|
602
|
+
httpMethod: "GET",
|
|
603
|
+
responses: {
|
|
604
|
+
200: {
|
|
605
|
+
bodyMapper: Mappers.NewRelicMonitorResourceListResult
|
|
606
|
+
},
|
|
607
|
+
default: {
|
|
608
|
+
bodyMapper: Mappers.ErrorResponse
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
queryParameters: [Parameters.apiVersion],
|
|
612
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
613
|
+
headerParameters: [Parameters.accept],
|
|
614
|
+
serializer
|
|
615
|
+
};
|
|
616
|
+
const listByResourceGroupOperationSpec = {
|
|
617
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors",
|
|
618
|
+
httpMethod: "GET",
|
|
619
|
+
responses: {
|
|
620
|
+
200: {
|
|
621
|
+
bodyMapper: Mappers.NewRelicMonitorResourceListResult
|
|
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
|
+
],
|
|
633
|
+
headerParameters: [Parameters.accept],
|
|
634
|
+
serializer
|
|
635
|
+
};
|
|
636
|
+
const getOperationSpec = {
|
|
637
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}",
|
|
638
|
+
httpMethod: "GET",
|
|
639
|
+
responses: {
|
|
640
|
+
200: {
|
|
641
|
+
bodyMapper: Mappers.NewRelicMonitorResource
|
|
642
|
+
},
|
|
643
|
+
default: {
|
|
644
|
+
bodyMapper: Mappers.ErrorResponse
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
queryParameters: [Parameters.apiVersion],
|
|
648
|
+
urlParameters: [
|
|
649
|
+
Parameters.$host,
|
|
650
|
+
Parameters.subscriptionId,
|
|
651
|
+
Parameters.resourceGroupName,
|
|
652
|
+
Parameters.monitorName
|
|
653
|
+
],
|
|
654
|
+
headerParameters: [Parameters.accept],
|
|
655
|
+
serializer
|
|
656
|
+
};
|
|
657
|
+
const createOrUpdateOperationSpec = {
|
|
658
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}",
|
|
659
|
+
httpMethod: "PUT",
|
|
660
|
+
responses: {
|
|
661
|
+
200: {
|
|
662
|
+
bodyMapper: Mappers.NewRelicMonitorResource
|
|
663
|
+
},
|
|
664
|
+
201: {
|
|
665
|
+
bodyMapper: Mappers.NewRelicMonitorResource
|
|
666
|
+
},
|
|
667
|
+
202: {
|
|
668
|
+
bodyMapper: Mappers.NewRelicMonitorResource
|
|
669
|
+
},
|
|
670
|
+
204: {
|
|
671
|
+
bodyMapper: Mappers.NewRelicMonitorResource
|
|
672
|
+
},
|
|
673
|
+
default: {
|
|
674
|
+
bodyMapper: Mappers.ErrorResponse
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
requestBody: Parameters.resource,
|
|
678
|
+
queryParameters: [Parameters.apiVersion],
|
|
679
|
+
urlParameters: [
|
|
680
|
+
Parameters.$host,
|
|
681
|
+
Parameters.subscriptionId,
|
|
682
|
+
Parameters.resourceGroupName,
|
|
683
|
+
Parameters.monitorName
|
|
684
|
+
],
|
|
685
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
686
|
+
mediaType: "json",
|
|
687
|
+
serializer
|
|
688
|
+
};
|
|
689
|
+
const updateOperationSpec = {
|
|
690
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}",
|
|
691
|
+
httpMethod: "PATCH",
|
|
692
|
+
responses: {
|
|
693
|
+
200: {
|
|
694
|
+
bodyMapper: Mappers.NewRelicMonitorResource
|
|
695
|
+
},
|
|
696
|
+
default: {
|
|
697
|
+
bodyMapper: Mappers.ErrorResponse
|
|
698
|
+
}
|
|
699
|
+
},
|
|
700
|
+
requestBody: Parameters.properties,
|
|
701
|
+
queryParameters: [Parameters.apiVersion],
|
|
702
|
+
urlParameters: [
|
|
703
|
+
Parameters.$host,
|
|
704
|
+
Parameters.subscriptionId,
|
|
705
|
+
Parameters.resourceGroupName,
|
|
706
|
+
Parameters.monitorName
|
|
707
|
+
],
|
|
708
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
709
|
+
mediaType: "json",
|
|
710
|
+
serializer
|
|
711
|
+
};
|
|
712
|
+
const deleteOperationSpec = {
|
|
713
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}",
|
|
714
|
+
httpMethod: "DELETE",
|
|
715
|
+
responses: {
|
|
716
|
+
200: {},
|
|
717
|
+
201: {},
|
|
718
|
+
202: {},
|
|
719
|
+
204: {},
|
|
720
|
+
default: {
|
|
721
|
+
bodyMapper: Mappers.ErrorResponse
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
queryParameters: [Parameters.apiVersion, Parameters.userEmail],
|
|
725
|
+
urlParameters: [
|
|
726
|
+
Parameters.$host,
|
|
727
|
+
Parameters.subscriptionId,
|
|
728
|
+
Parameters.resourceGroupName,
|
|
729
|
+
Parameters.monitorName
|
|
730
|
+
],
|
|
731
|
+
headerParameters: [Parameters.accept],
|
|
732
|
+
serializer
|
|
733
|
+
};
|
|
734
|
+
const getMetricRulesOperationSpec = {
|
|
735
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/getMetricRules",
|
|
736
|
+
httpMethod: "POST",
|
|
737
|
+
responses: {
|
|
738
|
+
200: {
|
|
739
|
+
bodyMapper: Mappers.MetricRules
|
|
740
|
+
},
|
|
741
|
+
default: {
|
|
742
|
+
bodyMapper: Mappers.ErrorResponse
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
requestBody: Parameters.request,
|
|
746
|
+
queryParameters: [Parameters.apiVersion],
|
|
747
|
+
urlParameters: [
|
|
748
|
+
Parameters.$host,
|
|
749
|
+
Parameters.subscriptionId,
|
|
750
|
+
Parameters.resourceGroupName,
|
|
751
|
+
Parameters.monitorName
|
|
752
|
+
],
|
|
753
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
754
|
+
mediaType: "json",
|
|
755
|
+
serializer
|
|
756
|
+
};
|
|
757
|
+
const getMetricStatusOperationSpec = {
|
|
758
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/getMetricStatus",
|
|
759
|
+
httpMethod: "POST",
|
|
760
|
+
responses: {
|
|
761
|
+
200: {
|
|
762
|
+
bodyMapper: Mappers.MetricsStatusResponse
|
|
763
|
+
},
|
|
764
|
+
default: {
|
|
765
|
+
bodyMapper: Mappers.ErrorResponse
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
requestBody: Parameters.request1,
|
|
769
|
+
queryParameters: [Parameters.apiVersion],
|
|
770
|
+
urlParameters: [
|
|
771
|
+
Parameters.$host,
|
|
772
|
+
Parameters.subscriptionId,
|
|
773
|
+
Parameters.resourceGroupName,
|
|
774
|
+
Parameters.monitorName
|
|
775
|
+
],
|
|
776
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
777
|
+
mediaType: "json",
|
|
778
|
+
serializer
|
|
779
|
+
};
|
|
780
|
+
const listAppServicesOperationSpec = {
|
|
781
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listAppServices",
|
|
782
|
+
httpMethod: "POST",
|
|
783
|
+
responses: {
|
|
784
|
+
200: {
|
|
785
|
+
bodyMapper: Mappers.AppServicesListResponse
|
|
786
|
+
},
|
|
787
|
+
default: {
|
|
788
|
+
bodyMapper: Mappers.ErrorResponse
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
requestBody: Parameters.request2,
|
|
792
|
+
queryParameters: [Parameters.apiVersion],
|
|
793
|
+
urlParameters: [
|
|
794
|
+
Parameters.$host,
|
|
795
|
+
Parameters.subscriptionId,
|
|
796
|
+
Parameters.resourceGroupName,
|
|
797
|
+
Parameters.monitorName
|
|
798
|
+
],
|
|
799
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
800
|
+
mediaType: "json",
|
|
801
|
+
serializer
|
|
802
|
+
};
|
|
803
|
+
const switchBillingOperationSpec = {
|
|
804
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/switchBilling",
|
|
805
|
+
httpMethod: "POST",
|
|
806
|
+
responses: {
|
|
807
|
+
204: {},
|
|
808
|
+
default: {
|
|
809
|
+
bodyMapper: Mappers.ErrorResponse
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
requestBody: Parameters.request3,
|
|
813
|
+
queryParameters: [Parameters.apiVersion],
|
|
814
|
+
urlParameters: [
|
|
815
|
+
Parameters.$host,
|
|
816
|
+
Parameters.subscriptionId,
|
|
817
|
+
Parameters.resourceGroupName,
|
|
818
|
+
Parameters.monitorName
|
|
819
|
+
],
|
|
820
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
821
|
+
mediaType: "json",
|
|
822
|
+
serializer
|
|
823
|
+
};
|
|
824
|
+
const listHostsOperationSpec = {
|
|
825
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listHosts",
|
|
826
|
+
httpMethod: "POST",
|
|
827
|
+
responses: {
|
|
828
|
+
200: {
|
|
829
|
+
bodyMapper: Mappers.VMHostsListResponse
|
|
830
|
+
},
|
|
831
|
+
default: {
|
|
832
|
+
bodyMapper: Mappers.ErrorResponse
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
requestBody: Parameters.request4,
|
|
836
|
+
queryParameters: [Parameters.apiVersion],
|
|
837
|
+
urlParameters: [
|
|
838
|
+
Parameters.$host,
|
|
839
|
+
Parameters.subscriptionId,
|
|
840
|
+
Parameters.resourceGroupName,
|
|
841
|
+
Parameters.monitorName
|
|
842
|
+
],
|
|
843
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
844
|
+
mediaType: "json",
|
|
845
|
+
serializer
|
|
846
|
+
};
|
|
847
|
+
const listMonitoredResourcesOperationSpec = {
|
|
848
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/monitoredResources",
|
|
849
|
+
httpMethod: "POST",
|
|
850
|
+
responses: {
|
|
851
|
+
200: {
|
|
852
|
+
bodyMapper: Mappers.MonitoredResourceListResponse
|
|
853
|
+
},
|
|
854
|
+
default: {
|
|
855
|
+
bodyMapper: Mappers.ErrorResponse
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
queryParameters: [Parameters.apiVersion],
|
|
859
|
+
urlParameters: [
|
|
860
|
+
Parameters.$host,
|
|
861
|
+
Parameters.subscriptionId,
|
|
862
|
+
Parameters.resourceGroupName,
|
|
863
|
+
Parameters.monitorName
|
|
864
|
+
],
|
|
865
|
+
headerParameters: [Parameters.accept],
|
|
866
|
+
serializer
|
|
867
|
+
};
|
|
868
|
+
const vmHostPayloadOperationSpec = {
|
|
869
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/vmHostPayloads",
|
|
870
|
+
httpMethod: "POST",
|
|
871
|
+
responses: {
|
|
872
|
+
200: {
|
|
873
|
+
bodyMapper: Mappers.VMExtensionPayload
|
|
874
|
+
},
|
|
875
|
+
default: {
|
|
876
|
+
bodyMapper: Mappers.ErrorResponse
|
|
877
|
+
}
|
|
878
|
+
},
|
|
879
|
+
queryParameters: [Parameters.apiVersion],
|
|
880
|
+
urlParameters: [
|
|
881
|
+
Parameters.$host,
|
|
882
|
+
Parameters.subscriptionId,
|
|
883
|
+
Parameters.resourceGroupName,
|
|
884
|
+
Parameters.monitorName
|
|
885
|
+
],
|
|
886
|
+
headerParameters: [Parameters.accept],
|
|
887
|
+
serializer
|
|
888
|
+
};
|
|
889
|
+
const listBySubscriptionNextOperationSpec = {
|
|
890
|
+
path: "{nextLink}",
|
|
891
|
+
httpMethod: "GET",
|
|
892
|
+
responses: {
|
|
893
|
+
200: {
|
|
894
|
+
bodyMapper: Mappers.NewRelicMonitorResourceListResult
|
|
895
|
+
},
|
|
896
|
+
default: {
|
|
897
|
+
bodyMapper: Mappers.ErrorResponse
|
|
898
|
+
}
|
|
899
|
+
},
|
|
900
|
+
urlParameters: [
|
|
901
|
+
Parameters.$host,
|
|
902
|
+
Parameters.nextLink,
|
|
903
|
+
Parameters.subscriptionId
|
|
904
|
+
],
|
|
905
|
+
headerParameters: [Parameters.accept],
|
|
906
|
+
serializer
|
|
907
|
+
};
|
|
908
|
+
const listByResourceGroupNextOperationSpec = {
|
|
909
|
+
path: "{nextLink}",
|
|
910
|
+
httpMethod: "GET",
|
|
911
|
+
responses: {
|
|
912
|
+
200: {
|
|
913
|
+
bodyMapper: Mappers.NewRelicMonitorResourceListResult
|
|
914
|
+
},
|
|
915
|
+
default: {
|
|
916
|
+
bodyMapper: Mappers.ErrorResponse
|
|
917
|
+
}
|
|
918
|
+
},
|
|
919
|
+
urlParameters: [
|
|
920
|
+
Parameters.$host,
|
|
921
|
+
Parameters.nextLink,
|
|
922
|
+
Parameters.subscriptionId,
|
|
923
|
+
Parameters.resourceGroupName
|
|
924
|
+
],
|
|
925
|
+
headerParameters: [Parameters.accept],
|
|
926
|
+
serializer
|
|
927
|
+
};
|
|
928
|
+
const listAppServicesNextOperationSpec = {
|
|
929
|
+
path: "{nextLink}",
|
|
930
|
+
httpMethod: "GET",
|
|
931
|
+
responses: {
|
|
932
|
+
200: {
|
|
933
|
+
bodyMapper: Mappers.AppServicesListResponse
|
|
934
|
+
},
|
|
935
|
+
default: {
|
|
936
|
+
bodyMapper: Mappers.ErrorResponse
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
urlParameters: [
|
|
940
|
+
Parameters.$host,
|
|
941
|
+
Parameters.nextLink,
|
|
942
|
+
Parameters.subscriptionId,
|
|
943
|
+
Parameters.resourceGroupName,
|
|
944
|
+
Parameters.monitorName
|
|
945
|
+
],
|
|
946
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
947
|
+
mediaType: "json",
|
|
948
|
+
serializer
|
|
949
|
+
};
|
|
950
|
+
const listHostsNextOperationSpec = {
|
|
951
|
+
path: "{nextLink}",
|
|
952
|
+
httpMethod: "GET",
|
|
953
|
+
responses: {
|
|
954
|
+
200: {
|
|
955
|
+
bodyMapper: Mappers.VMHostsListResponse
|
|
956
|
+
},
|
|
957
|
+
default: {
|
|
958
|
+
bodyMapper: Mappers.ErrorResponse
|
|
959
|
+
}
|
|
960
|
+
},
|
|
961
|
+
urlParameters: [
|
|
962
|
+
Parameters.$host,
|
|
963
|
+
Parameters.nextLink,
|
|
964
|
+
Parameters.subscriptionId,
|
|
965
|
+
Parameters.resourceGroupName,
|
|
966
|
+
Parameters.monitorName
|
|
967
|
+
],
|
|
968
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
969
|
+
mediaType: "json",
|
|
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
|
+
urlParameters: [
|
|
984
|
+
Parameters.$host,
|
|
985
|
+
Parameters.nextLink,
|
|
986
|
+
Parameters.subscriptionId,
|
|
987
|
+
Parameters.resourceGroupName,
|
|
988
|
+
Parameters.monitorName
|
|
989
|
+
],
|
|
990
|
+
headerParameters: [Parameters.accept],
|
|
991
|
+
serializer
|
|
992
|
+
};
|
|
993
|
+
//# sourceMappingURL=monitors.js.map
|