@alicloud/cms20190101 2.0.8 → 2.0.10
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 +184 -174
- package/dist/client.js +213 -174
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +236 -174
package/dist/client.js
CHANGED
|
@@ -1259,6 +1259,8 @@ class CreateHybridMonitorNamespaceRequest extends $tea.Model {
|
|
|
1259
1259
|
return {
|
|
1260
1260
|
description: 'Description',
|
|
1261
1261
|
namespace: 'Namespace',
|
|
1262
|
+
namespaceRegion: 'NamespaceRegion',
|
|
1263
|
+
namespaceType: 'NamespaceType',
|
|
1262
1264
|
regionId: 'RegionId',
|
|
1263
1265
|
spec: 'Spec',
|
|
1264
1266
|
};
|
|
@@ -1267,6 +1269,8 @@ class CreateHybridMonitorNamespaceRequest extends $tea.Model {
|
|
|
1267
1269
|
return {
|
|
1268
1270
|
description: 'string',
|
|
1269
1271
|
namespace: 'string',
|
|
1272
|
+
namespaceRegion: 'string',
|
|
1273
|
+
namespaceType: 'string',
|
|
1270
1274
|
regionId: 'string',
|
|
1271
1275
|
spec: 'string',
|
|
1272
1276
|
};
|
|
@@ -4283,6 +4287,7 @@ class DescribeAlertingMetricRuleResourcesRequest extends $tea.Model {
|
|
|
4283
4287
|
}
|
|
4284
4288
|
static names() {
|
|
4285
4289
|
return {
|
|
4290
|
+
alertBeforeTime: 'AlertBeforeTime',
|
|
4286
4291
|
dimensions: 'Dimensions',
|
|
4287
4292
|
groupId: 'GroupId',
|
|
4288
4293
|
namespace: 'Namespace',
|
|
@@ -4294,6 +4299,7 @@ class DescribeAlertingMetricRuleResourcesRequest extends $tea.Model {
|
|
|
4294
4299
|
}
|
|
4295
4300
|
static types() {
|
|
4296
4301
|
return {
|
|
4302
|
+
alertBeforeTime: 'string',
|
|
4297
4303
|
dimensions: 'string',
|
|
4298
4304
|
groupId: 'string',
|
|
4299
4305
|
namespace: 'string',
|
|
@@ -11887,6 +11893,7 @@ class EscalationRuleEscalations extends $tea.Model {
|
|
|
11887
11893
|
}
|
|
11888
11894
|
static names() {
|
|
11889
11895
|
return {
|
|
11896
|
+
backupContactGroups: 'BackupContactGroups',
|
|
11890
11897
|
contactGroups: 'ContactGroups',
|
|
11891
11898
|
contactGroupsByLevel: 'ContactGroupsByLevel',
|
|
11892
11899
|
escalateMin: 'EscalateMin',
|
|
@@ -11894,6 +11901,7 @@ class EscalationRuleEscalations extends $tea.Model {
|
|
|
11894
11901
|
}
|
|
11895
11902
|
static types() {
|
|
11896
11903
|
return {
|
|
11904
|
+
backupContactGroups: { 'type': 'array', 'itemType': 'string' },
|
|
11897
11905
|
contactGroups: { 'type': 'array', 'itemType': 'string' },
|
|
11898
11906
|
contactGroupsByLevel: EscalationRuleEscalationsContactGroupsByLevel,
|
|
11899
11907
|
escalateMin: 'number',
|
|
@@ -16065,11 +16073,15 @@ class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespa
|
|
|
16065
16073
|
}
|
|
16066
16074
|
static names() {
|
|
16067
16075
|
return {
|
|
16076
|
+
namespaceRegion: 'NamespaceRegion',
|
|
16077
|
+
SLSProject: 'SLSProject',
|
|
16068
16078
|
spec: 'Spec',
|
|
16069
16079
|
};
|
|
16070
16080
|
}
|
|
16071
16081
|
static types() {
|
|
16072
16082
|
return {
|
|
16083
|
+
namespaceRegion: 'string',
|
|
16084
|
+
SLSProject: 'string',
|
|
16073
16085
|
spec: 'string',
|
|
16074
16086
|
};
|
|
16075
16087
|
}
|
|
@@ -16089,6 +16101,7 @@ class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespa
|
|
|
16089
16101
|
isDelete: 'IsDelete',
|
|
16090
16102
|
modifyTime: 'ModifyTime',
|
|
16091
16103
|
namespace: 'Namespace',
|
|
16104
|
+
namespaceType: 'NamespaceType',
|
|
16092
16105
|
notAliyunTaskNumber: 'NotAliyunTaskNumber',
|
|
16093
16106
|
};
|
|
16094
16107
|
}
|
|
@@ -16102,6 +16115,7 @@ class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespa
|
|
|
16102
16115
|
isDelete: 'number',
|
|
16103
16116
|
modifyTime: 'string',
|
|
16104
16117
|
namespace: 'string',
|
|
16118
|
+
namespaceType: 'string',
|
|
16105
16119
|
notAliyunTaskNumber: 'number',
|
|
16106
16120
|
};
|
|
16107
16121
|
}
|
|
@@ -17895,6 +17909,26 @@ class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS extends
|
|
|
17895
17909
|
}
|
|
17896
17910
|
}
|
|
17897
17911
|
exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS;
|
|
17912
|
+
class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser extends $tea.Model {
|
|
17913
|
+
constructor(map) {
|
|
17914
|
+
super(map);
|
|
17915
|
+
}
|
|
17916
|
+
static names() {
|
|
17917
|
+
return {
|
|
17918
|
+
quotaLimit: 'QuotaLimit',
|
|
17919
|
+
quotaPackage: 'QuotaPackage',
|
|
17920
|
+
quotaUsed: 'QuotaUsed',
|
|
17921
|
+
};
|
|
17922
|
+
}
|
|
17923
|
+
static types() {
|
|
17924
|
+
return {
|
|
17925
|
+
quotaLimit: 'number',
|
|
17926
|
+
quotaPackage: 'number',
|
|
17927
|
+
quotaUsed: 'number',
|
|
17928
|
+
};
|
|
17929
|
+
}
|
|
17930
|
+
}
|
|
17931
|
+
exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser;
|
|
17898
17932
|
class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe extends $tea.Model {
|
|
17899
17933
|
constructor(map) {
|
|
17900
17934
|
super(map);
|
|
@@ -17915,6 +17949,26 @@ class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorE
|
|
|
17915
17949
|
}
|
|
17916
17950
|
}
|
|
17917
17951
|
exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe;
|
|
17952
|
+
class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile extends $tea.Model {
|
|
17953
|
+
constructor(map) {
|
|
17954
|
+
super(map);
|
|
17955
|
+
}
|
|
17956
|
+
static names() {
|
|
17957
|
+
return {
|
|
17958
|
+
quotaLimit: 'QuotaLimit',
|
|
17959
|
+
quotaPackage: 'QuotaPackage',
|
|
17960
|
+
quotaUsed: 'QuotaUsed',
|
|
17961
|
+
};
|
|
17962
|
+
}
|
|
17963
|
+
static types() {
|
|
17964
|
+
return {
|
|
17965
|
+
quotaLimit: 'number',
|
|
17966
|
+
quotaPackage: 'number',
|
|
17967
|
+
quotaUsed: 'number',
|
|
17968
|
+
};
|
|
17969
|
+
}
|
|
17970
|
+
}
|
|
17971
|
+
exports.DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile = DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile;
|
|
17918
17972
|
class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe extends $tea.Model {
|
|
17919
17973
|
constructor(map) {
|
|
17920
17974
|
super(map);
|
|
@@ -17970,7 +18024,9 @@ class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota extends $te
|
|
|
17970
18024
|
logMonitor: 'LogMonitor',
|
|
17971
18025
|
phone: 'Phone',
|
|
17972
18026
|
SMS: 'SMS',
|
|
18027
|
+
siteMonitorBrowser: 'SiteMonitorBrowser',
|
|
17973
18028
|
siteMonitorEcsProbe: 'SiteMonitorEcsProbe',
|
|
18029
|
+
siteMonitorMobile: 'SiteMonitorMobile',
|
|
17974
18030
|
siteMonitorOperatorProbe: 'SiteMonitorOperatorProbe',
|
|
17975
18031
|
siteMonitorTask: 'SiteMonitorTask',
|
|
17976
18032
|
suitInfo: 'SuitInfo',
|
|
@@ -17987,7 +18043,9 @@ class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota extends $te
|
|
|
17987
18043
|
logMonitor: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor,
|
|
17988
18044
|
phone: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone,
|
|
17989
18045
|
SMS: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS,
|
|
18046
|
+
siteMonitorBrowser: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser,
|
|
17990
18047
|
siteMonitorEcsProbe: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe,
|
|
18048
|
+
siteMonitorMobile: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile,
|
|
17991
18049
|
siteMonitorOperatorProbe: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe,
|
|
17992
18050
|
siteMonitorTask: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask,
|
|
17993
18051
|
suitInfo: 'string',
|
|
@@ -18163,7 +18221,9 @@ class DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleList
|
|
|
18163
18221
|
}
|
|
18164
18222
|
static names() {
|
|
18165
18223
|
return {
|
|
18224
|
+
comparisonOperator: 'ComparisonOperator',
|
|
18166
18225
|
evaluationCount: 'EvaluationCount',
|
|
18226
|
+
level: 'Level',
|
|
18167
18227
|
metricName: 'MetricName',
|
|
18168
18228
|
namespace: 'Namespace',
|
|
18169
18229
|
period: 'Period',
|
|
@@ -18173,7 +18233,9 @@ class DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleList
|
|
|
18173
18233
|
}
|
|
18174
18234
|
static types() {
|
|
18175
18235
|
return {
|
|
18236
|
+
comparisonOperator: 'string',
|
|
18176
18237
|
evaluationCount: 'string',
|
|
18238
|
+
level: 'string',
|
|
18177
18239
|
metricName: 'string',
|
|
18178
18240
|
namespace: 'string',
|
|
18179
18241
|
period: 'string',
|
|
@@ -21090,8 +21152,7 @@ class Client extends openapi_client_1.default {
|
|
|
21090
21152
|
return await this.addTagsWithOptions(request, runtime);
|
|
21091
21153
|
}
|
|
21092
21154
|
/**
|
|
21093
|
-
*
|
|
21094
|
-
* For more information about how to query the ID of an application group, see [DescribeMonitorGroups](~~115032~~).
|
|
21155
|
+
* 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
21156
|
*
|
|
21096
21157
|
* @param request ApplyMetricRuleTemplateRequest
|
|
21097
21158
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -21141,8 +21202,7 @@ class Client extends openapi_client_1.default {
|
|
|
21141
21202
|
return $tea.cast(await this.callApi(params, req, runtime), new ApplyMetricRuleTemplateResponse({}));
|
|
21142
21203
|
}
|
|
21143
21204
|
/**
|
|
21144
|
-
*
|
|
21145
|
-
* For more information about how to query the ID of an application group, see [DescribeMonitorGroups](~~115032~~).
|
|
21205
|
+
* 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
21206
|
*
|
|
21147
21207
|
* @param request ApplyMetricRuleTemplateRequest
|
|
21148
21208
|
* @return ApplyMetricRuleTemplateResponse
|
|
@@ -21152,7 +21212,7 @@ class Client extends openapi_client_1.default {
|
|
|
21152
21212
|
return await this.applyMetricRuleTemplateWithOptions(request, runtime);
|
|
21153
21213
|
}
|
|
21154
21214
|
/**
|
|
21155
|
-
*
|
|
21215
|
+
* 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
21216
|
*
|
|
21157
21217
|
* @param request BatchCreateInstantSiteMonitorRequest
|
|
21158
21218
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -21181,7 +21241,7 @@ class Client extends openapi_client_1.default {
|
|
|
21181
21241
|
return $tea.cast(await this.callApi(params, req, runtime), new BatchCreateInstantSiteMonitorResponse({}));
|
|
21182
21242
|
}
|
|
21183
21243
|
/**
|
|
21184
|
-
*
|
|
21244
|
+
* 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
21245
|
*
|
|
21186
21246
|
* @param request BatchCreateInstantSiteMonitorRequest
|
|
21187
21247
|
* @return BatchCreateInstantSiteMonitorResponse
|
|
@@ -21450,9 +21510,8 @@ class Client extends openapi_client_1.default {
|
|
|
21450
21510
|
return await this.createCmsSmspackageOrderWithOptions(request, runtime);
|
|
21451
21511
|
}
|
|
21452
21512
|
/**
|
|
21453
|
-
*
|
|
21454
|
-
*
|
|
21455
|
-
* * false (default value): The application group does not automatically subscribe to event notifications.
|
|
21513
|
+
* This operation is available for Elastic Compute Service (ECS), ApsaraDB RDS, and Server Load Balancer (SLB).
|
|
21514
|
+
* 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
21515
|
*
|
|
21457
21516
|
* @param request CreateDynamicTagGroupRequest
|
|
21458
21517
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -21502,9 +21561,8 @@ class Client extends openapi_client_1.default {
|
|
|
21502
21561
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateDynamicTagGroupResponse({}));
|
|
21503
21562
|
}
|
|
21504
21563
|
/**
|
|
21505
|
-
*
|
|
21506
|
-
*
|
|
21507
|
-
* * false (default value): The application group does not automatically subscribe to event notifications.
|
|
21564
|
+
* This operation is available for Elastic Compute Service (ECS), ApsaraDB RDS, and Server Load Balancer (SLB).
|
|
21565
|
+
* 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
21566
|
*
|
|
21509
21567
|
* @param request CreateDynamicTagGroupRequest
|
|
21510
21568
|
* @return CreateDynamicTagGroupResponse
|
|
@@ -21514,7 +21572,7 @@ class Client extends openapi_client_1.default {
|
|
|
21514
21572
|
return await this.createDynamicTagGroupWithOptions(request, runtime);
|
|
21515
21573
|
}
|
|
21516
21574
|
/**
|
|
21517
|
-
* The
|
|
21575
|
+
* 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
21576
|
*
|
|
21519
21577
|
* @param request CreateGroupMetricRulesRequest
|
|
21520
21578
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -21546,7 +21604,7 @@ class Client extends openapi_client_1.default {
|
|
|
21546
21604
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateGroupMetricRulesResponse({}));
|
|
21547
21605
|
}
|
|
21548
21606
|
/**
|
|
21549
|
-
* The
|
|
21607
|
+
* 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
21608
|
*
|
|
21551
21609
|
* @param request CreateGroupMetricRulesRequest
|
|
21552
21610
|
* @return CreateGroupMetricRulesResponse
|
|
@@ -21657,9 +21715,8 @@ class Client extends openapi_client_1.default {
|
|
|
21657
21715
|
return await this.createHostAvailabilityWithOptions(request, runtime);
|
|
21658
21716
|
}
|
|
21659
21717
|
/**
|
|
21660
|
-
*
|
|
21661
|
-
*
|
|
21662
|
-
* * false: The call failed.
|
|
21718
|
+
* ## Prerequisites
|
|
21719
|
+
* Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).
|
|
21663
21720
|
*
|
|
21664
21721
|
* @param request CreateHybridMonitorNamespaceRequest
|
|
21665
21722
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -21674,6 +21731,12 @@ class Client extends openapi_client_1.default {
|
|
|
21674
21731
|
if (!tea_util_1.default.isUnset(request.namespace)) {
|
|
21675
21732
|
query["Namespace"] = request.namespace;
|
|
21676
21733
|
}
|
|
21734
|
+
if (!tea_util_1.default.isUnset(request.namespaceRegion)) {
|
|
21735
|
+
query["NamespaceRegion"] = request.namespaceRegion;
|
|
21736
|
+
}
|
|
21737
|
+
if (!tea_util_1.default.isUnset(request.namespaceType)) {
|
|
21738
|
+
query["NamespaceType"] = request.namespaceType;
|
|
21739
|
+
}
|
|
21677
21740
|
if (!tea_util_1.default.isUnset(request.spec)) {
|
|
21678
21741
|
query["Spec"] = request.spec;
|
|
21679
21742
|
}
|
|
@@ -21694,9 +21757,8 @@ class Client extends openapi_client_1.default {
|
|
|
21694
21757
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateHybridMonitorNamespaceResponse({}));
|
|
21695
21758
|
}
|
|
21696
21759
|
/**
|
|
21697
|
-
*
|
|
21698
|
-
*
|
|
21699
|
-
* * false: The call failed.
|
|
21760
|
+
* ## Prerequisites
|
|
21761
|
+
* Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).
|
|
21700
21762
|
*
|
|
21701
21763
|
* @param request CreateHybridMonitorNamespaceRequest
|
|
21702
21764
|
* @return CreateHybridMonitorNamespaceResponse
|
|
@@ -21706,8 +21768,10 @@ class Client extends openapi_client_1.default {
|
|
|
21706
21768
|
return await this.createHybridMonitorNamespaceWithOptions(request, runtime);
|
|
21707
21769
|
}
|
|
21708
21770
|
/**
|
|
21709
|
-
*
|
|
21710
|
-
*
|
|
21771
|
+
* # Prerequisites
|
|
21772
|
+
* Simple Log Service is activated. A project and a Logstore are created in Simple Log Service. For more information, see [Getting Started](~~54604~~).
|
|
21773
|
+
* # Description
|
|
21774
|
+
* 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
21775
|
*
|
|
21712
21776
|
* @param request CreateHybridMonitorSLSGroupRequest
|
|
21713
21777
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -21742,8 +21806,10 @@ class Client extends openapi_client_1.default {
|
|
|
21742
21806
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateHybridMonitorSLSGroupResponse({}));
|
|
21743
21807
|
}
|
|
21744
21808
|
/**
|
|
21745
|
-
*
|
|
21746
|
-
*
|
|
21809
|
+
* # Prerequisites
|
|
21810
|
+
* Simple Log Service is activated. A project and a Logstore are created in Simple Log Service. For more information, see [Getting Started](~~54604~~).
|
|
21811
|
+
* # Description
|
|
21812
|
+
* 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
21813
|
*
|
|
21748
21814
|
* @param request CreateHybridMonitorSLSGroupRequest
|
|
21749
21815
|
* @return CreateHybridMonitorSLSGroupResponse
|
|
@@ -21753,7 +21819,9 @@ class Client extends openapi_client_1.default {
|
|
|
21753
21819
|
return await this.createHybridMonitorSLSGroupWithOptions(request, runtime);
|
|
21754
21820
|
}
|
|
21755
21821
|
/**
|
|
21756
|
-
*
|
|
21822
|
+
* ## Prerequisites
|
|
21823
|
+
* * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).
|
|
21824
|
+
* * 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
21825
|
*
|
|
21758
21826
|
* @param request CreateHybridMonitorTaskRequest
|
|
21759
21827
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -21815,7 +21883,9 @@ class Client extends openapi_client_1.default {
|
|
|
21815
21883
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateHybridMonitorTaskResponse({}));
|
|
21816
21884
|
}
|
|
21817
21885
|
/**
|
|
21818
|
-
*
|
|
21886
|
+
* ## Prerequisites
|
|
21887
|
+
* * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).
|
|
21888
|
+
* * 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
21889
|
*
|
|
21820
21890
|
* @param request CreateHybridMonitorTaskRequest
|
|
21821
21891
|
* @return CreateHybridMonitorTaskResponse
|
|
@@ -22047,7 +22117,7 @@ class Client extends openapi_client_1.default {
|
|
|
22047
22117
|
return await this.createMonitorAgentProcessWithOptions(request, runtime);
|
|
22048
22118
|
}
|
|
22049
22119
|
/**
|
|
22050
|
-
*
|
|
22120
|
+
* In this example, the application group named `ECS_Group` is created.
|
|
22051
22121
|
*
|
|
22052
22122
|
* @param request CreateMonitorGroupRequest
|
|
22053
22123
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -22079,7 +22149,7 @@ class Client extends openapi_client_1.default {
|
|
|
22079
22149
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateMonitorGroupResponse({}));
|
|
22080
22150
|
}
|
|
22081
22151
|
/**
|
|
22082
|
-
*
|
|
22152
|
+
* In this example, the application group named `ECS_Group` is created.
|
|
22083
22153
|
*
|
|
22084
22154
|
* @param request CreateMonitorGroupRequest
|
|
22085
22155
|
* @return CreateMonitorGroupResponse
|
|
@@ -22143,8 +22213,8 @@ class Client extends openapi_client_1.default {
|
|
|
22143
22213
|
return await this.createMonitorGroupByResourceGroupIdWithOptions(request, runtime);
|
|
22144
22214
|
}
|
|
22145
22215
|
/**
|
|
22146
|
-
*
|
|
22147
|
-
*
|
|
22216
|
+
* 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.
|
|
22217
|
+
* 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
22218
|
*
|
|
22149
22219
|
* @param request CreateMonitorGroupInstancesRequest
|
|
22150
22220
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -22176,8 +22246,8 @@ class Client extends openapi_client_1.default {
|
|
|
22176
22246
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateMonitorGroupInstancesResponse({}));
|
|
22177
22247
|
}
|
|
22178
22248
|
/**
|
|
22179
|
-
*
|
|
22180
|
-
*
|
|
22249
|
+
* 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.
|
|
22250
|
+
* 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
22251
|
*
|
|
22182
22252
|
* @param request CreateMonitorGroupInstancesRequest
|
|
22183
22253
|
* @return CreateMonitorGroupInstancesResponse
|
|
@@ -22187,7 +22257,8 @@ class Client extends openapi_client_1.default {
|
|
|
22187
22257
|
return await this.createMonitorGroupInstancesWithOptions(request, runtime);
|
|
22188
22258
|
}
|
|
22189
22259
|
/**
|
|
22190
|
-
*
|
|
22260
|
+
* If the policy is valid, no alert notifications are sent for the application group.
|
|
22261
|
+
* 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
22262
|
*
|
|
22192
22263
|
* @param request CreateMonitorGroupNotifyPolicyRequest
|
|
22193
22264
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -22225,7 +22296,8 @@ class Client extends openapi_client_1.default {
|
|
|
22225
22296
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateMonitorGroupNotifyPolicyResponse({}));
|
|
22226
22297
|
}
|
|
22227
22298
|
/**
|
|
22228
|
-
*
|
|
22299
|
+
* If the policy is valid, no alert notifications are sent for the application group.
|
|
22300
|
+
* 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
22301
|
*
|
|
22230
22302
|
* @param request CreateMonitorGroupNotifyPolicyRequest
|
|
22231
22303
|
* @return CreateMonitorGroupNotifyPolicyResponse
|
|
@@ -22671,9 +22743,8 @@ class Client extends openapi_client_1.default {
|
|
|
22671
22743
|
return await this.deleteHostAvailabilityWithOptions(request, runtime);
|
|
22672
22744
|
}
|
|
22673
22745
|
/**
|
|
22674
|
-
*
|
|
22675
|
-
*
|
|
22676
|
-
* * false: The call failed.
|
|
22746
|
+
* > If a metric import task is created for metrics in a namespace, you cannot delete the namespace unless you delete the task first.
|
|
22747
|
+
* This topic provides an example on how to delete a namespace named `aliyun`. The response shows that the namespace is deleted.
|
|
22677
22748
|
*
|
|
22678
22749
|
* @param request DeleteHybridMonitorNamespaceRequest
|
|
22679
22750
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -22702,9 +22773,8 @@ class Client extends openapi_client_1.default {
|
|
|
22702
22773
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteHybridMonitorNamespaceResponse({}));
|
|
22703
22774
|
}
|
|
22704
22775
|
/**
|
|
22705
|
-
*
|
|
22706
|
-
*
|
|
22707
|
-
* * false: The call failed.
|
|
22776
|
+
* > If a metric import task is created for metrics in a namespace, you cannot delete the namespace unless you delete the task first.
|
|
22777
|
+
* This topic provides an example on how to delete a namespace named `aliyun`. The response shows that the namespace is deleted.
|
|
22708
22778
|
*
|
|
22709
22779
|
* @param request DeleteHybridMonitorNamespaceRequest
|
|
22710
22780
|
* @return DeleteHybridMonitorNamespaceResponse
|
|
@@ -23407,9 +23477,7 @@ class Client extends openapi_client_1.default {
|
|
|
23407
23477
|
return await this.describeAlertLogHistogramWithOptions(request, runtime);
|
|
23408
23478
|
}
|
|
23409
23479
|
/**
|
|
23410
|
-
*
|
|
23411
|
-
* * true: The call was successful.
|
|
23412
|
-
* * false: The call failed.
|
|
23480
|
+
* This topic provides an example to show how to query the alert logs of Elastic Compute Service (ECS) based on the `product` dimension.
|
|
23413
23481
|
*
|
|
23414
23482
|
* @param request DescribeAlertLogListRequest
|
|
23415
23483
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -23486,9 +23554,7 @@ class Client extends openapi_client_1.default {
|
|
|
23486
23554
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeAlertLogListResponse({}));
|
|
23487
23555
|
}
|
|
23488
23556
|
/**
|
|
23489
|
-
*
|
|
23490
|
-
* * true: The call was successful.
|
|
23491
|
-
* * false: The call failed.
|
|
23557
|
+
* This topic provides an example to show how to query the alert logs of Elastic Compute Service (ECS) based on the `product` dimension.
|
|
23492
23558
|
*
|
|
23493
23559
|
* @param request DescribeAlertLogListRequest
|
|
23494
23560
|
* @return DescribeAlertLogListResponse
|
|
@@ -23661,7 +23727,7 @@ class Client extends openapi_client_1.default {
|
|
|
23661
23727
|
return await this.describeCustomEventAttributeWithOptions(request, runtime);
|
|
23662
23728
|
}
|
|
23663
23729
|
/**
|
|
23664
|
-
*
|
|
23730
|
+
* > This operation counts the number of times that a custom event occurred for each service.
|
|
23665
23731
|
*
|
|
23666
23732
|
* @param request DescribeCustomEventCountRequest
|
|
23667
23733
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -23705,7 +23771,7 @@ class Client extends openapi_client_1.default {
|
|
|
23705
23771
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeCustomEventCountResponse({}));
|
|
23706
23772
|
}
|
|
23707
23773
|
/**
|
|
23708
|
-
*
|
|
23774
|
+
* > This operation counts the number of times that a custom event occurred for each service.
|
|
23709
23775
|
*
|
|
23710
23776
|
* @param request DescribeCustomEventCountRequest
|
|
23711
23777
|
* @return DescribeCustomEventCountResponse
|
|
@@ -23759,8 +23825,7 @@ class Client extends openapi_client_1.default {
|
|
|
23759
23825
|
return await this.describeCustomEventHistogramWithOptions(request, runtime);
|
|
23760
23826
|
}
|
|
23761
23827
|
/**
|
|
23762
|
-
*
|
|
23763
|
-
* For more information, see [DescribeMonitorGroups](~~115032~~).
|
|
23828
|
+
* > You can call the DescribeMetricList operation to query the metrics of a cloud service. For more information, see [DescribeMetricList](~~51936~~).
|
|
23764
23829
|
*
|
|
23765
23830
|
* @param request DescribeCustomMetricListRequest
|
|
23766
23831
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -23804,8 +23869,7 @@ class Client extends openapi_client_1.default {
|
|
|
23804
23869
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeCustomMetricListResponse({}));
|
|
23805
23870
|
}
|
|
23806
23871
|
/**
|
|
23807
|
-
*
|
|
23808
|
-
* For more information, see [DescribeMonitorGroups](~~115032~~).
|
|
23872
|
+
* > You can call the DescribeMetricList operation to query the metrics of a cloud service. For more information, see [DescribeMetricList](~~51936~~).
|
|
23809
23873
|
*
|
|
23810
23874
|
* @param request DescribeCustomMetricListRequest
|
|
23811
23875
|
* @return DescribeCustomMetricListResponse
|
|
@@ -23815,8 +23879,7 @@ class Client extends openapi_client_1.default {
|
|
|
23815
23879
|
return await this.describeCustomMetricListWithOptions(request, runtime);
|
|
23816
23880
|
}
|
|
23817
23881
|
/**
|
|
23818
|
-
* The
|
|
23819
|
-
* > The status code 200 indicates that the call was successful.
|
|
23882
|
+
* 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
23883
|
*
|
|
23821
23884
|
* @param request DescribeDynamicTagRuleListRequest
|
|
23822
23885
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -23860,8 +23923,7 @@ class Client extends openapi_client_1.default {
|
|
|
23860
23923
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeDynamicTagRuleListResponse({}));
|
|
23861
23924
|
}
|
|
23862
23925
|
/**
|
|
23863
|
-
* The
|
|
23864
|
-
* > The status code 200 indicates that the call was successful.
|
|
23926
|
+
* 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
23927
|
*
|
|
23866
23928
|
* @param request DescribeDynamicTagRuleListRequest
|
|
23867
23929
|
* @return DescribeDynamicTagRuleListResponse
|
|
@@ -23951,7 +24013,7 @@ class Client extends openapi_client_1.default {
|
|
|
23951
24013
|
return await this.describeEventRuleListWithOptions(request, runtime);
|
|
23952
24014
|
}
|
|
23953
24015
|
/**
|
|
23954
|
-
*
|
|
24016
|
+
* This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`.
|
|
23955
24017
|
*
|
|
23956
24018
|
* @param request DescribeEventRuleTargetListRequest
|
|
23957
24019
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -23980,7 +24042,7 @@ class Client extends openapi_client_1.default {
|
|
|
23980
24042
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventRuleTargetListResponse({}));
|
|
23981
24043
|
}
|
|
23982
24044
|
/**
|
|
23983
|
-
*
|
|
24045
|
+
* This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`.
|
|
23984
24046
|
*
|
|
23985
24047
|
* @param request DescribeEventRuleTargetListRequest
|
|
23986
24048
|
* @return DescribeEventRuleTargetListResponse
|
|
@@ -24048,7 +24110,7 @@ class Client extends openapi_client_1.default {
|
|
|
24048
24110
|
return await this.describeExporterRuleListWithOptions(request, runtime);
|
|
24049
24111
|
}
|
|
24050
24112
|
/**
|
|
24051
|
-
*
|
|
24113
|
+
* 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
24114
|
*
|
|
24053
24115
|
* @param request DescribeGroupMonitoringAgentProcessRequest
|
|
24054
24116
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -24086,7 +24148,7 @@ class Client extends openapi_client_1.default {
|
|
|
24086
24148
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeGroupMonitoringAgentProcessResponse({}));
|
|
24087
24149
|
}
|
|
24088
24150
|
/**
|
|
24089
|
-
*
|
|
24151
|
+
* 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
24152
|
*
|
|
24091
24153
|
* @param request DescribeGroupMonitoringAgentProcessRequest
|
|
24092
24154
|
* @return DescribeGroupMonitoringAgentProcessResponse
|
|
@@ -24096,7 +24158,7 @@ class Client extends openapi_client_1.default {
|
|
|
24096
24158
|
return await this.describeGroupMonitoringAgentProcessWithOptions(request, runtime);
|
|
24097
24159
|
}
|
|
24098
24160
|
/**
|
|
24099
|
-
*
|
|
24161
|
+
* 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
24162
|
*
|
|
24101
24163
|
* @param request DescribeHostAvailabilityListRequest
|
|
24102
24164
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -24140,7 +24202,7 @@ class Client extends openapi_client_1.default {
|
|
|
24140
24202
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeHostAvailabilityListResponse({}));
|
|
24141
24203
|
}
|
|
24142
24204
|
/**
|
|
24143
|
-
*
|
|
24205
|
+
* 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
24206
|
*
|
|
24145
24207
|
* @param request DescribeHostAvailabilityListRequest
|
|
24146
24208
|
* @return DescribeHostAvailabilityListResponse
|
|
@@ -24150,7 +24212,8 @@ class Client extends openapi_client_1.default {
|
|
|
24150
24212
|
return await this.describeHostAvailabilityListWithOptions(request, runtime);
|
|
24151
24213
|
}
|
|
24152
24214
|
/**
|
|
24153
|
-
*
|
|
24215
|
+
* ## Prerequisites
|
|
24216
|
+
* Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).
|
|
24154
24217
|
*
|
|
24155
24218
|
* @param request DescribeHybridMonitorDataListRequest
|
|
24156
24219
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -24191,7 +24254,8 @@ class Client extends openapi_client_1.default {
|
|
|
24191
24254
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeHybridMonitorDataListResponse({}));
|
|
24192
24255
|
}
|
|
24193
24256
|
/**
|
|
24194
|
-
*
|
|
24257
|
+
* ## Prerequisites
|
|
24258
|
+
* Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).
|
|
24195
24259
|
*
|
|
24196
24260
|
* @param request DescribeHybridMonitorDataListRequest
|
|
24197
24261
|
* @return DescribeHybridMonitorDataListResponse
|
|
@@ -24201,13 +24265,7 @@ class Client extends openapi_client_1.default {
|
|
|
24201
24265
|
return await this.describeHybridMonitorDataListWithOptions(request, runtime);
|
|
24202
24266
|
}
|
|
24203
24267
|
/**
|
|
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.
|
|
24268
|
+
* 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
24269
|
*
|
|
24212
24270
|
* @param request DescribeHybridMonitorNamespaceListRequest
|
|
24213
24271
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -24248,13 +24306,7 @@ class Client extends openapi_client_1.default {
|
|
|
24248
24306
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeHybridMonitorNamespaceListResponse({}));
|
|
24249
24307
|
}
|
|
24250
24308
|
/**
|
|
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.
|
|
24309
|
+
* 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
24310
|
*
|
|
24259
24311
|
* @param request DescribeHybridMonitorNamespaceListRequest
|
|
24260
24312
|
* @return DescribeHybridMonitorNamespaceListResponse
|
|
@@ -24433,12 +24485,9 @@ class Client extends openapi_client_1.default {
|
|
|
24433
24485
|
return await this.describeLogMonitorListWithOptions(request, runtime);
|
|
24434
24486
|
}
|
|
24435
24487
|
/**
|
|
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~~).
|
|
24488
|
+
* ## Limits
|
|
24489
|
+
* 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.
|
|
24490
|
+
* > 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
24491
|
*
|
|
24443
24492
|
* @param request DescribeMetricDataRequest
|
|
24444
24493
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -24488,12 +24537,9 @@ class Client extends openapi_client_1.default {
|
|
|
24488
24537
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeMetricDataResponse({}));
|
|
24489
24538
|
}
|
|
24490
24539
|
/**
|
|
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~~).
|
|
24540
|
+
* ## Limits
|
|
24541
|
+
* 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.
|
|
24542
|
+
* > 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
24543
|
*
|
|
24498
24544
|
* @param request DescribeMetricDataRequest
|
|
24499
24545
|
* @return DescribeMetricDataResponse
|
|
@@ -24582,8 +24628,9 @@ class Client extends openapi_client_1.default {
|
|
|
24582
24628
|
return await this.describeMetricLastWithOptions(request, runtime);
|
|
24583
24629
|
}
|
|
24584
24630
|
/**
|
|
24585
|
-
*
|
|
24586
|
-
*
|
|
24631
|
+
* ## Limits
|
|
24632
|
+
* 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.
|
|
24633
|
+
* >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
24634
|
*
|
|
24588
24635
|
* @param request DescribeMetricListRequest
|
|
24589
24636
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -24636,8 +24683,9 @@ class Client extends openapi_client_1.default {
|
|
|
24636
24683
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeMetricListResponse({}));
|
|
24637
24684
|
}
|
|
24638
24685
|
/**
|
|
24639
|
-
*
|
|
24640
|
-
*
|
|
24686
|
+
* ## Limits
|
|
24687
|
+
* 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.
|
|
24688
|
+
* >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
24689
|
*
|
|
24642
24690
|
* @param request DescribeMetricListRequest
|
|
24643
24691
|
* @return DescribeMetricListResponse
|
|
@@ -24647,8 +24695,7 @@ class Client extends openapi_client_1.default {
|
|
|
24647
24695
|
return await this.describeMetricListWithOptions(request, runtime);
|
|
24648
24696
|
}
|
|
24649
24697
|
/**
|
|
24650
|
-
*
|
|
24651
|
-
* For more information, see [Appendix 1: Metrics](~~163515~~).
|
|
24698
|
+
* This operation is usually used with DescribeMetricList and DescribeMetricLast. For more information, see [DescribeMetricList](~~51936~~) and [DescribeMetricLast](~~51939~~).
|
|
24652
24699
|
*
|
|
24653
24700
|
* @param request DescribeMetricMetaListRequest
|
|
24654
24701
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -24689,8 +24736,7 @@ class Client extends openapi_client_1.default {
|
|
|
24689
24736
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeMetricMetaListResponse({}));
|
|
24690
24737
|
}
|
|
24691
24738
|
/**
|
|
24692
|
-
*
|
|
24693
|
-
* For more information, see [Appendix 1: Metrics](~~163515~~).
|
|
24739
|
+
* This operation is usually used with DescribeMetricList and DescribeMetricLast. For more information, see [DescribeMetricList](~~51936~~) and [DescribeMetricLast](~~51939~~).
|
|
24694
24740
|
*
|
|
24695
24741
|
* @param request DescribeMetricMetaListRequest
|
|
24696
24742
|
* @return DescribeMetricMetaListResponse
|
|
@@ -24842,7 +24888,9 @@ class Client extends openapi_client_1.default {
|
|
|
24842
24888
|
return await this.describeMetricRuleListWithOptions(request, runtime);
|
|
24843
24889
|
}
|
|
24844
24890
|
/**
|
|
24845
|
-
*
|
|
24891
|
+
* ## Limit
|
|
24892
|
+
* This operation supports only Message Service (MNS) resources.
|
|
24893
|
+
* >This topic provides an example on how to query the resources that are associated with an alert rule whose ID is `ae06917_75a8c43178ab66****`.
|
|
24846
24894
|
*
|
|
24847
24895
|
* @param request DescribeMetricRuleTargetsRequest
|
|
24848
24896
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -24871,7 +24919,9 @@ class Client extends openapi_client_1.default {
|
|
|
24871
24919
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeMetricRuleTargetsResponse({}));
|
|
24872
24920
|
}
|
|
24873
24921
|
/**
|
|
24874
|
-
*
|
|
24922
|
+
* ## Limit
|
|
24923
|
+
* This operation supports only Message Service (MNS) resources.
|
|
24924
|
+
* >This topic provides an example on how to query the resources that are associated with an alert rule whose ID is `ae06917_75a8c43178ab66****`.
|
|
24875
24925
|
*
|
|
24876
24926
|
* @param request DescribeMetricRuleTargetsRequest
|
|
24877
24927
|
* @return DescribeMetricRuleTargetsResponse
|
|
@@ -24881,7 +24931,7 @@ class Client extends openapi_client_1.default {
|
|
|
24881
24931
|
return await this.describeMetricRuleTargetsWithOptions(request, runtime);
|
|
24882
24932
|
}
|
|
24883
24933
|
/**
|
|
24884
|
-
*
|
|
24934
|
+
* This topic provides an example on how to query the details of an alert template whose ID is `70****`.
|
|
24885
24935
|
*
|
|
24886
24936
|
* @param request DescribeMetricRuleTemplateAttributeRequest
|
|
24887
24937
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -24913,7 +24963,7 @@ class Client extends openapi_client_1.default {
|
|
|
24913
24963
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeMetricRuleTemplateAttributeResponse({}));
|
|
24914
24964
|
}
|
|
24915
24965
|
/**
|
|
24916
|
-
*
|
|
24966
|
+
* This topic provides an example on how to query the details of an alert template whose ID is `70****`.
|
|
24917
24967
|
*
|
|
24918
24968
|
* @param request DescribeMetricRuleTemplateAttributeRequest
|
|
24919
24969
|
* @return DescribeMetricRuleTemplateAttributeResponse
|
|
@@ -25434,7 +25484,8 @@ class Client extends openapi_client_1.default {
|
|
|
25434
25484
|
return await this.describeMonitoringAgentHostsWithOptions(request, runtime);
|
|
25435
25485
|
}
|
|
25436
25486
|
/**
|
|
25437
|
-
*
|
|
25487
|
+
* > Before you call this operation, call the CreateMonitoringAgentProcess operation to create processes. For more information, see [CreateMonitoringAgentProcess](~~114951~~~).
|
|
25488
|
+
* 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
25489
|
*
|
|
25439
25490
|
* @param request DescribeMonitoringAgentProcessesRequest
|
|
25440
25491
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -25463,7 +25514,8 @@ class Client extends openapi_client_1.default {
|
|
|
25463
25514
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeMonitoringAgentProcessesResponse({}));
|
|
25464
25515
|
}
|
|
25465
25516
|
/**
|
|
25466
|
-
*
|
|
25517
|
+
* > Before you call this operation, call the CreateMonitoringAgentProcess operation to create processes. For more information, see [CreateMonitoringAgentProcess](~~114951~~~).
|
|
25518
|
+
* 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
25519
|
*
|
|
25468
25520
|
* @param request DescribeMonitoringAgentProcessesRequest
|
|
25469
25521
|
* @return DescribeMonitoringAgentProcessesResponse
|
|
@@ -25535,7 +25587,7 @@ class Client extends openapi_client_1.default {
|
|
|
25535
25587
|
return await this.describeMonitoringConfigWithOptions(request, runtime);
|
|
25536
25588
|
}
|
|
25537
25589
|
/**
|
|
25538
|
-
*
|
|
25590
|
+
* > If a tag is attached to multiple cloud resources in the region, the key of the tag is returned only once.
|
|
25539
25591
|
*
|
|
25540
25592
|
* @param request DescribeProductResourceTagKeyListRequest
|
|
25541
25593
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -25564,7 +25616,7 @@ class Client extends openapi_client_1.default {
|
|
|
25564
25616
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeProductResourceTagKeyListResponse({}));
|
|
25565
25617
|
}
|
|
25566
25618
|
/**
|
|
25567
|
-
*
|
|
25619
|
+
* > If a tag is attached to multiple cloud resources in the region, the key of the tag is returned only once.
|
|
25568
25620
|
*
|
|
25569
25621
|
* @param request DescribeProductResourceTagKeyListRequest
|
|
25570
25622
|
* @return DescribeProductResourceTagKeyListResponse
|
|
@@ -25639,7 +25691,7 @@ class Client extends openapi_client_1.default {
|
|
|
25639
25691
|
return await this.describeProjectMetaWithOptions(request, runtime);
|
|
25640
25692
|
}
|
|
25641
25693
|
/**
|
|
25642
|
-
* The
|
|
25694
|
+
* 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
25695
|
*
|
|
25644
25696
|
* @param request DescribeSiteMonitorAttributeRequest
|
|
25645
25697
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -25671,7 +25723,7 @@ class Client extends openapi_client_1.default {
|
|
|
25671
25723
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeSiteMonitorAttributeResponse({}));
|
|
25672
25724
|
}
|
|
25673
25725
|
/**
|
|
25674
|
-
* The
|
|
25726
|
+
* 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
25727
|
*
|
|
25676
25728
|
* @param request DescribeSiteMonitorAttributeRequest
|
|
25677
25729
|
* @return DescribeSiteMonitorAttributeResponse
|
|
@@ -25779,7 +25831,7 @@ class Client extends openapi_client_1.default {
|
|
|
25779
25831
|
return await this.describeSiteMonitorISPCityListWithOptions(request, runtime);
|
|
25780
25832
|
}
|
|
25781
25833
|
/**
|
|
25782
|
-
*
|
|
25834
|
+
* 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
25835
|
*
|
|
25784
25836
|
* @param request DescribeSiteMonitorListRequest
|
|
25785
25837
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -25823,7 +25875,7 @@ class Client extends openapi_client_1.default {
|
|
|
25823
25875
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeSiteMonitorListResponse({}));
|
|
25824
25876
|
}
|
|
25825
25877
|
/**
|
|
25826
|
-
*
|
|
25878
|
+
* 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
25879
|
*
|
|
25828
25880
|
* @param request DescribeSiteMonitorListRequest
|
|
25829
25881
|
* @return DescribeSiteMonitorListResponse
|
|
@@ -25926,6 +25978,13 @@ class Client extends openapi_client_1.default {
|
|
|
25926
25978
|
let runtime = new $Util.RuntimeOptions({});
|
|
25927
25979
|
return await this.describeSiteMonitorQuotaWithOptions(request, runtime);
|
|
25928
25980
|
}
|
|
25981
|
+
/**
|
|
25982
|
+
* 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%`.
|
|
25983
|
+
*
|
|
25984
|
+
* @param request DescribeSiteMonitorStatisticsRequest
|
|
25985
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
25986
|
+
* @return DescribeSiteMonitorStatisticsResponse
|
|
25987
|
+
*/
|
|
25929
25988
|
async describeSiteMonitorStatisticsWithOptions(request, runtime) {
|
|
25930
25989
|
tea_util_1.default.validateModel(request);
|
|
25931
25990
|
let query = {};
|
|
@@ -25957,6 +26016,12 @@ class Client extends openapi_client_1.default {
|
|
|
25957
26016
|
});
|
|
25958
26017
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeSiteMonitorStatisticsResponse({}));
|
|
25959
26018
|
}
|
|
26019
|
+
/**
|
|
26020
|
+
* 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%`.
|
|
26021
|
+
*
|
|
26022
|
+
* @param request DescribeSiteMonitorStatisticsRequest
|
|
26023
|
+
* @return DescribeSiteMonitorStatisticsResponse
|
|
26024
|
+
*/
|
|
25960
26025
|
async describeSiteMonitorStatistics(request) {
|
|
25961
26026
|
let runtime = new $Util.RuntimeOptions({});
|
|
25962
26027
|
return await this.describeSiteMonitorStatisticsWithOptions(request, runtime);
|
|
@@ -26018,7 +26083,7 @@ class Client extends openapi_client_1.default {
|
|
|
26018
26083
|
return await this.describeSystemEventAttributeWithOptions(request, runtime);
|
|
26019
26084
|
}
|
|
26020
26085
|
/**
|
|
26021
|
-
*
|
|
26086
|
+
* 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
26087
|
*
|
|
26023
26088
|
* @param request DescribeSystemEventCountRequest
|
|
26024
26089
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -26071,7 +26136,7 @@ class Client extends openapi_client_1.default {
|
|
|
26071
26136
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeSystemEventCountResponse({}));
|
|
26072
26137
|
}
|
|
26073
26138
|
/**
|
|
26074
|
-
*
|
|
26139
|
+
* 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
26140
|
*
|
|
26076
26141
|
* @param request DescribeSystemEventCountRequest
|
|
26077
26142
|
* @return DescribeSystemEventCountResponse
|
|
@@ -26180,7 +26245,7 @@ class Client extends openapi_client_1.default {
|
|
|
26180
26245
|
return await this.describeTagKeyListWithOptions(request, runtime);
|
|
26181
26246
|
}
|
|
26182
26247
|
/**
|
|
26183
|
-
*
|
|
26248
|
+
* This topic provides an example of how to query the tag values corresponding to `tagKey1`. The return results are `tagValue1` and `tagValue2`.
|
|
26184
26249
|
*
|
|
26185
26250
|
* @param request DescribeTagValueListRequest
|
|
26186
26251
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -26215,7 +26280,7 @@ class Client extends openapi_client_1.default {
|
|
|
26215
26280
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTagValueListResponse({}));
|
|
26216
26281
|
}
|
|
26217
26282
|
/**
|
|
26218
|
-
*
|
|
26283
|
+
* This topic provides an example of how to query the tag values corresponding to `tagKey1`. The return results are `tagValue1` and `tagValue2`.
|
|
26219
26284
|
*
|
|
26220
26285
|
* @param request DescribeTagValueListRequest
|
|
26221
26286
|
* @return DescribeTagValueListResponse
|
|
@@ -26540,9 +26605,8 @@ class Client extends openapi_client_1.default {
|
|
|
26540
26605
|
return await this.enableSiteMonitorsWithOptions(request, runtime);
|
|
26541
26606
|
}
|
|
26542
26607
|
/**
|
|
26543
|
-
*
|
|
26544
|
-
*
|
|
26545
|
-
* * false: The call failed.
|
|
26608
|
+
* ## Prerequisites
|
|
26609
|
+
* 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
26610
|
*
|
|
26547
26611
|
* @param request InstallMonitoringAgentRequest
|
|
26548
26612
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -26577,9 +26641,8 @@ class Client extends openapi_client_1.default {
|
|
|
26577
26641
|
return $tea.cast(await this.callApi(params, req, runtime), new InstallMonitoringAgentResponse({}));
|
|
26578
26642
|
}
|
|
26579
26643
|
/**
|
|
26580
|
-
*
|
|
26581
|
-
*
|
|
26582
|
-
* * false: The call failed.
|
|
26644
|
+
* ## Prerequisites
|
|
26645
|
+
* 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
26646
|
*
|
|
26584
26647
|
* @param request InstallMonitoringAgentRequest
|
|
26585
26648
|
* @return InstallMonitoringAgentResponse
|
|
@@ -26729,9 +26792,7 @@ class Client extends openapi_client_1.default {
|
|
|
26729
26792
|
return await this.modifyHostInfoWithOptions(request, runtime);
|
|
26730
26793
|
}
|
|
26731
26794
|
/**
|
|
26732
|
-
*
|
|
26733
|
-
* * true: The call was successful.
|
|
26734
|
-
* * false: The call failed.
|
|
26795
|
+
* 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
26796
|
*
|
|
26736
26797
|
* @param request ModifyHybridMonitorNamespaceRequest
|
|
26737
26798
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -26766,9 +26827,7 @@ class Client extends openapi_client_1.default {
|
|
|
26766
26827
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyHybridMonitorNamespaceResponse({}));
|
|
26767
26828
|
}
|
|
26768
26829
|
/**
|
|
26769
|
-
*
|
|
26770
|
-
* * true: The call was successful.
|
|
26771
|
-
* * false: The call failed.
|
|
26830
|
+
* 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
26831
|
*
|
|
26773
26832
|
* @param request ModifyHybridMonitorNamespaceRequest
|
|
26774
26833
|
* @return ModifyHybridMonitorNamespaceResponse
|
|
@@ -26778,8 +26837,7 @@ class Client extends openapi_client_1.default {
|
|
|
26778
26837
|
return await this.modifyHybridMonitorNamespaceWithOptions(request, runtime);
|
|
26779
26838
|
}
|
|
26780
26839
|
/**
|
|
26781
|
-
* The
|
|
26782
|
-
* Valid values of N: 1 to 25.
|
|
26840
|
+
* 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
26841
|
*
|
|
26784
26842
|
* @param request ModifyHybridMonitorSLSGroupRequest
|
|
26785
26843
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -26814,8 +26872,7 @@ class Client extends openapi_client_1.default {
|
|
|
26814
26872
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyHybridMonitorSLSGroupResponse({}));
|
|
26815
26873
|
}
|
|
26816
26874
|
/**
|
|
26817
|
-
* The
|
|
26818
|
-
* Valid values of N: 1 to 25.
|
|
26875
|
+
* 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
26876
|
*
|
|
26820
26877
|
* @param request ModifyHybridMonitorSLSGroupRequest
|
|
26821
26878
|
* @return ModifyHybridMonitorSLSGroupResponse
|
|
@@ -26935,9 +26992,7 @@ class Client extends openapi_client_1.default {
|
|
|
26935
26992
|
return await this.modifyMetricRuleBlackListWithOptions(request, runtime);
|
|
26936
26993
|
}
|
|
26937
26994
|
/**
|
|
26938
|
-
*
|
|
26939
|
-
* * true: The call was successful.
|
|
26940
|
-
* * false: The call failed.
|
|
26995
|
+
* 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
26996
|
*
|
|
26942
26997
|
* @param request ModifyMetricRuleTemplateRequest
|
|
26943
26998
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -26978,9 +27033,7 @@ class Client extends openapi_client_1.default {
|
|
|
26978
27033
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyMetricRuleTemplateResponse({}));
|
|
26979
27034
|
}
|
|
26980
27035
|
/**
|
|
26981
|
-
*
|
|
26982
|
-
* * true: The call was successful.
|
|
26983
|
-
* * false: The call failed.
|
|
27036
|
+
* 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
27037
|
*
|
|
26985
27038
|
* @param request ModifyMetricRuleTemplateRequest
|
|
26986
27039
|
* @return ModifyMetricRuleTemplateResponse
|
|
@@ -27182,7 +27235,7 @@ class Client extends openapi_client_1.default {
|
|
|
27182
27235
|
return await this.putContactWithOptions(request, runtime);
|
|
27183
27236
|
}
|
|
27184
27237
|
/**
|
|
27185
|
-
*
|
|
27238
|
+
* This topic provides an example on how to create an alert contact group named `ECS_Group`.
|
|
27186
27239
|
*
|
|
27187
27240
|
* @param request PutContactGroupRequest
|
|
27188
27241
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27220,7 +27273,7 @@ class Client extends openapi_client_1.default {
|
|
|
27220
27273
|
return $tea.cast(await this.callApi(params, req, runtime), new PutContactGroupResponse({}));
|
|
27221
27274
|
}
|
|
27222
27275
|
/**
|
|
27223
|
-
*
|
|
27276
|
+
* This topic provides an example on how to create an alert contact group named `ECS_Group`.
|
|
27224
27277
|
*
|
|
27225
27278
|
* @param request PutContactGroupRequest
|
|
27226
27279
|
* @return PutContactGroupResponse
|
|
@@ -27256,7 +27309,7 @@ class Client extends openapi_client_1.default {
|
|
|
27256
27309
|
return await this.putCustomEventWithOptions(request, runtime);
|
|
27257
27310
|
}
|
|
27258
27311
|
/**
|
|
27259
|
-
*
|
|
27312
|
+
* 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
27313
|
*
|
|
27261
27314
|
* @param request PutCustomEventRuleRequest
|
|
27262
27315
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27315,7 +27368,7 @@ class Client extends openapi_client_1.default {
|
|
|
27315
27368
|
return $tea.cast(await this.callApi(params, req, runtime), new PutCustomEventRuleResponse({}));
|
|
27316
27369
|
}
|
|
27317
27370
|
/**
|
|
27318
|
-
*
|
|
27371
|
+
* 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
27372
|
*
|
|
27320
27373
|
* @param request PutCustomEventRuleRequest
|
|
27321
27374
|
* @return PutCustomEventRuleResponse
|
|
@@ -27325,11 +27378,7 @@ class Client extends openapi_client_1.default {
|
|
|
27325
27378
|
return await this.putCustomEventRuleWithOptions(request, runtime);
|
|
27326
27379
|
}
|
|
27327
27380
|
/**
|
|
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.
|
|
27381
|
+
* > We recommend that you call the [PutHybridMonitorMetricData](~~383455~~) operation of Hybrid Cloud Monitoring to report monitoring data.
|
|
27333
27382
|
*
|
|
27334
27383
|
* @param request PutCustomMetricRequest
|
|
27335
27384
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27358,11 +27407,7 @@ class Client extends openapi_client_1.default {
|
|
|
27358
27407
|
return $tea.cast(await this.callApi(params, req, runtime), new PutCustomMetricResponse({}));
|
|
27359
27408
|
}
|
|
27360
27409
|
/**
|
|
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.
|
|
27410
|
+
* > We recommend that you call the [PutHybridMonitorMetricData](~~383455~~) operation of Hybrid Cloud Monitoring to report monitoring data.
|
|
27366
27411
|
*
|
|
27367
27412
|
* @param request PutCustomMetricRequest
|
|
27368
27413
|
* @return PutCustomMetricResponse
|
|
@@ -27372,7 +27417,7 @@ class Client extends openapi_client_1.default {
|
|
|
27372
27417
|
return await this.putCustomMetricWithOptions(request, runtime);
|
|
27373
27418
|
}
|
|
27374
27419
|
/**
|
|
27375
|
-
*
|
|
27420
|
+
* Before you call this operation, call the PutCustomMetric operation to report custom monitoring data. For more information, see [PutCustomMetric](~~115004~~).
|
|
27376
27421
|
*
|
|
27377
27422
|
* @param request PutCustomMetricRuleRequest
|
|
27378
27423
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27446,7 +27491,7 @@ class Client extends openapi_client_1.default {
|
|
|
27446
27491
|
return $tea.cast(await this.callApi(params, req, runtime), new PutCustomMetricRuleResponse({}));
|
|
27447
27492
|
}
|
|
27448
27493
|
/**
|
|
27449
|
-
*
|
|
27494
|
+
* Before you call this operation, call the PutCustomMetric operation to report custom monitoring data. For more information, see [PutCustomMetric](~~115004~~).
|
|
27450
27495
|
*
|
|
27451
27496
|
* @param request PutCustomMetricRuleRequest
|
|
27452
27497
|
* @return PutCustomMetricRuleResponse
|
|
@@ -27456,7 +27501,8 @@ class Client extends openapi_client_1.default {
|
|
|
27456
27501
|
return await this.putCustomMetricRuleWithOptions(request, runtime);
|
|
27457
27502
|
}
|
|
27458
27503
|
/**
|
|
27459
|
-
*
|
|
27504
|
+
* 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.
|
|
27505
|
+
* In this example, the `myRuleName` alert rule is created for the `ecs` cloud service.
|
|
27460
27506
|
*
|
|
27461
27507
|
* @param request PutEventRuleRequest
|
|
27462
27508
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27503,7 +27549,8 @@ class Client extends openapi_client_1.default {
|
|
|
27503
27549
|
return $tea.cast(await this.callApi(params, req, runtime), new PutEventRuleResponse({}));
|
|
27504
27550
|
}
|
|
27505
27551
|
/**
|
|
27506
|
-
*
|
|
27552
|
+
* 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.
|
|
27553
|
+
* In this example, the `myRuleName` alert rule is created for the `ecs` cloud service.
|
|
27507
27554
|
*
|
|
27508
27555
|
* @param request PutEventRuleRequest
|
|
27509
27556
|
* @return PutEventRuleResponse
|
|
@@ -27791,7 +27838,7 @@ class Client extends openapi_client_1.default {
|
|
|
27791
27838
|
return await this.putHybridMonitorMetricDataWithOptions(request, runtime);
|
|
27792
27839
|
}
|
|
27793
27840
|
/**
|
|
27794
|
-
*
|
|
27841
|
+
* 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
27842
|
*
|
|
27796
27843
|
* @param request PutLogMonitorRequest
|
|
27797
27844
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27856,7 +27903,7 @@ class Client extends openapi_client_1.default {
|
|
|
27856
27903
|
return $tea.cast(await this.callApi(params, req, runtime), new PutLogMonitorResponse({}));
|
|
27857
27904
|
}
|
|
27858
27905
|
/**
|
|
27859
|
-
*
|
|
27906
|
+
* 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
27907
|
*
|
|
27861
27908
|
* @param request PutLogMonitorRequest
|
|
27862
27909
|
* @return PutLogMonitorResponse
|
|
@@ -27866,9 +27913,8 @@ class Client extends openapi_client_1.default {
|
|
|
27866
27913
|
return await this.putLogMonitorWithOptions(request, runtime);
|
|
27867
27914
|
}
|
|
27868
27915
|
/**
|
|
27869
|
-
*
|
|
27870
|
-
*
|
|
27871
|
-
* * false: The call failed.
|
|
27916
|
+
* ## Limit
|
|
27917
|
+
* This operation supports only Message Service (MNS) resources.
|
|
27872
27918
|
*
|
|
27873
27919
|
* @param request PutMetricRuleTargetsRequest
|
|
27874
27920
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27900,9 +27946,8 @@ class Client extends openapi_client_1.default {
|
|
|
27900
27946
|
return $tea.cast(await this.callApi(params, req, runtime), new PutMetricRuleTargetsResponse({}));
|
|
27901
27947
|
}
|
|
27902
27948
|
/**
|
|
27903
|
-
*
|
|
27904
|
-
*
|
|
27905
|
-
* * false: The call failed.
|
|
27949
|
+
* ## Limit
|
|
27950
|
+
* This operation supports only Message Service (MNS) resources.
|
|
27906
27951
|
*
|
|
27907
27952
|
* @param request PutMetricRuleTargetsRequest
|
|
27908
27953
|
* @return PutMetricRuleTargetsResponse
|
|
@@ -28071,9 +28116,7 @@ class Client extends openapi_client_1.default {
|
|
|
28071
28116
|
return await this.putResourceMetricRuleWithOptions(request, runtime);
|
|
28072
28117
|
}
|
|
28073
28118
|
/**
|
|
28074
|
-
*
|
|
28075
|
-
* * true: The call was successful.
|
|
28076
|
-
* * false: The call failed.
|
|
28119
|
+
* 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
28120
|
*
|
|
28078
28121
|
* @param request PutResourceMetricRulesRequest
|
|
28079
28122
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -28102,9 +28145,7 @@ class Client extends openapi_client_1.default {
|
|
|
28102
28145
|
return $tea.cast(await this.callApi(params, req, runtime), new PutResourceMetricRulesResponse({}));
|
|
28103
28146
|
}
|
|
28104
28147
|
/**
|
|
28105
|
-
*
|
|
28106
|
-
* * true: The call was successful.
|
|
28107
|
-
* * false: The call failed.
|
|
28148
|
+
* 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
28149
|
*
|
|
28109
28150
|
* @param request PutResourceMetricRulesRequest
|
|
28110
28151
|
* @return PutResourceMetricRulesResponse
|
|
@@ -28143,8 +28184,7 @@ class Client extends openapi_client_1.default {
|
|
|
28143
28184
|
return await this.removeTagsWithOptions(request, runtime);
|
|
28144
28185
|
}
|
|
28145
28186
|
/**
|
|
28146
|
-
*
|
|
28147
|
-
* > For information about the system events supported by Cloud Monitor for Alibaba Cloud services, see [System events](~~167388~~).
|
|
28187
|
+
* 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
28188
|
*
|
|
28149
28189
|
* @param request SendDryRunSystemEventRequest
|
|
28150
28190
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -28182,8 +28222,7 @@ class Client extends openapi_client_1.default {
|
|
|
28182
28222
|
return $tea.cast(await this.callApi(params, req, runtime), new SendDryRunSystemEventResponse({}));
|
|
28183
28223
|
}
|
|
28184
28224
|
/**
|
|
28185
|
-
*
|
|
28186
|
-
* > For information about the system events supported by Cloud Monitor for Alibaba Cloud services, see [System events](~~167388~~).
|
|
28225
|
+
* 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
28226
|
*
|
|
28188
28227
|
* @param request SendDryRunSystemEventRequest
|
|
28189
28228
|
* @return SendDryRunSystemEventResponse
|
|
@@ -28193,7 +28232,7 @@ class Client extends openapi_client_1.default {
|
|
|
28193
28232
|
return await this.sendDryRunSystemEventWithOptions(request, runtime);
|
|
28194
28233
|
}
|
|
28195
28234
|
/**
|
|
28196
|
-
*
|
|
28235
|
+
* > 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
28236
|
*
|
|
28198
28237
|
* @param request UninstallMonitoringAgentRequest
|
|
28199
28238
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -28222,7 +28261,7 @@ class Client extends openapi_client_1.default {
|
|
|
28222
28261
|
return $tea.cast(await this.callApi(params, req, runtime), new UninstallMonitoringAgentResponse({}));
|
|
28223
28262
|
}
|
|
28224
28263
|
/**
|
|
28225
|
-
*
|
|
28264
|
+
* > 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
28265
|
*
|
|
28227
28266
|
* @param request UninstallMonitoringAgentRequest
|
|
28228
28267
|
* @return UninstallMonitoringAgentResponse
|