oci-stackmonitoring 2.102.0 → 2.102.2
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/lib/client.d.ts +148 -0
- package/lib/client.js +1073 -31
- package/lib/client.js.map +1 -1
- package/lib/model/alarm-condition-collection.d.ts +26 -0
- package/lib/model/alarm-condition-collection.js +61 -0
- package/lib/model/alarm-condition-collection.js.map +1 -0
- package/lib/model/alarm-condition-life-cycle-details.d.ts +30 -0
- package/lib/model/alarm-condition-life-cycle-details.js +41 -0
- package/lib/model/alarm-condition-life-cycle-details.js.map +1 -0
- package/lib/model/alarm-condition-life-cycle-states.d.ts +31 -0
- package/lib/model/alarm-condition-life-cycle-states.js +42 -0
- package/lib/model/alarm-condition-life-cycle-states.js.map +1 -0
- package/lib/model/alarm-condition-severity.d.ts +28 -0
- package/lib/model/alarm-condition-severity.js +39 -0
- package/lib/model/alarm-condition-severity.js.map +1 -0
- package/lib/model/alarm-condition-summary.d.ts +98 -0
- package/lib/model/alarm-condition-summary.js +61 -0
- package/lib/model/alarm-condition-summary.js.map +1 -0
- package/lib/model/alarm-condition.d.ts +98 -0
- package/lib/model/alarm-condition.js +61 -0
- package/lib/model/alarm-condition.js.map +1 -0
- package/lib/model/condition-type.d.ts +28 -0
- package/lib/model/condition-type.js +39 -0
- package/lib/model/condition-type.js.map +1 -0
- package/lib/model/condition.d.ts +46 -0
- package/lib/model/condition.js +29 -0
- package/lib/model/condition.js.map +1 -0
- package/lib/model/create-alarm-condition-details.d.ts +64 -0
- package/lib/model/create-alarm-condition-details.js +61 -0
- package/lib/model/create-alarm-condition-details.js.map +1 -0
- package/lib/model/create-monitoring-template-details.d.ts +76 -0
- package/lib/model/create-monitoring-template-details.js +61 -0
- package/lib/model/create-monitoring-template-details.js.map +1 -0
- package/lib/model/defined-alarm-condition.d.ts +34 -0
- package/lib/model/defined-alarm-condition.js +61 -0
- package/lib/model/defined-alarm-condition.js.map +1 -0
- package/lib/model/defined-monitoring-template-collection.d.ts +26 -0
- package/lib/model/defined-monitoring-template-collection.js +61 -0
- package/lib/model/defined-monitoring-template-collection.js.map +1 -0
- package/lib/model/defined-monitoring-template-summary.d.ts +64 -0
- package/lib/model/defined-monitoring-template-summary.js +61 -0
- package/lib/model/defined-monitoring-template-summary.js.map +1 -0
- package/lib/model/index.d.ts +58 -0
- package/lib/model/index.js +62 -4
- package/lib/model/index.js.map +1 -1
- package/lib/model/license-type.d.ts +1 -0
- package/lib/model/license-type.js +1 -0
- package/lib/model/license-type.js.map +1 -1
- package/lib/model/member-reference-type.d.ts +29 -0
- package/lib/model/member-reference-type.js +40 -0
- package/lib/model/member-reference-type.js.map +1 -0
- package/lib/model/member-reference.d.ts +34 -0
- package/lib/model/member-reference.js +29 -0
- package/lib/model/member-reference.js.map +1 -0
- package/lib/model/message-format.d.ts +29 -0
- package/lib/model/message-format.js +40 -0
- package/lib/model/message-format.js.map +1 -0
- package/lib/model/metric-extension-metric-aggregation-collection.d.ts +26 -0
- package/lib/model/metric-extension-metric-aggregation-collection.js +61 -0
- package/lib/model/metric-extension-metric-aggregation-collection.js.map +1 -0
- package/lib/model/metric-extension-resource-aggregation-collection.d.ts +26 -0
- package/lib/model/metric-extension-resource-aggregation-collection.js +61 -0
- package/lib/model/metric-extension-resource-aggregation-collection.js.map +1 -0
- package/lib/model/metric-extension-resource-aggregation.d.ts +33 -0
- package/lib/model/metric-extension-resource-aggregation.js +29 -0
- package/lib/model/metric-extension-resource-aggregation.js.map +1 -0
- package/lib/model/metric-extension.d.ts +1 -1
- package/lib/model/metric-extensions-metric-aggregation.d.ts +33 -0
- package/lib/model/metric-extensions-metric-aggregation.js +29 -0
- package/lib/model/metric-extensions-metric-aggregation.js.map +1 -0
- package/lib/model/monitored-resource-type-summary.d.ts +6 -0
- package/lib/model/monitored-resource-type-summary.js.map +1 -1
- package/lib/model/monitored-resource-type.d.ts +6 -0
- package/lib/model/monitored-resource-type.js.map +1 -1
- package/lib/model/monitoring-template-collection.d.ts +26 -0
- package/lib/model/monitoring-template-collection.js +61 -0
- package/lib/model/monitoring-template-collection.js.map +1 -0
- package/lib/model/monitoring-template-life-cycle-details.d.ts +29 -0
- package/lib/model/monitoring-template-life-cycle-details.js +40 -0
- package/lib/model/monitoring-template-life-cycle-details.js.map +1 -0
- package/lib/model/monitoring-template-life-cycle-states.d.ts +31 -0
- package/lib/model/monitoring-template-life-cycle-states.js +42 -0
- package/lib/model/monitoring-template-life-cycle-states.js.map +1 -0
- package/lib/model/monitoring-template-summary.d.ts +102 -0
- package/lib/model/monitoring-template-summary.js +61 -0
- package/lib/model/monitoring-template-summary.js.map +1 -0
- package/lib/model/monitoring-template.d.ts +118 -0
- package/lib/model/monitoring-template.js +61 -0
- package/lib/model/monitoring-template.js.map +1 -0
- package/lib/model/operation-status.d.ts +1 -0
- package/lib/model/operation-status.js +1 -0
- package/lib/model/operation-status.js.map +1 -1
- package/lib/model/operation-type.d.ts +2 -0
- package/lib/model/operation-type.js +2 -0
- package/lib/model/operation-type.js.map +1 -1
- package/lib/model/request-summarized-metric-extensions-metrics-details.d.ts +52 -0
- package/lib/model/request-summarized-metric-extensions-metrics-details.js +38 -0
- package/lib/model/request-summarized-metric-extensions-metrics-details.js.map +1 -0
- package/lib/model/request-summarized-metric-extensions-resources-details.d.ts +67 -0
- package/lib/model/request-summarized-metric-extensions-resources-details.js +47 -0
- package/lib/model/request-summarized-metric-extensions-resources-details.js.map +1 -0
- package/lib/model/system-format-resource-type-metadata-details.d.ts +7 -0
- package/lib/model/system-format-resource-type-metadata-details.js.map +1 -1
- package/lib/model/update-alarm-condition-details.d.ts +64 -0
- package/lib/model/update-alarm-condition-details.js +61 -0
- package/lib/model/update-alarm-condition-details.js.map +1 -0
- package/lib/model/update-monitoring-template-details.d.ts +72 -0
- package/lib/model/update-monitoring-template-details.js +61 -0
- package/lib/model/update-monitoring-template-details.js.map +1 -0
- package/lib/request/apply-monitoring-template-request.d.ts +46 -0
- package/lib/request/apply-monitoring-template-request.js +15 -0
- package/lib/request/apply-monitoring-template-request.js.map +1 -0
- package/lib/request/create-alarm-condition-request.d.ts +42 -0
- package/lib/request/create-alarm-condition-request.js +15 -0
- package/lib/request/create-alarm-condition-request.js.map +1 -0
- package/lib/request/create-monitoring-template-request.d.ts +38 -0
- package/lib/request/create-monitoring-template-request.js +15 -0
- package/lib/request/create-monitoring-template-request.js.map +1 -0
- package/lib/request/delete-alarm-condition-request.d.ts +41 -0
- package/lib/request/delete-alarm-condition-request.js +15 -0
- package/lib/request/delete-alarm-condition-request.js.map +1 -0
- package/lib/request/delete-monitoring-template-request.d.ts +37 -0
- package/lib/request/delete-monitoring-template-request.js +15 -0
- package/lib/request/delete-monitoring-template-request.js.map +1 -0
- package/lib/request/export-monitoring-template-request.d.ts +46 -0
- package/lib/request/export-monitoring-template-request.js +15 -0
- package/lib/request/export-monitoring-template-request.js.map +1 -0
- package/lib/request/get-alarm-condition-request.d.ts +32 -0
- package/lib/request/get-alarm-condition-request.js +15 -0
- package/lib/request/get-alarm-condition-request.js.map +1 -0
- package/lib/request/get-monitoring-template-request.d.ts +28 -0
- package/lib/request/get-monitoring-template-request.js +15 -0
- package/lib/request/get-monitoring-template-request.js.map +1 -0
- package/lib/request/index.d.ts +32 -0
- package/lib/request/index.js +7 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-alarm-conditions-request.d.ts +80 -0
- package/lib/request/list-alarm-conditions-request.js +28 -0
- package/lib/request/list-alarm-conditions-request.js.map +1 -0
- package/lib/request/list-defined-monitoring-templates-request.d.ts +69 -0
- package/lib/request/list-defined-monitoring-templates-request.js +23 -0
- package/lib/request/list-defined-monitoring-templates-request.js.map +1 -0
- package/lib/request/list-monitoring-templates-request.d.ts +91 -0
- package/lib/request/list-monitoring-templates-request.js +27 -0
- package/lib/request/list-monitoring-templates-request.js.map +1 -0
- package/lib/request/request-summarized-metric-extensions-metrics-request.d.ts +43 -0
- package/lib/request/request-summarized-metric-extensions-metrics-request.js +15 -0
- package/lib/request/request-summarized-metric-extensions-metrics-request.js.map +1 -0
- package/lib/request/request-summarized-metric-extensions-resources-request.d.ts +43 -0
- package/lib/request/request-summarized-metric-extensions-resources-request.js +15 -0
- package/lib/request/request-summarized-metric-extensions-resources-request.js.map +1 -0
- package/lib/request/unapply-monitoring-template-request.d.ts +46 -0
- package/lib/request/unapply-monitoring-template-request.js +15 -0
- package/lib/request/unapply-monitoring-template-request.js.map +1 -0
- package/lib/request/update-alarm-condition-request.d.ts +46 -0
- package/lib/request/update-alarm-condition-request.js +15 -0
- package/lib/request/update-alarm-condition-request.js.map +1 -0
- package/lib/request/update-monitoring-template-request.d.ts +42 -0
- package/lib/request/update-monitoring-template-request.js +15 -0
- package/lib/request/update-monitoring-template-request.js.map +1 -0
- package/lib/response/apply-monitoring-template-response.d.ts +25 -0
- package/lib/response/apply-monitoring-template-response.js +15 -0
- package/lib/response/apply-monitoring-template-response.js.map +1 -0
- package/lib/response/create-alarm-condition-response.d.ts +30 -0
- package/lib/response/create-alarm-condition-response.js +15 -0
- package/lib/response/create-alarm-condition-response.js.map +1 -0
- package/lib/response/create-monitoring-template-response.d.ts +30 -0
- package/lib/response/create-monitoring-template-response.js +15 -0
- package/lib/response/create-monitoring-template-response.js.map +1 -0
- package/lib/response/delete-alarm-condition-response.d.ts +20 -0
- package/lib/response/delete-alarm-condition-response.js +15 -0
- package/lib/response/delete-alarm-condition-response.js.map +1 -0
- package/lib/response/delete-monitoring-template-response.d.ts +20 -0
- package/lib/response/delete-monitoring-template-response.js +15 -0
- package/lib/response/delete-monitoring-template-response.js.map +1 -0
- package/lib/response/export-monitoring-template-response.d.ts +31 -0
- package/lib/response/export-monitoring-template-response.js +15 -0
- package/lib/response/export-monitoring-template-response.js.map +1 -0
- package/lib/response/get-alarm-condition-response.d.ts +30 -0
- package/lib/response/get-alarm-condition-response.js +15 -0
- package/lib/response/get-alarm-condition-response.js.map +1 -0
- package/lib/response/get-monitoring-template-response.d.ts +30 -0
- package/lib/response/get-monitoring-template-response.js +15 -0
- package/lib/response/get-monitoring-template-response.js.map +1 -0
- package/lib/response/index.d.ts +32 -0
- package/lib/response/list-alarm-conditions-response.d.ts +32 -0
- package/lib/response/list-alarm-conditions-response.js +15 -0
- package/lib/response/list-alarm-conditions-response.js.map +1 -0
- package/lib/response/list-defined-monitoring-templates-response.d.ts +32 -0
- package/lib/response/list-defined-monitoring-templates-response.js +15 -0
- package/lib/response/list-defined-monitoring-templates-response.js.map +1 -0
- package/lib/response/list-monitoring-templates-response.d.ts +32 -0
- package/lib/response/list-monitoring-templates-response.js +15 -0
- package/lib/response/list-monitoring-templates-response.js.map +1 -0
- package/lib/response/request-summarized-metric-extensions-metrics-response.d.ts +37 -0
- package/lib/response/request-summarized-metric-extensions-metrics-response.js +15 -0
- package/lib/response/request-summarized-metric-extensions-metrics-response.js.map +1 -0
- package/lib/response/request-summarized-metric-extensions-resources-response.d.ts +37 -0
- package/lib/response/request-summarized-metric-extensions-resources-response.js +15 -0
- package/lib/response/request-summarized-metric-extensions-resources-response.js.map +1 -0
- package/lib/response/unapply-monitoring-template-response.d.ts +25 -0
- package/lib/response/unapply-monitoring-template-response.js +15 -0
- package/lib/response/unapply-monitoring-template-response.js.map +1 -0
- package/lib/response/update-alarm-condition-response.d.ts +30 -0
- package/lib/response/update-alarm-condition-response.js +15 -0
- package/lib/response/update-alarm-condition-response.js.map +1 -0
- package/lib/response/update-monitoring-template-response.d.ts +30 -0
- package/lib/response/update-monitoring-template-response.js +15 -0
- package/lib/response/update-monitoring-template-response.js.map +1 -0
- package/lib/stackmonitoring-waiter.d.ts +16 -0
- package/lib/stackmonitoring-waiter.js +24 -0
- package/lib/stackmonitoring-waiter.js.map +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -207,6 +207,67 @@ class StackMonitoringClient {
|
|
|
207
207
|
this.shutdownCircuitBreaker();
|
|
208
208
|
this.closeProvider();
|
|
209
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* Apply the Monitoring Template identified by the id
|
|
212
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
213
|
+
* @param ApplyMonitoringTemplateRequest
|
|
214
|
+
* @return ApplyMonitoringTemplateResponse
|
|
215
|
+
* @throws OciError when an error occurs
|
|
216
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/ApplyMonitoringTemplate.ts.html |here} to see how to use ApplyMonitoringTemplate API.
|
|
217
|
+
*/
|
|
218
|
+
applyMonitoringTemplate(applyMonitoringTemplateRequest) {
|
|
219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
220
|
+
if (this.logger)
|
|
221
|
+
this.logger.debug("Calling operation StackMonitoringClient#applyMonitoringTemplate.");
|
|
222
|
+
const operationName = "applyMonitoringTemplate";
|
|
223
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoringTemplate/ApplyMonitoringTemplate";
|
|
224
|
+
const pathParams = {
|
|
225
|
+
"{monitoringTemplateId}": applyMonitoringTemplateRequest.monitoringTemplateId
|
|
226
|
+
};
|
|
227
|
+
const queryParams = {};
|
|
228
|
+
let headerParams = {
|
|
229
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
230
|
+
"opc-request-id": applyMonitoringTemplateRequest.opcRequestId,
|
|
231
|
+
"opc-retry-token": applyMonitoringTemplateRequest.opcRetryToken,
|
|
232
|
+
"if-match": applyMonitoringTemplateRequest.ifMatch
|
|
233
|
+
};
|
|
234
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
235
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, applyMonitoringTemplateRequest.retryConfiguration, specRetryConfiguration);
|
|
236
|
+
if (this.logger)
|
|
237
|
+
retrier.logger = this.logger;
|
|
238
|
+
const request = yield oci_common_1.composeRequest({
|
|
239
|
+
baseEndpoint: this._endpoint,
|
|
240
|
+
defaultHeaders: this._defaultHeaders,
|
|
241
|
+
path: "/monitoringTemplates/{monitoringTemplateId}/actions/apply",
|
|
242
|
+
method: "POST",
|
|
243
|
+
pathParams: pathParams,
|
|
244
|
+
headerParams: headerParams,
|
|
245
|
+
queryParams: queryParams
|
|
246
|
+
});
|
|
247
|
+
try {
|
|
248
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
249
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
250
|
+
responseObject: {},
|
|
251
|
+
responseHeaders: [
|
|
252
|
+
{
|
|
253
|
+
value: response.headers.get("opc-work-request-id"),
|
|
254
|
+
key: "opcWorkRequestId",
|
|
255
|
+
dataType: "string"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
value: response.headers.get("opc-request-id"),
|
|
259
|
+
key: "opcRequestId",
|
|
260
|
+
dataType: "string"
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
});
|
|
264
|
+
return sdkResponse;
|
|
265
|
+
}
|
|
266
|
+
catch (err) {
|
|
267
|
+
throw err;
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
}
|
|
210
271
|
/**
|
|
211
272
|
* Create an association between two monitored resources. Associations can be created
|
|
212
273
|
* between resources from different compartments as long they are in same tenancy.
|
|
@@ -581,6 +642,71 @@ class StackMonitoringClient {
|
|
|
581
642
|
}
|
|
582
643
|
});
|
|
583
644
|
}
|
|
645
|
+
/**
|
|
646
|
+
* Create a new alarm condition in same monitoringTemplate compartment.
|
|
647
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
648
|
+
* @param CreateAlarmConditionRequest
|
|
649
|
+
* @return CreateAlarmConditionResponse
|
|
650
|
+
* @throws OciError when an error occurs
|
|
651
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/CreateAlarmCondition.ts.html |here} to see how to use CreateAlarmCondition API.
|
|
652
|
+
*/
|
|
653
|
+
createAlarmCondition(createAlarmConditionRequest) {
|
|
654
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
655
|
+
if (this.logger)
|
|
656
|
+
this.logger.debug("Calling operation StackMonitoringClient#createAlarmCondition.");
|
|
657
|
+
const operationName = "createAlarmCondition";
|
|
658
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/AlarmCondition/CreateAlarmCondition";
|
|
659
|
+
const pathParams = {
|
|
660
|
+
"{monitoringTemplateId}": createAlarmConditionRequest.monitoringTemplateId
|
|
661
|
+
};
|
|
662
|
+
const queryParams = {};
|
|
663
|
+
let headerParams = {
|
|
664
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
665
|
+
"opc-retry-token": createAlarmConditionRequest.opcRetryToken,
|
|
666
|
+
"opc-request-id": createAlarmConditionRequest.opcRequestId
|
|
667
|
+
};
|
|
668
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
669
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createAlarmConditionRequest.retryConfiguration, specRetryConfiguration);
|
|
670
|
+
if (this.logger)
|
|
671
|
+
retrier.logger = this.logger;
|
|
672
|
+
const request = yield oci_common_1.composeRequest({
|
|
673
|
+
baseEndpoint: this._endpoint,
|
|
674
|
+
defaultHeaders: this._defaultHeaders,
|
|
675
|
+
path: "/monitoringTemplates/{monitoringTemplateId}/alarmConditions",
|
|
676
|
+
method: "POST",
|
|
677
|
+
bodyContent: common.ObjectSerializer.serialize(createAlarmConditionRequest.createAlarmConditionDetails, "CreateAlarmConditionDetails", model.CreateAlarmConditionDetails.getJsonObj),
|
|
678
|
+
pathParams: pathParams,
|
|
679
|
+
headerParams: headerParams,
|
|
680
|
+
queryParams: queryParams
|
|
681
|
+
});
|
|
682
|
+
try {
|
|
683
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
684
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
685
|
+
responseObject: {},
|
|
686
|
+
body: yield response.json(),
|
|
687
|
+
bodyKey: "alarmCondition",
|
|
688
|
+
bodyModel: model.AlarmCondition,
|
|
689
|
+
type: "model.AlarmCondition",
|
|
690
|
+
responseHeaders: [
|
|
691
|
+
{
|
|
692
|
+
value: response.headers.get("etag"),
|
|
693
|
+
key: "etag",
|
|
694
|
+
dataType: "string"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
value: response.headers.get("opc-request-id"),
|
|
698
|
+
key: "opcRequestId",
|
|
699
|
+
dataType: "string"
|
|
700
|
+
}
|
|
701
|
+
]
|
|
702
|
+
});
|
|
703
|
+
return sdkResponse;
|
|
704
|
+
}
|
|
705
|
+
catch (err) {
|
|
706
|
+
throw err;
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
}
|
|
584
710
|
/**
|
|
585
711
|
* Creates the specified Baseline-able metric
|
|
586
712
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -1140,6 +1266,69 @@ class StackMonitoringClient {
|
|
|
1140
1266
|
}
|
|
1141
1267
|
});
|
|
1142
1268
|
}
|
|
1269
|
+
/**
|
|
1270
|
+
* Creates a new monitoring template for a given compartment.
|
|
1271
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1272
|
+
* @param CreateMonitoringTemplateRequest
|
|
1273
|
+
* @return CreateMonitoringTemplateResponse
|
|
1274
|
+
* @throws OciError when an error occurs
|
|
1275
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/CreateMonitoringTemplate.ts.html |here} to see how to use CreateMonitoringTemplate API.
|
|
1276
|
+
*/
|
|
1277
|
+
createMonitoringTemplate(createMonitoringTemplateRequest) {
|
|
1278
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1279
|
+
if (this.logger)
|
|
1280
|
+
this.logger.debug("Calling operation StackMonitoringClient#createMonitoringTemplate.");
|
|
1281
|
+
const operationName = "createMonitoringTemplate";
|
|
1282
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoringTemplate/CreateMonitoringTemplate";
|
|
1283
|
+
const pathParams = {};
|
|
1284
|
+
const queryParams = {};
|
|
1285
|
+
let headerParams = {
|
|
1286
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1287
|
+
"opc-retry-token": createMonitoringTemplateRequest.opcRetryToken,
|
|
1288
|
+
"opc-request-id": createMonitoringTemplateRequest.opcRequestId
|
|
1289
|
+
};
|
|
1290
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1291
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createMonitoringTemplateRequest.retryConfiguration, specRetryConfiguration);
|
|
1292
|
+
if (this.logger)
|
|
1293
|
+
retrier.logger = this.logger;
|
|
1294
|
+
const request = yield oci_common_1.composeRequest({
|
|
1295
|
+
baseEndpoint: this._endpoint,
|
|
1296
|
+
defaultHeaders: this._defaultHeaders,
|
|
1297
|
+
path: "/monitoringTemplates",
|
|
1298
|
+
method: "POST",
|
|
1299
|
+
bodyContent: common.ObjectSerializer.serialize(createMonitoringTemplateRequest.createMonitoringTemplateDetails, "CreateMonitoringTemplateDetails", model.CreateMonitoringTemplateDetails.getJsonObj),
|
|
1300
|
+
pathParams: pathParams,
|
|
1301
|
+
headerParams: headerParams,
|
|
1302
|
+
queryParams: queryParams
|
|
1303
|
+
});
|
|
1304
|
+
try {
|
|
1305
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1306
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1307
|
+
responseObject: {},
|
|
1308
|
+
body: yield response.json(),
|
|
1309
|
+
bodyKey: "monitoringTemplate",
|
|
1310
|
+
bodyModel: model.MonitoringTemplate,
|
|
1311
|
+
type: "model.MonitoringTemplate",
|
|
1312
|
+
responseHeaders: [
|
|
1313
|
+
{
|
|
1314
|
+
value: response.headers.get("etag"),
|
|
1315
|
+
key: "etag",
|
|
1316
|
+
dataType: "string"
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
value: response.headers.get("opc-request-id"),
|
|
1320
|
+
key: "opcRequestId",
|
|
1321
|
+
dataType: "string"
|
|
1322
|
+
}
|
|
1323
|
+
]
|
|
1324
|
+
});
|
|
1325
|
+
return sdkResponse;
|
|
1326
|
+
}
|
|
1327
|
+
catch (err) {
|
|
1328
|
+
throw err;
|
|
1329
|
+
}
|
|
1330
|
+
});
|
|
1331
|
+
}
|
|
1143
1332
|
/**
|
|
1144
1333
|
* API to create Process Set.
|
|
1145
1334
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -1203,6 +1392,62 @@ class StackMonitoringClient {
|
|
|
1203
1392
|
}
|
|
1204
1393
|
});
|
|
1205
1394
|
}
|
|
1395
|
+
/**
|
|
1396
|
+
* Deletes the alarm conditions by identifier
|
|
1397
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1398
|
+
* @param DeleteAlarmConditionRequest
|
|
1399
|
+
* @return DeleteAlarmConditionResponse
|
|
1400
|
+
* @throws OciError when an error occurs
|
|
1401
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/DeleteAlarmCondition.ts.html |here} to see how to use DeleteAlarmCondition API.
|
|
1402
|
+
*/
|
|
1403
|
+
deleteAlarmCondition(deleteAlarmConditionRequest) {
|
|
1404
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1405
|
+
if (this.logger)
|
|
1406
|
+
this.logger.debug("Calling operation StackMonitoringClient#deleteAlarmCondition.");
|
|
1407
|
+
const operationName = "deleteAlarmCondition";
|
|
1408
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/AlarmCondition/DeleteAlarmCondition";
|
|
1409
|
+
const pathParams = {
|
|
1410
|
+
"{alarmConditionId}": deleteAlarmConditionRequest.alarmConditionId,
|
|
1411
|
+
"{monitoringTemplateId}": deleteAlarmConditionRequest.monitoringTemplateId
|
|
1412
|
+
};
|
|
1413
|
+
const queryParams = {};
|
|
1414
|
+
let headerParams = {
|
|
1415
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1416
|
+
"if-match": deleteAlarmConditionRequest.ifMatch,
|
|
1417
|
+
"opc-request-id": deleteAlarmConditionRequest.opcRequestId
|
|
1418
|
+
};
|
|
1419
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1420
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteAlarmConditionRequest.retryConfiguration, specRetryConfiguration);
|
|
1421
|
+
if (this.logger)
|
|
1422
|
+
retrier.logger = this.logger;
|
|
1423
|
+
const request = yield oci_common_1.composeRequest({
|
|
1424
|
+
baseEndpoint: this._endpoint,
|
|
1425
|
+
defaultHeaders: this._defaultHeaders,
|
|
1426
|
+
path: "/monitoringTemplates/{monitoringTemplateId}/alarmConditions/{alarmConditionId}",
|
|
1427
|
+
method: "DELETE",
|
|
1428
|
+
pathParams: pathParams,
|
|
1429
|
+
headerParams: headerParams,
|
|
1430
|
+
queryParams: queryParams
|
|
1431
|
+
});
|
|
1432
|
+
try {
|
|
1433
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1434
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1435
|
+
responseObject: {},
|
|
1436
|
+
responseHeaders: [
|
|
1437
|
+
{
|
|
1438
|
+
value: response.headers.get("opc-request-id"),
|
|
1439
|
+
key: "opcRequestId",
|
|
1440
|
+
dataType: "string"
|
|
1441
|
+
}
|
|
1442
|
+
]
|
|
1443
|
+
});
|
|
1444
|
+
return sdkResponse;
|
|
1445
|
+
}
|
|
1446
|
+
catch (err) {
|
|
1447
|
+
throw err;
|
|
1448
|
+
}
|
|
1449
|
+
});
|
|
1450
|
+
}
|
|
1206
1451
|
/**
|
|
1207
1452
|
* Deletes the Baseline-able metric for the given id
|
|
1208
1453
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -1610,6 +1855,61 @@ class StackMonitoringClient {
|
|
|
1610
1855
|
}
|
|
1611
1856
|
});
|
|
1612
1857
|
}
|
|
1858
|
+
/**
|
|
1859
|
+
* Deletes the monitoring template by identifier
|
|
1860
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1861
|
+
* @param DeleteMonitoringTemplateRequest
|
|
1862
|
+
* @return DeleteMonitoringTemplateResponse
|
|
1863
|
+
* @throws OciError when an error occurs
|
|
1864
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/DeleteMonitoringTemplate.ts.html |here} to see how to use DeleteMonitoringTemplate API.
|
|
1865
|
+
*/
|
|
1866
|
+
deleteMonitoringTemplate(deleteMonitoringTemplateRequest) {
|
|
1867
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1868
|
+
if (this.logger)
|
|
1869
|
+
this.logger.debug("Calling operation StackMonitoringClient#deleteMonitoringTemplate.");
|
|
1870
|
+
const operationName = "deleteMonitoringTemplate";
|
|
1871
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoringTemplate/DeleteMonitoringTemplate";
|
|
1872
|
+
const pathParams = {
|
|
1873
|
+
"{monitoringTemplateId}": deleteMonitoringTemplateRequest.monitoringTemplateId
|
|
1874
|
+
};
|
|
1875
|
+
const queryParams = {};
|
|
1876
|
+
let headerParams = {
|
|
1877
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1878
|
+
"if-match": deleteMonitoringTemplateRequest.ifMatch,
|
|
1879
|
+
"opc-request-id": deleteMonitoringTemplateRequest.opcRequestId
|
|
1880
|
+
};
|
|
1881
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1882
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteMonitoringTemplateRequest.retryConfiguration, specRetryConfiguration);
|
|
1883
|
+
if (this.logger)
|
|
1884
|
+
retrier.logger = this.logger;
|
|
1885
|
+
const request = yield oci_common_1.composeRequest({
|
|
1886
|
+
baseEndpoint: this._endpoint,
|
|
1887
|
+
defaultHeaders: this._defaultHeaders,
|
|
1888
|
+
path: "/monitoringTemplates/{monitoringTemplateId}",
|
|
1889
|
+
method: "DELETE",
|
|
1890
|
+
pathParams: pathParams,
|
|
1891
|
+
headerParams: headerParams,
|
|
1892
|
+
queryParams: queryParams
|
|
1893
|
+
});
|
|
1894
|
+
try {
|
|
1895
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1896
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1897
|
+
responseObject: {},
|
|
1898
|
+
responseHeaders: [
|
|
1899
|
+
{
|
|
1900
|
+
value: response.headers.get("opc-request-id"),
|
|
1901
|
+
key: "opcRequestId",
|
|
1902
|
+
dataType: "string"
|
|
1903
|
+
}
|
|
1904
|
+
]
|
|
1905
|
+
});
|
|
1906
|
+
return sdkResponse;
|
|
1907
|
+
}
|
|
1908
|
+
catch (err) {
|
|
1909
|
+
throw err;
|
|
1910
|
+
}
|
|
1911
|
+
});
|
|
1912
|
+
}
|
|
1613
1913
|
/**
|
|
1614
1914
|
* Deletes a Process Set
|
|
1615
1915
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -2042,36 +2342,38 @@ class StackMonitoringClient {
|
|
|
2042
2342
|
});
|
|
2043
2343
|
}
|
|
2044
2344
|
/**
|
|
2045
|
-
*
|
|
2345
|
+
* Export the specified monitoring template
|
|
2046
2346
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2047
|
-
* @param
|
|
2048
|
-
* @return
|
|
2347
|
+
* @param ExportMonitoringTemplateRequest
|
|
2348
|
+
* @return ExportMonitoringTemplateResponse
|
|
2049
2349
|
* @throws OciError when an error occurs
|
|
2050
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/
|
|
2350
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/ExportMonitoringTemplate.ts.html |here} to see how to use ExportMonitoringTemplate API.
|
|
2051
2351
|
*/
|
|
2052
|
-
|
|
2352
|
+
exportMonitoringTemplate(exportMonitoringTemplateRequest) {
|
|
2053
2353
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2054
2354
|
if (this.logger)
|
|
2055
|
-
this.logger.debug("Calling operation StackMonitoringClient#
|
|
2056
|
-
const operationName = "
|
|
2057
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/
|
|
2355
|
+
this.logger.debug("Calling operation StackMonitoringClient#exportMonitoringTemplate.");
|
|
2356
|
+
const operationName = "exportMonitoringTemplate";
|
|
2357
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoringTemplate/ExportMonitoringTemplate";
|
|
2058
2358
|
const pathParams = {
|
|
2059
|
-
"{
|
|
2359
|
+
"{monitoringTemplateId}": exportMonitoringTemplateRequest.monitoringTemplateId
|
|
2060
2360
|
};
|
|
2061
2361
|
const queryParams = {};
|
|
2062
2362
|
let headerParams = {
|
|
2063
2363
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2064
|
-
"opc-request-id":
|
|
2364
|
+
"opc-request-id": exportMonitoringTemplateRequest.opcRequestId,
|
|
2365
|
+
"opc-retry-token": exportMonitoringTemplateRequest.opcRetryToken,
|
|
2366
|
+
"if-match": exportMonitoringTemplateRequest.ifMatch
|
|
2065
2367
|
};
|
|
2066
2368
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2067
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
2369
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, exportMonitoringTemplateRequest.retryConfiguration, specRetryConfiguration);
|
|
2068
2370
|
if (this.logger)
|
|
2069
2371
|
retrier.logger = this.logger;
|
|
2070
2372
|
const request = yield oci_common_1.composeRequest({
|
|
2071
2373
|
baseEndpoint: this._endpoint,
|
|
2072
2374
|
defaultHeaders: this._defaultHeaders,
|
|
2073
|
-
path: "/
|
|
2074
|
-
method: "
|
|
2375
|
+
path: "/monitoringTemplates/{monitoringTemplateId}/actions/export",
|
|
2376
|
+
method: "POST",
|
|
2075
2377
|
pathParams: pathParams,
|
|
2076
2378
|
headerParams: headerParams,
|
|
2077
2379
|
queryParams: queryParams
|
|
@@ -2080,26 +2382,152 @@ class StackMonitoringClient {
|
|
|
2080
2382
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2081
2383
|
const sdkResponse = oci_common_1.composeResponse({
|
|
2082
2384
|
responseObject: {},
|
|
2083
|
-
body:
|
|
2084
|
-
bodyKey: "
|
|
2085
|
-
bodyModel:
|
|
2086
|
-
type: "model.BaselineableMetric",
|
|
2385
|
+
body: response.body,
|
|
2386
|
+
bodyKey: "value",
|
|
2387
|
+
bodyModel: "string",
|
|
2087
2388
|
responseHeaders: [
|
|
2088
|
-
{
|
|
2089
|
-
value: response.headers.get("opc-request-id"),
|
|
2090
|
-
key: "opcRequestId",
|
|
2091
|
-
dataType: "string"
|
|
2092
|
-
},
|
|
2093
2389
|
{
|
|
2094
2390
|
value: response.headers.get("etag"),
|
|
2095
2391
|
key: "etag",
|
|
2096
2392
|
dataType: "string"
|
|
2097
2393
|
},
|
|
2098
2394
|
{
|
|
2099
|
-
value: response.headers.get("
|
|
2100
|
-
key: "
|
|
2101
|
-
dataType: "
|
|
2102
|
-
}
|
|
2395
|
+
value: response.headers.get("opc-request-id"),
|
|
2396
|
+
key: "opcRequestId",
|
|
2397
|
+
dataType: "string"
|
|
2398
|
+
}
|
|
2399
|
+
]
|
|
2400
|
+
});
|
|
2401
|
+
return sdkResponse;
|
|
2402
|
+
}
|
|
2403
|
+
catch (err) {
|
|
2404
|
+
throw err;
|
|
2405
|
+
}
|
|
2406
|
+
});
|
|
2407
|
+
}
|
|
2408
|
+
/**
|
|
2409
|
+
* Gets a Alarm Condition by identifier.
|
|
2410
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2411
|
+
* @param GetAlarmConditionRequest
|
|
2412
|
+
* @return GetAlarmConditionResponse
|
|
2413
|
+
* @throws OciError when an error occurs
|
|
2414
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/GetAlarmCondition.ts.html |here} to see how to use GetAlarmCondition API.
|
|
2415
|
+
*/
|
|
2416
|
+
getAlarmCondition(getAlarmConditionRequest) {
|
|
2417
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2418
|
+
if (this.logger)
|
|
2419
|
+
this.logger.debug("Calling operation StackMonitoringClient#getAlarmCondition.");
|
|
2420
|
+
const operationName = "getAlarmCondition";
|
|
2421
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/AlarmCondition/GetAlarmCondition";
|
|
2422
|
+
const pathParams = {
|
|
2423
|
+
"{alarmConditionId}": getAlarmConditionRequest.alarmConditionId,
|
|
2424
|
+
"{monitoringTemplateId}": getAlarmConditionRequest.monitoringTemplateId
|
|
2425
|
+
};
|
|
2426
|
+
const queryParams = {};
|
|
2427
|
+
let headerParams = {
|
|
2428
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2429
|
+
"opc-request-id": getAlarmConditionRequest.opcRequestId
|
|
2430
|
+
};
|
|
2431
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2432
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAlarmConditionRequest.retryConfiguration, specRetryConfiguration);
|
|
2433
|
+
if (this.logger)
|
|
2434
|
+
retrier.logger = this.logger;
|
|
2435
|
+
const request = yield oci_common_1.composeRequest({
|
|
2436
|
+
baseEndpoint: this._endpoint,
|
|
2437
|
+
defaultHeaders: this._defaultHeaders,
|
|
2438
|
+
path: "/monitoringTemplates/{monitoringTemplateId}/alarmConditions/{alarmConditionId}",
|
|
2439
|
+
method: "GET",
|
|
2440
|
+
pathParams: pathParams,
|
|
2441
|
+
headerParams: headerParams,
|
|
2442
|
+
queryParams: queryParams
|
|
2443
|
+
});
|
|
2444
|
+
try {
|
|
2445
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2446
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2447
|
+
responseObject: {},
|
|
2448
|
+
body: yield response.json(),
|
|
2449
|
+
bodyKey: "alarmCondition",
|
|
2450
|
+
bodyModel: model.AlarmCondition,
|
|
2451
|
+
type: "model.AlarmCondition",
|
|
2452
|
+
responseHeaders: [
|
|
2453
|
+
{
|
|
2454
|
+
value: response.headers.get("opc-request-id"),
|
|
2455
|
+
key: "opcRequestId",
|
|
2456
|
+
dataType: "string"
|
|
2457
|
+
},
|
|
2458
|
+
{
|
|
2459
|
+
value: response.headers.get("etag"),
|
|
2460
|
+
key: "etag",
|
|
2461
|
+
dataType: "string"
|
|
2462
|
+
}
|
|
2463
|
+
]
|
|
2464
|
+
});
|
|
2465
|
+
return sdkResponse;
|
|
2466
|
+
}
|
|
2467
|
+
catch (err) {
|
|
2468
|
+
throw err;
|
|
2469
|
+
}
|
|
2470
|
+
});
|
|
2471
|
+
}
|
|
2472
|
+
/**
|
|
2473
|
+
* Get the Baseline-able metric for the given id
|
|
2474
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2475
|
+
* @param GetBaselineableMetricRequest
|
|
2476
|
+
* @return GetBaselineableMetricResponse
|
|
2477
|
+
* @throws OciError when an error occurs
|
|
2478
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/GetBaselineableMetric.ts.html |here} to see how to use GetBaselineableMetric API.
|
|
2479
|
+
*/
|
|
2480
|
+
getBaselineableMetric(getBaselineableMetricRequest) {
|
|
2481
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2482
|
+
if (this.logger)
|
|
2483
|
+
this.logger.debug("Calling operation StackMonitoringClient#getBaselineableMetric.");
|
|
2484
|
+
const operationName = "getBaselineableMetric";
|
|
2485
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/BaselineableMetric/GetBaselineableMetric";
|
|
2486
|
+
const pathParams = {
|
|
2487
|
+
"{baselineableMetricId}": getBaselineableMetricRequest.baselineableMetricId
|
|
2488
|
+
};
|
|
2489
|
+
const queryParams = {};
|
|
2490
|
+
let headerParams = {
|
|
2491
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2492
|
+
"opc-request-id": getBaselineableMetricRequest.opcRequestId
|
|
2493
|
+
};
|
|
2494
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2495
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBaselineableMetricRequest.retryConfiguration, specRetryConfiguration);
|
|
2496
|
+
if (this.logger)
|
|
2497
|
+
retrier.logger = this.logger;
|
|
2498
|
+
const request = yield oci_common_1.composeRequest({
|
|
2499
|
+
baseEndpoint: this._endpoint,
|
|
2500
|
+
defaultHeaders: this._defaultHeaders,
|
|
2501
|
+
path: "/baselineableMetrics/{baselineableMetricId}",
|
|
2502
|
+
method: "GET",
|
|
2503
|
+
pathParams: pathParams,
|
|
2504
|
+
headerParams: headerParams,
|
|
2505
|
+
queryParams: queryParams
|
|
2506
|
+
});
|
|
2507
|
+
try {
|
|
2508
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2509
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2510
|
+
responseObject: {},
|
|
2511
|
+
body: yield response.json(),
|
|
2512
|
+
bodyKey: "baselineableMetric",
|
|
2513
|
+
bodyModel: model.BaselineableMetric,
|
|
2514
|
+
type: "model.BaselineableMetric",
|
|
2515
|
+
responseHeaders: [
|
|
2516
|
+
{
|
|
2517
|
+
value: response.headers.get("opc-request-id"),
|
|
2518
|
+
key: "opcRequestId",
|
|
2519
|
+
dataType: "string"
|
|
2520
|
+
},
|
|
2521
|
+
{
|
|
2522
|
+
value: response.headers.get("etag"),
|
|
2523
|
+
key: "etag",
|
|
2524
|
+
dataType: "string"
|
|
2525
|
+
},
|
|
2526
|
+
{
|
|
2527
|
+
value: response.headers.get("retry-after"),
|
|
2528
|
+
key: "retryAfter",
|
|
2529
|
+
dataType: "number"
|
|
2530
|
+
}
|
|
2103
2531
|
]
|
|
2104
2532
|
});
|
|
2105
2533
|
return sdkResponse;
|
|
@@ -2553,6 +2981,69 @@ class StackMonitoringClient {
|
|
|
2553
2981
|
}
|
|
2554
2982
|
});
|
|
2555
2983
|
}
|
|
2984
|
+
/**
|
|
2985
|
+
* Gets a Monitoring Template by identifier
|
|
2986
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2987
|
+
* @param GetMonitoringTemplateRequest
|
|
2988
|
+
* @return GetMonitoringTemplateResponse
|
|
2989
|
+
* @throws OciError when an error occurs
|
|
2990
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/GetMonitoringTemplate.ts.html |here} to see how to use GetMonitoringTemplate API.
|
|
2991
|
+
*/
|
|
2992
|
+
getMonitoringTemplate(getMonitoringTemplateRequest) {
|
|
2993
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2994
|
+
if (this.logger)
|
|
2995
|
+
this.logger.debug("Calling operation StackMonitoringClient#getMonitoringTemplate.");
|
|
2996
|
+
const operationName = "getMonitoringTemplate";
|
|
2997
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoringTemplate/GetMonitoringTemplate";
|
|
2998
|
+
const pathParams = {
|
|
2999
|
+
"{monitoringTemplateId}": getMonitoringTemplateRequest.monitoringTemplateId
|
|
3000
|
+
};
|
|
3001
|
+
const queryParams = {};
|
|
3002
|
+
let headerParams = {
|
|
3003
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3004
|
+
"opc-request-id": getMonitoringTemplateRequest.opcRequestId
|
|
3005
|
+
};
|
|
3006
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3007
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getMonitoringTemplateRequest.retryConfiguration, specRetryConfiguration);
|
|
3008
|
+
if (this.logger)
|
|
3009
|
+
retrier.logger = this.logger;
|
|
3010
|
+
const request = yield oci_common_1.composeRequest({
|
|
3011
|
+
baseEndpoint: this._endpoint,
|
|
3012
|
+
defaultHeaders: this._defaultHeaders,
|
|
3013
|
+
path: "/monitoringTemplates/{monitoringTemplateId}",
|
|
3014
|
+
method: "GET",
|
|
3015
|
+
pathParams: pathParams,
|
|
3016
|
+
headerParams: headerParams,
|
|
3017
|
+
queryParams: queryParams
|
|
3018
|
+
});
|
|
3019
|
+
try {
|
|
3020
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3021
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3022
|
+
responseObject: {},
|
|
3023
|
+
body: yield response.json(),
|
|
3024
|
+
bodyKey: "monitoringTemplate",
|
|
3025
|
+
bodyModel: model.MonitoringTemplate,
|
|
3026
|
+
type: "model.MonitoringTemplate",
|
|
3027
|
+
responseHeaders: [
|
|
3028
|
+
{
|
|
3029
|
+
value: response.headers.get("opc-request-id"),
|
|
3030
|
+
key: "opcRequestId",
|
|
3031
|
+
dataType: "string"
|
|
3032
|
+
},
|
|
3033
|
+
{
|
|
3034
|
+
value: response.headers.get("etag"),
|
|
3035
|
+
key: "etag",
|
|
3036
|
+
dataType: "string"
|
|
3037
|
+
}
|
|
3038
|
+
]
|
|
3039
|
+
});
|
|
3040
|
+
return sdkResponse;
|
|
3041
|
+
}
|
|
3042
|
+
catch (err) {
|
|
3043
|
+
throw err;
|
|
3044
|
+
}
|
|
3045
|
+
});
|
|
3046
|
+
}
|
|
2556
3047
|
/**
|
|
2557
3048
|
* API to get the details of a Process Set by identifier.
|
|
2558
3049
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -2679,6 +3170,78 @@ class StackMonitoringClient {
|
|
|
2679
3170
|
}
|
|
2680
3171
|
});
|
|
2681
3172
|
}
|
|
3173
|
+
/**
|
|
3174
|
+
* Returns a list of Alarm Conditions.
|
|
3175
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3176
|
+
* @param ListAlarmConditionsRequest
|
|
3177
|
+
* @return ListAlarmConditionsResponse
|
|
3178
|
+
* @throws OciError when an error occurs
|
|
3179
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/ListAlarmConditions.ts.html |here} to see how to use ListAlarmConditions API.
|
|
3180
|
+
*/
|
|
3181
|
+
listAlarmConditions(listAlarmConditionsRequest) {
|
|
3182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3183
|
+
if (this.logger)
|
|
3184
|
+
this.logger.debug("Calling operation StackMonitoringClient#listAlarmConditions.");
|
|
3185
|
+
const operationName = "listAlarmConditions";
|
|
3186
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/AlarmCondition/ListAlarmConditions";
|
|
3187
|
+
const pathParams = {
|
|
3188
|
+
"{monitoringTemplateId}": listAlarmConditionsRequest.monitoringTemplateId
|
|
3189
|
+
};
|
|
3190
|
+
const queryParams = {
|
|
3191
|
+
"limit": listAlarmConditionsRequest.limit,
|
|
3192
|
+
"page": listAlarmConditionsRequest.page,
|
|
3193
|
+
"sortBy": listAlarmConditionsRequest.sortBy,
|
|
3194
|
+
"sortOrder": listAlarmConditionsRequest.sortOrder,
|
|
3195
|
+
"status": listAlarmConditionsRequest.status,
|
|
3196
|
+
"lifecycleState": listAlarmConditionsRequest.lifecycleState,
|
|
3197
|
+
"resourceTypes": listAlarmConditionsRequest.resourceTypes,
|
|
3198
|
+
"metricName": listAlarmConditionsRequest.metricName
|
|
3199
|
+
};
|
|
3200
|
+
let headerParams = {
|
|
3201
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3202
|
+
"opc-request-id": listAlarmConditionsRequest.opcRequestId
|
|
3203
|
+
};
|
|
3204
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3205
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAlarmConditionsRequest.retryConfiguration, specRetryConfiguration);
|
|
3206
|
+
if (this.logger)
|
|
3207
|
+
retrier.logger = this.logger;
|
|
3208
|
+
const request = yield oci_common_1.composeRequest({
|
|
3209
|
+
baseEndpoint: this._endpoint,
|
|
3210
|
+
defaultHeaders: this._defaultHeaders,
|
|
3211
|
+
path: "/monitoringTemplates/{monitoringTemplateId}/alarmConditions",
|
|
3212
|
+
method: "GET",
|
|
3213
|
+
pathParams: pathParams,
|
|
3214
|
+
headerParams: headerParams,
|
|
3215
|
+
queryParams: queryParams
|
|
3216
|
+
});
|
|
3217
|
+
try {
|
|
3218
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3219
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3220
|
+
responseObject: {},
|
|
3221
|
+
body: yield response.json(),
|
|
3222
|
+
bodyKey: "alarmConditionCollection",
|
|
3223
|
+
bodyModel: model.AlarmConditionCollection,
|
|
3224
|
+
type: "model.AlarmConditionCollection",
|
|
3225
|
+
responseHeaders: [
|
|
3226
|
+
{
|
|
3227
|
+
value: response.headers.get("opc-request-id"),
|
|
3228
|
+
key: "opcRequestId",
|
|
3229
|
+
dataType: "string"
|
|
3230
|
+
},
|
|
3231
|
+
{
|
|
3232
|
+
value: response.headers.get("opc-next-page"),
|
|
3233
|
+
key: "opcNextPage",
|
|
3234
|
+
dataType: "string"
|
|
3235
|
+
}
|
|
3236
|
+
]
|
|
3237
|
+
});
|
|
3238
|
+
return sdkResponse;
|
|
3239
|
+
}
|
|
3240
|
+
catch (err) {
|
|
3241
|
+
throw err;
|
|
3242
|
+
}
|
|
3243
|
+
});
|
|
3244
|
+
}
|
|
2682
3245
|
/**
|
|
2683
3246
|
* List of summary of baseline-able metrics for a given resource group if specified.
|
|
2684
3247
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -2828,6 +3391,75 @@ class StackMonitoringClient {
|
|
|
2828
3391
|
}
|
|
2829
3392
|
});
|
|
2830
3393
|
}
|
|
3394
|
+
/**
|
|
3395
|
+
* List Defined Monitoring Templates.
|
|
3396
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3397
|
+
* @param ListDefinedMonitoringTemplatesRequest
|
|
3398
|
+
* @return ListDefinedMonitoringTemplatesResponse
|
|
3399
|
+
* @throws OciError when an error occurs
|
|
3400
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/ListDefinedMonitoringTemplates.ts.html |here} to see how to use ListDefinedMonitoringTemplates API.
|
|
3401
|
+
*/
|
|
3402
|
+
listDefinedMonitoringTemplates(listDefinedMonitoringTemplatesRequest) {
|
|
3403
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3404
|
+
if (this.logger)
|
|
3405
|
+
this.logger.debug("Calling operation StackMonitoringClient#listDefinedMonitoringTemplates.");
|
|
3406
|
+
const operationName = "listDefinedMonitoringTemplates";
|
|
3407
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/DefinedMonitoringTemplateSummary/ListDefinedMonitoringTemplates";
|
|
3408
|
+
const pathParams = {};
|
|
3409
|
+
const queryParams = {
|
|
3410
|
+
"limit": listDefinedMonitoringTemplatesRequest.limit,
|
|
3411
|
+
"page": listDefinedMonitoringTemplatesRequest.page,
|
|
3412
|
+
"sortBy": listDefinedMonitoringTemplatesRequest.sortBy,
|
|
3413
|
+
"displayName": listDefinedMonitoringTemplatesRequest.displayName,
|
|
3414
|
+
"sortOrder": listDefinedMonitoringTemplatesRequest.sortOrder,
|
|
3415
|
+
"resourceTypes": listDefinedMonitoringTemplatesRequest.resourceTypes,
|
|
3416
|
+
"compartmentId": listDefinedMonitoringTemplatesRequest.compartmentId
|
|
3417
|
+
};
|
|
3418
|
+
let headerParams = {
|
|
3419
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3420
|
+
"opc-request-id": listDefinedMonitoringTemplatesRequest.opcRequestId
|
|
3421
|
+
};
|
|
3422
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3423
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDefinedMonitoringTemplatesRequest.retryConfiguration, specRetryConfiguration);
|
|
3424
|
+
if (this.logger)
|
|
3425
|
+
retrier.logger = this.logger;
|
|
3426
|
+
const request = yield oci_common_1.composeRequest({
|
|
3427
|
+
baseEndpoint: this._endpoint,
|
|
3428
|
+
defaultHeaders: this._defaultHeaders,
|
|
3429
|
+
path: "/definedMonitoringTemplates",
|
|
3430
|
+
method: "GET",
|
|
3431
|
+
pathParams: pathParams,
|
|
3432
|
+
headerParams: headerParams,
|
|
3433
|
+
queryParams: queryParams
|
|
3434
|
+
});
|
|
3435
|
+
try {
|
|
3436
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3437
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3438
|
+
responseObject: {},
|
|
3439
|
+
body: yield response.json(),
|
|
3440
|
+
bodyKey: "definedMonitoringTemplateCollection",
|
|
3441
|
+
bodyModel: model.DefinedMonitoringTemplateCollection,
|
|
3442
|
+
type: "model.DefinedMonitoringTemplateCollection",
|
|
3443
|
+
responseHeaders: [
|
|
3444
|
+
{
|
|
3445
|
+
value: response.headers.get("opc-request-id"),
|
|
3446
|
+
key: "opcRequestId",
|
|
3447
|
+
dataType: "string"
|
|
3448
|
+
},
|
|
3449
|
+
{
|
|
3450
|
+
value: response.headers.get("opc-next-page"),
|
|
3451
|
+
key: "opcNextPage",
|
|
3452
|
+
dataType: "string"
|
|
3453
|
+
}
|
|
3454
|
+
]
|
|
3455
|
+
});
|
|
3456
|
+
return sdkResponse;
|
|
3457
|
+
}
|
|
3458
|
+
catch (err) {
|
|
3459
|
+
throw err;
|
|
3460
|
+
}
|
|
3461
|
+
});
|
|
3462
|
+
}
|
|
2831
3463
|
/**
|
|
2832
3464
|
* API to get all the logs of a Discovery Job.
|
|
2833
3465
|
*
|
|
@@ -3333,11 +3965,85 @@ class StackMonitoringClient {
|
|
|
3333
3965
|
value: response.headers.get("opc-next-page"),
|
|
3334
3966
|
key: "opcNextPage",
|
|
3335
3967
|
dataType: "string"
|
|
3336
|
-
},
|
|
3337
|
-
{
|
|
3338
|
-
value: response.headers.get("opc-total-items"),
|
|
3339
|
-
key: "opcTotalItems",
|
|
3340
|
-
dataType: "number"
|
|
3968
|
+
},
|
|
3969
|
+
{
|
|
3970
|
+
value: response.headers.get("opc-total-items"),
|
|
3971
|
+
key: "opcTotalItems",
|
|
3972
|
+
dataType: "number"
|
|
3973
|
+
}
|
|
3974
|
+
]
|
|
3975
|
+
});
|
|
3976
|
+
return sdkResponse;
|
|
3977
|
+
}
|
|
3978
|
+
catch (err) {
|
|
3979
|
+
throw err;
|
|
3980
|
+
}
|
|
3981
|
+
});
|
|
3982
|
+
}
|
|
3983
|
+
/**
|
|
3984
|
+
* Returns a list of Monitoring Templates.
|
|
3985
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3986
|
+
* @param ListMonitoringTemplatesRequest
|
|
3987
|
+
* @return ListMonitoringTemplatesResponse
|
|
3988
|
+
* @throws OciError when an error occurs
|
|
3989
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/ListMonitoringTemplates.ts.html |here} to see how to use ListMonitoringTemplates API.
|
|
3990
|
+
*/
|
|
3991
|
+
listMonitoringTemplates(listMonitoringTemplatesRequest) {
|
|
3992
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3993
|
+
if (this.logger)
|
|
3994
|
+
this.logger.debug("Calling operation StackMonitoringClient#listMonitoringTemplates.");
|
|
3995
|
+
const operationName = "listMonitoringTemplates";
|
|
3996
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoringTemplate/ListMonitoringTemplates";
|
|
3997
|
+
const pathParams = {};
|
|
3998
|
+
const queryParams = {
|
|
3999
|
+
"compartmentId": listMonitoringTemplatesRequest.compartmentId,
|
|
4000
|
+
"monitoringTemplateId": listMonitoringTemplatesRequest.monitoringTemplateId,
|
|
4001
|
+
"limit": listMonitoringTemplatesRequest.limit,
|
|
4002
|
+
"page": listMonitoringTemplatesRequest.page,
|
|
4003
|
+
"sortOrder": listMonitoringTemplatesRequest.sortOrder,
|
|
4004
|
+
"sortBy": listMonitoringTemplatesRequest.sortBy,
|
|
4005
|
+
"displayName": listMonitoringTemplatesRequest.displayName,
|
|
4006
|
+
"status": listMonitoringTemplatesRequest.status,
|
|
4007
|
+
"lifecycleState": listMonitoringTemplatesRequest.lifecycleState,
|
|
4008
|
+
"resourceTypes": listMonitoringTemplatesRequest.resourceTypes,
|
|
4009
|
+
"metricName": listMonitoringTemplatesRequest.metricName,
|
|
4010
|
+
"namespace": listMonitoringTemplatesRequest.namespace
|
|
4011
|
+
};
|
|
4012
|
+
let headerParams = {
|
|
4013
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4014
|
+
"opc-request-id": listMonitoringTemplatesRequest.opcRequestId
|
|
4015
|
+
};
|
|
4016
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4017
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMonitoringTemplatesRequest.retryConfiguration, specRetryConfiguration);
|
|
4018
|
+
if (this.logger)
|
|
4019
|
+
retrier.logger = this.logger;
|
|
4020
|
+
const request = yield oci_common_1.composeRequest({
|
|
4021
|
+
baseEndpoint: this._endpoint,
|
|
4022
|
+
defaultHeaders: this._defaultHeaders,
|
|
4023
|
+
path: "/monitoringTemplates",
|
|
4024
|
+
method: "GET",
|
|
4025
|
+
pathParams: pathParams,
|
|
4026
|
+
headerParams: headerParams,
|
|
4027
|
+
queryParams: queryParams
|
|
4028
|
+
});
|
|
4029
|
+
try {
|
|
4030
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4031
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4032
|
+
responseObject: {},
|
|
4033
|
+
body: yield response.json(),
|
|
4034
|
+
bodyKey: "monitoringTemplateCollection",
|
|
4035
|
+
bodyModel: model.MonitoringTemplateCollection,
|
|
4036
|
+
type: "model.MonitoringTemplateCollection",
|
|
4037
|
+
responseHeaders: [
|
|
4038
|
+
{
|
|
4039
|
+
value: response.headers.get("opc-request-id"),
|
|
4040
|
+
key: "opcRequestId",
|
|
4041
|
+
dataType: "string"
|
|
4042
|
+
},
|
|
4043
|
+
{
|
|
4044
|
+
value: response.headers.get("opc-next-page"),
|
|
4045
|
+
key: "opcNextPage",
|
|
4046
|
+
dataType: "string"
|
|
3341
4047
|
}
|
|
3342
4048
|
]
|
|
3343
4049
|
});
|
|
@@ -3833,6 +4539,150 @@ class StackMonitoringClient {
|
|
|
3833
4539
|
}
|
|
3834
4540
|
});
|
|
3835
4541
|
}
|
|
4542
|
+
/**
|
|
4543
|
+
* Gets metric extension metrics count based on the aggregation criteria specified using request body.
|
|
4544
|
+
* Either metricExtensionId or compartmentId must be passed even when no other filter property is passed.
|
|
4545
|
+
*
|
|
4546
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4547
|
+
* @param RequestSummarizedMetricExtensionsMetricsRequest
|
|
4548
|
+
* @return RequestSummarizedMetricExtensionsMetricsResponse
|
|
4549
|
+
* @throws OciError when an error occurs
|
|
4550
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/RequestSummarizedMetricExtensionsMetrics.ts.html |here} to see how to use RequestSummarizedMetricExtensionsMetrics API.
|
|
4551
|
+
*/
|
|
4552
|
+
requestSummarizedMetricExtensionsMetrics(requestSummarizedMetricExtensionsMetricsRequest) {
|
|
4553
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4554
|
+
if (this.logger)
|
|
4555
|
+
this.logger.debug("Calling operation StackMonitoringClient#requestSummarizedMetricExtensionsMetrics.");
|
|
4556
|
+
const operationName = "requestSummarizedMetricExtensionsMetrics";
|
|
4557
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MetricExtension/RequestSummarizedMetricExtensionsMetrics";
|
|
4558
|
+
const pathParams = {};
|
|
4559
|
+
const queryParams = {
|
|
4560
|
+
"limit": requestSummarizedMetricExtensionsMetricsRequest.limit,
|
|
4561
|
+
"page": requestSummarizedMetricExtensionsMetricsRequest.page
|
|
4562
|
+
};
|
|
4563
|
+
let headerParams = {
|
|
4564
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4565
|
+
"opc-request-id": requestSummarizedMetricExtensionsMetricsRequest.opcRequestId
|
|
4566
|
+
};
|
|
4567
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4568
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, requestSummarizedMetricExtensionsMetricsRequest.retryConfiguration, specRetryConfiguration);
|
|
4569
|
+
if (this.logger)
|
|
4570
|
+
retrier.logger = this.logger;
|
|
4571
|
+
const request = yield oci_common_1.composeRequest({
|
|
4572
|
+
baseEndpoint: this._endpoint,
|
|
4573
|
+
defaultHeaders: this._defaultHeaders,
|
|
4574
|
+
path: "/metricExtensions/actions/summarizeMetrics",
|
|
4575
|
+
method: "POST",
|
|
4576
|
+
bodyContent: common.ObjectSerializer.serialize(requestSummarizedMetricExtensionsMetricsRequest.requestSummarizedMetricExtensionsMetricsDetails, "RequestSummarizedMetricExtensionsMetricsDetails", model.RequestSummarizedMetricExtensionsMetricsDetails.getJsonObj),
|
|
4577
|
+
pathParams: pathParams,
|
|
4578
|
+
headerParams: headerParams,
|
|
4579
|
+
queryParams: queryParams
|
|
4580
|
+
});
|
|
4581
|
+
try {
|
|
4582
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4583
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4584
|
+
responseObject: {},
|
|
4585
|
+
body: yield response.json(),
|
|
4586
|
+
bodyKey: "metricExtensionMetricAggregationCollection",
|
|
4587
|
+
bodyModel: model.MetricExtensionMetricAggregationCollection,
|
|
4588
|
+
type: "model.MetricExtensionMetricAggregationCollection",
|
|
4589
|
+
responseHeaders: [
|
|
4590
|
+
{
|
|
4591
|
+
value: response.headers.get("opc-request-id"),
|
|
4592
|
+
key: "opcRequestId",
|
|
4593
|
+
dataType: "string"
|
|
4594
|
+
},
|
|
4595
|
+
{
|
|
4596
|
+
value: response.headers.get("opc-next-page"),
|
|
4597
|
+
key: "opcNextPage",
|
|
4598
|
+
dataType: "string"
|
|
4599
|
+
},
|
|
4600
|
+
{
|
|
4601
|
+
value: response.headers.get("opc-total-items"),
|
|
4602
|
+
key: "opcTotalItems",
|
|
4603
|
+
dataType: "number"
|
|
4604
|
+
}
|
|
4605
|
+
]
|
|
4606
|
+
});
|
|
4607
|
+
return sdkResponse;
|
|
4608
|
+
}
|
|
4609
|
+
catch (err) {
|
|
4610
|
+
throw err;
|
|
4611
|
+
}
|
|
4612
|
+
});
|
|
4613
|
+
}
|
|
4614
|
+
/**
|
|
4615
|
+
* Gets metric extension resources count based on the aggregation criteria specified using request body.
|
|
4616
|
+
* Either metricExtensionId or compartmentId should be passed, if no other property is passed.
|
|
4617
|
+
*
|
|
4618
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4619
|
+
* @param RequestSummarizedMetricExtensionsResourcesRequest
|
|
4620
|
+
* @return RequestSummarizedMetricExtensionsResourcesResponse
|
|
4621
|
+
* @throws OciError when an error occurs
|
|
4622
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/RequestSummarizedMetricExtensionsResources.ts.html |here} to see how to use RequestSummarizedMetricExtensionsResources API.
|
|
4623
|
+
*/
|
|
4624
|
+
requestSummarizedMetricExtensionsResources(requestSummarizedMetricExtensionsResourcesRequest) {
|
|
4625
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4626
|
+
if (this.logger)
|
|
4627
|
+
this.logger.debug("Calling operation StackMonitoringClient#requestSummarizedMetricExtensionsResources.");
|
|
4628
|
+
const operationName = "requestSummarizedMetricExtensionsResources";
|
|
4629
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MetricExtension/RequestSummarizedMetricExtensionsResources";
|
|
4630
|
+
const pathParams = {};
|
|
4631
|
+
const queryParams = {
|
|
4632
|
+
"limit": requestSummarizedMetricExtensionsResourcesRequest.limit,
|
|
4633
|
+
"page": requestSummarizedMetricExtensionsResourcesRequest.page
|
|
4634
|
+
};
|
|
4635
|
+
let headerParams = {
|
|
4636
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4637
|
+
"opc-request-id": requestSummarizedMetricExtensionsResourcesRequest.opcRequestId
|
|
4638
|
+
};
|
|
4639
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4640
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, requestSummarizedMetricExtensionsResourcesRequest.retryConfiguration, specRetryConfiguration);
|
|
4641
|
+
if (this.logger)
|
|
4642
|
+
retrier.logger = this.logger;
|
|
4643
|
+
const request = yield oci_common_1.composeRequest({
|
|
4644
|
+
baseEndpoint: this._endpoint,
|
|
4645
|
+
defaultHeaders: this._defaultHeaders,
|
|
4646
|
+
path: "/metricExtensions/actions/summarizeResources",
|
|
4647
|
+
method: "POST",
|
|
4648
|
+
bodyContent: common.ObjectSerializer.serialize(requestSummarizedMetricExtensionsResourcesRequest.requestSummarizedMetricExtensionsResourcesDetails, "RequestSummarizedMetricExtensionsResourcesDetails", model.RequestSummarizedMetricExtensionsResourcesDetails.getJsonObj),
|
|
4649
|
+
pathParams: pathParams,
|
|
4650
|
+
headerParams: headerParams,
|
|
4651
|
+
queryParams: queryParams
|
|
4652
|
+
});
|
|
4653
|
+
try {
|
|
4654
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4655
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4656
|
+
responseObject: {},
|
|
4657
|
+
body: yield response.json(),
|
|
4658
|
+
bodyKey: "metricExtensionResourceAggregationCollection",
|
|
4659
|
+
bodyModel: model.MetricExtensionResourceAggregationCollection,
|
|
4660
|
+
type: "model.MetricExtensionResourceAggregationCollection",
|
|
4661
|
+
responseHeaders: [
|
|
4662
|
+
{
|
|
4663
|
+
value: response.headers.get("opc-request-id"),
|
|
4664
|
+
key: "opcRequestId",
|
|
4665
|
+
dataType: "string"
|
|
4666
|
+
},
|
|
4667
|
+
{
|
|
4668
|
+
value: response.headers.get("opc-next-page"),
|
|
4669
|
+
key: "opcNextPage",
|
|
4670
|
+
dataType: "string"
|
|
4671
|
+
},
|
|
4672
|
+
{
|
|
4673
|
+
value: response.headers.get("opc-total-items"),
|
|
4674
|
+
key: "opcTotalItems",
|
|
4675
|
+
dataType: "number"
|
|
4676
|
+
}
|
|
4677
|
+
]
|
|
4678
|
+
});
|
|
4679
|
+
return sdkResponse;
|
|
4680
|
+
}
|
|
4681
|
+
catch (err) {
|
|
4682
|
+
throw err;
|
|
4683
|
+
}
|
|
4684
|
+
});
|
|
4685
|
+
}
|
|
3836
4686
|
/**
|
|
3837
4687
|
* Retry the last failed operation. The operation failed will be the most recent one. It won't apply for previous failed operations.
|
|
3838
4688
|
*
|
|
@@ -4327,6 +5177,133 @@ class StackMonitoringClient {
|
|
|
4327
5177
|
}
|
|
4328
5178
|
});
|
|
4329
5179
|
}
|
|
5180
|
+
/**
|
|
5181
|
+
* Unapply the Monitoring Template identified by the id
|
|
5182
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
5183
|
+
* @param UnapplyMonitoringTemplateRequest
|
|
5184
|
+
* @return UnapplyMonitoringTemplateResponse
|
|
5185
|
+
* @throws OciError when an error occurs
|
|
5186
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/UnapplyMonitoringTemplate.ts.html |here} to see how to use UnapplyMonitoringTemplate API.
|
|
5187
|
+
*/
|
|
5188
|
+
unapplyMonitoringTemplate(unapplyMonitoringTemplateRequest) {
|
|
5189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5190
|
+
if (this.logger)
|
|
5191
|
+
this.logger.debug("Calling operation StackMonitoringClient#unapplyMonitoringTemplate.");
|
|
5192
|
+
const operationName = "unapplyMonitoringTemplate";
|
|
5193
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoringTemplate/UnapplyMonitoringTemplate";
|
|
5194
|
+
const pathParams = {
|
|
5195
|
+
"{monitoringTemplateId}": unapplyMonitoringTemplateRequest.monitoringTemplateId
|
|
5196
|
+
};
|
|
5197
|
+
const queryParams = {};
|
|
5198
|
+
let headerParams = {
|
|
5199
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
5200
|
+
"opc-request-id": unapplyMonitoringTemplateRequest.opcRequestId,
|
|
5201
|
+
"opc-retry-token": unapplyMonitoringTemplateRequest.opcRetryToken,
|
|
5202
|
+
"if-match": unapplyMonitoringTemplateRequest.ifMatch
|
|
5203
|
+
};
|
|
5204
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
5205
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, unapplyMonitoringTemplateRequest.retryConfiguration, specRetryConfiguration);
|
|
5206
|
+
if (this.logger)
|
|
5207
|
+
retrier.logger = this.logger;
|
|
5208
|
+
const request = yield oci_common_1.composeRequest({
|
|
5209
|
+
baseEndpoint: this._endpoint,
|
|
5210
|
+
defaultHeaders: this._defaultHeaders,
|
|
5211
|
+
path: "/monitoringTemplates/{monitoringTemplateId}/actions/unapply",
|
|
5212
|
+
method: "POST",
|
|
5213
|
+
pathParams: pathParams,
|
|
5214
|
+
headerParams: headerParams,
|
|
5215
|
+
queryParams: queryParams
|
|
5216
|
+
});
|
|
5217
|
+
try {
|
|
5218
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
5219
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
5220
|
+
responseObject: {},
|
|
5221
|
+
responseHeaders: [
|
|
5222
|
+
{
|
|
5223
|
+
value: response.headers.get("opc-work-request-id"),
|
|
5224
|
+
key: "opcWorkRequestId",
|
|
5225
|
+
dataType: "string"
|
|
5226
|
+
},
|
|
5227
|
+
{
|
|
5228
|
+
value: response.headers.get("opc-request-id"),
|
|
5229
|
+
key: "opcRequestId",
|
|
5230
|
+
dataType: "string"
|
|
5231
|
+
}
|
|
5232
|
+
]
|
|
5233
|
+
});
|
|
5234
|
+
return sdkResponse;
|
|
5235
|
+
}
|
|
5236
|
+
catch (err) {
|
|
5237
|
+
throw err;
|
|
5238
|
+
}
|
|
5239
|
+
});
|
|
5240
|
+
}
|
|
5241
|
+
/**
|
|
5242
|
+
* Update a Alarm Condition by identifier
|
|
5243
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
5244
|
+
* @param UpdateAlarmConditionRequest
|
|
5245
|
+
* @return UpdateAlarmConditionResponse
|
|
5246
|
+
* @throws OciError when an error occurs
|
|
5247
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/UpdateAlarmCondition.ts.html |here} to see how to use UpdateAlarmCondition API.
|
|
5248
|
+
*/
|
|
5249
|
+
updateAlarmCondition(updateAlarmConditionRequest) {
|
|
5250
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5251
|
+
if (this.logger)
|
|
5252
|
+
this.logger.debug("Calling operation StackMonitoringClient#updateAlarmCondition.");
|
|
5253
|
+
const operationName = "updateAlarmCondition";
|
|
5254
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/AlarmCondition/UpdateAlarmCondition";
|
|
5255
|
+
const pathParams = {
|
|
5256
|
+
"{alarmConditionId}": updateAlarmConditionRequest.alarmConditionId,
|
|
5257
|
+
"{monitoringTemplateId}": updateAlarmConditionRequest.monitoringTemplateId
|
|
5258
|
+
};
|
|
5259
|
+
const queryParams = {};
|
|
5260
|
+
let headerParams = {
|
|
5261
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
5262
|
+
"if-match": updateAlarmConditionRequest.ifMatch,
|
|
5263
|
+
"opc-request-id": updateAlarmConditionRequest.opcRequestId
|
|
5264
|
+
};
|
|
5265
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
5266
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateAlarmConditionRequest.retryConfiguration, specRetryConfiguration);
|
|
5267
|
+
if (this.logger)
|
|
5268
|
+
retrier.logger = this.logger;
|
|
5269
|
+
const request = yield oci_common_1.composeRequest({
|
|
5270
|
+
baseEndpoint: this._endpoint,
|
|
5271
|
+
defaultHeaders: this._defaultHeaders,
|
|
5272
|
+
path: "/monitoringTemplates/{monitoringTemplateId}/alarmConditions/{alarmConditionId}",
|
|
5273
|
+
method: "PUT",
|
|
5274
|
+
bodyContent: common.ObjectSerializer.serialize(updateAlarmConditionRequest.updateAlarmConditionDetails, "UpdateAlarmConditionDetails", model.UpdateAlarmConditionDetails.getJsonObj),
|
|
5275
|
+
pathParams: pathParams,
|
|
5276
|
+
headerParams: headerParams,
|
|
5277
|
+
queryParams: queryParams
|
|
5278
|
+
});
|
|
5279
|
+
try {
|
|
5280
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
5281
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
5282
|
+
responseObject: {},
|
|
5283
|
+
body: yield response.json(),
|
|
5284
|
+
bodyKey: "alarmCondition",
|
|
5285
|
+
bodyModel: model.AlarmCondition,
|
|
5286
|
+
type: "model.AlarmCondition",
|
|
5287
|
+
responseHeaders: [
|
|
5288
|
+
{
|
|
5289
|
+
value: response.headers.get("opc-request-id"),
|
|
5290
|
+
key: "opcRequestId",
|
|
5291
|
+
dataType: "string"
|
|
5292
|
+
},
|
|
5293
|
+
{
|
|
5294
|
+
value: response.headers.get("etag"),
|
|
5295
|
+
key: "etag",
|
|
5296
|
+
dataType: "string"
|
|
5297
|
+
}
|
|
5298
|
+
]
|
|
5299
|
+
});
|
|
5300
|
+
return sdkResponse;
|
|
5301
|
+
}
|
|
5302
|
+
catch (err) {
|
|
5303
|
+
throw err;
|
|
5304
|
+
}
|
|
5305
|
+
});
|
|
5306
|
+
}
|
|
4330
5307
|
/**
|
|
4331
5308
|
* Provided tags will be added or updated in the existing list of tags for the affected resources.
|
|
4332
5309
|
* Resources to be updated are identified based on association types specified.
|
|
@@ -4856,6 +5833,71 @@ class StackMonitoringClient {
|
|
|
4856
5833
|
}
|
|
4857
5834
|
});
|
|
4858
5835
|
}
|
|
5836
|
+
/**
|
|
5837
|
+
* Updates the Monitoring Template
|
|
5838
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
5839
|
+
* @param UpdateMonitoringTemplateRequest
|
|
5840
|
+
* @return UpdateMonitoringTemplateResponse
|
|
5841
|
+
* @throws OciError when an error occurs
|
|
5842
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/UpdateMonitoringTemplate.ts.html |here} to see how to use UpdateMonitoringTemplate API.
|
|
5843
|
+
*/
|
|
5844
|
+
updateMonitoringTemplate(updateMonitoringTemplateRequest) {
|
|
5845
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5846
|
+
if (this.logger)
|
|
5847
|
+
this.logger.debug("Calling operation StackMonitoringClient#updateMonitoringTemplate.");
|
|
5848
|
+
const operationName = "updateMonitoringTemplate";
|
|
5849
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoringTemplate/UpdateMonitoringTemplate";
|
|
5850
|
+
const pathParams = {
|
|
5851
|
+
"{monitoringTemplateId}": updateMonitoringTemplateRequest.monitoringTemplateId
|
|
5852
|
+
};
|
|
5853
|
+
const queryParams = {};
|
|
5854
|
+
let headerParams = {
|
|
5855
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
5856
|
+
"if-match": updateMonitoringTemplateRequest.ifMatch,
|
|
5857
|
+
"opc-request-id": updateMonitoringTemplateRequest.opcRequestId
|
|
5858
|
+
};
|
|
5859
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
5860
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateMonitoringTemplateRequest.retryConfiguration, specRetryConfiguration);
|
|
5861
|
+
if (this.logger)
|
|
5862
|
+
retrier.logger = this.logger;
|
|
5863
|
+
const request = yield oci_common_1.composeRequest({
|
|
5864
|
+
baseEndpoint: this._endpoint,
|
|
5865
|
+
defaultHeaders: this._defaultHeaders,
|
|
5866
|
+
path: "/monitoringTemplates/{monitoringTemplateId}",
|
|
5867
|
+
method: "PUT",
|
|
5868
|
+
bodyContent: common.ObjectSerializer.serialize(updateMonitoringTemplateRequest.updateMonitoringTemplateDetails, "UpdateMonitoringTemplateDetails", model.UpdateMonitoringTemplateDetails.getJsonObj),
|
|
5869
|
+
pathParams: pathParams,
|
|
5870
|
+
headerParams: headerParams,
|
|
5871
|
+
queryParams: queryParams
|
|
5872
|
+
});
|
|
5873
|
+
try {
|
|
5874
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
5875
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
5876
|
+
responseObject: {},
|
|
5877
|
+
body: yield response.json(),
|
|
5878
|
+
bodyKey: "monitoringTemplate",
|
|
5879
|
+
bodyModel: model.MonitoringTemplate,
|
|
5880
|
+
type: "model.MonitoringTemplate",
|
|
5881
|
+
responseHeaders: [
|
|
5882
|
+
{
|
|
5883
|
+
value: response.headers.get("opc-request-id"),
|
|
5884
|
+
key: "opcRequestId",
|
|
5885
|
+
dataType: "string"
|
|
5886
|
+
},
|
|
5887
|
+
{
|
|
5888
|
+
value: response.headers.get("etag"),
|
|
5889
|
+
key: "etag",
|
|
5890
|
+
dataType: "string"
|
|
5891
|
+
}
|
|
5892
|
+
]
|
|
5893
|
+
});
|
|
5894
|
+
return sdkResponse;
|
|
5895
|
+
}
|
|
5896
|
+
catch (err) {
|
|
5897
|
+
throw err;
|
|
5898
|
+
}
|
|
5899
|
+
});
|
|
5900
|
+
}
|
|
4859
5901
|
/**
|
|
4860
5902
|
* API to update a Process Set identified by a given ocid.
|
|
4861
5903
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|