oci-stackmonitoring 2.25.0 → 2.28.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 +33 -32
- package/lib/client.js +105 -64
- package/lib/client.js.map +1 -1
- package/lib/model/monitored-resource-credential.js +2 -2
- package/lib/model/monitored-resource-credential.js.map +1 -1
- package/lib/model/work-request.d.ts +1 -1
- package/lib/request/associate-monitored-resources-request.d.ts +1 -1
- package/lib/request/change-monitored-resource-compartment-request.d.ts +1 -1
- package/lib/request/create-discovery-job-request.d.ts +1 -1
- package/lib/request/create-monitored-resource-request.d.ts +1 -1
- package/lib/request/delete-discovery-job-request.d.ts +1 -1
- package/lib/request/delete-monitored-resource-request.d.ts +1 -1
- package/lib/request/disable-external-database-request.d.ts +1 -1
- package/lib/request/disassociate-monitored-resources-request.d.ts +1 -1
- package/lib/request/get-discovery-job-request.d.ts +1 -1
- package/lib/request/get-monitored-resource-request.d.ts +1 -1
- package/lib/request/get-work-request-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-work-request-errors-request.d.ts +2 -2
- package/lib/request/list-work-request-logs-request.d.ts +2 -2
- package/lib/request/list-work-requests-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/update-monitored-resource-request.d.ts +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -60,6 +60,7 @@ class StackMonitoringClient {
|
|
|
60
60
|
this["_defaultHeaders"] = {};
|
|
61
61
|
this._circuitBreaker = null;
|
|
62
62
|
this._httpOptions = undefined;
|
|
63
|
+
this.targetService = "StackMonitoring";
|
|
63
64
|
const requestSigner = params.authenticationDetailsProvider
|
|
64
65
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
65
66
|
: null;
|
|
@@ -155,12 +156,14 @@ class StackMonitoringClient {
|
|
|
155
156
|
* @param AssociateMonitoredResourcesRequest
|
|
156
157
|
* @return AssociateMonitoredResourcesResponse
|
|
157
158
|
* @throws OciError when an error occurs
|
|
158
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
159
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/AssociateMonitoredResources.ts.html |here} to see how to use AssociateMonitoredResources API.
|
|
159
160
|
*/
|
|
160
161
|
associateMonitoredResources(associateMonitoredResourcesRequest) {
|
|
161
162
|
return __awaiter(this, void 0, void 0, function* () {
|
|
162
163
|
if (this.logger)
|
|
163
164
|
this.logger.debug("Calling operation StackMonitoringClient#associateMonitoredResources.");
|
|
165
|
+
const operationName = "associateMonitoredResources";
|
|
166
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResource/AssociateMonitoredResources";
|
|
164
167
|
const pathParams = {};
|
|
165
168
|
const queryParams = {};
|
|
166
169
|
let headerParams = {
|
|
@@ -184,7 +187,7 @@ class StackMonitoringClient {
|
|
|
184
187
|
queryParams: queryParams
|
|
185
188
|
});
|
|
186
189
|
try {
|
|
187
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
190
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
188
191
|
const sdkResponse = oci_common_1.composeResponse({
|
|
189
192
|
responseObject: {},
|
|
190
193
|
body: yield response.json(),
|
|
@@ -217,12 +220,14 @@ class StackMonitoringClient {
|
|
|
217
220
|
* @param ChangeMonitoredResourceCompartmentRequest
|
|
218
221
|
* @return ChangeMonitoredResourceCompartmentResponse
|
|
219
222
|
* @throws OciError when an error occurs
|
|
220
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
223
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/ChangeMonitoredResourceCompartment.ts.html |here} to see how to use ChangeMonitoredResourceCompartment API.
|
|
221
224
|
*/
|
|
222
225
|
changeMonitoredResourceCompartment(changeMonitoredResourceCompartmentRequest) {
|
|
223
226
|
return __awaiter(this, void 0, void 0, function* () {
|
|
224
227
|
if (this.logger)
|
|
225
228
|
this.logger.debug("Calling operation StackMonitoringClient#changeMonitoredResourceCompartment.");
|
|
229
|
+
const operationName = "changeMonitoredResourceCompartment";
|
|
230
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResource/ChangeMonitoredResourceCompartment";
|
|
226
231
|
const pathParams = {
|
|
227
232
|
"{monitoredResourceId}": changeMonitoredResourceCompartmentRequest.monitoredResourceId
|
|
228
233
|
};
|
|
@@ -248,7 +253,7 @@ class StackMonitoringClient {
|
|
|
248
253
|
queryParams: queryParams
|
|
249
254
|
});
|
|
250
255
|
try {
|
|
251
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
256
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
252
257
|
const sdkResponse = oci_common_1.composeResponse({
|
|
253
258
|
responseObject: {},
|
|
254
259
|
responseHeaders: [
|
|
@@ -278,12 +283,14 @@ class StackMonitoringClient {
|
|
|
278
283
|
* @param CreateDiscoveryJobRequest
|
|
279
284
|
* @return CreateDiscoveryJobResponse
|
|
280
285
|
* @throws OciError when an error occurs
|
|
281
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
286
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/CreateDiscoveryJob.ts.html |here} to see how to use CreateDiscoveryJob API.
|
|
282
287
|
*/
|
|
283
288
|
createDiscoveryJob(createDiscoveryJobRequest) {
|
|
284
289
|
return __awaiter(this, void 0, void 0, function* () {
|
|
285
290
|
if (this.logger)
|
|
286
291
|
this.logger.debug("Calling operation StackMonitoringClient#createDiscoveryJob.");
|
|
292
|
+
const operationName = "createDiscoveryJob";
|
|
293
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/DiscoveryJob/CreateDiscoveryJob";
|
|
287
294
|
const pathParams = {};
|
|
288
295
|
const queryParams = {};
|
|
289
296
|
let headerParams = {
|
|
@@ -306,7 +313,7 @@ class StackMonitoringClient {
|
|
|
306
313
|
queryParams: queryParams
|
|
307
314
|
});
|
|
308
315
|
try {
|
|
309
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
316
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
310
317
|
const sdkResponse = oci_common_1.composeResponse({
|
|
311
318
|
responseObject: {},
|
|
312
319
|
body: yield response.json(),
|
|
@@ -340,12 +347,14 @@ class StackMonitoringClient {
|
|
|
340
347
|
* @param CreateMonitoredResourceRequest
|
|
341
348
|
* @return CreateMonitoredResourceResponse
|
|
342
349
|
* @throws OciError when an error occurs
|
|
343
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
350
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/CreateMonitoredResource.ts.html |here} to see how to use CreateMonitoredResource API.
|
|
344
351
|
*/
|
|
345
352
|
createMonitoredResource(createMonitoredResourceRequest) {
|
|
346
353
|
return __awaiter(this, void 0, void 0, function* () {
|
|
347
354
|
if (this.logger)
|
|
348
355
|
this.logger.debug("Calling operation StackMonitoringClient#createMonitoredResource.");
|
|
356
|
+
const operationName = "createMonitoredResource";
|
|
357
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResource/CreateMonitoredResource";
|
|
349
358
|
const pathParams = {};
|
|
350
359
|
const queryParams = {};
|
|
351
360
|
let headerParams = {
|
|
@@ -369,7 +378,7 @@ class StackMonitoringClient {
|
|
|
369
378
|
queryParams: queryParams
|
|
370
379
|
});
|
|
371
380
|
try {
|
|
372
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
381
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
373
382
|
const sdkResponse = oci_common_1.composeResponse({
|
|
374
383
|
responseObject: {},
|
|
375
384
|
body: yield response.json(),
|
|
@@ -418,16 +427,18 @@ class StackMonitoringClient {
|
|
|
418
427
|
}
|
|
419
428
|
/**
|
|
420
429
|
* Deletes a DiscoveryJob by identifier
|
|
421
|
-
* This operation
|
|
430
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
422
431
|
* @param DeleteDiscoveryJobRequest
|
|
423
432
|
* @return DeleteDiscoveryJobResponse
|
|
424
433
|
* @throws OciError when an error occurs
|
|
425
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
434
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/DeleteDiscoveryJob.ts.html |here} to see how to use DeleteDiscoveryJob API.
|
|
426
435
|
*/
|
|
427
436
|
deleteDiscoveryJob(deleteDiscoveryJobRequest) {
|
|
428
437
|
return __awaiter(this, void 0, void 0, function* () {
|
|
429
438
|
if (this.logger)
|
|
430
439
|
this.logger.debug("Calling operation StackMonitoringClient#deleteDiscoveryJob.");
|
|
440
|
+
const operationName = "deleteDiscoveryJob";
|
|
441
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/DiscoveryJob/DeleteDiscoveryJob";
|
|
431
442
|
const pathParams = {
|
|
432
443
|
"{discoveryJobId}": deleteDiscoveryJobRequest.discoveryJobId
|
|
433
444
|
};
|
|
@@ -437,7 +448,7 @@ class StackMonitoringClient {
|
|
|
437
448
|
"if-match": deleteDiscoveryJobRequest.ifMatch,
|
|
438
449
|
"opc-request-id": deleteDiscoveryJobRequest.opcRequestId
|
|
439
450
|
};
|
|
440
|
-
const specRetryConfiguration = common.
|
|
451
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
441
452
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDiscoveryJobRequest.retryConfiguration, specRetryConfiguration);
|
|
442
453
|
if (this.logger)
|
|
443
454
|
retrier.logger = this.logger;
|
|
@@ -451,7 +462,7 @@ class StackMonitoringClient {
|
|
|
451
462
|
queryParams: queryParams
|
|
452
463
|
});
|
|
453
464
|
try {
|
|
454
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
465
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
455
466
|
const sdkResponse = oci_common_1.composeResponse({
|
|
456
467
|
responseObject: {},
|
|
457
468
|
responseHeaders: [
|
|
@@ -475,12 +486,14 @@ class StackMonitoringClient {
|
|
|
475
486
|
* @param DeleteMonitoredResourceRequest
|
|
476
487
|
* @return DeleteMonitoredResourceResponse
|
|
477
488
|
* @throws OciError when an error occurs
|
|
478
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
489
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/DeleteMonitoredResource.ts.html |here} to see how to use DeleteMonitoredResource API.
|
|
479
490
|
*/
|
|
480
491
|
deleteMonitoredResource(deleteMonitoredResourceRequest) {
|
|
481
492
|
return __awaiter(this, void 0, void 0, function* () {
|
|
482
493
|
if (this.logger)
|
|
483
494
|
this.logger.debug("Calling operation StackMonitoringClient#deleteMonitoredResource.");
|
|
495
|
+
const operationName = "deleteMonitoredResource";
|
|
496
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResource/DeleteMonitoredResource";
|
|
484
497
|
const pathParams = {
|
|
485
498
|
"{monitoredResourceId}": deleteMonitoredResourceRequest.monitoredResourceId
|
|
486
499
|
};
|
|
@@ -504,7 +517,7 @@ class StackMonitoringClient {
|
|
|
504
517
|
queryParams: queryParams
|
|
505
518
|
});
|
|
506
519
|
try {
|
|
507
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
520
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
508
521
|
const sdkResponse = oci_common_1.composeResponse({
|
|
509
522
|
responseObject: {},
|
|
510
523
|
responseHeaders: [
|
|
@@ -534,12 +547,14 @@ class StackMonitoringClient {
|
|
|
534
547
|
* @param DisableExternalDatabaseRequest
|
|
535
548
|
* @return DisableExternalDatabaseResponse
|
|
536
549
|
* @throws OciError when an error occurs
|
|
537
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
550
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/DisableExternalDatabase.ts.html |here} to see how to use DisableExternalDatabase API.
|
|
538
551
|
*/
|
|
539
552
|
disableExternalDatabase(disableExternalDatabaseRequest) {
|
|
540
553
|
return __awaiter(this, void 0, void 0, function* () {
|
|
541
554
|
if (this.logger)
|
|
542
555
|
this.logger.debug("Calling operation StackMonitoringClient#disableExternalDatabase.");
|
|
556
|
+
const operationName = "disableExternalDatabase";
|
|
557
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResource/DisableExternalDatabase";
|
|
543
558
|
const pathParams = {
|
|
544
559
|
"{monitoredResourceId}": disableExternalDatabaseRequest.monitoredResourceId
|
|
545
560
|
};
|
|
@@ -564,7 +579,7 @@ class StackMonitoringClient {
|
|
|
564
579
|
queryParams: queryParams
|
|
565
580
|
});
|
|
566
581
|
try {
|
|
567
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
582
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
568
583
|
const sdkResponse = oci_common_1.composeResponse({
|
|
569
584
|
responseObject: {},
|
|
570
585
|
responseHeaders: [
|
|
@@ -593,12 +608,14 @@ class StackMonitoringClient {
|
|
|
593
608
|
* @param DisassociateMonitoredResourcesRequest
|
|
594
609
|
* @return DisassociateMonitoredResourcesResponse
|
|
595
610
|
* @throws OciError when an error occurs
|
|
596
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
611
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/DisassociateMonitoredResources.ts.html |here} to see how to use DisassociateMonitoredResources API.
|
|
597
612
|
*/
|
|
598
613
|
disassociateMonitoredResources(disassociateMonitoredResourcesRequest) {
|
|
599
614
|
return __awaiter(this, void 0, void 0, function* () {
|
|
600
615
|
if (this.logger)
|
|
601
616
|
this.logger.debug("Calling operation StackMonitoringClient#disassociateMonitoredResources.");
|
|
617
|
+
const operationName = "disassociateMonitoredResources";
|
|
618
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResource/DisassociateMonitoredResources";
|
|
602
619
|
const pathParams = {};
|
|
603
620
|
const queryParams = {};
|
|
604
621
|
let headerParams = {
|
|
@@ -622,7 +639,7 @@ class StackMonitoringClient {
|
|
|
622
639
|
queryParams: queryParams
|
|
623
640
|
});
|
|
624
641
|
try {
|
|
625
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
642
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
626
643
|
const sdkResponse = oci_common_1.composeResponse({
|
|
627
644
|
responseObject: {},
|
|
628
645
|
responseHeaders: [
|
|
@@ -643,16 +660,18 @@ class StackMonitoringClient {
|
|
|
643
660
|
/**
|
|
644
661
|
* API to get the details of discovery Job by identifier.
|
|
645
662
|
*
|
|
646
|
-
* This operation
|
|
663
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
647
664
|
* @param GetDiscoveryJobRequest
|
|
648
665
|
* @return GetDiscoveryJobResponse
|
|
649
666
|
* @throws OciError when an error occurs
|
|
650
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
667
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/GetDiscoveryJob.ts.html |here} to see how to use GetDiscoveryJob API.
|
|
651
668
|
*/
|
|
652
669
|
getDiscoveryJob(getDiscoveryJobRequest) {
|
|
653
670
|
return __awaiter(this, void 0, void 0, function* () {
|
|
654
671
|
if (this.logger)
|
|
655
672
|
this.logger.debug("Calling operation StackMonitoringClient#getDiscoveryJob.");
|
|
673
|
+
const operationName = "getDiscoveryJob";
|
|
674
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/DiscoveryJob/GetDiscoveryJob";
|
|
656
675
|
const pathParams = {
|
|
657
676
|
"{discoveryJobId}": getDiscoveryJobRequest.discoveryJobId
|
|
658
677
|
};
|
|
@@ -661,7 +680,7 @@ class StackMonitoringClient {
|
|
|
661
680
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
662
681
|
"opc-request-id": getDiscoveryJobRequest.opcRequestId
|
|
663
682
|
};
|
|
664
|
-
const specRetryConfiguration = common.
|
|
683
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
665
684
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDiscoveryJobRequest.retryConfiguration, specRetryConfiguration);
|
|
666
685
|
if (this.logger)
|
|
667
686
|
retrier.logger = this.logger;
|
|
@@ -675,7 +694,7 @@ class StackMonitoringClient {
|
|
|
675
694
|
queryParams: queryParams
|
|
676
695
|
});
|
|
677
696
|
try {
|
|
678
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
697
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
679
698
|
const sdkResponse = oci_common_1.composeResponse({
|
|
680
699
|
responseObject: {},
|
|
681
700
|
body: yield response.json(),
|
|
@@ -704,16 +723,18 @@ class StackMonitoringClient {
|
|
|
704
723
|
}
|
|
705
724
|
/**
|
|
706
725
|
* Gets a monitored resource by identifier
|
|
707
|
-
* This operation
|
|
726
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
708
727
|
* @param GetMonitoredResourceRequest
|
|
709
728
|
* @return GetMonitoredResourceResponse
|
|
710
729
|
* @throws OciError when an error occurs
|
|
711
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
730
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/GetMonitoredResource.ts.html |here} to see how to use GetMonitoredResource API.
|
|
712
731
|
*/
|
|
713
732
|
getMonitoredResource(getMonitoredResourceRequest) {
|
|
714
733
|
return __awaiter(this, void 0, void 0, function* () {
|
|
715
734
|
if (this.logger)
|
|
716
735
|
this.logger.debug("Calling operation StackMonitoringClient#getMonitoredResource.");
|
|
736
|
+
const operationName = "getMonitoredResource";
|
|
737
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResource/GetMonitoredResource";
|
|
717
738
|
const pathParams = {
|
|
718
739
|
"{monitoredResourceId}": getMonitoredResourceRequest.monitoredResourceId
|
|
719
740
|
};
|
|
@@ -722,7 +743,7 @@ class StackMonitoringClient {
|
|
|
722
743
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
723
744
|
"opc-request-id": getMonitoredResourceRequest.opcRequestId
|
|
724
745
|
};
|
|
725
|
-
const specRetryConfiguration = common.
|
|
746
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
726
747
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getMonitoredResourceRequest.retryConfiguration, specRetryConfiguration);
|
|
727
748
|
if (this.logger)
|
|
728
749
|
retrier.logger = this.logger;
|
|
@@ -736,7 +757,7 @@ class StackMonitoringClient {
|
|
|
736
757
|
queryParams: queryParams
|
|
737
758
|
});
|
|
738
759
|
try {
|
|
739
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
760
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
740
761
|
const sdkResponse = oci_common_1.composeResponse({
|
|
741
762
|
responseObject: {},
|
|
742
763
|
body: yield response.json(),
|
|
@@ -765,16 +786,18 @@ class StackMonitoringClient {
|
|
|
765
786
|
}
|
|
766
787
|
/**
|
|
767
788
|
* Gets the status of the work request with the given ID.
|
|
768
|
-
* This operation
|
|
789
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
769
790
|
* @param GetWorkRequestRequest
|
|
770
791
|
* @return GetWorkRequestResponse
|
|
771
792
|
* @throws OciError when an error occurs
|
|
772
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
793
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
773
794
|
*/
|
|
774
795
|
getWorkRequest(getWorkRequestRequest) {
|
|
775
796
|
return __awaiter(this, void 0, void 0, function* () {
|
|
776
797
|
if (this.logger)
|
|
777
798
|
this.logger.debug("Calling operation StackMonitoringClient#getWorkRequest.");
|
|
799
|
+
const operationName = "getWorkRequest";
|
|
800
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/WorkRequest/GetWorkRequest";
|
|
778
801
|
const pathParams = {
|
|
779
802
|
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
780
803
|
};
|
|
@@ -783,7 +806,7 @@ class StackMonitoringClient {
|
|
|
783
806
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
784
807
|
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
785
808
|
};
|
|
786
|
-
const specRetryConfiguration = common.
|
|
809
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
787
810
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
788
811
|
if (this.logger)
|
|
789
812
|
retrier.logger = this.logger;
|
|
@@ -797,7 +820,7 @@ class StackMonitoringClient {
|
|
|
797
820
|
queryParams: queryParams
|
|
798
821
|
});
|
|
799
822
|
try {
|
|
800
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
823
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
801
824
|
const sdkResponse = oci_common_1.composeResponse({
|
|
802
825
|
responseObject: {},
|
|
803
826
|
body: yield response.json(),
|
|
@@ -827,16 +850,18 @@ class StackMonitoringClient {
|
|
|
827
850
|
/**
|
|
828
851
|
* API to get all the logs of a Discovery Job.
|
|
829
852
|
*
|
|
830
|
-
* This operation
|
|
853
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
831
854
|
* @param ListDiscoveryJobLogsRequest
|
|
832
855
|
* @return ListDiscoveryJobLogsResponse
|
|
833
856
|
* @throws OciError when an error occurs
|
|
834
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
857
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/ListDiscoveryJobLogs.ts.html |here} to see how to use ListDiscoveryJobLogs API.
|
|
835
858
|
*/
|
|
836
859
|
listDiscoveryJobLogs(listDiscoveryJobLogsRequest) {
|
|
837
860
|
return __awaiter(this, void 0, void 0, function* () {
|
|
838
861
|
if (this.logger)
|
|
839
862
|
this.logger.debug("Calling operation StackMonitoringClient#listDiscoveryJobLogs.");
|
|
863
|
+
const operationName = "listDiscoveryJobLogs";
|
|
864
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/DiscoveryJobLogCollection/ListDiscoveryJobLogs";
|
|
840
865
|
const pathParams = {
|
|
841
866
|
"{discoveryJobId}": listDiscoveryJobLogsRequest.discoveryJobId
|
|
842
867
|
};
|
|
@@ -851,7 +876,7 @@ class StackMonitoringClient {
|
|
|
851
876
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
852
877
|
"opc-request-id": listDiscoveryJobLogsRequest.opcRequestId
|
|
853
878
|
};
|
|
854
|
-
const specRetryConfiguration = common.
|
|
879
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
855
880
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDiscoveryJobLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
856
881
|
if (this.logger)
|
|
857
882
|
retrier.logger = this.logger;
|
|
@@ -865,7 +890,7 @@ class StackMonitoringClient {
|
|
|
865
890
|
queryParams: queryParams
|
|
866
891
|
});
|
|
867
892
|
try {
|
|
868
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
893
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
869
894
|
const sdkResponse = oci_common_1.composeResponse({
|
|
870
895
|
responseObject: {},
|
|
871
896
|
body: yield response.json(),
|
|
@@ -895,16 +920,18 @@ class StackMonitoringClient {
|
|
|
895
920
|
/**
|
|
896
921
|
* API to get the details of all Discovery Jobs.
|
|
897
922
|
*
|
|
898
|
-
* This operation
|
|
923
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
899
924
|
* @param ListDiscoveryJobsRequest
|
|
900
925
|
* @return ListDiscoveryJobsResponse
|
|
901
926
|
* @throws OciError when an error occurs
|
|
902
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
927
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/ListDiscoveryJobs.ts.html |here} to see how to use ListDiscoveryJobs API.
|
|
903
928
|
*/
|
|
904
929
|
listDiscoveryJobs(listDiscoveryJobsRequest) {
|
|
905
930
|
return __awaiter(this, void 0, void 0, function* () {
|
|
906
931
|
if (this.logger)
|
|
907
932
|
this.logger.debug("Calling operation StackMonitoringClient#listDiscoveryJobs.");
|
|
933
|
+
const operationName = "listDiscoveryJobs";
|
|
934
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/DiscoveryJobCollection/ListDiscoveryJobs";
|
|
908
935
|
const pathParams = {};
|
|
909
936
|
const queryParams = {
|
|
910
937
|
"compartmentId": listDiscoveryJobsRequest.compartmentId,
|
|
@@ -918,7 +945,7 @@ class StackMonitoringClient {
|
|
|
918
945
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
919
946
|
"opc-request-id": listDiscoveryJobsRequest.opcRequestId
|
|
920
947
|
};
|
|
921
|
-
const specRetryConfiguration = common.
|
|
948
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
922
949
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDiscoveryJobsRequest.retryConfiguration, specRetryConfiguration);
|
|
923
950
|
if (this.logger)
|
|
924
951
|
retrier.logger = this.logger;
|
|
@@ -932,7 +959,7 @@ class StackMonitoringClient {
|
|
|
932
959
|
queryParams: queryParams
|
|
933
960
|
});
|
|
934
961
|
try {
|
|
935
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
962
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
936
963
|
const sdkResponse = oci_common_1.composeResponse({
|
|
937
964
|
responseObject: {},
|
|
938
965
|
body: yield response.json(),
|
|
@@ -962,16 +989,18 @@ class StackMonitoringClient {
|
|
|
962
989
|
/**
|
|
963
990
|
* Return a (paginated) list of errors for a given work request.
|
|
964
991
|
*
|
|
965
|
-
* This operation
|
|
992
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
966
993
|
* @param ListWorkRequestErrorsRequest
|
|
967
994
|
* @return ListWorkRequestErrorsResponse
|
|
968
995
|
* @throws OciError when an error occurs
|
|
969
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
996
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
970
997
|
*/
|
|
971
998
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
972
999
|
return __awaiter(this, void 0, void 0, function* () {
|
|
973
1000
|
if (this.logger)
|
|
974
1001
|
this.logger.debug("Calling operation StackMonitoringClient#listWorkRequestErrors.");
|
|
1002
|
+
const operationName = "listWorkRequestErrors";
|
|
1003
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/WorkRequestErrorCollection/ListWorkRequestErrors";
|
|
975
1004
|
const pathParams = {
|
|
976
1005
|
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
977
1006
|
};
|
|
@@ -985,7 +1014,7 @@ class StackMonitoringClient {
|
|
|
985
1014
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
986
1015
|
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
987
1016
|
};
|
|
988
|
-
const specRetryConfiguration = common.
|
|
1017
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
989
1018
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
990
1019
|
if (this.logger)
|
|
991
1020
|
retrier.logger = this.logger;
|
|
@@ -999,7 +1028,7 @@ class StackMonitoringClient {
|
|
|
999
1028
|
queryParams: queryParams
|
|
1000
1029
|
});
|
|
1001
1030
|
try {
|
|
1002
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1031
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1003
1032
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1004
1033
|
responseObject: {},
|
|
1005
1034
|
body: yield response.json(),
|
|
@@ -1029,16 +1058,18 @@ class StackMonitoringClient {
|
|
|
1029
1058
|
/**
|
|
1030
1059
|
* Return a (paginated) list of logs for a given work request.
|
|
1031
1060
|
*
|
|
1032
|
-
* This operation
|
|
1061
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1033
1062
|
* @param ListWorkRequestLogsRequest
|
|
1034
1063
|
* @return ListWorkRequestLogsResponse
|
|
1035
1064
|
* @throws OciError when an error occurs
|
|
1036
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1065
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1037
1066
|
*/
|
|
1038
1067
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1039
1068
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1040
1069
|
if (this.logger)
|
|
1041
1070
|
this.logger.debug("Calling operation StackMonitoringClient#listWorkRequestLogs.");
|
|
1071
|
+
const operationName = "listWorkRequestLogs";
|
|
1072
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/WorkRequestLogEntryCollection/ListWorkRequestLogs";
|
|
1042
1073
|
const pathParams = {
|
|
1043
1074
|
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
1044
1075
|
};
|
|
@@ -1052,7 +1083,7 @@ class StackMonitoringClient {
|
|
|
1052
1083
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1053
1084
|
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
1054
1085
|
};
|
|
1055
|
-
const specRetryConfiguration = common.
|
|
1086
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1056
1087
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1057
1088
|
if (this.logger)
|
|
1058
1089
|
retrier.logger = this.logger;
|
|
@@ -1066,7 +1097,7 @@ class StackMonitoringClient {
|
|
|
1066
1097
|
queryParams: queryParams
|
|
1067
1098
|
});
|
|
1068
1099
|
try {
|
|
1069
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1100
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1070
1101
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1071
1102
|
responseObject: {},
|
|
1072
1103
|
body: yield response.json(),
|
|
@@ -1096,16 +1127,18 @@ class StackMonitoringClient {
|
|
|
1096
1127
|
/**
|
|
1097
1128
|
* Lists the work requests in a compartment.
|
|
1098
1129
|
*
|
|
1099
|
-
* This operation
|
|
1130
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1100
1131
|
* @param ListWorkRequestsRequest
|
|
1101
1132
|
* @return ListWorkRequestsResponse
|
|
1102
1133
|
* @throws OciError when an error occurs
|
|
1103
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1134
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1104
1135
|
*/
|
|
1105
1136
|
listWorkRequests(listWorkRequestsRequest) {
|
|
1106
1137
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1107
1138
|
if (this.logger)
|
|
1108
1139
|
this.logger.debug("Calling operation StackMonitoringClient#listWorkRequests.");
|
|
1140
|
+
const operationName = "listWorkRequests";
|
|
1141
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/WorkRequestSummaryCollection/ListWorkRequests";
|
|
1109
1142
|
const pathParams = {};
|
|
1110
1143
|
const queryParams = {
|
|
1111
1144
|
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
@@ -1121,7 +1154,7 @@ class StackMonitoringClient {
|
|
|
1121
1154
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1122
1155
|
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
1123
1156
|
};
|
|
1124
|
-
const specRetryConfiguration = common.
|
|
1157
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1125
1158
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1126
1159
|
if (this.logger)
|
|
1127
1160
|
retrier.logger = this.logger;
|
|
@@ -1135,7 +1168,7 @@ class StackMonitoringClient {
|
|
|
1135
1168
|
queryParams: queryParams
|
|
1136
1169
|
});
|
|
1137
1170
|
try {
|
|
1138
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1171
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1139
1172
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1140
1173
|
responseObject: {},
|
|
1141
1174
|
body: yield response.json(),
|
|
@@ -1164,16 +1197,18 @@ class StackMonitoringClient {
|
|
|
1164
1197
|
}
|
|
1165
1198
|
/**
|
|
1166
1199
|
* Returns a list of monitored resource associations.
|
|
1167
|
-
* This operation
|
|
1200
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1168
1201
|
* @param SearchMonitoredResourceAssociationsRequest
|
|
1169
1202
|
* @return SearchMonitoredResourceAssociationsResponse
|
|
1170
1203
|
* @throws OciError when an error occurs
|
|
1171
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1204
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/SearchMonitoredResourceAssociations.ts.html |here} to see how to use SearchMonitoredResourceAssociations API.
|
|
1172
1205
|
*/
|
|
1173
1206
|
searchMonitoredResourceAssociations(searchMonitoredResourceAssociationsRequest) {
|
|
1174
1207
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1175
1208
|
if (this.logger)
|
|
1176
1209
|
this.logger.debug("Calling operation StackMonitoringClient#searchMonitoredResourceAssociations.");
|
|
1210
|
+
const operationName = "searchMonitoredResourceAssociations";
|
|
1211
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResource/SearchMonitoredResourceAssociations";
|
|
1177
1212
|
const pathParams = {};
|
|
1178
1213
|
const queryParams = {
|
|
1179
1214
|
"limit": searchMonitoredResourceAssociationsRequest.limit,
|
|
@@ -1185,7 +1220,7 @@ class StackMonitoringClient {
|
|
|
1185
1220
|
"opc-retry-token": searchMonitoredResourceAssociationsRequest.opcRetryToken,
|
|
1186
1221
|
"if-match": searchMonitoredResourceAssociationsRequest.ifMatch
|
|
1187
1222
|
};
|
|
1188
|
-
const specRetryConfiguration = common.
|
|
1223
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1189
1224
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, searchMonitoredResourceAssociationsRequest.retryConfiguration, specRetryConfiguration);
|
|
1190
1225
|
if (this.logger)
|
|
1191
1226
|
retrier.logger = this.logger;
|
|
@@ -1200,7 +1235,7 @@ class StackMonitoringClient {
|
|
|
1200
1235
|
queryParams: queryParams
|
|
1201
1236
|
});
|
|
1202
1237
|
try {
|
|
1203
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1238
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1204
1239
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1205
1240
|
responseObject: {},
|
|
1206
1241
|
body: yield response.json(),
|
|
@@ -1234,16 +1269,18 @@ class StackMonitoringClient {
|
|
|
1234
1269
|
}
|
|
1235
1270
|
/**
|
|
1236
1271
|
* List resources which are members of the given monitored resource
|
|
1237
|
-
* This operation
|
|
1272
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1238
1273
|
* @param SearchMonitoredResourceMembersRequest
|
|
1239
1274
|
* @return SearchMonitoredResourceMembersResponse
|
|
1240
1275
|
* @throws OciError when an error occurs
|
|
1241
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1276
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/SearchMonitoredResourceMembers.ts.html |here} to see how to use SearchMonitoredResourceMembers API.
|
|
1242
1277
|
*/
|
|
1243
1278
|
searchMonitoredResourceMembers(searchMonitoredResourceMembersRequest) {
|
|
1244
1279
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1245
1280
|
if (this.logger)
|
|
1246
1281
|
this.logger.debug("Calling operation StackMonitoringClient#searchMonitoredResourceMembers.");
|
|
1282
|
+
const operationName = "searchMonitoredResourceMembers";
|
|
1283
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResource/SearchMonitoredResourceMembers";
|
|
1247
1284
|
const pathParams = {
|
|
1248
1285
|
"{monitoredResourceId}": searchMonitoredResourceMembersRequest.monitoredResourceId
|
|
1249
1286
|
};
|
|
@@ -1259,7 +1296,7 @@ class StackMonitoringClient {
|
|
|
1259
1296
|
"opc-request-id": searchMonitoredResourceMembersRequest.opcRequestId,
|
|
1260
1297
|
"if-match": searchMonitoredResourceMembersRequest.ifMatch
|
|
1261
1298
|
};
|
|
1262
|
-
const specRetryConfiguration = common.
|
|
1299
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1263
1300
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, searchMonitoredResourceMembersRequest.retryConfiguration, specRetryConfiguration);
|
|
1264
1301
|
if (this.logger)
|
|
1265
1302
|
retrier.logger = this.logger;
|
|
@@ -1274,7 +1311,7 @@ class StackMonitoringClient {
|
|
|
1274
1311
|
queryParams: queryParams
|
|
1275
1312
|
});
|
|
1276
1313
|
try {
|
|
1277
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1314
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1278
1315
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1279
1316
|
responseObject: {},
|
|
1280
1317
|
body: yield response.json(),
|
|
@@ -1308,16 +1345,18 @@ class StackMonitoringClient {
|
|
|
1308
1345
|
}
|
|
1309
1346
|
/**
|
|
1310
1347
|
* Returns a list of monitored resources.
|
|
1311
|
-
* This operation
|
|
1348
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1312
1349
|
* @param SearchMonitoredResourcesRequest
|
|
1313
1350
|
* @return SearchMonitoredResourcesResponse
|
|
1314
1351
|
* @throws OciError when an error occurs
|
|
1315
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1352
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/SearchMonitoredResources.ts.html |here} to see how to use SearchMonitoredResources API.
|
|
1316
1353
|
*/
|
|
1317
1354
|
searchMonitoredResources(searchMonitoredResourcesRequest) {
|
|
1318
1355
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1319
1356
|
if (this.logger)
|
|
1320
1357
|
this.logger.debug("Calling operation StackMonitoringClient#searchMonitoredResources.");
|
|
1358
|
+
const operationName = "searchMonitoredResources";
|
|
1359
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResource/SearchMonitoredResources";
|
|
1321
1360
|
const pathParams = {};
|
|
1322
1361
|
const queryParams = {
|
|
1323
1362
|
"limit": searchMonitoredResourcesRequest.limit,
|
|
@@ -1329,7 +1368,7 @@ class StackMonitoringClient {
|
|
|
1329
1368
|
"opc-retry-token": searchMonitoredResourcesRequest.opcRetryToken,
|
|
1330
1369
|
"if-match": searchMonitoredResourcesRequest.ifMatch
|
|
1331
1370
|
};
|
|
1332
|
-
const specRetryConfiguration = common.
|
|
1371
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1333
1372
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, searchMonitoredResourcesRequest.retryConfiguration, specRetryConfiguration);
|
|
1334
1373
|
if (this.logger)
|
|
1335
1374
|
retrier.logger = this.logger;
|
|
@@ -1344,7 +1383,7 @@ class StackMonitoringClient {
|
|
|
1344
1383
|
queryParams: queryParams
|
|
1345
1384
|
});
|
|
1346
1385
|
try {
|
|
1347
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1386
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1348
1387
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1349
1388
|
responseObject: {},
|
|
1350
1389
|
body: yield response.json(),
|
|
@@ -1382,12 +1421,14 @@ class StackMonitoringClient {
|
|
|
1382
1421
|
* @param UpdateMonitoredResourceRequest
|
|
1383
1422
|
* @return UpdateMonitoredResourceResponse
|
|
1384
1423
|
* @throws OciError when an error occurs
|
|
1385
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1424
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.28.0/stackmonitoring/UpdateMonitoredResource.ts.html |here} to see how to use UpdateMonitoredResource API.
|
|
1386
1425
|
*/
|
|
1387
1426
|
updateMonitoredResource(updateMonitoredResourceRequest) {
|
|
1388
1427
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1389
1428
|
if (this.logger)
|
|
1390
1429
|
this.logger.debug("Calling operation StackMonitoringClient#updateMonitoredResource.");
|
|
1430
|
+
const operationName = "updateMonitoredResource";
|
|
1431
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResource/UpdateMonitoredResource";
|
|
1391
1432
|
const pathParams = {
|
|
1392
1433
|
"{monitoredResourceId}": updateMonitoredResourceRequest.monitoredResourceId
|
|
1393
1434
|
};
|
|
@@ -1412,7 +1453,7 @@ class StackMonitoringClient {
|
|
|
1412
1453
|
queryParams: queryParams
|
|
1413
1454
|
});
|
|
1414
1455
|
try {
|
|
1415
|
-
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1456
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1416
1457
|
const sdkResponse = oci_common_1.composeResponse({
|
|
1417
1458
|
responseObject: {},
|
|
1418
1459
|
responseHeaders: [
|