@alicloud/cms20190101 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +122 -59
- package/dist/client.js +37 -17
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +128 -59
package/dist/client.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
@@ -18614,6 +18624,8 @@ class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson extends $te
|
|
|
18614
18624
|
expectValue: 'expect_value',
|
|
18615
18625
|
failureRate: 'failure_rate',
|
|
18616
18626
|
header: 'header',
|
|
18627
|
+
hostBinding: 'host_binding',
|
|
18628
|
+
hostBindingType: 'host_binding_type',
|
|
18617
18629
|
httpMethod: 'http_method',
|
|
18618
18630
|
ipNetwork: 'ip_network',
|
|
18619
18631
|
isBase64Encode: 'isBase64Encode',
|
|
@@ -18633,6 +18645,7 @@ class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson extends $te
|
|
|
18633
18645
|
responseFormat: 'response_format',
|
|
18634
18646
|
retryDelay: 'retry_delay',
|
|
18635
18647
|
screenShot: 'screen_shot',
|
|
18648
|
+
scrollEnd: 'scroll_end',
|
|
18636
18649
|
strictMode: 'strict_mode',
|
|
18637
18650
|
timeOut: 'time_out',
|
|
18638
18651
|
trafficHijackElementBlacklist: 'traffic_hijack_element_blacklist',
|
|
@@ -18666,6 +18679,8 @@ class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson extends $te
|
|
|
18666
18679
|
expectValue: 'string',
|
|
18667
18680
|
failureRate: 'number',
|
|
18668
18681
|
header: 'string',
|
|
18682
|
+
hostBinding: 'string',
|
|
18683
|
+
hostBindingType: 'number',
|
|
18669
18684
|
httpMethod: 'string',
|
|
18670
18685
|
ipNetwork: 'string',
|
|
18671
18686
|
isBase64Encode: 'string',
|
|
@@ -18685,6 +18700,7 @@ class DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJson extends $te
|
|
|
18685
18700
|
responseFormat: 'string',
|
|
18686
18701
|
retryDelay: 'number',
|
|
18687
18702
|
screenShot: 'boolean',
|
|
18703
|
+
scrollEnd: 'boolean',
|
|
18688
18704
|
strictMode: 'boolean',
|
|
18689
18705
|
timeOut: 'number',
|
|
18690
18706
|
trafficHijackElementBlacklist: DescribeSiteMonitorAttributeResponseBodySiteMonitorsOptionJsonTrafficHijackElementBlacklist,
|
|
@@ -21663,13 +21679,13 @@ class Client extends openapi_client_1.default {
|
|
|
21663
21679
|
return await this.createHybridMonitorNamespaceWithOptions(request, runtime);
|
|
21664
21680
|
}
|
|
21665
21681
|
/**
|
|
21666
|
-
* Creates a Logstore group
|
|
21682
|
+
* Creates a Logstore group of Hybrid Cloud Monitoring.
|
|
21667
21683
|
*
|
|
21668
21684
|
* @remarks
|
|
21669
|
-
* #
|
|
21685
|
+
* ## [](#)Prerequisites
|
|
21670
21686
|
* Simple Log Service is activated. A project and a Logstore are created in Simple Log Service. For more information, see [Getting Started](https://help.aliyun.com/document_detail/54604.html).
|
|
21671
|
-
* #
|
|
21672
|
-
*
|
|
21687
|
+
* ## [](#)Description
|
|
21688
|
+
* This topic provides an example on how to create a Logstore group named `Logstore_test`. The region ID is `cn-hangzhou`. The project is `aliyun-project`. The Logstore is `Logstore-ECS`. The response shows that the Logstore group is created.
|
|
21673
21689
|
*
|
|
21674
21690
|
* @param request - CreateHybridMonitorSLSGroupRequest
|
|
21675
21691
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -21704,13 +21720,13 @@ class Client extends openapi_client_1.default {
|
|
|
21704
21720
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateHybridMonitorSLSGroupResponse({}));
|
|
21705
21721
|
}
|
|
21706
21722
|
/**
|
|
21707
|
-
* Creates a Logstore group
|
|
21723
|
+
* Creates a Logstore group of Hybrid Cloud Monitoring.
|
|
21708
21724
|
*
|
|
21709
21725
|
* @remarks
|
|
21710
|
-
* #
|
|
21726
|
+
* ## [](#)Prerequisites
|
|
21711
21727
|
* Simple Log Service is activated. A project and a Logstore are created in Simple Log Service. For more information, see [Getting Started](https://help.aliyun.com/document_detail/54604.html).
|
|
21712
|
-
* #
|
|
21713
|
-
*
|
|
21728
|
+
* ## [](#)Description
|
|
21729
|
+
* This topic provides an example on how to create a Logstore group named `Logstore_test`. The region ID is `cn-hangzhou`. The project is `aliyun-project`. The Logstore is `Logstore-ECS`. The response shows that the Logstore group is created.
|
|
21714
21730
|
*
|
|
21715
21731
|
* @param request - CreateHybridMonitorSLSGroupRequest
|
|
21716
21732
|
* @returns CreateHybridMonitorSLSGroupResponse
|
|
@@ -24507,7 +24523,7 @@ class Client extends openapi_client_1.default {
|
|
|
24507
24523
|
return await this.describeEventRuleListWithOptions(request, runtime);
|
|
24508
24524
|
}
|
|
24509
24525
|
/**
|
|
24510
|
-
* Queries
|
|
24526
|
+
* Queries event-triggered alert rules.
|
|
24511
24527
|
*
|
|
24512
24528
|
* @remarks
|
|
24513
24529
|
* This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`.
|
|
@@ -24539,7 +24555,7 @@ class Client extends openapi_client_1.default {
|
|
|
24539
24555
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventRuleTargetListResponse({}));
|
|
24540
24556
|
}
|
|
24541
24557
|
/**
|
|
24542
|
-
* Queries
|
|
24558
|
+
* Queries event-triggered alert rules.
|
|
24543
24559
|
*
|
|
24544
24560
|
* @remarks
|
|
24545
24561
|
* This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`.
|
|
@@ -29363,6 +29379,7 @@ class Client extends openapi_client_1.default {
|
|
|
29363
29379
|
*
|
|
29364
29380
|
* @remarks
|
|
29365
29381
|
* This topic provides an example on how to create a threshold-triggered alert rule for the `cpu_total` metric of an Elastic Compute Service (ECS) instance whose ID is `i-uf6j91r34rnwawoo****`. The namespace of ECS metrics is `acs_ecs_dashboard`. The alert contact group of the alert rule is `ECS_Group`. The name of the alert rule is `test123`. The ID of the alert rule is `a151cd6023eacee2f0978e03863cc1697c89508****`. The statistical method for Critical-level alerts is `Average`. The comparison operator for Critical-level alerts is `GreaterThanOrEqualToThreshold`. The threshold for Critical-level alerts is `90`. The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered is `3`.
|
|
29382
|
+
* > Statistics verification was added on August 15, 2024. Only the statistical value of the corresponding metric can be set for the Statistics parameter. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://www.alibabacloud.com/help/en/cms/support/appendix-1-metrics).
|
|
29366
29383
|
*
|
|
29367
29384
|
* @param tmpReq - PutResourceMetricRuleRequest
|
|
29368
29385
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -29454,6 +29471,7 @@ class Client extends openapi_client_1.default {
|
|
|
29454
29471
|
*
|
|
29455
29472
|
* @remarks
|
|
29456
29473
|
* This topic provides an example on how to create a threshold-triggered alert rule for the `cpu_total` metric of an Elastic Compute Service (ECS) instance whose ID is `i-uf6j91r34rnwawoo****`. The namespace of ECS metrics is `acs_ecs_dashboard`. The alert contact group of the alert rule is `ECS_Group`. The name of the alert rule is `test123`. The ID of the alert rule is `a151cd6023eacee2f0978e03863cc1697c89508****`. The statistical method for Critical-level alerts is `Average`. The comparison operator for Critical-level alerts is `GreaterThanOrEqualToThreshold`. The threshold for Critical-level alerts is `90`. The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered is `3`.
|
|
29474
|
+
* > Statistics verification was added on August 15, 2024. Only the statistical value of the corresponding metric can be set for the Statistics parameter. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://www.alibabacloud.com/help/en/cms/support/appendix-1-metrics).
|
|
29457
29475
|
*
|
|
29458
29476
|
* @param request - PutResourceMetricRuleRequest
|
|
29459
29477
|
* @returns PutResourceMetricRuleResponse
|
|
@@ -29467,6 +29485,7 @@ class Client extends openapi_client_1.default {
|
|
|
29467
29485
|
*
|
|
29468
29486
|
* @remarks
|
|
29469
29487
|
* This topic provides an example on how to create a threshold-triggered alert rule for the `cpu_total` metric of an Elastic Compute Service (ECS) instance whose ID is `i-uf6j91r34rnwawoo****`. The namespace of ECS metrics is `acs_ecs_dashboard`. The alert contact group of the alert rule is `ECS_Group`. The name of the alert rule is `test123`. The ID of the alert rule is `a151cd6023eacee2f0978e03863cc1697c89508****`. The statistical method for Critical-level alerts is `Average`. The comparison operator for Critical-level alerts is `GreaterThanOrEqualToThreshold`. The threshold for Critical-level alerts is `90`. The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered is `3`.
|
|
29488
|
+
* > Statistics verification was added on August 15, 2024. Only the statistical value of the corresponding metric can be set for the Statistics parameter. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://www.alibabacloud.com/help/en/cms/support/appendix-1-metrics).
|
|
29470
29489
|
*
|
|
29471
29490
|
* @param request - PutResourceMetricRulesRequest
|
|
29472
29491
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -29499,6 +29518,7 @@ class Client extends openapi_client_1.default {
|
|
|
29499
29518
|
*
|
|
29500
29519
|
* @remarks
|
|
29501
29520
|
* This topic provides an example on how to create a threshold-triggered alert rule for the `cpu_total` metric of an Elastic Compute Service (ECS) instance whose ID is `i-uf6j91r34rnwawoo****`. The namespace of ECS metrics is `acs_ecs_dashboard`. The alert contact group of the alert rule is `ECS_Group`. The name of the alert rule is `test123`. The ID of the alert rule is `a151cd6023eacee2f0978e03863cc1697c89508****`. The statistical method for Critical-level alerts is `Average`. The comparison operator for Critical-level alerts is `GreaterThanOrEqualToThreshold`. The threshold for Critical-level alerts is `90`. The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered is `3`.
|
|
29521
|
+
* > Statistics verification was added on August 15, 2024. Only the statistical value of the corresponding metric can be set for the Statistics parameter. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](https://www.alibabacloud.com/help/en/cms/support/appendix-1-metrics).
|
|
29502
29522
|
*
|
|
29503
29523
|
* @param request - PutResourceMetricRulesRequest
|
|
29504
29524
|
* @returns PutResourceMetricRulesResponse
|