@alicloud/cms20190101 2.0.8 → 2.0.9
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 +176 -174
- package/dist/client.js +191 -174
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +204 -174
package/dist/client.js
CHANGED
|
@@ -4283,6 +4283,7 @@ class DescribeAlertingMetricRuleResourcesRequest extends $tea.Model {
|
|
|
4283
4283
|
}
|
|
4284
4284
|
static names() {
|
|
4285
4285
|
return {
|
|
4286
|
+
alertBeforeTime: 'AlertBeforeTime',
|
|
4286
4287
|
dimensions: 'Dimensions',
|
|
4287
4288
|
groupId: 'GroupId',
|
|
4288
4289
|
namespace: 'Namespace',
|
|
@@ -4294,6 +4295,7 @@ class DescribeAlertingMetricRuleResourcesRequest extends $tea.Model {
|
|
|
4294
4295
|
}
|
|
4295
4296
|
static types() {
|
|
4296
4297
|
return {
|
|
4298
|
+
alertBeforeTime: 'string',
|
|
4297
4299
|
dimensions: 'string',
|
|
4298
4300
|
groupId: 'string',
|
|
4299
4301
|
namespace: 'string',
|
|
@@ -17895,6 +17897,26 @@ class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS extends
|
|
|
17895
17897
|
}
|
|
17896
17898
|
}
|
|
17897
17899
|
exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS;
|
|
17900
|
+
class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser extends $tea.Model {
|
|
17901
|
+
constructor(map) {
|
|
17902
|
+
super(map);
|
|
17903
|
+
}
|
|
17904
|
+
static names() {
|
|
17905
|
+
return {
|
|
17906
|
+
quotaLimit: 'QuotaLimit',
|
|
17907
|
+
quotaPackage: 'QuotaPackage',
|
|
17908
|
+
quotaUsed: 'QuotaUsed',
|
|
17909
|
+
};
|
|
17910
|
+
}
|
|
17911
|
+
static types() {
|
|
17912
|
+
return {
|
|
17913
|
+
quotaLimit: 'number',
|
|
17914
|
+
quotaPackage: 'number',
|
|
17915
|
+
quotaUsed: 'number',
|
|
17916
|
+
};
|
|
17917
|
+
}
|
|
17918
|
+
}
|
|
17919
|
+
exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser;
|
|
17898
17920
|
class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe extends $tea.Model {
|
|
17899
17921
|
constructor(map) {
|
|
17900
17922
|
super(map);
|
|
@@ -17915,6 +17937,26 @@ class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorE
|
|
|
17915
17937
|
}
|
|
17916
17938
|
}
|
|
17917
17939
|
exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe;
|
|
17940
|
+
class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile extends $tea.Model {
|
|
17941
|
+
constructor(map) {
|
|
17942
|
+
super(map);
|
|
17943
|
+
}
|
|
17944
|
+
static names() {
|
|
17945
|
+
return {
|
|
17946
|
+
quotaLimit: 'QuotaLimit',
|
|
17947
|
+
quotaPackage: 'QuotaPackage',
|
|
17948
|
+
quotaUsed: 'QuotaUsed',
|
|
17949
|
+
};
|
|
17950
|
+
}
|
|
17951
|
+
static types() {
|
|
17952
|
+
return {
|
|
17953
|
+
quotaLimit: 'number',
|
|
17954
|
+
quotaPackage: 'number',
|
|
17955
|
+
quotaUsed: 'number',
|
|
17956
|
+
};
|
|
17957
|
+
}
|
|
17958
|
+
}
|
|
17959
|
+
exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile;
|
|
17918
17960
|
class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe extends $tea.Model {
|
|
17919
17961
|
constructor(map) {
|
|
17920
17962
|
super(map);
|
|
@@ -17970,7 +18012,9 @@ class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota extends $te
|
|
|
17970
18012
|
logMonitor: 'LogMonitor',
|
|
17971
18013
|
phone: 'Phone',
|
|
17972
18014
|
SMS: 'SMS',
|
|
18015
|
+
siteMonitorBrowser: 'SiteMonitorBrowser',
|
|
17973
18016
|
siteMonitorEcsProbe: 'SiteMonitorEcsProbe',
|
|
18017
|
+
siteMonitorMobile: 'SiteMonitorMobile',
|
|
17974
18018
|
siteMonitorOperatorProbe: 'SiteMonitorOperatorProbe',
|
|
17975
18019
|
siteMonitorTask: 'SiteMonitorTask',
|
|
17976
18020
|
suitInfo: 'SuitInfo',
|
|
@@ -17987,7 +18031,9 @@ class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota extends $te
|
|
|
17987
18031
|
logMonitor: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor,
|
|
17988
18032
|
phone: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone,
|
|
17989
18033
|
SMS: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS,
|
|
18034
|
+
siteMonitorBrowser: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser,
|
|
17990
18035
|
siteMonitorEcsProbe: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe,
|
|
18036
|
+
siteMonitorMobile: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile,
|
|
17991
18037
|
siteMonitorOperatorProbe: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe,
|
|
17992
18038
|
siteMonitorTask: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask,
|
|
17993
18039
|
suitInfo: 'string',
|
|
@@ -21090,8 +21136,7 @@ class Client extends openapi_client_1.default {
|
|
|
21090
21136
|
return await this.addTagsWithOptions(request, runtime);
|
|
21091
21137
|
}
|
|
21092
21138
|
/**
|
|
21093
|
-
*
|
|
21094
|
-
* For more information about how to query the ID of an application group, see [DescribeMonitorGroups](~~115032~~).
|
|
21139
|
+
* In this example, the `700****` alert template is applied to the `123456` application group. For the generated alert rule, the ID is `applyTemplate8ab74c6b-9f27-47ab-8841-de01dc08****`, and the name is `test123`.
|
|
21095
21140
|
*
|
|
21096
21141
|
* @param request ApplyMetricRuleTemplateRequest
|
|
21097
21142
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -21141,8 +21186,7 @@ class Client extends openapi_client_1.default {
|
|
|
21141
21186
|
return $tea.cast(await this.callApi(params, req, runtime), new ApplyMetricRuleTemplateResponse({}));
|
|
21142
21187
|
}
|
|
21143
21188
|
/**
|
|
21144
|
-
*
|
|
21145
|
-
* For more information about how to query the ID of an application group, see [DescribeMonitorGroups](~~115032~~).
|
|
21189
|
+
* In this example, the `700****` alert template is applied to the `123456` application group. For the generated alert rule, the ID is `applyTemplate8ab74c6b-9f27-47ab-8841-de01dc08****`, and the name is `test123`.
|
|
21146
21190
|
*
|
|
21147
21191
|
* @param request ApplyMetricRuleTemplateRequest
|
|
21148
21192
|
* @return ApplyMetricRuleTemplateResponse
|
|
@@ -21152,7 +21196,7 @@ class Client extends openapi_client_1.default {
|
|
|
21152
21196
|
return await this.applyMetricRuleTemplateWithOptions(request, runtime);
|
|
21153
21197
|
}
|
|
21154
21198
|
/**
|
|
21155
|
-
*
|
|
21199
|
+
* This topic provides an example on how to create a site monitoring task named `HangZhou_ECS1`. The URL that is monitored by the task is `https://www.aliyun.com` and the type of the task is `HTTP`. The returned result shows that the site monitoring task is created. The name of the site monitoring task is `HangZhou_ECS1` and the task ID is `679fbe4f-b80b-4706-91b2-5427b43e****`.
|
|
21156
21200
|
*
|
|
21157
21201
|
* @param request BatchCreateInstantSiteMonitorRequest
|
|
21158
21202
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -21181,7 +21225,7 @@ class Client extends openapi_client_1.default {
|
|
|
21181
21225
|
return $tea.cast(await this.callApi(params, req, runtime), new BatchCreateInstantSiteMonitorResponse({}));
|
|
21182
21226
|
}
|
|
21183
21227
|
/**
|
|
21184
|
-
*
|
|
21228
|
+
* This topic provides an example on how to create a site monitoring task named `HangZhou_ECS1`. The URL that is monitored by the task is `https://www.aliyun.com` and the type of the task is `HTTP`. The returned result shows that the site monitoring task is created. The name of the site monitoring task is `HangZhou_ECS1` and the task ID is `679fbe4f-b80b-4706-91b2-5427b43e****`.
|
|
21185
21229
|
*
|
|
21186
21230
|
* @param request BatchCreateInstantSiteMonitorRequest
|
|
21187
21231
|
* @return BatchCreateInstantSiteMonitorResponse
|
|
@@ -21450,9 +21494,8 @@ class Client extends openapi_client_1.default {
|
|
|
21450
21494
|
return await this.createCmsSmspackageOrderWithOptions(request, runtime);
|
|
21451
21495
|
}
|
|
21452
21496
|
/**
|
|
21453
|
-
*
|
|
21454
|
-
*
|
|
21455
|
-
* * false (default value): The application group does not automatically subscribe to event notifications.
|
|
21497
|
+
* This operation is available for Elastic Compute Service (ECS), ApsaraDB RDS, and Server Load Balancer (SLB).
|
|
21498
|
+
* This topic provides an example to show how to create an application group for resources whose tag key is `ecs_instance`. In this example, the alert contact group of the application group is `ECS_Group`.
|
|
21456
21499
|
*
|
|
21457
21500
|
* @param request CreateDynamicTagGroupRequest
|
|
21458
21501
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -21502,9 +21545,8 @@ class Client extends openapi_client_1.default {
|
|
|
21502
21545
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateDynamicTagGroupResponse({}));
|
|
21503
21546
|
}
|
|
21504
21547
|
/**
|
|
21505
|
-
*
|
|
21506
|
-
*
|
|
21507
|
-
* * false (default value): The application group does not automatically subscribe to event notifications.
|
|
21548
|
+
* This operation is available for Elastic Compute Service (ECS), ApsaraDB RDS, and Server Load Balancer (SLB).
|
|
21549
|
+
* This topic provides an example to show how to create an application group for resources whose tag key is `ecs_instance`. In this example, the alert contact group of the application group is `ECS_Group`.
|
|
21508
21550
|
*
|
|
21509
21551
|
* @param request CreateDynamicTagGroupRequest
|
|
21510
21552
|
* @return CreateDynamicTagGroupResponse
|
|
@@ -21514,7 +21556,7 @@ class Client extends openapi_client_1.default {
|
|
|
21514
21556
|
return await this.createDynamicTagGroupWithOptions(request, runtime);
|
|
21515
21557
|
}
|
|
21516
21558
|
/**
|
|
21517
|
-
* The
|
|
21559
|
+
* This topic provides an example to show how to create an alert rule for the `cpu_total` metric of Elastic Compute Service (ECS) in the `123456` application group. The ID of the alert rule is `456789`. The name of the alert rule is `ECS_Rule1`. The alert level is `Critical`. The statistical method is `Average`. The comparison operator is `GreaterThanOrEqualToThreshold`. The alert threshold is `90`. The number of alert retries is `3`. The response shows that the alert rule named `ECS_Rule1` is created.
|
|
21518
21560
|
*
|
|
21519
21561
|
* @param request CreateGroupMetricRulesRequest
|
|
21520
21562
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -21546,7 +21588,7 @@ class Client extends openapi_client_1.default {
|
|
|
21546
21588
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateGroupMetricRulesResponse({}));
|
|
21547
21589
|
}
|
|
21548
21590
|
/**
|
|
21549
|
-
* The
|
|
21591
|
+
* This topic provides an example to show how to create an alert rule for the `cpu_total` metric of Elastic Compute Service (ECS) in the `123456` application group. The ID of the alert rule is `456789`. The name of the alert rule is `ECS_Rule1`. The alert level is `Critical`. The statistical method is `Average`. The comparison operator is `GreaterThanOrEqualToThreshold`. The alert threshold is `90`. The number of alert retries is `3`. The response shows that the alert rule named `ECS_Rule1` is created.
|
|
21550
21592
|
*
|
|
21551
21593
|
* @param request CreateGroupMetricRulesRequest
|
|
21552
21594
|
* @return CreateGroupMetricRulesResponse
|
|
@@ -21657,9 +21699,8 @@ class Client extends openapi_client_1.default {
|
|
|
21657
21699
|
return await this.createHostAvailabilityWithOptions(request, runtime);
|
|
21658
21700
|
}
|
|
21659
21701
|
/**
|
|
21660
|
-
*
|
|
21661
|
-
*
|
|
21662
|
-
* * false: The call failed.
|
|
21702
|
+
* ## Prerequisites
|
|
21703
|
+
* Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).
|
|
21663
21704
|
*
|
|
21664
21705
|
* @param request CreateHybridMonitorNamespaceRequest
|
|
21665
21706
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -21694,9 +21735,8 @@ class Client extends openapi_client_1.default {
|
|
|
21694
21735
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateHybridMonitorNamespaceResponse({}));
|
|
21695
21736
|
}
|
|
21696
21737
|
/**
|
|
21697
|
-
*
|
|
21698
|
-
*
|
|
21699
|
-
* * false: The call failed.
|
|
21738
|
+
* ## Prerequisites
|
|
21739
|
+
* Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).
|
|
21700
21740
|
*
|
|
21701
21741
|
* @param request CreateHybridMonitorNamespaceRequest
|
|
21702
21742
|
* @return CreateHybridMonitorNamespaceResponse
|
|
@@ -21706,8 +21746,10 @@ class Client extends openapi_client_1.default {
|
|
|
21706
21746
|
return await this.createHybridMonitorNamespaceWithOptions(request, runtime);
|
|
21707
21747
|
}
|
|
21708
21748
|
/**
|
|
21709
|
-
*
|
|
21710
|
-
*
|
|
21749
|
+
* # Prerequisites
|
|
21750
|
+
* Simple Log Service is activated. A project and a Logstore are created in Simple Log Service. For more information, see [Getting Started](~~54604~~).
|
|
21751
|
+
* # Description
|
|
21752
|
+
* In this example, a Logstore group named `Logstore_test` is created. 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.
|
|
21711
21753
|
*
|
|
21712
21754
|
* @param request CreateHybridMonitorSLSGroupRequest
|
|
21713
21755
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -21742,8 +21784,10 @@ class Client extends openapi_client_1.default {
|
|
|
21742
21784
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateHybridMonitorSLSGroupResponse({}));
|
|
21743
21785
|
}
|
|
21744
21786
|
/**
|
|
21745
|
-
*
|
|
21746
|
-
*
|
|
21787
|
+
* # Prerequisites
|
|
21788
|
+
* Simple Log Service is activated. A project and a Logstore are created in Simple Log Service. For more information, see [Getting Started](~~54604~~).
|
|
21789
|
+
* # Description
|
|
21790
|
+
* In this example, a Logstore group named `Logstore_test` is created. 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.
|
|
21747
21791
|
*
|
|
21748
21792
|
* @param request CreateHybridMonitorSLSGroupRequest
|
|
21749
21793
|
* @return CreateHybridMonitorSLSGroupResponse
|
|
@@ -21753,7 +21797,9 @@ class Client extends openapi_client_1.default {
|
|
|
21753
21797
|
return await this.createHybridMonitorSLSGroupWithOptions(request, runtime);
|
|
21754
21798
|
}
|
|
21755
21799
|
/**
|
|
21756
|
-
*
|
|
21800
|
+
* ## Prerequisites
|
|
21801
|
+
* * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).
|
|
21802
|
+
* * If you want to create a metric for logs imported from Log Service, make sure that you have activated Log Service and created a project and a Logstore. For more information, see [Getting Started](~~54604~~).
|
|
21757
21803
|
*
|
|
21758
21804
|
* @param request CreateHybridMonitorTaskRequest
|
|
21759
21805
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -21815,7 +21861,9 @@ class Client extends openapi_client_1.default {
|
|
|
21815
21861
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateHybridMonitorTaskResponse({}));
|
|
21816
21862
|
}
|
|
21817
21863
|
/**
|
|
21818
|
-
*
|
|
21864
|
+
* ## Prerequisites
|
|
21865
|
+
* * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).
|
|
21866
|
+
* * If you want to create a metric for logs imported from Log Service, make sure that you have activated Log Service and created a project and a Logstore. For more information, see [Getting Started](~~54604~~).
|
|
21819
21867
|
*
|
|
21820
21868
|
* @param request CreateHybridMonitorTaskRequest
|
|
21821
21869
|
* @return CreateHybridMonitorTaskResponse
|
|
@@ -22047,7 +22095,7 @@ class Client extends openapi_client_1.default {
|
|
|
22047
22095
|
return await this.createMonitorAgentProcessWithOptions(request, runtime);
|
|
22048
22096
|
}
|
|
22049
22097
|
/**
|
|
22050
|
-
*
|
|
22098
|
+
* In this example, the application group named `ECS_Group` is created.
|
|
22051
22099
|
*
|
|
22052
22100
|
* @param request CreateMonitorGroupRequest
|
|
22053
22101
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -22079,7 +22127,7 @@ class Client extends openapi_client_1.default {
|
|
|
22079
22127
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateMonitorGroupResponse({}));
|
|
22080
22128
|
}
|
|
22081
22129
|
/**
|
|
22082
|
-
*
|
|
22130
|
+
* In this example, the application group named `ECS_Group` is created.
|
|
22083
22131
|
*
|
|
22084
22132
|
* @param request CreateMonitorGroupRequest
|
|
22085
22133
|
* @return CreateMonitorGroupResponse
|
|
@@ -22143,8 +22191,8 @@ class Client extends openapi_client_1.default {
|
|
|
22143
22191
|
return await this.createMonitorGroupByResourceGroupIdWithOptions(request, runtime);
|
|
22144
22192
|
}
|
|
22145
22193
|
/**
|
|
22146
|
-
*
|
|
22147
|
-
*
|
|
22194
|
+
* You can add a maximum of 1,000 instances to an application group at a time. You can add a maximum of 3,000 instances of an Alibaba Cloud service to an application group. The total number of instances that you can add to an application group is unlimited.
|
|
22195
|
+
* In this example, an Elastic Compute Service (ECS) instance in the `China (Hangzhou)` region is added to the `3607****` application group. The instance ID is `i-2ze26xj5wwy12****` and the instance name is `test-instance-ecs`.
|
|
22148
22196
|
*
|
|
22149
22197
|
* @param request CreateMonitorGroupInstancesRequest
|
|
22150
22198
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -22176,8 +22224,8 @@ class Client extends openapi_client_1.default {
|
|
|
22176
22224
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateMonitorGroupInstancesResponse({}));
|
|
22177
22225
|
}
|
|
22178
22226
|
/**
|
|
22179
|
-
*
|
|
22180
|
-
*
|
|
22227
|
+
* You can add a maximum of 1,000 instances to an application group at a time. You can add a maximum of 3,000 instances of an Alibaba Cloud service to an application group. The total number of instances that you can add to an application group is unlimited.
|
|
22228
|
+
* In this example, an Elastic Compute Service (ECS) instance in the `China (Hangzhou)` region is added to the `3607****` application group. The instance ID is `i-2ze26xj5wwy12****` and the instance name is `test-instance-ecs`.
|
|
22181
22229
|
*
|
|
22182
22230
|
* @param request CreateMonitorGroupInstancesRequest
|
|
22183
22231
|
* @return CreateMonitorGroupInstancesResponse
|
|
@@ -22187,7 +22235,8 @@ class Client extends openapi_client_1.default {
|
|
|
22187
22235
|
return await this.createMonitorGroupInstancesWithOptions(request, runtime);
|
|
22188
22236
|
}
|
|
22189
22237
|
/**
|
|
22190
|
-
*
|
|
22238
|
+
* If the policy is valid, no alert notifications are sent for the application group.
|
|
22239
|
+
* This topic describes how to create the `PauseNotify` policy to pause alert notifications for the `7301****` application group. The StartTime parameter is set to `1622949300000` and the EndTime parameter is set to `1623208500000`. This indicates that the policy is valid from `2021-06-06 11:15:00 UTC+8` to `2021-06-09 11:15:00 UTC+8`.
|
|
22191
22240
|
*
|
|
22192
22241
|
* @param request CreateMonitorGroupNotifyPolicyRequest
|
|
22193
22242
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -22225,7 +22274,8 @@ class Client extends openapi_client_1.default {
|
|
|
22225
22274
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateMonitorGroupNotifyPolicyResponse({}));
|
|
22226
22275
|
}
|
|
22227
22276
|
/**
|
|
22228
|
-
*
|
|
22277
|
+
* If the policy is valid, no alert notifications are sent for the application group.
|
|
22278
|
+
* This topic describes how to create the `PauseNotify` policy to pause alert notifications for the `7301****` application group. The StartTime parameter is set to `1622949300000` and the EndTime parameter is set to `1623208500000`. This indicates that the policy is valid from `2021-06-06 11:15:00 UTC+8` to `2021-06-09 11:15:00 UTC+8`.
|
|
22229
22279
|
*
|
|
22230
22280
|
* @param request CreateMonitorGroupNotifyPolicyRequest
|
|
22231
22281
|
* @return CreateMonitorGroupNotifyPolicyResponse
|
|
@@ -22671,9 +22721,8 @@ class Client extends openapi_client_1.default {
|
|
|
22671
22721
|
return await this.deleteHostAvailabilityWithOptions(request, runtime);
|
|
22672
22722
|
}
|
|
22673
22723
|
/**
|
|
22674
|
-
*
|
|
22675
|
-
*
|
|
22676
|
-
* * false: The call failed.
|
|
22724
|
+
* > If a metric import task is created for metrics in a namespace, you cannot delete the namespace unless you delete the task first.
|
|
22725
|
+
* This topic provides an example on how to delete a namespace named `aliyun`. The response shows that the namespace is deleted.
|
|
22677
22726
|
*
|
|
22678
22727
|
* @param request DeleteHybridMonitorNamespaceRequest
|
|
22679
22728
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -22702,9 +22751,8 @@ class Client extends openapi_client_1.default {
|
|
|
22702
22751
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteHybridMonitorNamespaceResponse({}));
|
|
22703
22752
|
}
|
|
22704
22753
|
/**
|
|
22705
|
-
*
|
|
22706
|
-
*
|
|
22707
|
-
* * false: The call failed.
|
|
22754
|
+
* > If a metric import task is created for metrics in a namespace, you cannot delete the namespace unless you delete the task first.
|
|
22755
|
+
* This topic provides an example on how to delete a namespace named `aliyun`. The response shows that the namespace is deleted.
|
|
22708
22756
|
*
|
|
22709
22757
|
* @param request DeleteHybridMonitorNamespaceRequest
|
|
22710
22758
|
* @return DeleteHybridMonitorNamespaceResponse
|
|
@@ -23407,9 +23455,7 @@ class Client extends openapi_client_1.default {
|
|
|
23407
23455
|
return await this.describeAlertLogHistogramWithOptions(request, runtime);
|
|
23408
23456
|
}
|
|
23409
23457
|
/**
|
|
23410
|
-
*
|
|
23411
|
-
* * true: The call was successful.
|
|
23412
|
-
* * false: The call failed.
|
|
23458
|
+
* This topic provides an example to show how to query the alert logs of Elastic Compute Service (ECS) based on the `product` dimension.
|
|
23413
23459
|
*
|
|
23414
23460
|
* @param request DescribeAlertLogListRequest
|
|
23415
23461
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -23486,9 +23532,7 @@ class Client extends openapi_client_1.default {
|
|
|
23486
23532
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeAlertLogListResponse({}));
|
|
23487
23533
|
}
|
|
23488
23534
|
/**
|
|
23489
|
-
*
|
|
23490
|
-
* * true: The call was successful.
|
|
23491
|
-
* * false: The call failed.
|
|
23535
|
+
* This topic provides an example to show how to query the alert logs of Elastic Compute Service (ECS) based on the `product` dimension.
|
|
23492
23536
|
*
|
|
23493
23537
|
* @param request DescribeAlertLogListRequest
|
|
23494
23538
|
* @return DescribeAlertLogListResponse
|
|
@@ -23661,7 +23705,7 @@ class Client extends openapi_client_1.default {
|
|
|
23661
23705
|
return await this.describeCustomEventAttributeWithOptions(request, runtime);
|
|
23662
23706
|
}
|
|
23663
23707
|
/**
|
|
23664
|
-
*
|
|
23708
|
+
* > This operation counts the number of times that a custom event occurred for each service.
|
|
23665
23709
|
*
|
|
23666
23710
|
* @param request DescribeCustomEventCountRequest
|
|
23667
23711
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -23705,7 +23749,7 @@ class Client extends openapi_client_1.default {
|
|
|
23705
23749
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeCustomEventCountResponse({}));
|
|
23706
23750
|
}
|
|
23707
23751
|
/**
|
|
23708
|
-
*
|
|
23752
|
+
* > This operation counts the number of times that a custom event occurred for each service.
|
|
23709
23753
|
*
|
|
23710
23754
|
* @param request DescribeCustomEventCountRequest
|
|
23711
23755
|
* @return DescribeCustomEventCountResponse
|
|
@@ -23759,8 +23803,7 @@ class Client extends openapi_client_1.default {
|
|
|
23759
23803
|
return await this.describeCustomEventHistogramWithOptions(request, runtime);
|
|
23760
23804
|
}
|
|
23761
23805
|
/**
|
|
23762
|
-
*
|
|
23763
|
-
* For more information, see [DescribeMonitorGroups](~~115032~~).
|
|
23806
|
+
* > You can call the DescribeMetricList operation to query the metrics of a cloud service. For more information, see [DescribeMetricList](~~51936~~).
|
|
23764
23807
|
*
|
|
23765
23808
|
* @param request DescribeCustomMetricListRequest
|
|
23766
23809
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -23804,8 +23847,7 @@ class Client extends openapi_client_1.default {
|
|
|
23804
23847
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeCustomMetricListResponse({}));
|
|
23805
23848
|
}
|
|
23806
23849
|
/**
|
|
23807
|
-
*
|
|
23808
|
-
* For more information, see [DescribeMonitorGroups](~~115032~~).
|
|
23850
|
+
* > You can call the DescribeMetricList operation to query the metrics of a cloud service. For more information, see [DescribeMetricList](~~51936~~).
|
|
23809
23851
|
*
|
|
23810
23852
|
* @param request DescribeCustomMetricListRequest
|
|
23811
23853
|
* @return DescribeCustomMetricListResponse
|
|
@@ -23815,8 +23857,7 @@ class Client extends openapi_client_1.default {
|
|
|
23815
23857
|
return await this.describeCustomMetricListWithOptions(request, runtime);
|
|
23816
23858
|
}
|
|
23817
23859
|
/**
|
|
23818
|
-
* The
|
|
23819
|
-
* > The status code 200 indicates that the call was successful.
|
|
23860
|
+
* This topic provides an example to show how to query tag rules that are related to `tagkey1`. The sample responses indicate that two tag rules are found. The rule IDs are `1536df65-a719-429d-8813-73cc40d7****` and `56e8cebb-b3d7-4a91-9880-78a8c84f****`.
|
|
23820
23861
|
*
|
|
23821
23862
|
* @param request DescribeDynamicTagRuleListRequest
|
|
23822
23863
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -23860,8 +23901,7 @@ class Client extends openapi_client_1.default {
|
|
|
23860
23901
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeDynamicTagRuleListResponse({}));
|
|
23861
23902
|
}
|
|
23862
23903
|
/**
|
|
23863
|
-
* The
|
|
23864
|
-
* > The status code 200 indicates that the call was successful.
|
|
23904
|
+
* This topic provides an example to show how to query tag rules that are related to `tagkey1`. The sample responses indicate that two tag rules are found. The rule IDs are `1536df65-a719-429d-8813-73cc40d7****` and `56e8cebb-b3d7-4a91-9880-78a8c84f****`.
|
|
23865
23905
|
*
|
|
23866
23906
|
* @param request DescribeDynamicTagRuleListRequest
|
|
23867
23907
|
* @return DescribeDynamicTagRuleListResponse
|
|
@@ -23951,7 +23991,7 @@ class Client extends openapi_client_1.default {
|
|
|
23951
23991
|
return await this.describeEventRuleListWithOptions(request, runtime);
|
|
23952
23992
|
}
|
|
23953
23993
|
/**
|
|
23954
|
-
*
|
|
23994
|
+
* This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`.
|
|
23955
23995
|
*
|
|
23956
23996
|
* @param request DescribeEventRuleTargetListRequest
|
|
23957
23997
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -23980,7 +24020,7 @@ class Client extends openapi_client_1.default {
|
|
|
23980
24020
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventRuleTargetListResponse({}));
|
|
23981
24021
|
}
|
|
23982
24022
|
/**
|
|
23983
|
-
*
|
|
24023
|
+
* This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`.
|
|
23984
24024
|
*
|
|
23985
24025
|
* @param request DescribeEventRuleTargetListRequest
|
|
23986
24026
|
* @return DescribeEventRuleTargetListResponse
|
|
@@ -24048,7 +24088,7 @@ class Client extends openapi_client_1.default {
|
|
|
24048
24088
|
return await this.describeExporterRuleListWithOptions(request, runtime);
|
|
24049
24089
|
}
|
|
24050
24090
|
/**
|
|
24051
|
-
*
|
|
24091
|
+
* You can create a process monitoring task to monitor all or the specified Elastic Compute Service (ECS) instances in an application group and set alert rules for the process monitoring task.
|
|
24052
24092
|
*
|
|
24053
24093
|
* @param request DescribeGroupMonitoringAgentProcessRequest
|
|
24054
24094
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -24086,7 +24126,7 @@ class Client extends openapi_client_1.default {
|
|
|
24086
24126
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeGroupMonitoringAgentProcessResponse({}));
|
|
24087
24127
|
}
|
|
24088
24128
|
/**
|
|
24089
|
-
*
|
|
24129
|
+
* You can create a process monitoring task to monitor all or the specified Elastic Compute Service (ECS) instances in an application group and set alert rules for the process monitoring task.
|
|
24090
24130
|
*
|
|
24091
24131
|
* @param request DescribeGroupMonitoringAgentProcessRequest
|
|
24092
24132
|
* @return DescribeGroupMonitoringAgentProcessResponse
|
|
@@ -24096,7 +24136,7 @@ class Client extends openapi_client_1.default {
|
|
|
24096
24136
|
return await this.describeGroupMonitoringAgentProcessWithOptions(request, runtime);
|
|
24097
24137
|
}
|
|
24098
24138
|
/**
|
|
24099
|
-
*
|
|
24139
|
+
* This topic provides an example to show how to query all the availability monitoring tasks of your Alibaba Cloud account. The sample responses indicate that the account has one availability monitoring task named `ecs_instance`.
|
|
24100
24140
|
*
|
|
24101
24141
|
* @param request DescribeHostAvailabilityListRequest
|
|
24102
24142
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -24140,7 +24180,7 @@ class Client extends openapi_client_1.default {
|
|
|
24140
24180
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeHostAvailabilityListResponse({}));
|
|
24141
24181
|
}
|
|
24142
24182
|
/**
|
|
24143
|
-
*
|
|
24183
|
+
* This topic provides an example to show how to query all the availability monitoring tasks of your Alibaba Cloud account. The sample responses indicate that the account has one availability monitoring task named `ecs_instance`.
|
|
24144
24184
|
*
|
|
24145
24185
|
* @param request DescribeHostAvailabilityListRequest
|
|
24146
24186
|
* @return DescribeHostAvailabilityListResponse
|
|
@@ -24150,7 +24190,8 @@ class Client extends openapi_client_1.default {
|
|
|
24150
24190
|
return await this.describeHostAvailabilityListWithOptions(request, runtime);
|
|
24151
24191
|
}
|
|
24152
24192
|
/**
|
|
24153
|
-
*
|
|
24193
|
+
* ## Prerequisites
|
|
24194
|
+
* Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).
|
|
24154
24195
|
*
|
|
24155
24196
|
* @param request DescribeHybridMonitorDataListRequest
|
|
24156
24197
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -24191,7 +24232,8 @@ class Client extends openapi_client_1.default {
|
|
|
24191
24232
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeHybridMonitorDataListResponse({}));
|
|
24192
24233
|
}
|
|
24193
24234
|
/**
|
|
24194
|
-
*
|
|
24235
|
+
* ## Prerequisites
|
|
24236
|
+
* Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).
|
|
24195
24237
|
*
|
|
24196
24238
|
* @param request DescribeHybridMonitorDataListRequest
|
|
24197
24239
|
* @return DescribeHybridMonitorDataListResponse
|
|
@@ -24201,13 +24243,7 @@ class Client extends openapi_client_1.default {
|
|
|
24201
24243
|
return await this.describeHybridMonitorDataListWithOptions(request, runtime);
|
|
24202
24244
|
}
|
|
24203
24245
|
/**
|
|
24204
|
-
*
|
|
24205
|
-
* * cms.s1.large: Data is stored for 15 days.
|
|
24206
|
-
* * cms.s1.xlarge: Data is stored for 32 days.
|
|
24207
|
-
* * cms.s1.2xlarge: Data is stored for 63 days.
|
|
24208
|
-
* * cms.s1.3xlarge: Data is stored for 93 days.
|
|
24209
|
-
* * cms.s1.6xlarge: Data is stored for 185 days.
|
|
24210
|
-
* * cms.s1.12xlarge: Data is stored for 376 days.
|
|
24246
|
+
* In this example, all namespaces within the current account are queried. The response shows that the current account has only one namespace named `aliyun-test`.
|
|
24211
24247
|
*
|
|
24212
24248
|
* @param request DescribeHybridMonitorNamespaceListRequest
|
|
24213
24249
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -24248,13 +24284,7 @@ class Client extends openapi_client_1.default {
|
|
|
24248
24284
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeHybridMonitorNamespaceListResponse({}));
|
|
24249
24285
|
}
|
|
24250
24286
|
/**
|
|
24251
|
-
*
|
|
24252
|
-
* * cms.s1.large: Data is stored for 15 days.
|
|
24253
|
-
* * cms.s1.xlarge: Data is stored for 32 days.
|
|
24254
|
-
* * cms.s1.2xlarge: Data is stored for 63 days.
|
|
24255
|
-
* * cms.s1.3xlarge: Data is stored for 93 days.
|
|
24256
|
-
* * cms.s1.6xlarge: Data is stored for 185 days.
|
|
24257
|
-
* * cms.s1.12xlarge: Data is stored for 376 days.
|
|
24287
|
+
* In this example, all namespaces within the current account are queried. The response shows that the current account has only one namespace named `aliyun-test`.
|
|
24258
24288
|
*
|
|
24259
24289
|
* @param request DescribeHybridMonitorNamespaceListRequest
|
|
24260
24290
|
* @return DescribeHybridMonitorNamespaceListResponse
|
|
@@ -24433,12 +24463,9 @@ class Client extends openapi_client_1.default {
|
|
|
24433
24463
|
return await this.describeLogMonitorListWithOptions(request, runtime);
|
|
24434
24464
|
}
|
|
24435
24465
|
/**
|
|
24436
|
-
*
|
|
24437
|
-
*
|
|
24438
|
-
*
|
|
24439
|
-
* >
|
|
24440
|
-
* * If this parameter is not specified, monitoring data is queried based on the period in which metric values are reported.
|
|
24441
|
-
* * For more information about the statistical period of a metric that is specified by the `MetricName` parameter, see [Appendix 1: Metrics](~~163515~~).
|
|
24466
|
+
* ## Limits
|
|
24467
|
+
* Each API operation can be called up to 10 times per second. An Alibaba Cloud account and the RAM users within the account share the quota.
|
|
24468
|
+
* > Different from [DescribeMetricList](~~51936~~), the DescribeMetricData operation provides statistical features. You can set the `Dimension` parameter to {"instanceId": "i-abcdefgh12****"} to aggregate all data of your Alibaba Cloud account. This topic provides an example to show how to query the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`.
|
|
24442
24469
|
*
|
|
24443
24470
|
* @param request DescribeMetricDataRequest
|
|
24444
24471
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -24488,12 +24515,9 @@ class Client extends openapi_client_1.default {
|
|
|
24488
24515
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeMetricDataResponse({}));
|
|
24489
24516
|
}
|
|
24490
24517
|
/**
|
|
24491
|
-
*
|
|
24492
|
-
*
|
|
24493
|
-
*
|
|
24494
|
-
* >
|
|
24495
|
-
* * If this parameter is not specified, monitoring data is queried based on the period in which metric values are reported.
|
|
24496
|
-
* * For more information about the statistical period of a metric that is specified by the `MetricName` parameter, see [Appendix 1: Metrics](~~163515~~).
|
|
24518
|
+
* ## Limits
|
|
24519
|
+
* Each API operation can be called up to 10 times per second. An Alibaba Cloud account and the RAM users within the account share the quota.
|
|
24520
|
+
* > Different from [DescribeMetricList](~~51936~~), the DescribeMetricData operation provides statistical features. You can set the `Dimension` parameter to {"instanceId": "i-abcdefgh12****"} to aggregate all data of your Alibaba Cloud account. This topic provides an example to show how to query the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`.
|
|
24497
24521
|
*
|
|
24498
24522
|
* @param request DescribeMetricDataRequest
|
|
24499
24523
|
* @return DescribeMetricDataResponse
|
|
@@ -24582,8 +24606,9 @@ class Client extends openapi_client_1.default {
|
|
|
24582
24606
|
return await this.describeMetricLastWithOptions(request, runtime);
|
|
24583
24607
|
}
|
|
24584
24608
|
/**
|
|
24585
|
-
*
|
|
24586
|
-
*
|
|
24609
|
+
* ## Limits
|
|
24610
|
+
* Each API operation can be called up to 50 times per second. An Alibaba Cloud account and the RAM users within the account share the quota.
|
|
24611
|
+
* >This topic provides an example to show how to query the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The returned result indicates that the monitoring data for the instance `i-abcdefgh12****` of the account `120886317861****` is queried at an interval of 60 seconds. The maximum, minimum, and average values of the metric are 100, 93.1, and 99.52.
|
|
24587
24612
|
*
|
|
24588
24613
|
* @param request DescribeMetricListRequest
|
|
24589
24614
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -24636,8 +24661,9 @@ class Client extends openapi_client_1.default {
|
|
|
24636
24661
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeMetricListResponse({}));
|
|
24637
24662
|
}
|
|
24638
24663
|
/**
|
|
24639
|
-
*
|
|
24640
|
-
*
|
|
24664
|
+
* ## Limits
|
|
24665
|
+
* Each API operation can be called up to 50 times per second. An Alibaba Cloud account and the RAM users within the account share the quota.
|
|
24666
|
+
* >This topic provides an example to show how to query the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The returned result indicates that the monitoring data for the instance `i-abcdefgh12****` of the account `120886317861****` is queried at an interval of 60 seconds. The maximum, minimum, and average values of the metric are 100, 93.1, and 99.52.
|
|
24641
24667
|
*
|
|
24642
24668
|
* @param request DescribeMetricListRequest
|
|
24643
24669
|
* @return DescribeMetricListResponse
|
|
@@ -24647,8 +24673,7 @@ class Client extends openapi_client_1.default {
|
|
|
24647
24673
|
return await this.describeMetricListWithOptions(request, runtime);
|
|
24648
24674
|
}
|
|
24649
24675
|
/**
|
|
24650
|
-
*
|
|
24651
|
-
* For more information, see [Appendix 1: Metrics](~~163515~~).
|
|
24676
|
+
* This operation is usually used with DescribeMetricList and DescribeMetricLast. For more information, see [DescribeMetricList](~~51936~~) and [DescribeMetricLast](~~51939~~).
|
|
24652
24677
|
*
|
|
24653
24678
|
* @param request DescribeMetricMetaListRequest
|
|
24654
24679
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -24689,8 +24714,7 @@ class Client extends openapi_client_1.default {
|
|
|
24689
24714
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeMetricMetaListResponse({}));
|
|
24690
24715
|
}
|
|
24691
24716
|
/**
|
|
24692
|
-
*
|
|
24693
|
-
* For more information, see [Appendix 1: Metrics](~~163515~~).
|
|
24717
|
+
* This operation is usually used with DescribeMetricList and DescribeMetricLast. For more information, see [DescribeMetricList](~~51936~~) and [DescribeMetricLast](~~51939~~).
|
|
24694
24718
|
*
|
|
24695
24719
|
* @param request DescribeMetricMetaListRequest
|
|
24696
24720
|
* @return DescribeMetricMetaListResponse
|
|
@@ -24842,7 +24866,9 @@ class Client extends openapi_client_1.default {
|
|
|
24842
24866
|
return await this.describeMetricRuleListWithOptions(request, runtime);
|
|
24843
24867
|
}
|
|
24844
24868
|
/**
|
|
24845
|
-
*
|
|
24869
|
+
* ## Limit
|
|
24870
|
+
* This operation supports only Message Service (MNS) resources.
|
|
24871
|
+
* >This topic provides an example on how to query the resources that are associated with an alert rule whose ID is `ae06917_75a8c43178ab66****`.
|
|
24846
24872
|
*
|
|
24847
24873
|
* @param request DescribeMetricRuleTargetsRequest
|
|
24848
24874
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -24871,7 +24897,9 @@ class Client extends openapi_client_1.default {
|
|
|
24871
24897
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeMetricRuleTargetsResponse({}));
|
|
24872
24898
|
}
|
|
24873
24899
|
/**
|
|
24874
|
-
*
|
|
24900
|
+
* ## Limit
|
|
24901
|
+
* This operation supports only Message Service (MNS) resources.
|
|
24902
|
+
* >This topic provides an example on how to query the resources that are associated with an alert rule whose ID is `ae06917_75a8c43178ab66****`.
|
|
24875
24903
|
*
|
|
24876
24904
|
* @param request DescribeMetricRuleTargetsRequest
|
|
24877
24905
|
* @return DescribeMetricRuleTargetsResponse
|
|
@@ -24881,7 +24909,7 @@ class Client extends openapi_client_1.default {
|
|
|
24881
24909
|
return await this.describeMetricRuleTargetsWithOptions(request, runtime);
|
|
24882
24910
|
}
|
|
24883
24911
|
/**
|
|
24884
|
-
*
|
|
24912
|
+
* This topic provides an example to show how to query the details of an alert template whose ID is `70****`.
|
|
24885
24913
|
*
|
|
24886
24914
|
* @param request DescribeMetricRuleTemplateAttributeRequest
|
|
24887
24915
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -24913,7 +24941,7 @@ class Client extends openapi_client_1.default {
|
|
|
24913
24941
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeMetricRuleTemplateAttributeResponse({}));
|
|
24914
24942
|
}
|
|
24915
24943
|
/**
|
|
24916
|
-
*
|
|
24944
|
+
* This topic provides an example to show how to query the details of an alert template whose ID is `70****`.
|
|
24917
24945
|
*
|
|
24918
24946
|
* @param request DescribeMetricRuleTemplateAttributeRequest
|
|
24919
24947
|
* @return DescribeMetricRuleTemplateAttributeResponse
|
|
@@ -25434,7 +25462,8 @@ class Client extends openapi_client_1.default {
|
|
|
25434
25462
|
return await this.describeMonitoringAgentHostsWithOptions(request, runtime);
|
|
25435
25463
|
}
|
|
25436
25464
|
/**
|
|
25437
|
-
*
|
|
25465
|
+
* > Before you call this operation, call the CreateMonitoringAgentProcess operation to create processes. For more information, see [CreateMonitoringAgentProcess](~~114951~~~).
|
|
25466
|
+
* This topic provides an example of how to query the processes of the `i-hp3hl3cx1pbahzy8****` instance. The response indicates the details of the `NGINX` and `HTTP` processes.
|
|
25438
25467
|
*
|
|
25439
25468
|
* @param request DescribeMonitoringAgentProcessesRequest
|
|
25440
25469
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -25463,7 +25492,8 @@ class Client extends openapi_client_1.default {
|
|
|
25463
25492
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeMonitoringAgentProcessesResponse({}));
|
|
25464
25493
|
}
|
|
25465
25494
|
/**
|
|
25466
|
-
*
|
|
25495
|
+
* > Before you call this operation, call the CreateMonitoringAgentProcess operation to create processes. For more information, see [CreateMonitoringAgentProcess](~~114951~~~).
|
|
25496
|
+
* This topic provides an example of how to query the processes of the `i-hp3hl3cx1pbahzy8****` instance. The response indicates the details of the `NGINX` and `HTTP` processes.
|
|
25467
25497
|
*
|
|
25468
25498
|
* @param request DescribeMonitoringAgentProcessesRequest
|
|
25469
25499
|
* @return DescribeMonitoringAgentProcessesResponse
|
|
@@ -25535,7 +25565,7 @@ class Client extends openapi_client_1.default {
|
|
|
25535
25565
|
return await this.describeMonitoringConfigWithOptions(request, runtime);
|
|
25536
25566
|
}
|
|
25537
25567
|
/**
|
|
25538
|
-
*
|
|
25568
|
+
* > If a tag is attached to multiple cloud resources in the region, the key of the tag is returned only once.
|
|
25539
25569
|
*
|
|
25540
25570
|
* @param request DescribeProductResourceTagKeyListRequest
|
|
25541
25571
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -25564,7 +25594,7 @@ class Client extends openapi_client_1.default {
|
|
|
25564
25594
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeProductResourceTagKeyListResponse({}));
|
|
25565
25595
|
}
|
|
25566
25596
|
/**
|
|
25567
|
-
*
|
|
25597
|
+
* > If a tag is attached to multiple cloud resources in the region, the key of the tag is returned only once.
|
|
25568
25598
|
*
|
|
25569
25599
|
* @param request DescribeProductResourceTagKeyListRequest
|
|
25570
25600
|
* @return DescribeProductResourceTagKeyListResponse
|
|
@@ -25639,7 +25669,7 @@ class Client extends openapi_client_1.default {
|
|
|
25639
25669
|
return await this.describeProjectMetaWithOptions(request, runtime);
|
|
25640
25670
|
}
|
|
25641
25671
|
/**
|
|
25642
|
-
* The
|
|
25672
|
+
* This topic provides an example on how to query the details of a site monitoring task whose ID is `cc641dff-c19d-45f3-ad0a-818a0c4f****`. The returned result indicates that the task name is `test123`, the URL that is monitored by the task is `https://aliyun.com`, and the name of the carrier is `Alibaba`.
|
|
25643
25673
|
*
|
|
25644
25674
|
* @param request DescribeSiteMonitorAttributeRequest
|
|
25645
25675
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -25671,7 +25701,7 @@ class Client extends openapi_client_1.default {
|
|
|
25671
25701
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeSiteMonitorAttributeResponse({}));
|
|
25672
25702
|
}
|
|
25673
25703
|
/**
|
|
25674
|
-
* The
|
|
25704
|
+
* This topic provides an example on how to query the details of a site monitoring task whose ID is `cc641dff-c19d-45f3-ad0a-818a0c4f****`. The returned result indicates that the task name is `test123`, the URL that is monitored by the task is `https://aliyun.com`, and the name of the carrier is `Alibaba`.
|
|
25675
25705
|
*
|
|
25676
25706
|
* @param request DescribeSiteMonitorAttributeRequest
|
|
25677
25707
|
* @return DescribeSiteMonitorAttributeResponse
|
|
@@ -25779,7 +25809,7 @@ class Client extends openapi_client_1.default {
|
|
|
25779
25809
|
return await this.describeSiteMonitorISPCityListWithOptions(request, runtime);
|
|
25780
25810
|
}
|
|
25781
25811
|
/**
|
|
25782
|
-
*
|
|
25812
|
+
* This topic provides an example on how to query all the site monitoring tasks of your Alibaba Cloud account. In this example, the returned result indicates that the Alibaba Cloud account has one site monitoring task named `HanZhou_ECS2`.
|
|
25783
25813
|
*
|
|
25784
25814
|
* @param request DescribeSiteMonitorListRequest
|
|
25785
25815
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -25823,7 +25853,7 @@ class Client extends openapi_client_1.default {
|
|
|
25823
25853
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeSiteMonitorListResponse({}));
|
|
25824
25854
|
}
|
|
25825
25855
|
/**
|
|
25826
|
-
*
|
|
25856
|
+
* This topic provides an example on how to query all the site monitoring tasks of your Alibaba Cloud account. In this example, the returned result indicates that the Alibaba Cloud account has one site monitoring task named `HanZhou_ECS2`.
|
|
25827
25857
|
*
|
|
25828
25858
|
* @param request DescribeSiteMonitorListRequest
|
|
25829
25859
|
* @return DescribeSiteMonitorListResponse
|
|
@@ -25926,6 +25956,13 @@ class Client extends openapi_client_1.default {
|
|
|
25926
25956
|
let runtime = new $Util.RuntimeOptions({});
|
|
25927
25957
|
return await this.describeSiteMonitorQuotaWithOptions(request, runtime);
|
|
25928
25958
|
}
|
|
25959
|
+
/**
|
|
25960
|
+
* This topic provides an example to show how to query the statistics of the `Availability` metric for a site monitoring task whose ID is `ef4cdc8b-9dc7-43e7-810e-f950e56c****`. The result indicates that the availability rate of the site is `100%`.
|
|
25961
|
+
*
|
|
25962
|
+
* @param request DescribeSiteMonitorStatisticsRequest
|
|
25963
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
25964
|
+
* @return DescribeSiteMonitorStatisticsResponse
|
|
25965
|
+
*/
|
|
25929
25966
|
async describeSiteMonitorStatisticsWithOptions(request, runtime) {
|
|
25930
25967
|
tea_util_1.default.validateModel(request);
|
|
25931
25968
|
let query = {};
|
|
@@ -25957,6 +25994,12 @@ class Client extends openapi_client_1.default {
|
|
|
25957
25994
|
});
|
|
25958
25995
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeSiteMonitorStatisticsResponse({}));
|
|
25959
25996
|
}
|
|
25997
|
+
/**
|
|
25998
|
+
* This topic provides an example to show how to query the statistics of the `Availability` metric for a site monitoring task whose ID is `ef4cdc8b-9dc7-43e7-810e-f950e56c****`. The result indicates that the availability rate of the site is `100%`.
|
|
25999
|
+
*
|
|
26000
|
+
* @param request DescribeSiteMonitorStatisticsRequest
|
|
26001
|
+
* @return DescribeSiteMonitorStatisticsResponse
|
|
26002
|
+
*/
|
|
25960
26003
|
async describeSiteMonitorStatistics(request) {
|
|
25961
26004
|
let runtime = new $Util.RuntimeOptions({});
|
|
25962
26005
|
return await this.describeSiteMonitorStatisticsWithOptions(request, runtime);
|
|
@@ -26018,7 +26061,7 @@ class Client extends openapi_client_1.default {
|
|
|
26018
26061
|
return await this.describeSystemEventAttributeWithOptions(request, runtime);
|
|
26019
26062
|
}
|
|
26020
26063
|
/**
|
|
26021
|
-
*
|
|
26064
|
+
* This topic provides an example on how to query the number of times that a system event occurred for Elastic Compute Service (`ECS`). The returned result indicates that the number of times that the specified system event occurred is 3.
|
|
26022
26065
|
*
|
|
26023
26066
|
* @param request DescribeSystemEventCountRequest
|
|
26024
26067
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -26071,7 +26114,7 @@ class Client extends openapi_client_1.default {
|
|
|
26071
26114
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeSystemEventCountResponse({}));
|
|
26072
26115
|
}
|
|
26073
26116
|
/**
|
|
26074
|
-
*
|
|
26117
|
+
* This topic provides an example on how to query the number of times that a system event occurred for Elastic Compute Service (`ECS`). The returned result indicates that the number of times that the specified system event occurred is 3.
|
|
26075
26118
|
*
|
|
26076
26119
|
* @param request DescribeSystemEventCountRequest
|
|
26077
26120
|
* @return DescribeSystemEventCountResponse
|
|
@@ -26180,7 +26223,7 @@ class Client extends openapi_client_1.default {
|
|
|
26180
26223
|
return await this.describeTagKeyListWithOptions(request, runtime);
|
|
26181
26224
|
}
|
|
26182
26225
|
/**
|
|
26183
|
-
*
|
|
26226
|
+
* This topic provides an example of how to query the tag values corresponding to `tagKey1`. The return results are `tagValue1` and `tagValue2`.
|
|
26184
26227
|
*
|
|
26185
26228
|
* @param request DescribeTagValueListRequest
|
|
26186
26229
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -26215,7 +26258,7 @@ class Client extends openapi_client_1.default {
|
|
|
26215
26258
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTagValueListResponse({}));
|
|
26216
26259
|
}
|
|
26217
26260
|
/**
|
|
26218
|
-
*
|
|
26261
|
+
* This topic provides an example of how to query the tag values corresponding to `tagKey1`. The return results are `tagValue1` and `tagValue2`.
|
|
26219
26262
|
*
|
|
26220
26263
|
* @param request DescribeTagValueListRequest
|
|
26221
26264
|
* @return DescribeTagValueListResponse
|
|
@@ -26540,9 +26583,8 @@ class Client extends openapi_client_1.default {
|
|
|
26540
26583
|
return await this.enableSiteMonitorsWithOptions(request, runtime);
|
|
26541
26584
|
}
|
|
26542
26585
|
/**
|
|
26543
|
-
*
|
|
26544
|
-
*
|
|
26545
|
-
* * false: The call failed.
|
|
26586
|
+
* ## Prerequisites
|
|
26587
|
+
* The Cloud Assistant client is installed on an ECS instance. For more information about how to install the Cloud Assistant client, see [Overview](~~64601~~).
|
|
26546
26588
|
*
|
|
26547
26589
|
* @param request InstallMonitoringAgentRequest
|
|
26548
26590
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -26577,9 +26619,8 @@ class Client extends openapi_client_1.default {
|
|
|
26577
26619
|
return $tea.cast(await this.callApi(params, req, runtime), new InstallMonitoringAgentResponse({}));
|
|
26578
26620
|
}
|
|
26579
26621
|
/**
|
|
26580
|
-
*
|
|
26581
|
-
*
|
|
26582
|
-
* * false: The call failed.
|
|
26622
|
+
* ## Prerequisites
|
|
26623
|
+
* The Cloud Assistant client is installed on an ECS instance. For more information about how to install the Cloud Assistant client, see [Overview](~~64601~~).
|
|
26583
26624
|
*
|
|
26584
26625
|
* @param request InstallMonitoringAgentRequest
|
|
26585
26626
|
* @return InstallMonitoringAgentResponse
|
|
@@ -26729,9 +26770,7 @@ class Client extends openapi_client_1.default {
|
|
|
26729
26770
|
return await this.modifyHostInfoWithOptions(request, runtime);
|
|
26730
26771
|
}
|
|
26731
26772
|
/**
|
|
26732
|
-
*
|
|
26733
|
-
* * true: The call was successful.
|
|
26734
|
-
* * false: The call failed.
|
|
26773
|
+
* This topic provides an example on how to change the data retention period of the `aliyun` namespace to `cms.s1.2xlarge`. The response shows that the namespace is modified.
|
|
26735
26774
|
*
|
|
26736
26775
|
* @param request ModifyHybridMonitorNamespaceRequest
|
|
26737
26776
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -26766,9 +26805,7 @@ class Client extends openapi_client_1.default {
|
|
|
26766
26805
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyHybridMonitorNamespaceResponse({}));
|
|
26767
26806
|
}
|
|
26768
26807
|
/**
|
|
26769
|
-
*
|
|
26770
|
-
* * true: The call was successful.
|
|
26771
|
-
* * false: The call failed.
|
|
26808
|
+
* This topic provides an example on how to change the data retention period of the `aliyun` namespace to `cms.s1.2xlarge`. The response shows that the namespace is modified.
|
|
26772
26809
|
*
|
|
26773
26810
|
* @param request ModifyHybridMonitorNamespaceRequest
|
|
26774
26811
|
* @return ModifyHybridMonitorNamespaceResponse
|
|
@@ -26778,8 +26815,7 @@ class Client extends openapi_client_1.default {
|
|
|
26778
26815
|
return await this.modifyHybridMonitorNamespaceWithOptions(request, runtime);
|
|
26779
26816
|
}
|
|
26780
26817
|
/**
|
|
26781
|
-
* The
|
|
26782
|
-
* Valid values of N: 1 to 25.
|
|
26818
|
+
* In this example, a Logstore group named `Logstore_test` is modified. The Logstore of the `aliyun-project` project in the `cn-hangzhou` region is changed to `Logstore-aliyun-all`. The response shows that the Logstore group is modified.
|
|
26783
26819
|
*
|
|
26784
26820
|
* @param request ModifyHybridMonitorSLSGroupRequest
|
|
26785
26821
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -26814,8 +26850,7 @@ class Client extends openapi_client_1.default {
|
|
|
26814
26850
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyHybridMonitorSLSGroupResponse({}));
|
|
26815
26851
|
}
|
|
26816
26852
|
/**
|
|
26817
|
-
* The
|
|
26818
|
-
* Valid values of N: 1 to 25.
|
|
26853
|
+
* In this example, a Logstore group named `Logstore_test` is modified. The Logstore of the `aliyun-project` project in the `cn-hangzhou` region is changed to `Logstore-aliyun-all`. The response shows that the Logstore group is modified.
|
|
26819
26854
|
*
|
|
26820
26855
|
* @param request ModifyHybridMonitorSLSGroupRequest
|
|
26821
26856
|
* @return ModifyHybridMonitorSLSGroupResponse
|
|
@@ -26935,9 +26970,7 @@ class Client extends openapi_client_1.default {
|
|
|
26935
26970
|
return await this.modifyMetricRuleBlackListWithOptions(request, runtime);
|
|
26936
26971
|
}
|
|
26937
26972
|
/**
|
|
26938
|
-
*
|
|
26939
|
-
* * true: The call was successful.
|
|
26940
|
-
* * false: The call failed.
|
|
26973
|
+
* This topic provides an example on how to modify an alert template whose version is `1` and ID is `123456`. The alert level is changed to `Critical`. The statistical method is changed to `Average`. The alert threshold comparator is changed to `GreaterThanOrEqualToThreshold`. The alert threshold is changed to `90`. The number of alert retries is changed to `3`. The response shows that the alert template is modified.
|
|
26941
26974
|
*
|
|
26942
26975
|
* @param request ModifyMetricRuleTemplateRequest
|
|
26943
26976
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -26978,9 +27011,7 @@ class Client extends openapi_client_1.default {
|
|
|
26978
27011
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyMetricRuleTemplateResponse({}));
|
|
26979
27012
|
}
|
|
26980
27013
|
/**
|
|
26981
|
-
*
|
|
26982
|
-
* * true: The call was successful.
|
|
26983
|
-
* * false: The call failed.
|
|
27014
|
+
* This topic provides an example on how to modify an alert template whose version is `1` and ID is `123456`. The alert level is changed to `Critical`. The statistical method is changed to `Average`. The alert threshold comparator is changed to `GreaterThanOrEqualToThreshold`. The alert threshold is changed to `90`. The number of alert retries is changed to `3`. The response shows that the alert template is modified.
|
|
26984
27015
|
*
|
|
26985
27016
|
* @param request ModifyMetricRuleTemplateRequest
|
|
26986
27017
|
* @return ModifyMetricRuleTemplateResponse
|
|
@@ -27182,7 +27213,7 @@ class Client extends openapi_client_1.default {
|
|
|
27182
27213
|
return await this.putContactWithOptions(request, runtime);
|
|
27183
27214
|
}
|
|
27184
27215
|
/**
|
|
27185
|
-
*
|
|
27216
|
+
* This topic provides an example on how to create an alert contact group named `ECS_Group`.
|
|
27186
27217
|
*
|
|
27187
27218
|
* @param request PutContactGroupRequest
|
|
27188
27219
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27220,7 +27251,7 @@ class Client extends openapi_client_1.default {
|
|
|
27220
27251
|
return $tea.cast(await this.callApi(params, req, runtime), new PutContactGroupResponse({}));
|
|
27221
27252
|
}
|
|
27222
27253
|
/**
|
|
27223
|
-
*
|
|
27254
|
+
* This topic provides an example on how to create an alert contact group named `ECS_Group`.
|
|
27224
27255
|
*
|
|
27225
27256
|
* @param request PutContactGroupRequest
|
|
27226
27257
|
* @return PutContactGroupResponse
|
|
@@ -27256,7 +27287,7 @@ class Client extends openapi_client_1.default {
|
|
|
27256
27287
|
return await this.putCustomEventWithOptions(request, runtime);
|
|
27257
27288
|
}
|
|
27258
27289
|
/**
|
|
27259
|
-
*
|
|
27290
|
+
* Before you call this operation, call the PutCustomEvent operation to report the monitoring data of the custom event. For more information, see [PutCustomEvent](~~115012~~).
|
|
27260
27291
|
*
|
|
27261
27292
|
* @param request PutCustomEventRuleRequest
|
|
27262
27293
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27315,7 +27346,7 @@ class Client extends openapi_client_1.default {
|
|
|
27315
27346
|
return $tea.cast(await this.callApi(params, req, runtime), new PutCustomEventRuleResponse({}));
|
|
27316
27347
|
}
|
|
27317
27348
|
/**
|
|
27318
|
-
*
|
|
27349
|
+
* Before you call this operation, call the PutCustomEvent operation to report the monitoring data of the custom event. For more information, see [PutCustomEvent](~~115012~~).
|
|
27319
27350
|
*
|
|
27320
27351
|
* @param request PutCustomEventRuleRequest
|
|
27321
27352
|
* @return PutCustomEventRuleResponse
|
|
@@ -27325,11 +27356,7 @@ class Client extends openapi_client_1.default {
|
|
|
27325
27356
|
return await this.putCustomEventRuleWithOptions(request, runtime);
|
|
27326
27357
|
}
|
|
27327
27358
|
/**
|
|
27328
|
-
*
|
|
27329
|
-
* Set the value to a collection of key-value pairs. Format:`{"Key":"Value"}`.
|
|
27330
|
-
* The key or value must be 1 to 64 bytes in length. Excessive characters are truncated.
|
|
27331
|
-
* The key or value can contain letters, digits, periods (.), hyphens (-), underscores (\\_), forward slashes (/), and backslashes (\\\\).
|
|
27332
|
-
* > Dimensions must be formatted as a JSON string in a specified order.
|
|
27359
|
+
* > We recommend that you call the [PutHybridMonitorMetricData](~~383455~~) operation of Hybrid Cloud Monitoring to report monitoring data.
|
|
27333
27360
|
*
|
|
27334
27361
|
* @param request PutCustomMetricRequest
|
|
27335
27362
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27358,11 +27385,7 @@ class Client extends openapi_client_1.default {
|
|
|
27358
27385
|
return $tea.cast(await this.callApi(params, req, runtime), new PutCustomMetricResponse({}));
|
|
27359
27386
|
}
|
|
27360
27387
|
/**
|
|
27361
|
-
*
|
|
27362
|
-
* Set the value to a collection of key-value pairs. Format:`{"Key":"Value"}`.
|
|
27363
|
-
* The key or value must be 1 to 64 bytes in length. Excessive characters are truncated.
|
|
27364
|
-
* The key or value can contain letters, digits, periods (.), hyphens (-), underscores (\\_), forward slashes (/), and backslashes (\\\\).
|
|
27365
|
-
* > Dimensions must be formatted as a JSON string in a specified order.
|
|
27388
|
+
* > We recommend that you call the [PutHybridMonitorMetricData](~~383455~~) operation of Hybrid Cloud Monitoring to report monitoring data.
|
|
27366
27389
|
*
|
|
27367
27390
|
* @param request PutCustomMetricRequest
|
|
27368
27391
|
* @return PutCustomMetricResponse
|
|
@@ -27372,7 +27395,7 @@ class Client extends openapi_client_1.default {
|
|
|
27372
27395
|
return await this.putCustomMetricWithOptions(request, runtime);
|
|
27373
27396
|
}
|
|
27374
27397
|
/**
|
|
27375
|
-
*
|
|
27398
|
+
* Before you call this operation, call the PutCustomMetric operation to report custom monitoring data. For more information, see [PutCustomMetric](~~115004~~).
|
|
27376
27399
|
*
|
|
27377
27400
|
* @param request PutCustomMetricRuleRequest
|
|
27378
27401
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27446,7 +27469,7 @@ class Client extends openapi_client_1.default {
|
|
|
27446
27469
|
return $tea.cast(await this.callApi(params, req, runtime), new PutCustomMetricRuleResponse({}));
|
|
27447
27470
|
}
|
|
27448
27471
|
/**
|
|
27449
|
-
*
|
|
27472
|
+
* Before you call this operation, call the PutCustomMetric operation to report custom monitoring data. For more information, see [PutCustomMetric](~~115004~~).
|
|
27450
27473
|
*
|
|
27451
27474
|
* @param request PutCustomMetricRuleRequest
|
|
27452
27475
|
* @return PutCustomMetricRuleResponse
|
|
@@ -27456,7 +27479,8 @@ class Client extends openapi_client_1.default {
|
|
|
27456
27479
|
return await this.putCustomMetricRuleWithOptions(request, runtime);
|
|
27457
27480
|
}
|
|
27458
27481
|
/**
|
|
27459
|
-
*
|
|
27482
|
+
* If the specified rule name does not exist, an event-triggered alert rule is created. If the specified rule name exists, the specified event-triggered alert rule is modified.
|
|
27483
|
+
* In this example, the `myRuleName` alert rule is created for the `ecs` cloud service.
|
|
27460
27484
|
*
|
|
27461
27485
|
* @param request PutEventRuleRequest
|
|
27462
27486
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27503,7 +27527,8 @@ class Client extends openapi_client_1.default {
|
|
|
27503
27527
|
return $tea.cast(await this.callApi(params, req, runtime), new PutEventRuleResponse({}));
|
|
27504
27528
|
}
|
|
27505
27529
|
/**
|
|
27506
|
-
*
|
|
27530
|
+
* If the specified rule name does not exist, an event-triggered alert rule is created. If the specified rule name exists, the specified event-triggered alert rule is modified.
|
|
27531
|
+
* In this example, the `myRuleName` alert rule is created for the `ecs` cloud service.
|
|
27507
27532
|
*
|
|
27508
27533
|
* @param request PutEventRuleRequest
|
|
27509
27534
|
* @return PutEventRuleResponse
|
|
@@ -27791,7 +27816,7 @@ class Client extends openapi_client_1.default {
|
|
|
27791
27816
|
return await this.putHybridMonitorMetricDataWithOptions(request, runtime);
|
|
27792
27817
|
}
|
|
27793
27818
|
/**
|
|
27794
|
-
*
|
|
27819
|
+
* In the example of this topic, the `cpu_total` log monitoring metric is created. The response shows that the log monitoring metric is created and the metric ID is `16****`.
|
|
27795
27820
|
*
|
|
27796
27821
|
* @param request PutLogMonitorRequest
|
|
27797
27822
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27856,7 +27881,7 @@ class Client extends openapi_client_1.default {
|
|
|
27856
27881
|
return $tea.cast(await this.callApi(params, req, runtime), new PutLogMonitorResponse({}));
|
|
27857
27882
|
}
|
|
27858
27883
|
/**
|
|
27859
|
-
*
|
|
27884
|
+
* In the example of this topic, the `cpu_total` log monitoring metric is created. The response shows that the log monitoring metric is created and the metric ID is `16****`.
|
|
27860
27885
|
*
|
|
27861
27886
|
* @param request PutLogMonitorRequest
|
|
27862
27887
|
* @return PutLogMonitorResponse
|
|
@@ -27866,9 +27891,8 @@ class Client extends openapi_client_1.default {
|
|
|
27866
27891
|
return await this.putLogMonitorWithOptions(request, runtime);
|
|
27867
27892
|
}
|
|
27868
27893
|
/**
|
|
27869
|
-
*
|
|
27870
|
-
*
|
|
27871
|
-
* * false: The call failed.
|
|
27894
|
+
* ## Limit
|
|
27895
|
+
* This operation supports only Message Service (MNS) resources.
|
|
27872
27896
|
*
|
|
27873
27897
|
* @param request PutMetricRuleTargetsRequest
|
|
27874
27898
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27900,9 +27924,8 @@ class Client extends openapi_client_1.default {
|
|
|
27900
27924
|
return $tea.cast(await this.callApi(params, req, runtime), new PutMetricRuleTargetsResponse({}));
|
|
27901
27925
|
}
|
|
27902
27926
|
/**
|
|
27903
|
-
*
|
|
27904
|
-
*
|
|
27905
|
-
* * false: The call failed.
|
|
27927
|
+
* ## Limit
|
|
27928
|
+
* This operation supports only Message Service (MNS) resources.
|
|
27906
27929
|
*
|
|
27907
27930
|
* @param request PutMetricRuleTargetsRequest
|
|
27908
27931
|
* @return PutMetricRuleTargetsResponse
|
|
@@ -28071,9 +28094,7 @@ class Client extends openapi_client_1.default {
|
|
|
28071
28094
|
return await this.putResourceMetricRuleWithOptions(request, runtime);
|
|
28072
28095
|
}
|
|
28073
28096
|
/**
|
|
28074
|
-
*
|
|
28075
|
-
* * true: The call was successful.
|
|
28076
|
-
* * false: The call failed.
|
|
28097
|
+
* This topic provides an example on how to create a threshold-triggered alert rule for the `cpu_total` metric of the `i-uf6j91r34rnwawoo****` instance that belongs to Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. In this example, the alert contact group of the alert rule is `ECS_Group`, the name of the alert rule is `test123`, and 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`, and the consecutive number of times for which the metric value is measured before a Critical-level alert is triggered is `3`.
|
|
28077
28098
|
*
|
|
28078
28099
|
* @param request PutResourceMetricRulesRequest
|
|
28079
28100
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -28102,9 +28123,7 @@ class Client extends openapi_client_1.default {
|
|
|
28102
28123
|
return $tea.cast(await this.callApi(params, req, runtime), new PutResourceMetricRulesResponse({}));
|
|
28103
28124
|
}
|
|
28104
28125
|
/**
|
|
28105
|
-
*
|
|
28106
|
-
* * true: The call was successful.
|
|
28107
|
-
* * false: The call failed.
|
|
28126
|
+
* This topic provides an example on how to create a threshold-triggered alert rule for the `cpu_total` metric of the `i-uf6j91r34rnwawoo****` instance that belongs to Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. In this example, the alert contact group of the alert rule is `ECS_Group`, the name of the alert rule is `test123`, and 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`, and the consecutive number of times for which the metric value is measured before a Critical-level alert is triggered is `3`.
|
|
28108
28127
|
*
|
|
28109
28128
|
* @param request PutResourceMetricRulesRequest
|
|
28110
28129
|
* @return PutResourceMetricRulesResponse
|
|
@@ -28143,8 +28162,7 @@ class Client extends openapi_client_1.default {
|
|
|
28143
28162
|
return await this.removeTagsWithOptions(request, runtime);
|
|
28144
28163
|
}
|
|
28145
28164
|
/**
|
|
28146
|
-
*
|
|
28147
|
-
* > For information about the system events supported by Cloud Monitor for Alibaba Cloud services, see [System events](~~167388~~).
|
|
28165
|
+
* This operation is used to test whether a system event can be triggered as expected. You can call this operation to simulate a system event and check whether an expected response is returned after an alert is triggered by the system event.
|
|
28148
28166
|
*
|
|
28149
28167
|
* @param request SendDryRunSystemEventRequest
|
|
28150
28168
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -28182,8 +28200,7 @@ class Client extends openapi_client_1.default {
|
|
|
28182
28200
|
return $tea.cast(await this.callApi(params, req, runtime), new SendDryRunSystemEventResponse({}));
|
|
28183
28201
|
}
|
|
28184
28202
|
/**
|
|
28185
|
-
*
|
|
28186
|
-
* > For information about the system events supported by Cloud Monitor for Alibaba Cloud services, see [System events](~~167388~~).
|
|
28203
|
+
* This operation is used to test whether a system event can be triggered as expected. You can call this operation to simulate a system event and check whether an expected response is returned after an alert is triggered by the system event.
|
|
28187
28204
|
*
|
|
28188
28205
|
* @param request SendDryRunSystemEventRequest
|
|
28189
28206
|
* @return SendDryRunSystemEventResponse
|
|
@@ -28193,7 +28210,7 @@ class Client extends openapi_client_1.default {
|
|
|
28193
28210
|
return await this.sendDryRunSystemEventWithOptions(request, runtime);
|
|
28194
28211
|
}
|
|
28195
28212
|
/**
|
|
28196
|
-
*
|
|
28213
|
+
* > This API operation is not applicable to ECS instances. To uninstall the agent from an ECS instance, see [Install and uninstall the Cloud Monitor agent](~~183482~~).
|
|
28197
28214
|
*
|
|
28198
28215
|
* @param request UninstallMonitoringAgentRequest
|
|
28199
28216
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -28222,7 +28239,7 @@ class Client extends openapi_client_1.default {
|
|
|
28222
28239
|
return $tea.cast(await this.callApi(params, req, runtime), new UninstallMonitoringAgentResponse({}));
|
|
28223
28240
|
}
|
|
28224
28241
|
/**
|
|
28225
|
-
*
|
|
28242
|
+
* > This API operation is not applicable to ECS instances. To uninstall the agent from an ECS instance, see [Install and uninstall the Cloud Monitor agent](~~183482~~).
|
|
28226
28243
|
*
|
|
28227
28244
|
* @param request UninstallMonitoringAgentRequest
|
|
28228
28245
|
* @return UninstallMonitoringAgentResponse
|