oci-stackmonitoring 2.77.0 → 2.78.0
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 +120 -59
- package/lib/client.js +439 -58
- package/lib/client.js.map +1 -1
- package/lib/model/change-process-set-compartment-details.d.ts +27 -0
- package/lib/model/change-process-set-compartment-details.js +29 -0
- package/lib/model/change-process-set-compartment-details.js.map +1 -0
- package/lib/model/create-process-set-details.d.ts +50 -0
- package/lib/model/create-process-set-details.js +57 -0
- package/lib/model/create-process-set-details.js.map +1 -0
- package/lib/model/discovery-details.d.ts +1 -0
- package/lib/model/discovery-details.js +1 -0
- package/lib/model/discovery-details.js.map +1 -1
- package/lib/model/discovery-job-summary.d.ts +1 -0
- package/lib/model/discovery-job-summary.js +1 -0
- package/lib/model/discovery-job-summary.js.map +1 -1
- package/lib/model/index.d.ts +16 -0
- package/lib/model/index.js +19 -3
- package/lib/model/index.js.map +1 -1
- package/lib/model/process-set-collection.d.ts +26 -0
- package/lib/model/process-set-collection.js +61 -0
- package/lib/model/process-set-collection.js.map +1 -0
- package/lib/model/process-set-specification-details.d.ts +37 -0
- package/lib/model/process-set-specification-details.js +29 -0
- package/lib/model/process-set-specification-details.js.map +1 -0
- package/lib/model/process-set-specification.d.ts +26 -0
- package/lib/model/process-set-specification.js +61 -0
- package/lib/model/process-set-specification.js.map +1 -0
- package/lib/model/process-set-summary.d.ts +81 -0
- package/lib/model/process-set-summary.js +57 -0
- package/lib/model/process-set-summary.js.map +1 -0
- package/lib/model/process-set.d.ts +81 -0
- package/lib/model/process-set.js +57 -0
- package/lib/model/process-set.js.map +1 -0
- package/lib/model/update-process-set-details.d.ts +45 -0
- package/lib/model/update-process-set-details.js +57 -0
- package/lib/model/update-process-set-details.js.map +1 -0
- package/lib/request/associate-monitored-resources-request.d.ts +1 -1
- package/lib/request/change-config-compartment-request.d.ts +1 -1
- package/lib/request/change-metric-extension-compartment-request.d.ts +1 -1
- package/lib/request/change-monitored-resource-compartment-request.d.ts +1 -1
- package/lib/request/change-monitored-resource-task-compartment-request.d.ts +1 -1
- package/lib/request/change-process-set-compartment-request.d.ts +51 -0
- package/lib/request/change-process-set-compartment-request.js +15 -0
- package/lib/request/change-process-set-compartment-request.js.map +1 -0
- package/lib/request/create-baselineable-metric-request.d.ts +1 -1
- package/lib/request/create-config-request.d.ts +1 -1
- package/lib/request/create-discovery-job-request.d.ts +1 -1
- package/lib/request/create-metric-extension-request.d.ts +1 -1
- package/lib/request/create-monitored-resource-request.d.ts +1 -1
- package/lib/request/create-monitored-resource-task-request.d.ts +1 -1
- package/lib/request/create-monitored-resource-type-request.d.ts +1 -1
- package/lib/request/create-process-set-request.d.ts +38 -0
- package/lib/request/create-process-set-request.js +15 -0
- package/lib/request/create-process-set-request.js.map +1 -0
- package/lib/request/delete-baselineable-metric-request.d.ts +1 -1
- package/lib/request/delete-config-request.d.ts +1 -1
- package/lib/request/delete-discovery-job-request.d.ts +1 -1
- package/lib/request/delete-metric-extension-request.d.ts +1 -1
- package/lib/request/delete-monitored-resource-request.d.ts +1 -1
- package/lib/request/delete-monitored-resource-type-request.d.ts +1 -1
- package/lib/request/delete-process-set-request.d.ts +37 -0
- package/lib/request/delete-process-set-request.js +15 -0
- package/lib/request/delete-process-set-request.js.map +1 -0
- package/lib/request/disable-external-database-request.d.ts +1 -1
- package/lib/request/disable-metric-extension-request.d.ts +1 -1
- package/lib/request/disassociate-monitored-resources-request.d.ts +1 -1
- package/lib/request/enable-metric-extension-request.d.ts +1 -1
- package/lib/request/evaluate-baselineable-metric-request.d.ts +1 -1
- package/lib/request/export-metric-extension-request.d.ts +1 -1
- package/lib/request/get-baselineable-metric-request.d.ts +1 -1
- package/lib/request/get-config-request.d.ts +1 -1
- package/lib/request/get-discovery-job-request.d.ts +1 -1
- package/lib/request/get-metric-extension-request.d.ts +1 -1
- package/lib/request/get-monitored-resource-request.d.ts +1 -1
- package/lib/request/get-monitored-resource-task-request.d.ts +1 -1
- package/lib/request/get-monitored-resource-type-request.d.ts +1 -1
- package/lib/request/get-process-set-request.d.ts +28 -0
- package/lib/request/get-process-set-request.js +15 -0
- package/lib/request/get-process-set-request.js.map +1 -0
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/index.d.ts +12 -0
- package/lib/request/index.js +3 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-baselineable-metrics-request.d.ts +1 -1
- package/lib/request/list-configs-request.d.ts +1 -1
- package/lib/request/list-discovery-job-logs-request.d.ts +1 -1
- package/lib/request/list-discovery-jobs-request.d.ts +1 -1
- package/lib/request/list-metric-extensions-request.d.ts +1 -1
- package/lib/request/list-monitored-resource-tasks-request.d.ts +1 -1
- package/lib/request/list-monitored-resource-types-request.d.ts +1 -1
- package/lib/request/list-monitored-resources-request.d.ts +1 -1
- package/lib/request/list-process-sets-request.d.ts +63 -0
- package/lib/request/list-process-sets-request.js +24 -0
- package/lib/request/list-process-sets-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +1 -1
- package/lib/request/list-work-request-logs-request.d.ts +1 -1
- package/lib/request/list-work-requests-request.d.ts +1 -1
- package/lib/request/manage-license-request.d.ts +1 -1
- package/lib/request/publish-metric-extension-request.d.ts +1 -1
- package/lib/request/request-monitored-resources-summarized-count-request.d.ts +1 -1
- package/lib/request/search-associated-resources-request.d.ts +1 -1
- package/lib/request/search-monitored-resource-associations-request.d.ts +1 -1
- package/lib/request/search-monitored-resource-members-request.d.ts +1 -1
- package/lib/request/search-monitored-resources-request.d.ts +1 -1
- package/lib/request/test-metric-extension-request.d.ts +1 -1
- package/lib/request/update-and-propagate-tags-request.d.ts +1 -1
- package/lib/request/update-baselineable-metric-request.d.ts +1 -1
- package/lib/request/update-config-request.d.ts +1 -1
- package/lib/request/update-metric-extension-request.d.ts +1 -1
- package/lib/request/update-monitored-resource-request.d.ts +1 -1
- package/lib/request/update-monitored-resource-task-request.d.ts +1 -1
- package/lib/request/update-monitored-resource-type-request.d.ts +1 -1
- package/lib/request/update-process-set-request.d.ts +42 -0
- package/lib/request/update-process-set-request.js +15 -0
- package/lib/request/update-process-set-request.js.map +1 -0
- package/lib/response/change-process-set-compartment-response.d.ts +20 -0
- package/lib/response/change-process-set-compartment-response.js +15 -0
- package/lib/response/change-process-set-compartment-response.js.map +1 -0
- package/lib/response/create-process-set-response.d.ts +30 -0
- package/lib/response/create-process-set-response.js +15 -0
- package/lib/response/create-process-set-response.js.map +1 -0
- package/lib/response/delete-process-set-response.d.ts +20 -0
- package/lib/response/delete-process-set-response.js +15 -0
- package/lib/response/delete-process-set-response.js.map +1 -0
- package/lib/response/get-process-set-response.d.ts +30 -0
- package/lib/response/get-process-set-response.js +15 -0
- package/lib/response/get-process-set-response.js.map +1 -0
- package/lib/response/index.d.ts +12 -0
- package/lib/response/list-process-sets-response.d.ts +32 -0
- package/lib/response/list-process-sets-response.js +15 -0
- package/lib/response/list-process-sets-response.js.map +1 -0
- package/lib/response/update-process-set-response.d.ts +30 -0
- package/lib/response/update-process-set-response.js +15 -0
- package/lib/response/update-process-set-response.js.map +1 -0
- package/lib/stackmonitoring-waiter.d.ts +8 -0
- package/lib/stackmonitoring-waiter.js +12 -0
- package/lib/stackmonitoring-waiter.js.map +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -45,6 +45,7 @@ const common = require("oci-common");
|
|
|
45
45
|
const model = __importStar(require("./model"));
|
|
46
46
|
const stackmonitoring_waiter_1 = require("./stackmonitoring-waiter");
|
|
47
47
|
const oci_common_1 = require("oci-common");
|
|
48
|
+
const Breaker = require("opossum");
|
|
48
49
|
// ===============================================
|
|
49
50
|
// This file is autogenerated - Please do not edit
|
|
50
51
|
// ===============================================
|
|
@@ -181,6 +182,14 @@ class StackMonitoringClient {
|
|
|
181
182
|
}
|
|
182
183
|
throw Error("Waiters do not exist. Please create waiters.");
|
|
183
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
187
|
+
*/
|
|
188
|
+
shutdownCircuitBreaker() {
|
|
189
|
+
if (this._circuitBreaker) {
|
|
190
|
+
this._circuitBreaker.shutdown();
|
|
191
|
+
}
|
|
192
|
+
}
|
|
184
193
|
/**
|
|
185
194
|
* Create an association between two monitored resources. Associations can be created
|
|
186
195
|
* between resources from different compartments as long they are in same tenancy.
|
|
@@ -190,7 +199,7 @@ class StackMonitoringClient {
|
|
|
190
199
|
* @param AssociateMonitoredResourcesRequest
|
|
191
200
|
* @return AssociateMonitoredResourcesResponse
|
|
192
201
|
* @throws OciError when an error occurs
|
|
193
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
202
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/AssociateMonitoredResources.ts.html |here} to see how to use AssociateMonitoredResources API.
|
|
194
203
|
*/
|
|
195
204
|
associateMonitoredResources(associateMonitoredResourcesRequest) {
|
|
196
205
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -265,7 +274,7 @@ class StackMonitoringClient {
|
|
|
265
274
|
* @param ChangeConfigCompartmentRequest
|
|
266
275
|
* @return ChangeConfigCompartmentResponse
|
|
267
276
|
* @throws OciError when an error occurs
|
|
268
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
277
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ChangeConfigCompartment.ts.html |here} to see how to use ChangeConfigCompartment API.
|
|
269
278
|
*/
|
|
270
279
|
changeConfigCompartment(changeConfigCompartmentRequest) {
|
|
271
280
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -324,7 +333,7 @@ class StackMonitoringClient {
|
|
|
324
333
|
* @param ChangeMetricExtensionCompartmentRequest
|
|
325
334
|
* @return ChangeMetricExtensionCompartmentResponse
|
|
326
335
|
* @throws OciError when an error occurs
|
|
327
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
336
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ChangeMetricExtensionCompartment.ts.html |here} to see how to use ChangeMetricExtensionCompartment API.
|
|
328
337
|
*/
|
|
329
338
|
changeMetricExtensionCompartment(changeMetricExtensionCompartmentRequest) {
|
|
330
339
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -383,7 +392,7 @@ class StackMonitoringClient {
|
|
|
383
392
|
* @param ChangeMonitoredResourceCompartmentRequest
|
|
384
393
|
* @return ChangeMonitoredResourceCompartmentResponse
|
|
385
394
|
* @throws OciError when an error occurs
|
|
386
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
395
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ChangeMonitoredResourceCompartment.ts.html |here} to see how to use ChangeMonitoredResourceCompartment API.
|
|
387
396
|
*/
|
|
388
397
|
changeMonitoredResourceCompartment(changeMonitoredResourceCompartmentRequest) {
|
|
389
398
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -446,7 +455,7 @@ class StackMonitoringClient {
|
|
|
446
455
|
* @param ChangeMonitoredResourceTaskCompartmentRequest
|
|
447
456
|
* @return ChangeMonitoredResourceTaskCompartmentResponse
|
|
448
457
|
* @throws OciError when an error occurs
|
|
449
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
458
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ChangeMonitoredResourceTaskCompartment.ts.html |here} to see how to use ChangeMonitoredResourceTaskCompartment API.
|
|
450
459
|
*/
|
|
451
460
|
changeMonitoredResourceTaskCompartment(changeMonitoredResourceTaskCompartmentRequest) {
|
|
452
461
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -497,13 +506,71 @@ class StackMonitoringClient {
|
|
|
497
506
|
}
|
|
498
507
|
});
|
|
499
508
|
}
|
|
509
|
+
/**
|
|
510
|
+
* Moves a ProcessSet resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
|
|
511
|
+
*
|
|
512
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
513
|
+
* @param ChangeProcessSetCompartmentRequest
|
|
514
|
+
* @return ChangeProcessSetCompartmentResponse
|
|
515
|
+
* @throws OciError when an error occurs
|
|
516
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ChangeProcessSetCompartment.ts.html |here} to see how to use ChangeProcessSetCompartment API.
|
|
517
|
+
*/
|
|
518
|
+
changeProcessSetCompartment(changeProcessSetCompartmentRequest) {
|
|
519
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
520
|
+
if (this.logger)
|
|
521
|
+
this.logger.debug("Calling operation StackMonitoringClient#changeProcessSetCompartment.");
|
|
522
|
+
const operationName = "changeProcessSetCompartment";
|
|
523
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/ProcessSet/ChangeProcessSetCompartment";
|
|
524
|
+
const pathParams = {
|
|
525
|
+
"{processSetId}": changeProcessSetCompartmentRequest.processSetId
|
|
526
|
+
};
|
|
527
|
+
const queryParams = {};
|
|
528
|
+
let headerParams = {
|
|
529
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
530
|
+
"if-match": changeProcessSetCompartmentRequest.ifMatch,
|
|
531
|
+
"opc-request-id": changeProcessSetCompartmentRequest.opcRequestId,
|
|
532
|
+
"opc-retry-token": changeProcessSetCompartmentRequest.opcRetryToken
|
|
533
|
+
};
|
|
534
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
535
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeProcessSetCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
536
|
+
if (this.logger)
|
|
537
|
+
retrier.logger = this.logger;
|
|
538
|
+
const request = yield oci_common_1.composeRequest({
|
|
539
|
+
baseEndpoint: this._endpoint,
|
|
540
|
+
defaultHeaders: this._defaultHeaders,
|
|
541
|
+
path: "/processSets/{processSetId}/actions/changeCompartment",
|
|
542
|
+
method: "POST",
|
|
543
|
+
bodyContent: common.ObjectSerializer.serialize(changeProcessSetCompartmentRequest.changeProcessSetCompartmentDetails, "ChangeProcessSetCompartmentDetails", model.ChangeProcessSetCompartmentDetails.getJsonObj),
|
|
544
|
+
pathParams: pathParams,
|
|
545
|
+
headerParams: headerParams,
|
|
546
|
+
queryParams: queryParams
|
|
547
|
+
});
|
|
548
|
+
try {
|
|
549
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
550
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
551
|
+
responseObject: {},
|
|
552
|
+
responseHeaders: [
|
|
553
|
+
{
|
|
554
|
+
value: response.headers.get("opc-request-id"),
|
|
555
|
+
key: "opcRequestId",
|
|
556
|
+
dataType: "string"
|
|
557
|
+
}
|
|
558
|
+
]
|
|
559
|
+
});
|
|
560
|
+
return sdkResponse;
|
|
561
|
+
}
|
|
562
|
+
catch (err) {
|
|
563
|
+
throw err;
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
}
|
|
500
567
|
/**
|
|
501
568
|
* Creates the specified Baseline-able metric
|
|
502
569
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
503
570
|
* @param CreateBaselineableMetricRequest
|
|
504
571
|
* @return CreateBaselineableMetricResponse
|
|
505
572
|
* @throws OciError when an error occurs
|
|
506
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
573
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/CreateBaselineableMetric.ts.html |here} to see how to use CreateBaselineableMetric API.
|
|
507
574
|
*/
|
|
508
575
|
createBaselineableMetric(createBaselineableMetricRequest) {
|
|
509
576
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -578,7 +645,7 @@ class StackMonitoringClient {
|
|
|
578
645
|
* @param CreateConfigRequest
|
|
579
646
|
* @return CreateConfigResponse
|
|
580
647
|
* @throws OciError when an error occurs
|
|
581
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
648
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/CreateConfig.ts.html |here} to see how to use CreateConfig API.
|
|
582
649
|
*/
|
|
583
650
|
createConfig(createConfigRequest) {
|
|
584
651
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -642,7 +709,7 @@ class StackMonitoringClient {
|
|
|
642
709
|
* @param CreateDiscoveryJobRequest
|
|
643
710
|
* @return CreateDiscoveryJobResponse
|
|
644
711
|
* @throws OciError when an error occurs
|
|
645
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
712
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/CreateDiscoveryJob.ts.html |here} to see how to use CreateDiscoveryJob API.
|
|
646
713
|
*/
|
|
647
714
|
createDiscoveryJob(createDiscoveryJobRequest) {
|
|
648
715
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -706,7 +773,7 @@ class StackMonitoringClient {
|
|
|
706
773
|
* @param CreateMetricExtensionRequest
|
|
707
774
|
* @return CreateMetricExtensionResponse
|
|
708
775
|
* @throws OciError when an error occurs
|
|
709
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
776
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/CreateMetricExtension.ts.html |here} to see how to use CreateMetricExtension API.
|
|
710
777
|
*/
|
|
711
778
|
createMetricExtension(createMetricExtensionRequest) {
|
|
712
779
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -777,7 +844,7 @@ class StackMonitoringClient {
|
|
|
777
844
|
* @param CreateMonitoredResourceRequest
|
|
778
845
|
* @return CreateMonitoredResourceResponse
|
|
779
846
|
* @throws OciError when an error occurs
|
|
780
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
847
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/CreateMonitoredResource.ts.html |here} to see how to use CreateMonitoredResource API.
|
|
781
848
|
*/
|
|
782
849
|
createMonitoredResource(createMonitoredResourceRequest) {
|
|
783
850
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -861,7 +928,7 @@ class StackMonitoringClient {
|
|
|
861
928
|
* @param CreateMonitoredResourceTaskRequest
|
|
862
929
|
* @return CreateMonitoredResourceTaskResponse
|
|
863
930
|
* @throws OciError when an error occurs
|
|
864
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
931
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/CreateMonitoredResourceTask.ts.html |here} to see how to use CreateMonitoredResourceTask API.
|
|
865
932
|
*/
|
|
866
933
|
createMonitoredResourceTask(createMonitoredResourceTaskRequest) {
|
|
867
934
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -929,7 +996,7 @@ class StackMonitoringClient {
|
|
|
929
996
|
* @param CreateMonitoredResourceTypeRequest
|
|
930
997
|
* @return CreateMonitoredResourceTypeResponse
|
|
931
998
|
* @throws OciError when an error occurs
|
|
932
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
999
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/CreateMonitoredResourceType.ts.html |here} to see how to use CreateMonitoredResourceType API.
|
|
933
1000
|
*/
|
|
934
1001
|
createMonitoredResourceType(createMonitoredResourceTypeRequest) {
|
|
935
1002
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -986,13 +1053,76 @@ class StackMonitoringClient {
|
|
|
986
1053
|
}
|
|
987
1054
|
});
|
|
988
1055
|
}
|
|
1056
|
+
/**
|
|
1057
|
+
* API to create Process Set.
|
|
1058
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1059
|
+
* @param CreateProcessSetRequest
|
|
1060
|
+
* @return CreateProcessSetResponse
|
|
1061
|
+
* @throws OciError when an error occurs
|
|
1062
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/CreateProcessSet.ts.html |here} to see how to use CreateProcessSet API.
|
|
1063
|
+
*/
|
|
1064
|
+
createProcessSet(createProcessSetRequest) {
|
|
1065
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1066
|
+
if (this.logger)
|
|
1067
|
+
this.logger.debug("Calling operation StackMonitoringClient#createProcessSet.");
|
|
1068
|
+
const operationName = "createProcessSet";
|
|
1069
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/ProcessSet/CreateProcessSet";
|
|
1070
|
+
const pathParams = {};
|
|
1071
|
+
const queryParams = {};
|
|
1072
|
+
let headerParams = {
|
|
1073
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1074
|
+
"opc-request-id": createProcessSetRequest.opcRequestId,
|
|
1075
|
+
"opc-retry-token": createProcessSetRequest.opcRetryToken
|
|
1076
|
+
};
|
|
1077
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1078
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createProcessSetRequest.retryConfiguration, specRetryConfiguration);
|
|
1079
|
+
if (this.logger)
|
|
1080
|
+
retrier.logger = this.logger;
|
|
1081
|
+
const request = yield oci_common_1.composeRequest({
|
|
1082
|
+
baseEndpoint: this._endpoint,
|
|
1083
|
+
defaultHeaders: this._defaultHeaders,
|
|
1084
|
+
path: "/processSets",
|
|
1085
|
+
method: "POST",
|
|
1086
|
+
bodyContent: common.ObjectSerializer.serialize(createProcessSetRequest.createProcessSetDetails, "CreateProcessSetDetails", model.CreateProcessSetDetails.getJsonObj),
|
|
1087
|
+
pathParams: pathParams,
|
|
1088
|
+
headerParams: headerParams,
|
|
1089
|
+
queryParams: queryParams
|
|
1090
|
+
});
|
|
1091
|
+
try {
|
|
1092
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1093
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1094
|
+
responseObject: {},
|
|
1095
|
+
body: yield response.json(),
|
|
1096
|
+
bodyKey: "processSet",
|
|
1097
|
+
bodyModel: model.ProcessSet,
|
|
1098
|
+
type: "model.ProcessSet",
|
|
1099
|
+
responseHeaders: [
|
|
1100
|
+
{
|
|
1101
|
+
value: response.headers.get("etag"),
|
|
1102
|
+
key: "etag",
|
|
1103
|
+
dataType: "string"
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
value: response.headers.get("opc-request-id"),
|
|
1107
|
+
key: "opcRequestId",
|
|
1108
|
+
dataType: "string"
|
|
1109
|
+
}
|
|
1110
|
+
]
|
|
1111
|
+
});
|
|
1112
|
+
return sdkResponse;
|
|
1113
|
+
}
|
|
1114
|
+
catch (err) {
|
|
1115
|
+
throw err;
|
|
1116
|
+
}
|
|
1117
|
+
});
|
|
1118
|
+
}
|
|
989
1119
|
/**
|
|
990
1120
|
* Deletes the Baseline-able metric for the given id
|
|
991
1121
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
992
1122
|
* @param DeleteBaselineableMetricRequest
|
|
993
1123
|
* @return DeleteBaselineableMetricResponse
|
|
994
1124
|
* @throws OciError when an error occurs
|
|
995
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1125
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/DeleteBaselineableMetric.ts.html |here} to see how to use DeleteBaselineableMetric API.
|
|
996
1126
|
*/
|
|
997
1127
|
deleteBaselineableMetric(deleteBaselineableMetricRequest) {
|
|
998
1128
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1052,7 +1182,7 @@ class StackMonitoringClient {
|
|
|
1052
1182
|
* @param DeleteConfigRequest
|
|
1053
1183
|
* @return DeleteConfigResponse
|
|
1054
1184
|
* @throws OciError when an error occurs
|
|
1055
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1185
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/DeleteConfig.ts.html |here} to see how to use DeleteConfig API.
|
|
1056
1186
|
*/
|
|
1057
1187
|
deleteConfig(deleteConfigRequest) {
|
|
1058
1188
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1107,7 +1237,7 @@ class StackMonitoringClient {
|
|
|
1107
1237
|
* @param DeleteDiscoveryJobRequest
|
|
1108
1238
|
* @return DeleteDiscoveryJobResponse
|
|
1109
1239
|
* @throws OciError when an error occurs
|
|
1110
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1240
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/DeleteDiscoveryJob.ts.html |here} to see how to use DeleteDiscoveryJob API.
|
|
1111
1241
|
*/
|
|
1112
1242
|
deleteDiscoveryJob(deleteDiscoveryJobRequest) {
|
|
1113
1243
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1162,7 +1292,7 @@ class StackMonitoringClient {
|
|
|
1162
1292
|
* @param DeleteMetricExtensionRequest
|
|
1163
1293
|
* @return DeleteMetricExtensionResponse
|
|
1164
1294
|
* @throws OciError when an error occurs
|
|
1165
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1295
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/DeleteMetricExtension.ts.html |here} to see how to use DeleteMetricExtension API.
|
|
1166
1296
|
*/
|
|
1167
1297
|
deleteMetricExtension(deleteMetricExtensionRequest) {
|
|
1168
1298
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1221,7 +1351,7 @@ class StackMonitoringClient {
|
|
|
1221
1351
|
* @param DeleteMonitoredResourceRequest
|
|
1222
1352
|
* @return DeleteMonitoredResourceResponse
|
|
1223
1353
|
* @throws OciError when an error occurs
|
|
1224
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1354
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/DeleteMonitoredResource.ts.html |here} to see how to use DeleteMonitoredResource API.
|
|
1225
1355
|
*/
|
|
1226
1356
|
deleteMonitoredResource(deleteMonitoredResourceRequest) {
|
|
1227
1357
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1283,7 +1413,7 @@ class StackMonitoringClient {
|
|
|
1283
1413
|
* @param DeleteMonitoredResourceTypeRequest
|
|
1284
1414
|
* @return DeleteMonitoredResourceTypeResponse
|
|
1285
1415
|
* @throws OciError when an error occurs
|
|
1286
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1416
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/DeleteMonitoredResourceType.ts.html |here} to see how to use DeleteMonitoredResourceType API.
|
|
1287
1417
|
*/
|
|
1288
1418
|
deleteMonitoredResourceType(deleteMonitoredResourceTypeRequest) {
|
|
1289
1419
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1332,6 +1462,61 @@ class StackMonitoringClient {
|
|
|
1332
1462
|
}
|
|
1333
1463
|
});
|
|
1334
1464
|
}
|
|
1465
|
+
/**
|
|
1466
|
+
* Deletes a Process Set
|
|
1467
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1468
|
+
* @param DeleteProcessSetRequest
|
|
1469
|
+
* @return DeleteProcessSetResponse
|
|
1470
|
+
* @throws OciError when an error occurs
|
|
1471
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/DeleteProcessSet.ts.html |here} to see how to use DeleteProcessSet API.
|
|
1472
|
+
*/
|
|
1473
|
+
deleteProcessSet(deleteProcessSetRequest) {
|
|
1474
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1475
|
+
if (this.logger)
|
|
1476
|
+
this.logger.debug("Calling operation StackMonitoringClient#deleteProcessSet.");
|
|
1477
|
+
const operationName = "deleteProcessSet";
|
|
1478
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/ProcessSet/DeleteProcessSet";
|
|
1479
|
+
const pathParams = {
|
|
1480
|
+
"{processSetId}": deleteProcessSetRequest.processSetId
|
|
1481
|
+
};
|
|
1482
|
+
const queryParams = {};
|
|
1483
|
+
let headerParams = {
|
|
1484
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1485
|
+
"if-match": deleteProcessSetRequest.ifMatch,
|
|
1486
|
+
"opc-request-id": deleteProcessSetRequest.opcRequestId
|
|
1487
|
+
};
|
|
1488
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1489
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteProcessSetRequest.retryConfiguration, specRetryConfiguration);
|
|
1490
|
+
if (this.logger)
|
|
1491
|
+
retrier.logger = this.logger;
|
|
1492
|
+
const request = yield oci_common_1.composeRequest({
|
|
1493
|
+
baseEndpoint: this._endpoint,
|
|
1494
|
+
defaultHeaders: this._defaultHeaders,
|
|
1495
|
+
path: "/processSets/{processSetId}",
|
|
1496
|
+
method: "DELETE",
|
|
1497
|
+
pathParams: pathParams,
|
|
1498
|
+
headerParams: headerParams,
|
|
1499
|
+
queryParams: queryParams
|
|
1500
|
+
});
|
|
1501
|
+
try {
|
|
1502
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1503
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1504
|
+
responseObject: {},
|
|
1505
|
+
responseHeaders: [
|
|
1506
|
+
{
|
|
1507
|
+
value: response.headers.get("opc-request-id"),
|
|
1508
|
+
key: "opcRequestId",
|
|
1509
|
+
dataType: "string"
|
|
1510
|
+
}
|
|
1511
|
+
]
|
|
1512
|
+
});
|
|
1513
|
+
return sdkResponse;
|
|
1514
|
+
}
|
|
1515
|
+
catch (err) {
|
|
1516
|
+
throw err;
|
|
1517
|
+
}
|
|
1518
|
+
});
|
|
1519
|
+
}
|
|
1335
1520
|
/**
|
|
1336
1521
|
* Disable external database resource monitoring. All the references in DBaaS,
|
|
1337
1522
|
* DBM and resource service will be deleted as part of this operation.
|
|
@@ -1340,7 +1525,7 @@ class StackMonitoringClient {
|
|
|
1340
1525
|
* @param DisableExternalDatabaseRequest
|
|
1341
1526
|
* @return DisableExternalDatabaseResponse
|
|
1342
1527
|
* @throws OciError when an error occurs
|
|
1343
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1528
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/DisableExternalDatabase.ts.html |here} to see how to use DisableExternalDatabase API.
|
|
1344
1529
|
*/
|
|
1345
1530
|
disableExternalDatabase(disableExternalDatabaseRequest) {
|
|
1346
1531
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1402,7 +1587,7 @@ class StackMonitoringClient {
|
|
|
1402
1587
|
* @param DisableMetricExtensionRequest
|
|
1403
1588
|
* @return DisableMetricExtensionResponse
|
|
1404
1589
|
* @throws OciError when an error occurs
|
|
1405
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1590
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/DisableMetricExtension.ts.html |here} to see how to use DisableMetricExtension API.
|
|
1406
1591
|
*/
|
|
1407
1592
|
disableMetricExtension(disableMetricExtensionRequest) {
|
|
1408
1593
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1464,7 +1649,7 @@ class StackMonitoringClient {
|
|
|
1464
1649
|
* @param DisassociateMonitoredResourcesRequest
|
|
1465
1650
|
* @return DisassociateMonitoredResourcesResponse
|
|
1466
1651
|
* @throws OciError when an error occurs
|
|
1467
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1652
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/DisassociateMonitoredResources.ts.html |here} to see how to use DisassociateMonitoredResources API.
|
|
1468
1653
|
*/
|
|
1469
1654
|
disassociateMonitoredResources(disassociateMonitoredResourcesRequest) {
|
|
1470
1655
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1520,7 +1705,7 @@ class StackMonitoringClient {
|
|
|
1520
1705
|
* @param EnableMetricExtensionRequest
|
|
1521
1706
|
* @return EnableMetricExtensionResponse
|
|
1522
1707
|
* @throws OciError when an error occurs
|
|
1523
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1708
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/EnableMetricExtension.ts.html |here} to see how to use EnableMetricExtension API.
|
|
1524
1709
|
*/
|
|
1525
1710
|
enableMetricExtension(enableMetricExtensionRequest) {
|
|
1526
1711
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1582,7 +1767,7 @@ class StackMonitoringClient {
|
|
|
1582
1767
|
* @param EvaluateBaselineableMetricRequest
|
|
1583
1768
|
* @return EvaluateBaselineableMetricResponse
|
|
1584
1769
|
* @throws OciError when an error occurs
|
|
1585
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1770
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/EvaluateBaselineableMetric.ts.html |here} to see how to use EvaluateBaselineableMetric API.
|
|
1586
1771
|
*/
|
|
1587
1772
|
evaluateBaselineableMetric(evaluateBaselineableMetricRequest) {
|
|
1588
1773
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1650,7 +1835,7 @@ class StackMonitoringClient {
|
|
|
1650
1835
|
* @param ExportMetricExtensionRequest
|
|
1651
1836
|
* @return ExportMetricExtensionResponse
|
|
1652
1837
|
* @throws OciError when an error occurs
|
|
1653
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1838
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ExportMetricExtension.ts.html |here} to see how to use ExportMetricExtension API.
|
|
1654
1839
|
*/
|
|
1655
1840
|
exportMetricExtension(exportMetricExtensionRequest) {
|
|
1656
1841
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1714,7 +1899,7 @@ class StackMonitoringClient {
|
|
|
1714
1899
|
* @param GetBaselineableMetricRequest
|
|
1715
1900
|
* @return GetBaselineableMetricResponse
|
|
1716
1901
|
* @throws OciError when an error occurs
|
|
1717
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1902
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/GetBaselineableMetric.ts.html |here} to see how to use GetBaselineableMetric API.
|
|
1718
1903
|
*/
|
|
1719
1904
|
getBaselineableMetric(getBaselineableMetricRequest) {
|
|
1720
1905
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1782,7 +1967,7 @@ class StackMonitoringClient {
|
|
|
1782
1967
|
* @param GetConfigRequest
|
|
1783
1968
|
* @return GetConfigResponse
|
|
1784
1969
|
* @throws OciError when an error occurs
|
|
1785
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1970
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/GetConfig.ts.html |here} to see how to use GetConfig API.
|
|
1786
1971
|
*/
|
|
1787
1972
|
getConfig(getConfigRequest) {
|
|
1788
1973
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1846,7 +2031,7 @@ class StackMonitoringClient {
|
|
|
1846
2031
|
* @param GetDiscoveryJobRequest
|
|
1847
2032
|
* @return GetDiscoveryJobResponse
|
|
1848
2033
|
* @throws OciError when an error occurs
|
|
1849
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2034
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/GetDiscoveryJob.ts.html |here} to see how to use GetDiscoveryJob API.
|
|
1850
2035
|
*/
|
|
1851
2036
|
getDiscoveryJob(getDiscoveryJobRequest) {
|
|
1852
2037
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1909,7 +2094,7 @@ class StackMonitoringClient {
|
|
|
1909
2094
|
* @param GetMetricExtensionRequest
|
|
1910
2095
|
* @return GetMetricExtensionResponse
|
|
1911
2096
|
* @throws OciError when an error occurs
|
|
1912
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2097
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/GetMetricExtension.ts.html |here} to see how to use GetMetricExtension API.
|
|
1913
2098
|
*/
|
|
1914
2099
|
getMetricExtension(getMetricExtensionRequest) {
|
|
1915
2100
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1973,7 +2158,7 @@ class StackMonitoringClient {
|
|
|
1973
2158
|
* @param GetMonitoredResourceRequest
|
|
1974
2159
|
* @return GetMonitoredResourceResponse
|
|
1975
2160
|
* @throws OciError when an error occurs
|
|
1976
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2161
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/GetMonitoredResource.ts.html |here} to see how to use GetMonitoredResource API.
|
|
1977
2162
|
*/
|
|
1978
2163
|
getMonitoredResource(getMonitoredResourceRequest) {
|
|
1979
2164
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2036,7 +2221,7 @@ class StackMonitoringClient {
|
|
|
2036
2221
|
* @param GetMonitoredResourceTaskRequest
|
|
2037
2222
|
* @return GetMonitoredResourceTaskResponse
|
|
2038
2223
|
* @throws OciError when an error occurs
|
|
2039
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2224
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/GetMonitoredResourceTask.ts.html |here} to see how to use GetMonitoredResourceTask API.
|
|
2040
2225
|
*/
|
|
2041
2226
|
getMonitoredResourceTask(getMonitoredResourceTaskRequest) {
|
|
2042
2227
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2099,7 +2284,7 @@ class StackMonitoringClient {
|
|
|
2099
2284
|
* @param GetMonitoredResourceTypeRequest
|
|
2100
2285
|
* @return GetMonitoredResourceTypeResponse
|
|
2101
2286
|
* @throws OciError when an error occurs
|
|
2102
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2287
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/GetMonitoredResourceType.ts.html |here} to see how to use GetMonitoredResourceType API.
|
|
2103
2288
|
*/
|
|
2104
2289
|
getMonitoredResourceType(getMonitoredResourceTypeRequest) {
|
|
2105
2290
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2156,13 +2341,76 @@ class StackMonitoringClient {
|
|
|
2156
2341
|
}
|
|
2157
2342
|
});
|
|
2158
2343
|
}
|
|
2344
|
+
/**
|
|
2345
|
+
* API to get the details of a Process Set by identifier.
|
|
2346
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2347
|
+
* @param GetProcessSetRequest
|
|
2348
|
+
* @return GetProcessSetResponse
|
|
2349
|
+
* @throws OciError when an error occurs
|
|
2350
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/GetProcessSet.ts.html |here} to see how to use GetProcessSet API.
|
|
2351
|
+
*/
|
|
2352
|
+
getProcessSet(getProcessSetRequest) {
|
|
2353
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2354
|
+
if (this.logger)
|
|
2355
|
+
this.logger.debug("Calling operation StackMonitoringClient#getProcessSet.");
|
|
2356
|
+
const operationName = "getProcessSet";
|
|
2357
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/ProcessSet/GetProcessSet";
|
|
2358
|
+
const pathParams = {
|
|
2359
|
+
"{processSetId}": getProcessSetRequest.processSetId
|
|
2360
|
+
};
|
|
2361
|
+
const queryParams = {};
|
|
2362
|
+
let headerParams = {
|
|
2363
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2364
|
+
"opc-request-id": getProcessSetRequest.opcRequestId
|
|
2365
|
+
};
|
|
2366
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2367
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getProcessSetRequest.retryConfiguration, specRetryConfiguration);
|
|
2368
|
+
if (this.logger)
|
|
2369
|
+
retrier.logger = this.logger;
|
|
2370
|
+
const request = yield oci_common_1.composeRequest({
|
|
2371
|
+
baseEndpoint: this._endpoint,
|
|
2372
|
+
defaultHeaders: this._defaultHeaders,
|
|
2373
|
+
path: "/processSets/{processSetId}",
|
|
2374
|
+
method: "GET",
|
|
2375
|
+
pathParams: pathParams,
|
|
2376
|
+
headerParams: headerParams,
|
|
2377
|
+
queryParams: queryParams
|
|
2378
|
+
});
|
|
2379
|
+
try {
|
|
2380
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2381
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2382
|
+
responseObject: {},
|
|
2383
|
+
body: yield response.json(),
|
|
2384
|
+
bodyKey: "processSet",
|
|
2385
|
+
bodyModel: model.ProcessSet,
|
|
2386
|
+
type: "model.ProcessSet",
|
|
2387
|
+
responseHeaders: [
|
|
2388
|
+
{
|
|
2389
|
+
value: response.headers.get("etag"),
|
|
2390
|
+
key: "etag",
|
|
2391
|
+
dataType: "string"
|
|
2392
|
+
},
|
|
2393
|
+
{
|
|
2394
|
+
value: response.headers.get("opc-request-id"),
|
|
2395
|
+
key: "opcRequestId",
|
|
2396
|
+
dataType: "string"
|
|
2397
|
+
}
|
|
2398
|
+
]
|
|
2399
|
+
});
|
|
2400
|
+
return sdkResponse;
|
|
2401
|
+
}
|
|
2402
|
+
catch (err) {
|
|
2403
|
+
throw err;
|
|
2404
|
+
}
|
|
2405
|
+
});
|
|
2406
|
+
}
|
|
2159
2407
|
/**
|
|
2160
2408
|
* Gets the status of the work request with the given ID.
|
|
2161
2409
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2162
2410
|
* @param GetWorkRequestRequest
|
|
2163
2411
|
* @return GetWorkRequestResponse
|
|
2164
2412
|
* @throws OciError when an error occurs
|
|
2165
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2413
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
2166
2414
|
*/
|
|
2167
2415
|
getWorkRequest(getWorkRequestRequest) {
|
|
2168
2416
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2225,7 +2473,7 @@ class StackMonitoringClient {
|
|
|
2225
2473
|
* @param ListBaselineableMetricsRequest
|
|
2226
2474
|
* @return ListBaselineableMetricsResponse
|
|
2227
2475
|
* @throws OciError when an error occurs
|
|
2228
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2476
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ListBaselineableMetrics.ts.html |here} to see how to use ListBaselineableMetrics API.
|
|
2229
2477
|
*/
|
|
2230
2478
|
listBaselineableMetrics(listBaselineableMetricsRequest) {
|
|
2231
2479
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2302,7 +2550,7 @@ class StackMonitoringClient {
|
|
|
2302
2550
|
* @param ListConfigsRequest
|
|
2303
2551
|
* @return ListConfigsResponse
|
|
2304
2552
|
* @throws OciError when an error occurs
|
|
2305
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2553
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ListConfigs.ts.html |here} to see how to use ListConfigs API.
|
|
2306
2554
|
*/
|
|
2307
2555
|
listConfigs(listConfigsRequest) {
|
|
2308
2556
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2373,7 +2621,7 @@ class StackMonitoringClient {
|
|
|
2373
2621
|
* @param ListDiscoveryJobLogsRequest
|
|
2374
2622
|
* @return ListDiscoveryJobLogsResponse
|
|
2375
2623
|
* @throws OciError when an error occurs
|
|
2376
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2624
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ListDiscoveryJobLogs.ts.html |here} to see how to use ListDiscoveryJobLogs API.
|
|
2377
2625
|
*/
|
|
2378
2626
|
listDiscoveryJobLogs(listDiscoveryJobLogsRequest) {
|
|
2379
2627
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2443,7 +2691,7 @@ class StackMonitoringClient {
|
|
|
2443
2691
|
* @param ListDiscoveryJobsRequest
|
|
2444
2692
|
* @return ListDiscoveryJobsResponse
|
|
2445
2693
|
* @throws OciError when an error occurs
|
|
2446
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2694
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ListDiscoveryJobs.ts.html |here} to see how to use ListDiscoveryJobs API.
|
|
2447
2695
|
*/
|
|
2448
2696
|
listDiscoveryJobs(listDiscoveryJobsRequest) {
|
|
2449
2697
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2511,7 +2759,7 @@ class StackMonitoringClient {
|
|
|
2511
2759
|
* @param ListMetricExtensionsRequest
|
|
2512
2760
|
* @return ListMetricExtensionsResponse
|
|
2513
2761
|
* @throws OciError when an error occurs
|
|
2514
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2762
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ListMetricExtensions.ts.html |here} to see how to use ListMetricExtensions API.
|
|
2515
2763
|
*/
|
|
2516
2764
|
listMetricExtensions(listMetricExtensionsRequest) {
|
|
2517
2765
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2584,7 +2832,7 @@ class StackMonitoringClient {
|
|
|
2584
2832
|
* @param ListMonitoredResourceTasksRequest
|
|
2585
2833
|
* @return ListMonitoredResourceTasksResponse
|
|
2586
2834
|
* @throws OciError when an error occurs
|
|
2587
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2835
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ListMonitoredResourceTasks.ts.html |here} to see how to use ListMonitoredResourceTasks API.
|
|
2588
2836
|
*/
|
|
2589
2837
|
listMonitoredResourceTasks(listMonitoredResourceTasksRequest) {
|
|
2590
2838
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2663,7 +2911,7 @@ class StackMonitoringClient {
|
|
|
2663
2911
|
* @param ListMonitoredResourceTypesRequest
|
|
2664
2912
|
* @return ListMonitoredResourceTypesResponse
|
|
2665
2913
|
* @throws OciError when an error occurs
|
|
2666
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2914
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ListMonitoredResourceTypes.ts.html |here} to see how to use ListMonitoredResourceTypes API.
|
|
2667
2915
|
*/
|
|
2668
2916
|
listMonitoredResourceTypes(listMonitoredResourceTypesRequest) {
|
|
2669
2917
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2741,7 +2989,7 @@ class StackMonitoringClient {
|
|
|
2741
2989
|
* @param ListMonitoredResourcesRequest
|
|
2742
2990
|
* @return ListMonitoredResourcesResponse
|
|
2743
2991
|
* @throws OciError when an error occurs
|
|
2744
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2992
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ListMonitoredResources.ts.html |here} to see how to use ListMonitoredResources API.
|
|
2745
2993
|
*/
|
|
2746
2994
|
listMonitoredResources(listMonitoredResourcesRequest) {
|
|
2747
2995
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2809,6 +3057,74 @@ class StackMonitoringClient {
|
|
|
2809
3057
|
}
|
|
2810
3058
|
});
|
|
2811
3059
|
}
|
|
3060
|
+
/**
|
|
3061
|
+
* API to get the details of all Process Sets.
|
|
3062
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3063
|
+
* @param ListProcessSetsRequest
|
|
3064
|
+
* @return ListProcessSetsResponse
|
|
3065
|
+
* @throws OciError when an error occurs
|
|
3066
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ListProcessSets.ts.html |here} to see how to use ListProcessSets API.
|
|
3067
|
+
*/
|
|
3068
|
+
listProcessSets(listProcessSetsRequest) {
|
|
3069
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3070
|
+
if (this.logger)
|
|
3071
|
+
this.logger.debug("Calling operation StackMonitoringClient#listProcessSets.");
|
|
3072
|
+
const operationName = "listProcessSets";
|
|
3073
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/ProcessSetCollection/ListProcessSets";
|
|
3074
|
+
const pathParams = {};
|
|
3075
|
+
const queryParams = {
|
|
3076
|
+
"compartmentId": listProcessSetsRequest.compartmentId,
|
|
3077
|
+
"limit": listProcessSetsRequest.limit,
|
|
3078
|
+
"page": listProcessSetsRequest.page,
|
|
3079
|
+
"sortOrder": listProcessSetsRequest.sortOrder,
|
|
3080
|
+
"sortBy": listProcessSetsRequest.sortBy,
|
|
3081
|
+
"displayName": listProcessSetsRequest.displayName
|
|
3082
|
+
};
|
|
3083
|
+
let headerParams = {
|
|
3084
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3085
|
+
"opc-request-id": listProcessSetsRequest.opcRequestId
|
|
3086
|
+
};
|
|
3087
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3088
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listProcessSetsRequest.retryConfiguration, specRetryConfiguration);
|
|
3089
|
+
if (this.logger)
|
|
3090
|
+
retrier.logger = this.logger;
|
|
3091
|
+
const request = yield oci_common_1.composeRequest({
|
|
3092
|
+
baseEndpoint: this._endpoint,
|
|
3093
|
+
defaultHeaders: this._defaultHeaders,
|
|
3094
|
+
path: "/processSets",
|
|
3095
|
+
method: "GET",
|
|
3096
|
+
pathParams: pathParams,
|
|
3097
|
+
headerParams: headerParams,
|
|
3098
|
+
queryParams: queryParams
|
|
3099
|
+
});
|
|
3100
|
+
try {
|
|
3101
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3102
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3103
|
+
responseObject: {},
|
|
3104
|
+
body: yield response.json(),
|
|
3105
|
+
bodyKey: "processSetCollection",
|
|
3106
|
+
bodyModel: model.ProcessSetCollection,
|
|
3107
|
+
type: "model.ProcessSetCollection",
|
|
3108
|
+
responseHeaders: [
|
|
3109
|
+
{
|
|
3110
|
+
value: response.headers.get("opc-next-page"),
|
|
3111
|
+
key: "opcNextPage",
|
|
3112
|
+
dataType: "string"
|
|
3113
|
+
},
|
|
3114
|
+
{
|
|
3115
|
+
value: response.headers.get("opc-request-id"),
|
|
3116
|
+
key: "opcRequestId",
|
|
3117
|
+
dataType: "string"
|
|
3118
|
+
}
|
|
3119
|
+
]
|
|
3120
|
+
});
|
|
3121
|
+
return sdkResponse;
|
|
3122
|
+
}
|
|
3123
|
+
catch (err) {
|
|
3124
|
+
throw err;
|
|
3125
|
+
}
|
|
3126
|
+
});
|
|
3127
|
+
}
|
|
2812
3128
|
/**
|
|
2813
3129
|
* Return a (paginated) list of errors for a given work request.
|
|
2814
3130
|
*
|
|
@@ -2816,7 +3132,7 @@ class StackMonitoringClient {
|
|
|
2816
3132
|
* @param ListWorkRequestErrorsRequest
|
|
2817
3133
|
* @return ListWorkRequestErrorsResponse
|
|
2818
3134
|
* @throws OciError when an error occurs
|
|
2819
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3135
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
2820
3136
|
*/
|
|
2821
3137
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
2822
3138
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2885,7 +3201,7 @@ class StackMonitoringClient {
|
|
|
2885
3201
|
* @param ListWorkRequestLogsRequest
|
|
2886
3202
|
* @return ListWorkRequestLogsResponse
|
|
2887
3203
|
* @throws OciError when an error occurs
|
|
2888
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3204
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
2889
3205
|
*/
|
|
2890
3206
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
2891
3207
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2954,7 +3270,7 @@ class StackMonitoringClient {
|
|
|
2954
3270
|
* @param ListWorkRequestsRequest
|
|
2955
3271
|
* @return ListWorkRequestsResponse
|
|
2956
3272
|
* @throws OciError when an error occurs
|
|
2957
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3273
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
2958
3274
|
*/
|
|
2959
3275
|
listWorkRequests(listWorkRequestsRequest) {
|
|
2960
3276
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3029,7 +3345,7 @@ class StackMonitoringClient {
|
|
|
3029
3345
|
* @param ManageLicenseRequest
|
|
3030
3346
|
* @return ManageLicenseResponse
|
|
3031
3347
|
* @throws OciError when an error occurs
|
|
3032
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3348
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/ManageLicense.ts.html |here} to see how to use ManageLicense API.
|
|
3033
3349
|
*/
|
|
3034
3350
|
manageLicense(manageLicenseRequest) {
|
|
3035
3351
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3086,7 +3402,7 @@ class StackMonitoringClient {
|
|
|
3086
3402
|
* @param PublishMetricExtensionRequest
|
|
3087
3403
|
* @return PublishMetricExtensionResponse
|
|
3088
3404
|
* @throws OciError when an error occurs
|
|
3089
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3405
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/PublishMetricExtension.ts.html |here} to see how to use PublishMetricExtension API.
|
|
3090
3406
|
*/
|
|
3091
3407
|
publishMetricExtension(publishMetricExtensionRequest) {
|
|
3092
3408
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3157,7 +3473,7 @@ class StackMonitoringClient {
|
|
|
3157
3473
|
* @param RequestMonitoredResourcesSummarizedCountRequest
|
|
3158
3474
|
* @return RequestMonitoredResourcesSummarizedCountResponse
|
|
3159
3475
|
* @throws OciError when an error occurs
|
|
3160
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3476
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/RequestMonitoredResourcesSummarizedCount.ts.html |here} to see how to use RequestMonitoredResourcesSummarizedCount API.
|
|
3161
3477
|
*/
|
|
3162
3478
|
requestMonitoredResourcesSummarizedCount(requestMonitoredResourcesSummarizedCountRequest) {
|
|
3163
3479
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3234,7 +3550,7 @@ class StackMonitoringClient {
|
|
|
3234
3550
|
* @param SearchAssociatedResourcesRequest
|
|
3235
3551
|
* @return SearchAssociatedResourcesResponse
|
|
3236
3552
|
* @throws OciError when an error occurs
|
|
3237
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3553
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/SearchAssociatedResources.ts.html |here} to see how to use SearchAssociatedResources API.
|
|
3238
3554
|
*/
|
|
3239
3555
|
searchAssociatedResources(searchAssociatedResourcesRequest) {
|
|
3240
3556
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3309,7 +3625,7 @@ class StackMonitoringClient {
|
|
|
3309
3625
|
* @param SearchMonitoredResourceAssociationsRequest
|
|
3310
3626
|
* @return SearchMonitoredResourceAssociationsResponse
|
|
3311
3627
|
* @throws OciError when an error occurs
|
|
3312
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3628
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/SearchMonitoredResourceAssociations.ts.html |here} to see how to use SearchMonitoredResourceAssociations API.
|
|
3313
3629
|
*/
|
|
3314
3630
|
searchMonitoredResourceAssociations(searchMonitoredResourceAssociationsRequest) {
|
|
3315
3631
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3382,7 +3698,7 @@ class StackMonitoringClient {
|
|
|
3382
3698
|
* @param SearchMonitoredResourceMembersRequest
|
|
3383
3699
|
* @return SearchMonitoredResourceMembersResponse
|
|
3384
3700
|
* @throws OciError when an error occurs
|
|
3385
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3701
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/SearchMonitoredResourceMembers.ts.html |here} to see how to use SearchMonitoredResourceMembers API.
|
|
3386
3702
|
*/
|
|
3387
3703
|
searchMonitoredResourceMembers(searchMonitoredResourceMembersRequest) {
|
|
3388
3704
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3459,7 +3775,7 @@ class StackMonitoringClient {
|
|
|
3459
3775
|
* @param SearchMonitoredResourcesRequest
|
|
3460
3776
|
* @return SearchMonitoredResourcesResponse
|
|
3461
3777
|
* @throws OciError when an error occurs
|
|
3462
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3778
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/SearchMonitoredResources.ts.html |here} to see how to use SearchMonitoredResources API.
|
|
3463
3779
|
*/
|
|
3464
3780
|
searchMonitoredResources(searchMonitoredResourcesRequest) {
|
|
3465
3781
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3533,7 +3849,7 @@ class StackMonitoringClient {
|
|
|
3533
3849
|
* @param TestMetricExtensionRequest
|
|
3534
3850
|
* @return TestMetricExtensionResponse
|
|
3535
3851
|
* @throws OciError when an error occurs
|
|
3536
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3852
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/TestMetricExtension.ts.html |here} to see how to use TestMetricExtension API.
|
|
3537
3853
|
*/
|
|
3538
3854
|
testMetricExtension(testMetricExtensionRequest) {
|
|
3539
3855
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3608,7 +3924,7 @@ class StackMonitoringClient {
|
|
|
3608
3924
|
* @param UpdateAndPropagateTagsRequest
|
|
3609
3925
|
* @return UpdateAndPropagateTagsResponse
|
|
3610
3926
|
* @throws OciError when an error occurs
|
|
3611
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3927
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/UpdateAndPropagateTags.ts.html |here} to see how to use UpdateAndPropagateTags API.
|
|
3612
3928
|
*/
|
|
3613
3929
|
updateAndPropagateTags(updateAndPropagateTagsRequest) {
|
|
3614
3930
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3670,7 +3986,7 @@ class StackMonitoringClient {
|
|
|
3670
3986
|
* @param UpdateBaselineableMetricRequest
|
|
3671
3987
|
* @return UpdateBaselineableMetricResponse
|
|
3672
3988
|
* @throws OciError when an error occurs
|
|
3673
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3989
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/UpdateBaselineableMetric.ts.html |here} to see how to use UpdateBaselineableMetric API.
|
|
3674
3990
|
*/
|
|
3675
3991
|
updateBaselineableMetric(updateBaselineableMetricRequest) {
|
|
3676
3992
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3740,7 +4056,7 @@ class StackMonitoringClient {
|
|
|
3740
4056
|
* @param UpdateConfigRequest
|
|
3741
4057
|
* @return UpdateConfigResponse
|
|
3742
4058
|
* @throws OciError when an error occurs
|
|
3743
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4059
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/UpdateConfig.ts.html |here} to see how to use UpdateConfig API.
|
|
3744
4060
|
*/
|
|
3745
4061
|
updateConfig(updateConfigRequest) {
|
|
3746
4062
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3805,7 +4121,7 @@ class StackMonitoringClient {
|
|
|
3805
4121
|
* @param UpdateMetricExtensionRequest
|
|
3806
4122
|
* @return UpdateMetricExtensionResponse
|
|
3807
4123
|
* @throws OciError when an error occurs
|
|
3808
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4124
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/UpdateMetricExtension.ts.html |here} to see how to use UpdateMetricExtension API.
|
|
3809
4125
|
*/
|
|
3810
4126
|
updateMetricExtension(updateMetricExtensionRequest) {
|
|
3811
4127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3878,7 +4194,7 @@ class StackMonitoringClient {
|
|
|
3878
4194
|
* @param UpdateMonitoredResourceRequest
|
|
3879
4195
|
* @return UpdateMonitoredResourceResponse
|
|
3880
4196
|
* @throws OciError when an error occurs
|
|
3881
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4197
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/UpdateMonitoredResource.ts.html |here} to see how to use UpdateMonitoredResource API.
|
|
3882
4198
|
*/
|
|
3883
4199
|
updateMonitoredResource(updateMonitoredResourceRequest) {
|
|
3884
4200
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3940,7 +4256,7 @@ class StackMonitoringClient {
|
|
|
3940
4256
|
* @param UpdateMonitoredResourceTaskRequest
|
|
3941
4257
|
* @return UpdateMonitoredResourceTaskResponse
|
|
3942
4258
|
* @throws OciError when an error occurs
|
|
3943
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4259
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/UpdateMonitoredResourceTask.ts.html |here} to see how to use UpdateMonitoredResourceTask API.
|
|
3944
4260
|
*/
|
|
3945
4261
|
updateMonitoredResourceTask(updateMonitoredResourceTaskRequest) {
|
|
3946
4262
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4006,7 +4322,7 @@ class StackMonitoringClient {
|
|
|
4006
4322
|
* @param UpdateMonitoredResourceTypeRequest
|
|
4007
4323
|
* @return UpdateMonitoredResourceTypeResponse
|
|
4008
4324
|
* @throws OciError when an error occurs
|
|
4009
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4325
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/UpdateMonitoredResourceType.ts.html |here} to see how to use UpdateMonitoredResourceType API.
|
|
4010
4326
|
*/
|
|
4011
4327
|
updateMonitoredResourceType(updateMonitoredResourceTypeRequest) {
|
|
4012
4328
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4065,6 +4381,71 @@ class StackMonitoringClient {
|
|
|
4065
4381
|
}
|
|
4066
4382
|
});
|
|
4067
4383
|
}
|
|
4384
|
+
/**
|
|
4385
|
+
* API to update a Process Set identified by a given ocid.
|
|
4386
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4387
|
+
* @param UpdateProcessSetRequest
|
|
4388
|
+
* @return UpdateProcessSetResponse
|
|
4389
|
+
* @throws OciError when an error occurs
|
|
4390
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/stackmonitoring/UpdateProcessSet.ts.html |here} to see how to use UpdateProcessSet API.
|
|
4391
|
+
*/
|
|
4392
|
+
updateProcessSet(updateProcessSetRequest) {
|
|
4393
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4394
|
+
if (this.logger)
|
|
4395
|
+
this.logger.debug("Calling operation StackMonitoringClient#updateProcessSet.");
|
|
4396
|
+
const operationName = "updateProcessSet";
|
|
4397
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/ProcessSet/UpdateProcessSet";
|
|
4398
|
+
const pathParams = {
|
|
4399
|
+
"{processSetId}": updateProcessSetRequest.processSetId
|
|
4400
|
+
};
|
|
4401
|
+
const queryParams = {};
|
|
4402
|
+
let headerParams = {
|
|
4403
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4404
|
+
"opc-request-id": updateProcessSetRequest.opcRequestId,
|
|
4405
|
+
"if-match": updateProcessSetRequest.ifMatch
|
|
4406
|
+
};
|
|
4407
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4408
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateProcessSetRequest.retryConfiguration, specRetryConfiguration);
|
|
4409
|
+
if (this.logger)
|
|
4410
|
+
retrier.logger = this.logger;
|
|
4411
|
+
const request = yield oci_common_1.composeRequest({
|
|
4412
|
+
baseEndpoint: this._endpoint,
|
|
4413
|
+
defaultHeaders: this._defaultHeaders,
|
|
4414
|
+
path: "/processSets/{processSetId}",
|
|
4415
|
+
method: "PUT",
|
|
4416
|
+
bodyContent: common.ObjectSerializer.serialize(updateProcessSetRequest.updateProcessSetDetails, "UpdateProcessSetDetails", model.UpdateProcessSetDetails.getJsonObj),
|
|
4417
|
+
pathParams: pathParams,
|
|
4418
|
+
headerParams: headerParams,
|
|
4419
|
+
queryParams: queryParams
|
|
4420
|
+
});
|
|
4421
|
+
try {
|
|
4422
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4423
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4424
|
+
responseObject: {},
|
|
4425
|
+
body: yield response.json(),
|
|
4426
|
+
bodyKey: "processSet",
|
|
4427
|
+
bodyModel: model.ProcessSet,
|
|
4428
|
+
type: "model.ProcessSet",
|
|
4429
|
+
responseHeaders: [
|
|
4430
|
+
{
|
|
4431
|
+
value: response.headers.get("etag"),
|
|
4432
|
+
key: "etag",
|
|
4433
|
+
dataType: "string"
|
|
4434
|
+
},
|
|
4435
|
+
{
|
|
4436
|
+
value: response.headers.get("opc-request-id"),
|
|
4437
|
+
key: "opcRequestId",
|
|
4438
|
+
dataType: "string"
|
|
4439
|
+
}
|
|
4440
|
+
]
|
|
4441
|
+
});
|
|
4442
|
+
return sdkResponse;
|
|
4443
|
+
}
|
|
4444
|
+
catch (err) {
|
|
4445
|
+
throw err;
|
|
4446
|
+
}
|
|
4447
|
+
});
|
|
4448
|
+
}
|
|
4068
4449
|
}
|
|
4069
4450
|
exports.StackMonitoringClient = StackMonitoringClient;
|
|
4070
4451
|
StackMonitoringClient.serviceEndpointTemplate = "https://stack-monitoring.{region}.oci.{secondLevelDomain}";
|