@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/src/client.ts
CHANGED
|
@@ -1614,12 +1614,16 @@ export class CreateHostAvailabilityResponse extends $tea.Model {
|
|
|
1614
1614
|
export class CreateHybridMonitorNamespaceRequest extends $tea.Model {
|
|
1615
1615
|
description?: string;
|
|
1616
1616
|
namespace?: string;
|
|
1617
|
+
namespaceRegion?: string;
|
|
1618
|
+
namespaceType?: string;
|
|
1617
1619
|
regionId?: string;
|
|
1618
1620
|
spec?: string;
|
|
1619
1621
|
static names(): { [key: string]: string } {
|
|
1620
1622
|
return {
|
|
1621
1623
|
description: 'Description',
|
|
1622
1624
|
namespace: 'Namespace',
|
|
1625
|
+
namespaceRegion: 'NamespaceRegion',
|
|
1626
|
+
namespaceType: 'NamespaceType',
|
|
1623
1627
|
regionId: 'RegionId',
|
|
1624
1628
|
spec: 'Spec',
|
|
1625
1629
|
};
|
|
@@ -1629,6 +1633,8 @@ export class CreateHybridMonitorNamespaceRequest extends $tea.Model {
|
|
|
1629
1633
|
return {
|
|
1630
1634
|
description: 'string',
|
|
1631
1635
|
namespace: 'string',
|
|
1636
|
+
namespaceRegion: 'string',
|
|
1637
|
+
namespaceType: 'string',
|
|
1632
1638
|
regionId: 'string',
|
|
1633
1639
|
spec: 'string',
|
|
1634
1640
|
};
|
|
@@ -5471,6 +5477,7 @@ export class DescribeAlertLogListResponse extends $tea.Model {
|
|
|
5471
5477
|
}
|
|
5472
5478
|
|
|
5473
5479
|
export class DescribeAlertingMetricRuleResourcesRequest extends $tea.Model {
|
|
5480
|
+
alertBeforeTime?: string;
|
|
5474
5481
|
dimensions?: string;
|
|
5475
5482
|
groupId?: string;
|
|
5476
5483
|
namespace?: string;
|
|
@@ -5480,6 +5487,7 @@ export class DescribeAlertingMetricRuleResourcesRequest extends $tea.Model {
|
|
|
5480
5487
|
ruleId?: string;
|
|
5481
5488
|
static names(): { [key: string]: string } {
|
|
5482
5489
|
return {
|
|
5490
|
+
alertBeforeTime: 'AlertBeforeTime',
|
|
5483
5491
|
dimensions: 'Dimensions',
|
|
5484
5492
|
groupId: 'GroupId',
|
|
5485
5493
|
namespace: 'Namespace',
|
|
@@ -5492,6 +5500,7 @@ export class DescribeAlertingMetricRuleResourcesRequest extends $tea.Model {
|
|
|
5492
5500
|
|
|
5493
5501
|
static types(): { [key: string]: any } {
|
|
5494
5502
|
return {
|
|
5503
|
+
alertBeforeTime: 'string',
|
|
5495
5504
|
dimensions: 'string',
|
|
5496
5505
|
groupId: 'string',
|
|
5497
5506
|
namespace: 'string',
|
|
@@ -15247,11 +15256,13 @@ export class EscalationRuleEscalationsContactGroupsByLevel extends $tea.Model {
|
|
|
15247
15256
|
}
|
|
15248
15257
|
|
|
15249
15258
|
export class EscalationRuleEscalations extends $tea.Model {
|
|
15259
|
+
backupContactGroups?: string[];
|
|
15250
15260
|
contactGroups?: string[];
|
|
15251
15261
|
contactGroupsByLevel?: EscalationRuleEscalationsContactGroupsByLevel;
|
|
15252
15262
|
escalateMin?: number;
|
|
15253
15263
|
static names(): { [key: string]: string } {
|
|
15254
15264
|
return {
|
|
15265
|
+
backupContactGroups: 'BackupContactGroups',
|
|
15255
15266
|
contactGroups: 'ContactGroups',
|
|
15256
15267
|
contactGroupsByLevel: 'ContactGroupsByLevel',
|
|
15257
15268
|
escalateMin: 'EscalateMin',
|
|
@@ -15260,6 +15271,7 @@ export class EscalationRuleEscalations extends $tea.Model {
|
|
|
15260
15271
|
|
|
15261
15272
|
static types(): { [key: string]: any } {
|
|
15262
15273
|
return {
|
|
15274
|
+
backupContactGroups: { 'type': 'array', 'itemType': 'string' },
|
|
15263
15275
|
contactGroups: { 'type': 'array', 'itemType': 'string' },
|
|
15264
15276
|
contactGroupsByLevel: EscalationRuleEscalationsContactGroupsByLevel,
|
|
15265
15277
|
escalateMin: 'number',
|
|
@@ -20524,15 +20536,21 @@ export class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitor
|
|
|
20524
20536
|
}
|
|
20525
20537
|
|
|
20526
20538
|
export class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitorNamespaceDetail extends $tea.Model {
|
|
20539
|
+
namespaceRegion?: string;
|
|
20540
|
+
SLSProject?: string;
|
|
20527
20541
|
spec?: string;
|
|
20528
20542
|
static names(): { [key: string]: string } {
|
|
20529
20543
|
return {
|
|
20544
|
+
namespaceRegion: 'NamespaceRegion',
|
|
20545
|
+
SLSProject: 'SLSProject',
|
|
20530
20546
|
spec: 'Spec',
|
|
20531
20547
|
};
|
|
20532
20548
|
}
|
|
20533
20549
|
|
|
20534
20550
|
static types(): { [key: string]: any } {
|
|
20535
20551
|
return {
|
|
20552
|
+
namespaceRegion: 'string',
|
|
20553
|
+
SLSProject: 'string',
|
|
20536
20554
|
spec: 'string',
|
|
20537
20555
|
};
|
|
20538
20556
|
}
|
|
@@ -20551,6 +20569,7 @@ export class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitor
|
|
|
20551
20569
|
isDelete?: number;
|
|
20552
20570
|
modifyTime?: string;
|
|
20553
20571
|
namespace?: string;
|
|
20572
|
+
namespaceType?: string;
|
|
20554
20573
|
notAliyunTaskNumber?: number;
|
|
20555
20574
|
static names(): { [key: string]: string } {
|
|
20556
20575
|
return {
|
|
@@ -20562,6 +20581,7 @@ export class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitor
|
|
|
20562
20581
|
isDelete: 'IsDelete',
|
|
20563
20582
|
modifyTime: 'ModifyTime',
|
|
20564
20583
|
namespace: 'Namespace',
|
|
20584
|
+
namespaceType: 'NamespaceType',
|
|
20565
20585
|
notAliyunTaskNumber: 'NotAliyunTaskNumber',
|
|
20566
20586
|
};
|
|
20567
20587
|
}
|
|
@@ -20576,6 +20596,7 @@ export class DescribeHybridMonitorNamespaceListResponseBodyDescribeHybridMonitor
|
|
|
20576
20596
|
isDelete: 'number',
|
|
20577
20597
|
modifyTime: 'string',
|
|
20578
20598
|
namespace: 'string',
|
|
20599
|
+
namespaceType: 'string',
|
|
20579
20600
|
notAliyunTaskNumber: 'number',
|
|
20580
20601
|
};
|
|
20581
20602
|
}
|
|
@@ -22857,6 +22878,31 @@ export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS e
|
|
|
22857
22878
|
}
|
|
22858
22879
|
}
|
|
22859
22880
|
|
|
22881
|
+
export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser extends $tea.Model {
|
|
22882
|
+
quotaLimit?: number;
|
|
22883
|
+
quotaPackage?: number;
|
|
22884
|
+
quotaUsed?: number;
|
|
22885
|
+
static names(): { [key: string]: string } {
|
|
22886
|
+
return {
|
|
22887
|
+
quotaLimit: 'QuotaLimit',
|
|
22888
|
+
quotaPackage: 'QuotaPackage',
|
|
22889
|
+
quotaUsed: 'QuotaUsed',
|
|
22890
|
+
};
|
|
22891
|
+
}
|
|
22892
|
+
|
|
22893
|
+
static types(): { [key: string]: any } {
|
|
22894
|
+
return {
|
|
22895
|
+
quotaLimit: 'number',
|
|
22896
|
+
quotaPackage: 'number',
|
|
22897
|
+
quotaUsed: 'number',
|
|
22898
|
+
};
|
|
22899
|
+
}
|
|
22900
|
+
|
|
22901
|
+
constructor(map?: { [key: string]: any }) {
|
|
22902
|
+
super(map);
|
|
22903
|
+
}
|
|
22904
|
+
}
|
|
22905
|
+
|
|
22860
22906
|
export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe extends $tea.Model {
|
|
22861
22907
|
quotaLimit?: number;
|
|
22862
22908
|
quotaPackage?: number;
|
|
@@ -22882,6 +22928,31 @@ export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteM
|
|
|
22882
22928
|
}
|
|
22883
22929
|
}
|
|
22884
22930
|
|
|
22931
|
+
export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile extends $tea.Model {
|
|
22932
|
+
quotaLimit?: number;
|
|
22933
|
+
quotaPackage?: number;
|
|
22934
|
+
quotaUsed?: number;
|
|
22935
|
+
static names(): { [key: string]: string } {
|
|
22936
|
+
return {
|
|
22937
|
+
quotaLimit: 'QuotaLimit',
|
|
22938
|
+
quotaPackage: 'QuotaPackage',
|
|
22939
|
+
quotaUsed: 'QuotaUsed',
|
|
22940
|
+
};
|
|
22941
|
+
}
|
|
22942
|
+
|
|
22943
|
+
static types(): { [key: string]: any } {
|
|
22944
|
+
return {
|
|
22945
|
+
quotaLimit: 'number',
|
|
22946
|
+
quotaPackage: 'number',
|
|
22947
|
+
quotaUsed: 'number',
|
|
22948
|
+
};
|
|
22949
|
+
}
|
|
22950
|
+
|
|
22951
|
+
constructor(map?: { [key: string]: any }) {
|
|
22952
|
+
super(map);
|
|
22953
|
+
}
|
|
22954
|
+
}
|
|
22955
|
+
|
|
22885
22956
|
export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe extends $tea.Model {
|
|
22886
22957
|
quotaLimit?: number;
|
|
22887
22958
|
quotaPackage?: number;
|
|
@@ -22942,7 +23013,9 @@ export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota exte
|
|
|
22942
23013
|
logMonitor?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor;
|
|
22943
23014
|
phone?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone;
|
|
22944
23015
|
SMS?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS;
|
|
23016
|
+
siteMonitorBrowser?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser;
|
|
22945
23017
|
siteMonitorEcsProbe?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe;
|
|
23018
|
+
siteMonitorMobile?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile;
|
|
22946
23019
|
siteMonitorOperatorProbe?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe;
|
|
22947
23020
|
siteMonitorTask?: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask;
|
|
22948
23021
|
suitInfo?: string;
|
|
@@ -22957,7 +23030,9 @@ export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota exte
|
|
|
22957
23030
|
logMonitor: 'LogMonitor',
|
|
22958
23031
|
phone: 'Phone',
|
|
22959
23032
|
SMS: 'SMS',
|
|
23033
|
+
siteMonitorBrowser: 'SiteMonitorBrowser',
|
|
22960
23034
|
siteMonitorEcsProbe: 'SiteMonitorEcsProbe',
|
|
23035
|
+
siteMonitorMobile: 'SiteMonitorMobile',
|
|
22961
23036
|
siteMonitorOperatorProbe: 'SiteMonitorOperatorProbe',
|
|
22962
23037
|
siteMonitorTask: 'SiteMonitorTask',
|
|
22963
23038
|
suitInfo: 'SuitInfo',
|
|
@@ -22975,7 +23050,9 @@ export class DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuota exte
|
|
|
22975
23050
|
logMonitor: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaLogMonitor,
|
|
22976
23051
|
phone: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaPhone,
|
|
22977
23052
|
SMS: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSMS,
|
|
23053
|
+
siteMonitorBrowser: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorBrowser,
|
|
22978
23054
|
siteMonitorEcsProbe: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorEcsProbe,
|
|
23055
|
+
siteMonitorMobile: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorMobile,
|
|
22979
23056
|
siteMonitorOperatorProbe: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorOperatorProbe,
|
|
22980
23057
|
siteMonitorTask: DescribeMonitorResourceQuotaAttributeResponseBodyResourceQuotaSiteMonitorTask,
|
|
22981
23058
|
suitInfo: 'string',
|
|
@@ -23196,7 +23273,9 @@ export class DescribeProductResourceTagKeyListResponseBodyTagKeys extends $tea.M
|
|
|
23196
23273
|
}
|
|
23197
23274
|
|
|
23198
23275
|
export class DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig extends $tea.Model {
|
|
23276
|
+
comparisonOperator?: string;
|
|
23199
23277
|
evaluationCount?: string;
|
|
23278
|
+
level?: string;
|
|
23200
23279
|
metricName?: string;
|
|
23201
23280
|
namespace?: string;
|
|
23202
23281
|
period?: string;
|
|
@@ -23204,7 +23283,9 @@ export class DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricR
|
|
|
23204
23283
|
threshold?: string;
|
|
23205
23284
|
static names(): { [key: string]: string } {
|
|
23206
23285
|
return {
|
|
23286
|
+
comparisonOperator: 'ComparisonOperator',
|
|
23207
23287
|
evaluationCount: 'EvaluationCount',
|
|
23288
|
+
level: 'Level',
|
|
23208
23289
|
metricName: 'MetricName',
|
|
23209
23290
|
namespace: 'Namespace',
|
|
23210
23291
|
period: 'Period',
|
|
@@ -23215,7 +23296,9 @@ export class DescribeProductsOfActiveMetricRuleResponseBodyAllProductInitMetricR
|
|
|
23215
23296
|
|
|
23216
23297
|
static types(): { [key: string]: any } {
|
|
23217
23298
|
return {
|
|
23299
|
+
comparisonOperator: 'string',
|
|
23218
23300
|
evaluationCount: 'string',
|
|
23301
|
+
level: 'string',
|
|
23219
23302
|
metricName: 'string',
|
|
23220
23303
|
namespace: 'string',
|
|
23221
23304
|
period: 'string',
|
|
@@ -26926,8 +27009,7 @@ export default class Client extends OpenApi {
|
|
|
26926
27009
|
}
|
|
26927
27010
|
|
|
26928
27011
|
/**
|
|
26929
|
-
*
|
|
26930
|
-
* For more information about how to query the ID of an application group, see [DescribeMonitorGroups](~~115032~~).
|
|
27012
|
+
* 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`.
|
|
26931
27013
|
*
|
|
26932
27014
|
* @param request ApplyMetricRuleTemplateRequest
|
|
26933
27015
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -26986,8 +27068,7 @@ export default class Client extends OpenApi {
|
|
|
26986
27068
|
}
|
|
26987
27069
|
|
|
26988
27070
|
/**
|
|
26989
|
-
*
|
|
26990
|
-
* For more information about how to query the ID of an application group, see [DescribeMonitorGroups](~~115032~~).
|
|
27071
|
+
* 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`.
|
|
26991
27072
|
*
|
|
26992
27073
|
* @param request ApplyMetricRuleTemplateRequest
|
|
26993
27074
|
* @return ApplyMetricRuleTemplateResponse
|
|
@@ -26998,7 +27079,7 @@ export default class Client extends OpenApi {
|
|
|
26998
27079
|
}
|
|
26999
27080
|
|
|
27000
27081
|
/**
|
|
27001
|
-
*
|
|
27082
|
+
* 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****`.
|
|
27002
27083
|
*
|
|
27003
27084
|
* @param request BatchCreateInstantSiteMonitorRequest
|
|
27004
27085
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27029,7 +27110,7 @@ export default class Client extends OpenApi {
|
|
|
27029
27110
|
}
|
|
27030
27111
|
|
|
27031
27112
|
/**
|
|
27032
|
-
*
|
|
27113
|
+
* 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****`.
|
|
27033
27114
|
*
|
|
27034
27115
|
* @param request BatchCreateInstantSiteMonitorRequest
|
|
27035
27116
|
* @return BatchCreateInstantSiteMonitorResponse
|
|
@@ -27345,9 +27426,8 @@ export default class Client extends OpenApi {
|
|
|
27345
27426
|
}
|
|
27346
27427
|
|
|
27347
27428
|
/**
|
|
27348
|
-
*
|
|
27349
|
-
*
|
|
27350
|
-
* * false (default value): The application group does not automatically subscribe to event notifications.
|
|
27429
|
+
* This operation is available for Elastic Compute Service (ECS), ApsaraDB RDS, and Server Load Balancer (SLB).
|
|
27430
|
+
* 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`.
|
|
27351
27431
|
*
|
|
27352
27432
|
* @param request CreateDynamicTagGroupRequest
|
|
27353
27433
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27406,9 +27486,8 @@ export default class Client extends OpenApi {
|
|
|
27406
27486
|
}
|
|
27407
27487
|
|
|
27408
27488
|
/**
|
|
27409
|
-
*
|
|
27410
|
-
*
|
|
27411
|
-
* * false (default value): The application group does not automatically subscribe to event notifications.
|
|
27489
|
+
* This operation is available for Elastic Compute Service (ECS), ApsaraDB RDS, and Server Load Balancer (SLB).
|
|
27490
|
+
* 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`.
|
|
27412
27491
|
*
|
|
27413
27492
|
* @param request CreateDynamicTagGroupRequest
|
|
27414
27493
|
* @return CreateDynamicTagGroupResponse
|
|
@@ -27419,7 +27498,7 @@ export default class Client extends OpenApi {
|
|
|
27419
27498
|
}
|
|
27420
27499
|
|
|
27421
27500
|
/**
|
|
27422
|
-
* The
|
|
27501
|
+
* 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.
|
|
27423
27502
|
*
|
|
27424
27503
|
* @param request CreateGroupMetricRulesRequest
|
|
27425
27504
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27454,7 +27533,7 @@ export default class Client extends OpenApi {
|
|
|
27454
27533
|
}
|
|
27455
27534
|
|
|
27456
27535
|
/**
|
|
27457
|
-
* The
|
|
27536
|
+
* 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.
|
|
27458
27537
|
*
|
|
27459
27538
|
* @param request CreateGroupMetricRulesRequest
|
|
27460
27539
|
* @return CreateGroupMetricRulesResponse
|
|
@@ -27584,9 +27663,8 @@ export default class Client extends OpenApi {
|
|
|
27584
27663
|
}
|
|
27585
27664
|
|
|
27586
27665
|
/**
|
|
27587
|
-
*
|
|
27588
|
-
*
|
|
27589
|
-
* * false: The call failed.
|
|
27666
|
+
* ## Prerequisites
|
|
27667
|
+
* Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).
|
|
27590
27668
|
*
|
|
27591
27669
|
* @param request CreateHybridMonitorNamespaceRequest
|
|
27592
27670
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27603,6 +27681,14 @@ export default class Client extends OpenApi {
|
|
|
27603
27681
|
query["Namespace"] = request.namespace;
|
|
27604
27682
|
}
|
|
27605
27683
|
|
|
27684
|
+
if (!Util.isUnset(request.namespaceRegion)) {
|
|
27685
|
+
query["NamespaceRegion"] = request.namespaceRegion;
|
|
27686
|
+
}
|
|
27687
|
+
|
|
27688
|
+
if (!Util.isUnset(request.namespaceType)) {
|
|
27689
|
+
query["NamespaceType"] = request.namespaceType;
|
|
27690
|
+
}
|
|
27691
|
+
|
|
27606
27692
|
if (!Util.isUnset(request.spec)) {
|
|
27607
27693
|
query["Spec"] = request.spec;
|
|
27608
27694
|
}
|
|
@@ -27625,9 +27711,8 @@ export default class Client extends OpenApi {
|
|
|
27625
27711
|
}
|
|
27626
27712
|
|
|
27627
27713
|
/**
|
|
27628
|
-
*
|
|
27629
|
-
*
|
|
27630
|
-
* * false: The call failed.
|
|
27714
|
+
* ## Prerequisites
|
|
27715
|
+
* Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).
|
|
27631
27716
|
*
|
|
27632
27717
|
* @param request CreateHybridMonitorNamespaceRequest
|
|
27633
27718
|
* @return CreateHybridMonitorNamespaceResponse
|
|
@@ -27638,8 +27723,10 @@ export default class Client extends OpenApi {
|
|
|
27638
27723
|
}
|
|
27639
27724
|
|
|
27640
27725
|
/**
|
|
27641
|
-
*
|
|
27642
|
-
*
|
|
27726
|
+
* # Prerequisites
|
|
27727
|
+
* Simple Log Service is activated. A project and a Logstore are created in Simple Log Service. For more information, see [Getting Started](~~54604~~).
|
|
27728
|
+
* # Description
|
|
27729
|
+
* 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.
|
|
27643
27730
|
*
|
|
27644
27731
|
* @param request CreateHybridMonitorSLSGroupRequest
|
|
27645
27732
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27678,8 +27765,10 @@ export default class Client extends OpenApi {
|
|
|
27678
27765
|
}
|
|
27679
27766
|
|
|
27680
27767
|
/**
|
|
27681
|
-
*
|
|
27682
|
-
*
|
|
27768
|
+
* # Prerequisites
|
|
27769
|
+
* Simple Log Service is activated. A project and a Logstore are created in Simple Log Service. For more information, see [Getting Started](~~54604~~).
|
|
27770
|
+
* # Description
|
|
27771
|
+
* 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.
|
|
27683
27772
|
*
|
|
27684
27773
|
* @param request CreateHybridMonitorSLSGroupRequest
|
|
27685
27774
|
* @return CreateHybridMonitorSLSGroupResponse
|
|
@@ -27690,7 +27779,9 @@ export default class Client extends OpenApi {
|
|
|
27690
27779
|
}
|
|
27691
27780
|
|
|
27692
27781
|
/**
|
|
27693
|
-
*
|
|
27782
|
+
* ## Prerequisites
|
|
27783
|
+
* * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).
|
|
27784
|
+
* * 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~~).
|
|
27694
27785
|
*
|
|
27695
27786
|
* @param request CreateHybridMonitorTaskRequest
|
|
27696
27787
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -27765,7 +27856,9 @@ export default class Client extends OpenApi {
|
|
|
27765
27856
|
}
|
|
27766
27857
|
|
|
27767
27858
|
/**
|
|
27768
|
-
*
|
|
27859
|
+
* ## Prerequisites
|
|
27860
|
+
* * Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).
|
|
27861
|
+
* * 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~~).
|
|
27769
27862
|
*
|
|
27770
27863
|
* @param request CreateHybridMonitorTaskRequest
|
|
27771
27864
|
* @return CreateHybridMonitorTaskResponse
|
|
@@ -28033,7 +28126,7 @@ export default class Client extends OpenApi {
|
|
|
28033
28126
|
}
|
|
28034
28127
|
|
|
28035
28128
|
/**
|
|
28036
|
-
*
|
|
28129
|
+
* In this example, the application group named `ECS_Group` is created.
|
|
28037
28130
|
*
|
|
28038
28131
|
* @param request CreateMonitorGroupRequest
|
|
28039
28132
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -28068,7 +28161,7 @@ export default class Client extends OpenApi {
|
|
|
28068
28161
|
}
|
|
28069
28162
|
|
|
28070
28163
|
/**
|
|
28071
|
-
*
|
|
28164
|
+
* In this example, the application group named `ECS_Group` is created.
|
|
28072
28165
|
*
|
|
28073
28166
|
* @param request CreateMonitorGroupRequest
|
|
28074
28167
|
* @return CreateMonitorGroupResponse
|
|
@@ -28141,8 +28234,8 @@ export default class Client extends OpenApi {
|
|
|
28141
28234
|
}
|
|
28142
28235
|
|
|
28143
28236
|
/**
|
|
28144
|
-
*
|
|
28145
|
-
*
|
|
28237
|
+
* 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.
|
|
28238
|
+
* 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`.
|
|
28146
28239
|
*
|
|
28147
28240
|
* @param request CreateMonitorGroupInstancesRequest
|
|
28148
28241
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -28177,8 +28270,8 @@ export default class Client extends OpenApi {
|
|
|
28177
28270
|
}
|
|
28178
28271
|
|
|
28179
28272
|
/**
|
|
28180
|
-
*
|
|
28181
|
-
*
|
|
28273
|
+
* 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.
|
|
28274
|
+
* 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`.
|
|
28182
28275
|
*
|
|
28183
28276
|
* @param request CreateMonitorGroupInstancesRequest
|
|
28184
28277
|
* @return CreateMonitorGroupInstancesResponse
|
|
@@ -28189,7 +28282,8 @@ export default class Client extends OpenApi {
|
|
|
28189
28282
|
}
|
|
28190
28283
|
|
|
28191
28284
|
/**
|
|
28192
|
-
*
|
|
28285
|
+
* If the policy is valid, no alert notifications are sent for the application group.
|
|
28286
|
+
* 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`.
|
|
28193
28287
|
*
|
|
28194
28288
|
* @param request CreateMonitorGroupNotifyPolicyRequest
|
|
28195
28289
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -28232,7 +28326,8 @@ export default class Client extends OpenApi {
|
|
|
28232
28326
|
}
|
|
28233
28327
|
|
|
28234
28328
|
/**
|
|
28235
|
-
*
|
|
28329
|
+
* If the policy is valid, no alert notifications are sent for the application group.
|
|
28330
|
+
* 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`.
|
|
28236
28331
|
*
|
|
28237
28332
|
* @param request CreateMonitorGroupNotifyPolicyRequest
|
|
28238
28333
|
* @return CreateMonitorGroupNotifyPolicyResponse
|
|
@@ -28738,9 +28833,8 @@ export default class Client extends OpenApi {
|
|
|
28738
28833
|
}
|
|
28739
28834
|
|
|
28740
28835
|
/**
|
|
28741
|
-
*
|
|
28742
|
-
*
|
|
28743
|
-
* * false: The call failed.
|
|
28836
|
+
* > If a metric import task is created for metrics in a namespace, you cannot delete the namespace unless you delete the task first.
|
|
28837
|
+
* This topic provides an example on how to delete a namespace named `aliyun`. The response shows that the namespace is deleted.
|
|
28744
28838
|
*
|
|
28745
28839
|
* @param request DeleteHybridMonitorNamespaceRequest
|
|
28746
28840
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -28771,9 +28865,8 @@ export default class Client extends OpenApi {
|
|
|
28771
28865
|
}
|
|
28772
28866
|
|
|
28773
28867
|
/**
|
|
28774
|
-
*
|
|
28775
|
-
*
|
|
28776
|
-
* * false: The call failed.
|
|
28868
|
+
* > If a metric import task is created for metrics in a namespace, you cannot delete the namespace unless you delete the task first.
|
|
28869
|
+
* This topic provides an example on how to delete a namespace named `aliyun`. The response shows that the namespace is deleted.
|
|
28777
28870
|
*
|
|
28778
28871
|
* @param request DeleteHybridMonitorNamespaceRequest
|
|
28779
28872
|
* @return DeleteHybridMonitorNamespaceResponse
|
|
@@ -29583,9 +29676,7 @@ export default class Client extends OpenApi {
|
|
|
29583
29676
|
}
|
|
29584
29677
|
|
|
29585
29678
|
/**
|
|
29586
|
-
*
|
|
29587
|
-
* * true: The call was successful.
|
|
29588
|
-
* * false: The call failed.
|
|
29679
|
+
* This topic provides an example to show how to query the alert logs of Elastic Compute Service (ECS) based on the `product` dimension.
|
|
29589
29680
|
*
|
|
29590
29681
|
* @param request DescribeAlertLogListRequest
|
|
29591
29682
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -29680,9 +29771,7 @@ export default class Client extends OpenApi {
|
|
|
29680
29771
|
}
|
|
29681
29772
|
|
|
29682
29773
|
/**
|
|
29683
|
-
*
|
|
29684
|
-
* * true: The call was successful.
|
|
29685
|
-
* * false: The call failed.
|
|
29774
|
+
* This topic provides an example to show how to query the alert logs of Elastic Compute Service (ECS) based on the `product` dimension.
|
|
29686
29775
|
*
|
|
29687
29776
|
* @param request DescribeAlertLogListRequest
|
|
29688
29777
|
* @return DescribeAlertLogListResponse
|
|
@@ -29882,7 +29971,7 @@ export default class Client extends OpenApi {
|
|
|
29882
29971
|
}
|
|
29883
29972
|
|
|
29884
29973
|
/**
|
|
29885
|
-
*
|
|
29974
|
+
* > This operation counts the number of times that a custom event occurred for each service.
|
|
29886
29975
|
*
|
|
29887
29976
|
* @param request DescribeCustomEventCountRequest
|
|
29888
29977
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -29933,7 +30022,7 @@ export default class Client extends OpenApi {
|
|
|
29933
30022
|
}
|
|
29934
30023
|
|
|
29935
30024
|
/**
|
|
29936
|
-
*
|
|
30025
|
+
* > This operation counts the number of times that a custom event occurred for each service.
|
|
29937
30026
|
*
|
|
29938
30027
|
* @param request DescribeCustomEventCountRequest
|
|
29939
30028
|
* @return DescribeCustomEventCountResponse
|
|
@@ -29997,8 +30086,7 @@ export default class Client extends OpenApi {
|
|
|
29997
30086
|
}
|
|
29998
30087
|
|
|
29999
30088
|
/**
|
|
30000
|
-
*
|
|
30001
|
-
* For more information, see [DescribeMonitorGroups](~~115032~~).
|
|
30089
|
+
* > You can call the DescribeMetricList operation to query the metrics of a cloud service. For more information, see [DescribeMetricList](~~51936~~).
|
|
30002
30090
|
*
|
|
30003
30091
|
* @param request DescribeCustomMetricListRequest
|
|
30004
30092
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30049,8 +30137,7 @@ export default class Client extends OpenApi {
|
|
|
30049
30137
|
}
|
|
30050
30138
|
|
|
30051
30139
|
/**
|
|
30052
|
-
*
|
|
30053
|
-
* For more information, see [DescribeMonitorGroups](~~115032~~).
|
|
30140
|
+
* > You can call the DescribeMetricList operation to query the metrics of a cloud service. For more information, see [DescribeMetricList](~~51936~~).
|
|
30054
30141
|
*
|
|
30055
30142
|
* @param request DescribeCustomMetricListRequest
|
|
30056
30143
|
* @return DescribeCustomMetricListResponse
|
|
@@ -30061,8 +30148,7 @@ export default class Client extends OpenApi {
|
|
|
30061
30148
|
}
|
|
30062
30149
|
|
|
30063
30150
|
/**
|
|
30064
|
-
* The
|
|
30065
|
-
* > The status code 200 indicates that the call was successful.
|
|
30151
|
+
* 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****`.
|
|
30066
30152
|
*
|
|
30067
30153
|
* @param request DescribeDynamicTagRuleListRequest
|
|
30068
30154
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30113,8 +30199,7 @@ export default class Client extends OpenApi {
|
|
|
30113
30199
|
}
|
|
30114
30200
|
|
|
30115
30201
|
/**
|
|
30116
|
-
* The
|
|
30117
|
-
* > The status code 200 indicates that the call was successful.
|
|
30202
|
+
* 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****`.
|
|
30118
30203
|
*
|
|
30119
30204
|
* @param request DescribeDynamicTagRuleListRequest
|
|
30120
30205
|
* @return DescribeDynamicTagRuleListResponse
|
|
@@ -30216,7 +30301,7 @@ export default class Client extends OpenApi {
|
|
|
30216
30301
|
}
|
|
30217
30302
|
|
|
30218
30303
|
/**
|
|
30219
|
-
*
|
|
30304
|
+
* This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`.
|
|
30220
30305
|
*
|
|
30221
30306
|
* @param request DescribeEventRuleTargetListRequest
|
|
30222
30307
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30247,7 +30332,7 @@ export default class Client extends OpenApi {
|
|
|
30247
30332
|
}
|
|
30248
30333
|
|
|
30249
30334
|
/**
|
|
30250
|
-
*
|
|
30335
|
+
* This topic provides an example to show how to query the details of an event-triggered alert rule named `testRule`.
|
|
30251
30336
|
*
|
|
30252
30337
|
* @param request DescribeEventRuleTargetListRequest
|
|
30253
30338
|
* @return DescribeEventRuleTargetListResponse
|
|
@@ -30324,7 +30409,7 @@ export default class Client extends OpenApi {
|
|
|
30324
30409
|
}
|
|
30325
30410
|
|
|
30326
30411
|
/**
|
|
30327
|
-
*
|
|
30412
|
+
* 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.
|
|
30328
30413
|
*
|
|
30329
30414
|
* @param request DescribeGroupMonitoringAgentProcessRequest
|
|
30330
30415
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30367,7 +30452,7 @@ export default class Client extends OpenApi {
|
|
|
30367
30452
|
}
|
|
30368
30453
|
|
|
30369
30454
|
/**
|
|
30370
|
-
*
|
|
30455
|
+
* 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.
|
|
30371
30456
|
*
|
|
30372
30457
|
* @param request DescribeGroupMonitoringAgentProcessRequest
|
|
30373
30458
|
* @return DescribeGroupMonitoringAgentProcessResponse
|
|
@@ -30378,7 +30463,7 @@ export default class Client extends OpenApi {
|
|
|
30378
30463
|
}
|
|
30379
30464
|
|
|
30380
30465
|
/**
|
|
30381
|
-
*
|
|
30466
|
+
* 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`.
|
|
30382
30467
|
*
|
|
30383
30468
|
* @param request DescribeHostAvailabilityListRequest
|
|
30384
30469
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30429,7 +30514,7 @@ export default class Client extends OpenApi {
|
|
|
30429
30514
|
}
|
|
30430
30515
|
|
|
30431
30516
|
/**
|
|
30432
|
-
*
|
|
30517
|
+
* 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`.
|
|
30433
30518
|
*
|
|
30434
30519
|
* @param request DescribeHostAvailabilityListRequest
|
|
30435
30520
|
* @return DescribeHostAvailabilityListResponse
|
|
@@ -30440,7 +30525,8 @@ export default class Client extends OpenApi {
|
|
|
30440
30525
|
}
|
|
30441
30526
|
|
|
30442
30527
|
/**
|
|
30443
|
-
*
|
|
30528
|
+
* ## Prerequisites
|
|
30529
|
+
* Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).
|
|
30444
30530
|
*
|
|
30445
30531
|
* @param request DescribeHybridMonitorDataListRequest
|
|
30446
30532
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30487,7 +30573,8 @@ export default class Client extends OpenApi {
|
|
|
30487
30573
|
}
|
|
30488
30574
|
|
|
30489
30575
|
/**
|
|
30490
|
-
*
|
|
30576
|
+
* ## Prerequisites
|
|
30577
|
+
* Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).
|
|
30491
30578
|
*
|
|
30492
30579
|
* @param request DescribeHybridMonitorDataListRequest
|
|
30493
30580
|
* @return DescribeHybridMonitorDataListResponse
|
|
@@ -30498,13 +30585,7 @@ export default class Client extends OpenApi {
|
|
|
30498
30585
|
}
|
|
30499
30586
|
|
|
30500
30587
|
/**
|
|
30501
|
-
*
|
|
30502
|
-
* * cms.s1.large: Data is stored for 15 days.
|
|
30503
|
-
* * cms.s1.xlarge: Data is stored for 32 days.
|
|
30504
|
-
* * cms.s1.2xlarge: Data is stored for 63 days.
|
|
30505
|
-
* * cms.s1.3xlarge: Data is stored for 93 days.
|
|
30506
|
-
* * cms.s1.6xlarge: Data is stored for 185 days.
|
|
30507
|
-
* * cms.s1.12xlarge: Data is stored for 376 days.
|
|
30588
|
+
* 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`.
|
|
30508
30589
|
*
|
|
30509
30590
|
* @param request DescribeHybridMonitorNamespaceListRequest
|
|
30510
30591
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30551,13 +30632,7 @@ export default class Client extends OpenApi {
|
|
|
30551
30632
|
}
|
|
30552
30633
|
|
|
30553
30634
|
/**
|
|
30554
|
-
*
|
|
30555
|
-
* * cms.s1.large: Data is stored for 15 days.
|
|
30556
|
-
* * cms.s1.xlarge: Data is stored for 32 days.
|
|
30557
|
-
* * cms.s1.2xlarge: Data is stored for 63 days.
|
|
30558
|
-
* * cms.s1.3xlarge: Data is stored for 93 days.
|
|
30559
|
-
* * cms.s1.6xlarge: Data is stored for 185 days.
|
|
30560
|
-
* * cms.s1.12xlarge: Data is stored for 376 days.
|
|
30635
|
+
* 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`.
|
|
30561
30636
|
*
|
|
30562
30637
|
* @param request DescribeHybridMonitorNamespaceListRequest
|
|
30563
30638
|
* @return DescribeHybridMonitorNamespaceListResponse
|
|
@@ -30762,12 +30837,9 @@ export default class Client extends OpenApi {
|
|
|
30762
30837
|
}
|
|
30763
30838
|
|
|
30764
30839
|
/**
|
|
30765
|
-
*
|
|
30766
|
-
*
|
|
30767
|
-
*
|
|
30768
|
-
* >
|
|
30769
|
-
* * If this parameter is not specified, monitoring data is queried based on the period in which metric values are reported.
|
|
30770
|
-
* * For more information about the statistical period of a metric that is specified by the `MetricName` parameter, see [Appendix 1: Metrics](~~163515~~).
|
|
30840
|
+
* ## Limits
|
|
30841
|
+
* 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.
|
|
30842
|
+
* > 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`.
|
|
30771
30843
|
*
|
|
30772
30844
|
* @param request DescribeMetricDataRequest
|
|
30773
30845
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30826,12 +30898,9 @@ export default class Client extends OpenApi {
|
|
|
30826
30898
|
}
|
|
30827
30899
|
|
|
30828
30900
|
/**
|
|
30829
|
-
*
|
|
30830
|
-
*
|
|
30831
|
-
*
|
|
30832
|
-
* >
|
|
30833
|
-
* * If this parameter is not specified, monitoring data is queried based on the period in which metric values are reported.
|
|
30834
|
-
* * For more information about the statistical period of a metric that is specified by the `MetricName` parameter, see [Appendix 1: Metrics](~~163515~~).
|
|
30901
|
+
* ## Limits
|
|
30902
|
+
* 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.
|
|
30903
|
+
* > 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`.
|
|
30835
30904
|
*
|
|
30836
30905
|
* @param request DescribeMetricDataRequest
|
|
30837
30906
|
* @return DescribeMetricDataResponse
|
|
@@ -30932,8 +31001,9 @@ export default class Client extends OpenApi {
|
|
|
30932
31001
|
}
|
|
30933
31002
|
|
|
30934
31003
|
/**
|
|
30935
|
-
*
|
|
30936
|
-
*
|
|
31004
|
+
* ## Limits
|
|
31005
|
+
* 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.
|
|
31006
|
+
* >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.
|
|
30937
31007
|
*
|
|
30938
31008
|
* @param request DescribeMetricListRequest
|
|
30939
31009
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30996,8 +31066,9 @@ export default class Client extends OpenApi {
|
|
|
30996
31066
|
}
|
|
30997
31067
|
|
|
30998
31068
|
/**
|
|
30999
|
-
*
|
|
31000
|
-
*
|
|
31069
|
+
* ## Limits
|
|
31070
|
+
* 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.
|
|
31071
|
+
* >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.
|
|
31001
31072
|
*
|
|
31002
31073
|
* @param request DescribeMetricListRequest
|
|
31003
31074
|
* @return DescribeMetricListResponse
|
|
@@ -31008,8 +31079,7 @@ export default class Client extends OpenApi {
|
|
|
31008
31079
|
}
|
|
31009
31080
|
|
|
31010
31081
|
/**
|
|
31011
|
-
*
|
|
31012
|
-
* For more information, see [Appendix 1: Metrics](~~163515~~).
|
|
31082
|
+
* This operation is usually used with DescribeMetricList and DescribeMetricLast. For more information, see [DescribeMetricList](~~51936~~) and [DescribeMetricLast](~~51939~~).
|
|
31013
31083
|
*
|
|
31014
31084
|
* @param request DescribeMetricMetaListRequest
|
|
31015
31085
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -31056,8 +31126,7 @@ export default class Client extends OpenApi {
|
|
|
31056
31126
|
}
|
|
31057
31127
|
|
|
31058
31128
|
/**
|
|
31059
|
-
*
|
|
31060
|
-
* For more information, see [Appendix 1: Metrics](~~163515~~).
|
|
31129
|
+
* This operation is usually used with DescribeMetricList and DescribeMetricLast. For more information, see [DescribeMetricList](~~51936~~) and [DescribeMetricLast](~~51939~~).
|
|
31061
31130
|
*
|
|
31062
31131
|
* @param request DescribeMetricMetaListRequest
|
|
31063
31132
|
* @return DescribeMetricMetaListResponse
|
|
@@ -31236,7 +31305,9 @@ export default class Client extends OpenApi {
|
|
|
31236
31305
|
}
|
|
31237
31306
|
|
|
31238
31307
|
/**
|
|
31239
|
-
*
|
|
31308
|
+
* ## Limit
|
|
31309
|
+
* This operation supports only Message Service (MNS) resources.
|
|
31310
|
+
* >This topic provides an example on how to query the resources that are associated with an alert rule whose ID is `ae06917_75a8c43178ab66****`.
|
|
31240
31311
|
*
|
|
31241
31312
|
* @param request DescribeMetricRuleTargetsRequest
|
|
31242
31313
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -31267,7 +31338,9 @@ export default class Client extends OpenApi {
|
|
|
31267
31338
|
}
|
|
31268
31339
|
|
|
31269
31340
|
/**
|
|
31270
|
-
*
|
|
31341
|
+
* ## Limit
|
|
31342
|
+
* This operation supports only Message Service (MNS) resources.
|
|
31343
|
+
* >This topic provides an example on how to query the resources that are associated with an alert rule whose ID is `ae06917_75a8c43178ab66****`.
|
|
31271
31344
|
*
|
|
31272
31345
|
* @param request DescribeMetricRuleTargetsRequest
|
|
31273
31346
|
* @return DescribeMetricRuleTargetsResponse
|
|
@@ -31278,7 +31351,7 @@ export default class Client extends OpenApi {
|
|
|
31278
31351
|
}
|
|
31279
31352
|
|
|
31280
31353
|
/**
|
|
31281
|
-
*
|
|
31354
|
+
* This topic provides an example on how to query the details of an alert template whose ID is `70****`.
|
|
31282
31355
|
*
|
|
31283
31356
|
* @param request DescribeMetricRuleTemplateAttributeRequest
|
|
31284
31357
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -31313,7 +31386,7 @@ export default class Client extends OpenApi {
|
|
|
31313
31386
|
}
|
|
31314
31387
|
|
|
31315
31388
|
/**
|
|
31316
|
-
*
|
|
31389
|
+
* This topic provides an example on how to query the details of an alert template whose ID is `70****`.
|
|
31317
31390
|
*
|
|
31318
31391
|
* @param request DescribeMetricRuleTemplateAttributeRequest
|
|
31319
31392
|
* @return DescribeMetricRuleTemplateAttributeResponse
|
|
@@ -31921,7 +31994,8 @@ export default class Client extends OpenApi {
|
|
|
31921
31994
|
}
|
|
31922
31995
|
|
|
31923
31996
|
/**
|
|
31924
|
-
*
|
|
31997
|
+
* > Before you call this operation, call the CreateMonitoringAgentProcess operation to create processes. For more information, see [CreateMonitoringAgentProcess](~~114951~~~).
|
|
31998
|
+
* 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.
|
|
31925
31999
|
*
|
|
31926
32000
|
* @param request DescribeMonitoringAgentProcessesRequest
|
|
31927
32001
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -31952,7 +32026,8 @@ export default class Client extends OpenApi {
|
|
|
31952
32026
|
}
|
|
31953
32027
|
|
|
31954
32028
|
/**
|
|
31955
|
-
*
|
|
32029
|
+
* > Before you call this operation, call the CreateMonitoringAgentProcess operation to create processes. For more information, see [CreateMonitoringAgentProcess](~~114951~~~).
|
|
32030
|
+
* 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.
|
|
31956
32031
|
*
|
|
31957
32032
|
* @param request DescribeMonitoringAgentProcessesRequest
|
|
31958
32033
|
* @return DescribeMonitoringAgentProcessesResponse
|
|
@@ -32031,7 +32106,7 @@ export default class Client extends OpenApi {
|
|
|
32031
32106
|
}
|
|
32032
32107
|
|
|
32033
32108
|
/**
|
|
32034
|
-
*
|
|
32109
|
+
* > If a tag is attached to multiple cloud resources in the region, the key of the tag is returned only once.
|
|
32035
32110
|
*
|
|
32036
32111
|
* @param request DescribeProductResourceTagKeyListRequest
|
|
32037
32112
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -32062,7 +32137,7 @@ export default class Client extends OpenApi {
|
|
|
32062
32137
|
}
|
|
32063
32138
|
|
|
32064
32139
|
/**
|
|
32065
|
-
*
|
|
32140
|
+
* > If a tag is attached to multiple cloud resources in the region, the key of the tag is returned only once.
|
|
32066
32141
|
*
|
|
32067
32142
|
* @param request DescribeProductResourceTagKeyListRequest
|
|
32068
32143
|
* @return DescribeProductResourceTagKeyListResponse
|
|
@@ -32145,7 +32220,7 @@ export default class Client extends OpenApi {
|
|
|
32145
32220
|
}
|
|
32146
32221
|
|
|
32147
32222
|
/**
|
|
32148
|
-
* The
|
|
32223
|
+
* 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`.
|
|
32149
32224
|
*
|
|
32150
32225
|
* @param request DescribeSiteMonitorAttributeRequest
|
|
32151
32226
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -32180,7 +32255,7 @@ export default class Client extends OpenApi {
|
|
|
32180
32255
|
}
|
|
32181
32256
|
|
|
32182
32257
|
/**
|
|
32183
|
-
* The
|
|
32258
|
+
* 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`.
|
|
32184
32259
|
*
|
|
32185
32260
|
* @param request DescribeSiteMonitorAttributeRequest
|
|
32186
32261
|
* @return DescribeSiteMonitorAttributeResponse
|
|
@@ -32306,7 +32381,7 @@ export default class Client extends OpenApi {
|
|
|
32306
32381
|
}
|
|
32307
32382
|
|
|
32308
32383
|
/**
|
|
32309
|
-
*
|
|
32384
|
+
* 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`.
|
|
32310
32385
|
*
|
|
32311
32386
|
* @param request DescribeSiteMonitorListRequest
|
|
32312
32387
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -32357,7 +32432,7 @@ export default class Client extends OpenApi {
|
|
|
32357
32432
|
}
|
|
32358
32433
|
|
|
32359
32434
|
/**
|
|
32360
|
-
*
|
|
32435
|
+
* 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`.
|
|
32361
32436
|
*
|
|
32362
32437
|
* @param request DescribeSiteMonitorListRequest
|
|
32363
32438
|
* @return DescribeSiteMonitorListResponse
|
|
@@ -32477,6 +32552,13 @@ export default class Client extends OpenApi {
|
|
|
32477
32552
|
return await this.describeSiteMonitorQuotaWithOptions(request, runtime);
|
|
32478
32553
|
}
|
|
32479
32554
|
|
|
32555
|
+
/**
|
|
32556
|
+
* 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%`.
|
|
32557
|
+
*
|
|
32558
|
+
* @param request DescribeSiteMonitorStatisticsRequest
|
|
32559
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32560
|
+
* @return DescribeSiteMonitorStatisticsResponse
|
|
32561
|
+
*/
|
|
32480
32562
|
async describeSiteMonitorStatisticsWithOptions(request: DescribeSiteMonitorStatisticsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeSiteMonitorStatisticsResponse> {
|
|
32481
32563
|
Util.validateModel(request);
|
|
32482
32564
|
let query = { };
|
|
@@ -32513,6 +32595,12 @@ export default class Client extends OpenApi {
|
|
|
32513
32595
|
return $tea.cast<DescribeSiteMonitorStatisticsResponse>(await this.callApi(params, req, runtime), new DescribeSiteMonitorStatisticsResponse({}));
|
|
32514
32596
|
}
|
|
32515
32597
|
|
|
32598
|
+
/**
|
|
32599
|
+
* 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%`.
|
|
32600
|
+
*
|
|
32601
|
+
* @param request DescribeSiteMonitorStatisticsRequest
|
|
32602
|
+
* @return DescribeSiteMonitorStatisticsResponse
|
|
32603
|
+
*/
|
|
32516
32604
|
async describeSiteMonitorStatistics(request: DescribeSiteMonitorStatisticsRequest): Promise<DescribeSiteMonitorStatisticsResponse> {
|
|
32517
32605
|
let runtime = new $Util.RuntimeOptions({ });
|
|
32518
32606
|
return await this.describeSiteMonitorStatisticsWithOptions(request, runtime);
|
|
@@ -32588,7 +32676,7 @@ export default class Client extends OpenApi {
|
|
|
32588
32676
|
}
|
|
32589
32677
|
|
|
32590
32678
|
/**
|
|
32591
|
-
*
|
|
32679
|
+
* 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.
|
|
32592
32680
|
*
|
|
32593
32681
|
* @param request DescribeSystemEventCountRequest
|
|
32594
32682
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -32651,7 +32739,7 @@ export default class Client extends OpenApi {
|
|
|
32651
32739
|
}
|
|
32652
32740
|
|
|
32653
32741
|
/**
|
|
32654
|
-
*
|
|
32742
|
+
* 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.
|
|
32655
32743
|
*
|
|
32656
32744
|
* @param request DescribeSystemEventCountRequest
|
|
32657
32745
|
* @return DescribeSystemEventCountResponse
|
|
@@ -32778,7 +32866,7 @@ export default class Client extends OpenApi {
|
|
|
32778
32866
|
}
|
|
32779
32867
|
|
|
32780
32868
|
/**
|
|
32781
|
-
*
|
|
32869
|
+
* This topic provides an example of how to query the tag values corresponding to `tagKey1`. The return results are `tagValue1` and `tagValue2`.
|
|
32782
32870
|
*
|
|
32783
32871
|
* @param request DescribeTagValueListRequest
|
|
32784
32872
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -32817,7 +32905,7 @@ export default class Client extends OpenApi {
|
|
|
32817
32905
|
}
|
|
32818
32906
|
|
|
32819
32907
|
/**
|
|
32820
|
-
*
|
|
32908
|
+
* This topic provides an example of how to query the tag values corresponding to `tagKey1`. The return results are `tagValue1` and `tagValue2`.
|
|
32821
32909
|
*
|
|
32822
32910
|
* @param request DescribeTagValueListRequest
|
|
32823
32911
|
* @return DescribeTagValueListResponse
|
|
@@ -33180,9 +33268,8 @@ export default class Client extends OpenApi {
|
|
|
33180
33268
|
}
|
|
33181
33269
|
|
|
33182
33270
|
/**
|
|
33183
|
-
*
|
|
33184
|
-
*
|
|
33185
|
-
* * false: The call failed.
|
|
33271
|
+
* ## Prerequisites
|
|
33272
|
+
* The Cloud Assistant client is installed on an ECS instance. For more information about how to install the Cloud Assistant client, see [Overview](~~64601~~).
|
|
33186
33273
|
*
|
|
33187
33274
|
* @param request InstallMonitoringAgentRequest
|
|
33188
33275
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -33221,9 +33308,8 @@ export default class Client extends OpenApi {
|
|
|
33221
33308
|
}
|
|
33222
33309
|
|
|
33223
33310
|
/**
|
|
33224
|
-
*
|
|
33225
|
-
*
|
|
33226
|
-
* * false: The call failed.
|
|
33311
|
+
* ## Prerequisites
|
|
33312
|
+
* The Cloud Assistant client is installed on an ECS instance. For more information about how to install the Cloud Assistant client, see [Overview](~~64601~~).
|
|
33227
33313
|
*
|
|
33228
33314
|
* @param request InstallMonitoringAgentRequest
|
|
33229
33315
|
* @return InstallMonitoringAgentResponse
|
|
@@ -33395,9 +33481,7 @@ export default class Client extends OpenApi {
|
|
|
33395
33481
|
}
|
|
33396
33482
|
|
|
33397
33483
|
/**
|
|
33398
|
-
*
|
|
33399
|
-
* * true: The call was successful.
|
|
33400
|
-
* * false: The call failed.
|
|
33484
|
+
* 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.
|
|
33401
33485
|
*
|
|
33402
33486
|
* @param request ModifyHybridMonitorNamespaceRequest
|
|
33403
33487
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -33436,9 +33520,7 @@ export default class Client extends OpenApi {
|
|
|
33436
33520
|
}
|
|
33437
33521
|
|
|
33438
33522
|
/**
|
|
33439
|
-
*
|
|
33440
|
-
* * true: The call was successful.
|
|
33441
|
-
* * false: The call failed.
|
|
33523
|
+
* 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.
|
|
33442
33524
|
*
|
|
33443
33525
|
* @param request ModifyHybridMonitorNamespaceRequest
|
|
33444
33526
|
* @return ModifyHybridMonitorNamespaceResponse
|
|
@@ -33449,8 +33531,7 @@ export default class Client extends OpenApi {
|
|
|
33449
33531
|
}
|
|
33450
33532
|
|
|
33451
33533
|
/**
|
|
33452
|
-
* The
|
|
33453
|
-
* Valid values of N: 1 to 25.
|
|
33534
|
+
* 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.
|
|
33454
33535
|
*
|
|
33455
33536
|
* @param request ModifyHybridMonitorSLSGroupRequest
|
|
33456
33537
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -33489,8 +33570,7 @@ export default class Client extends OpenApi {
|
|
|
33489
33570
|
}
|
|
33490
33571
|
|
|
33491
33572
|
/**
|
|
33492
|
-
* The
|
|
33493
|
-
* Valid values of N: 1 to 25.
|
|
33573
|
+
* 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.
|
|
33494
33574
|
*
|
|
33495
33575
|
* @param request ModifyHybridMonitorSLSGroupRequest
|
|
33496
33576
|
* @return ModifyHybridMonitorSLSGroupResponse
|
|
@@ -33632,9 +33712,7 @@ export default class Client extends OpenApi {
|
|
|
33632
33712
|
}
|
|
33633
33713
|
|
|
33634
33714
|
/**
|
|
33635
|
-
*
|
|
33636
|
-
* * true: The call was successful.
|
|
33637
|
-
* * false: The call failed.
|
|
33715
|
+
* 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.
|
|
33638
33716
|
*
|
|
33639
33717
|
* @param request ModifyMetricRuleTemplateRequest
|
|
33640
33718
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -33681,9 +33759,7 @@ export default class Client extends OpenApi {
|
|
|
33681
33759
|
}
|
|
33682
33760
|
|
|
33683
33761
|
/**
|
|
33684
|
-
*
|
|
33685
|
-
* * true: The call was successful.
|
|
33686
|
-
* * false: The call failed.
|
|
33762
|
+
* 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.
|
|
33687
33763
|
*
|
|
33688
33764
|
* @param request ModifyMetricRuleTemplateRequest
|
|
33689
33765
|
* @return ModifyMetricRuleTemplateResponse
|
|
@@ -33914,7 +33990,7 @@ export default class Client extends OpenApi {
|
|
|
33914
33990
|
}
|
|
33915
33991
|
|
|
33916
33992
|
/**
|
|
33917
|
-
*
|
|
33993
|
+
* This topic provides an example on how to create an alert contact group named `ECS_Group`.
|
|
33918
33994
|
*
|
|
33919
33995
|
* @param request PutContactGroupRequest
|
|
33920
33996
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -33957,7 +34033,7 @@ export default class Client extends OpenApi {
|
|
|
33957
34033
|
}
|
|
33958
34034
|
|
|
33959
34035
|
/**
|
|
33960
|
-
*
|
|
34036
|
+
* This topic provides an example on how to create an alert contact group named `ECS_Group`.
|
|
33961
34037
|
*
|
|
33962
34038
|
* @param request PutContactGroupRequest
|
|
33963
34039
|
* @return PutContactGroupResponse
|
|
@@ -33997,7 +34073,7 @@ export default class Client extends OpenApi {
|
|
|
33997
34073
|
}
|
|
33998
34074
|
|
|
33999
34075
|
/**
|
|
34000
|
-
*
|
|
34076
|
+
* Before you call this operation, call the PutCustomEvent operation to report the monitoring data of the custom event. For more information, see [PutCustomEvent](~~115012~~).
|
|
34001
34077
|
*
|
|
34002
34078
|
* @param request PutCustomEventRuleRequest
|
|
34003
34079
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -34068,7 +34144,7 @@ export default class Client extends OpenApi {
|
|
|
34068
34144
|
}
|
|
34069
34145
|
|
|
34070
34146
|
/**
|
|
34071
|
-
*
|
|
34147
|
+
* Before you call this operation, call the PutCustomEvent operation to report the monitoring data of the custom event. For more information, see [PutCustomEvent](~~115012~~).
|
|
34072
34148
|
*
|
|
34073
34149
|
* @param request PutCustomEventRuleRequest
|
|
34074
34150
|
* @return PutCustomEventRuleResponse
|
|
@@ -34079,11 +34155,7 @@ export default class Client extends OpenApi {
|
|
|
34079
34155
|
}
|
|
34080
34156
|
|
|
34081
34157
|
/**
|
|
34082
|
-
*
|
|
34083
|
-
* Set the value to a collection of key-value pairs. Format:`{"Key":"Value"}`.
|
|
34084
|
-
* The key or value must be 1 to 64 bytes in length. Excessive characters are truncated.
|
|
34085
|
-
* The key or value can contain letters, digits, periods (.), hyphens (-), underscores (\\_), forward slashes (/), and backslashes (\\\\).
|
|
34086
|
-
* > Dimensions must be formatted as a JSON string in a specified order.
|
|
34158
|
+
* > We recommend that you call the [PutHybridMonitorMetricData](~~383455~~) operation of Hybrid Cloud Monitoring to report monitoring data.
|
|
34087
34159
|
*
|
|
34088
34160
|
* @param request PutCustomMetricRequest
|
|
34089
34161
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -34114,11 +34186,7 @@ export default class Client extends OpenApi {
|
|
|
34114
34186
|
}
|
|
34115
34187
|
|
|
34116
34188
|
/**
|
|
34117
|
-
*
|
|
34118
|
-
* Set the value to a collection of key-value pairs. Format:`{"Key":"Value"}`.
|
|
34119
|
-
* The key or value must be 1 to 64 bytes in length. Excessive characters are truncated.
|
|
34120
|
-
* The key or value can contain letters, digits, periods (.), hyphens (-), underscores (\\_), forward slashes (/), and backslashes (\\\\).
|
|
34121
|
-
* > Dimensions must be formatted as a JSON string in a specified order.
|
|
34189
|
+
* > We recommend that you call the [PutHybridMonitorMetricData](~~383455~~) operation of Hybrid Cloud Monitoring to report monitoring data.
|
|
34122
34190
|
*
|
|
34123
34191
|
* @param request PutCustomMetricRequest
|
|
34124
34192
|
* @return PutCustomMetricResponse
|
|
@@ -34129,7 +34197,7 @@ export default class Client extends OpenApi {
|
|
|
34129
34197
|
}
|
|
34130
34198
|
|
|
34131
34199
|
/**
|
|
34132
|
-
*
|
|
34200
|
+
* Before you call this operation, call the PutCustomMetric operation to report custom monitoring data. For more information, see [PutCustomMetric](~~115004~~).
|
|
34133
34201
|
*
|
|
34134
34202
|
* @param request PutCustomMetricRuleRequest
|
|
34135
34203
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -34220,7 +34288,7 @@ export default class Client extends OpenApi {
|
|
|
34220
34288
|
}
|
|
34221
34289
|
|
|
34222
34290
|
/**
|
|
34223
|
-
*
|
|
34291
|
+
* Before you call this operation, call the PutCustomMetric operation to report custom monitoring data. For more information, see [PutCustomMetric](~~115004~~).
|
|
34224
34292
|
*
|
|
34225
34293
|
* @param request PutCustomMetricRuleRequest
|
|
34226
34294
|
* @return PutCustomMetricRuleResponse
|
|
@@ -34231,7 +34299,8 @@ export default class Client extends OpenApi {
|
|
|
34231
34299
|
}
|
|
34232
34300
|
|
|
34233
34301
|
/**
|
|
34234
|
-
*
|
|
34302
|
+
* 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.
|
|
34303
|
+
* In this example, the `myRuleName` alert rule is created for the `ecs` cloud service.
|
|
34235
34304
|
*
|
|
34236
34305
|
* @param request PutEventRuleRequest
|
|
34237
34306
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -34286,7 +34355,8 @@ export default class Client extends OpenApi {
|
|
|
34286
34355
|
}
|
|
34287
34356
|
|
|
34288
34357
|
/**
|
|
34289
|
-
*
|
|
34358
|
+
* 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.
|
|
34359
|
+
* In this example, the `myRuleName` alert rule is created for the `ecs` cloud service.
|
|
34290
34360
|
*
|
|
34291
34361
|
* @param request PutEventRuleRequest
|
|
34292
34362
|
* @return PutEventRuleResponse
|
|
@@ -34623,7 +34693,7 @@ export default class Client extends OpenApi {
|
|
|
34623
34693
|
}
|
|
34624
34694
|
|
|
34625
34695
|
/**
|
|
34626
|
-
*
|
|
34696
|
+
* 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****`.
|
|
34627
34697
|
*
|
|
34628
34698
|
* @param request PutLogMonitorRequest
|
|
34629
34699
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -34702,7 +34772,7 @@ export default class Client extends OpenApi {
|
|
|
34702
34772
|
}
|
|
34703
34773
|
|
|
34704
34774
|
/**
|
|
34705
|
-
*
|
|
34775
|
+
* 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****`.
|
|
34706
34776
|
*
|
|
34707
34777
|
* @param request PutLogMonitorRequest
|
|
34708
34778
|
* @return PutLogMonitorResponse
|
|
@@ -34713,9 +34783,8 @@ export default class Client extends OpenApi {
|
|
|
34713
34783
|
}
|
|
34714
34784
|
|
|
34715
34785
|
/**
|
|
34716
|
-
*
|
|
34717
|
-
*
|
|
34718
|
-
* * false: The call failed.
|
|
34786
|
+
* ## Limit
|
|
34787
|
+
* This operation supports only Message Service (MNS) resources.
|
|
34719
34788
|
*
|
|
34720
34789
|
* @param request PutMetricRuleTargetsRequest
|
|
34721
34790
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -34750,9 +34819,8 @@ export default class Client extends OpenApi {
|
|
|
34750
34819
|
}
|
|
34751
34820
|
|
|
34752
34821
|
/**
|
|
34753
|
-
*
|
|
34754
|
-
*
|
|
34755
|
-
* * false: The call failed.
|
|
34822
|
+
* ## Limit
|
|
34823
|
+
* This operation supports only Message Service (MNS) resources.
|
|
34756
34824
|
*
|
|
34757
34825
|
* @param request PutMetricRuleTargetsRequest
|
|
34758
34826
|
* @return PutMetricRuleTargetsResponse
|
|
@@ -34953,9 +35021,7 @@ export default class Client extends OpenApi {
|
|
|
34953
35021
|
}
|
|
34954
35022
|
|
|
34955
35023
|
/**
|
|
34956
|
-
*
|
|
34957
|
-
* * true: The call was successful.
|
|
34958
|
-
* * false: The call failed.
|
|
35024
|
+
* 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`.
|
|
34959
35025
|
*
|
|
34960
35026
|
* @param request PutResourceMetricRulesRequest
|
|
34961
35027
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -34986,9 +35052,7 @@ export default class Client extends OpenApi {
|
|
|
34986
35052
|
}
|
|
34987
35053
|
|
|
34988
35054
|
/**
|
|
34989
|
-
*
|
|
34990
|
-
* * true: The call was successful.
|
|
34991
|
-
* * false: The call failed.
|
|
35055
|
+
* 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`.
|
|
34992
35056
|
*
|
|
34993
35057
|
* @param request PutResourceMetricRulesRequest
|
|
34994
35058
|
* @return PutResourceMetricRulesResponse
|
|
@@ -35032,8 +35096,7 @@ export default class Client extends OpenApi {
|
|
|
35032
35096
|
}
|
|
35033
35097
|
|
|
35034
35098
|
/**
|
|
35035
|
-
*
|
|
35036
|
-
* > For information about the system events supported by Cloud Monitor for Alibaba Cloud services, see [System events](~~167388~~).
|
|
35099
|
+
* 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.
|
|
35037
35100
|
*
|
|
35038
35101
|
* @param request SendDryRunSystemEventRequest
|
|
35039
35102
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -35076,8 +35139,7 @@ export default class Client extends OpenApi {
|
|
|
35076
35139
|
}
|
|
35077
35140
|
|
|
35078
35141
|
/**
|
|
35079
|
-
*
|
|
35080
|
-
* > For information about the system events supported by Cloud Monitor for Alibaba Cloud services, see [System events](~~167388~~).
|
|
35142
|
+
* 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.
|
|
35081
35143
|
*
|
|
35082
35144
|
* @param request SendDryRunSystemEventRequest
|
|
35083
35145
|
* @return SendDryRunSystemEventResponse
|
|
@@ -35088,7 +35150,7 @@ export default class Client extends OpenApi {
|
|
|
35088
35150
|
}
|
|
35089
35151
|
|
|
35090
35152
|
/**
|
|
35091
|
-
*
|
|
35153
|
+
* > 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~~).
|
|
35092
35154
|
*
|
|
35093
35155
|
* @param request UninstallMonitoringAgentRequest
|
|
35094
35156
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -35119,7 +35181,7 @@ export default class Client extends OpenApi {
|
|
|
35119
35181
|
}
|
|
35120
35182
|
|
|
35121
35183
|
/**
|
|
35122
|
-
*
|
|
35184
|
+
* > 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~~).
|
|
35123
35185
|
*
|
|
35124
35186
|
* @param request UninstallMonitoringAgentRequest
|
|
35125
35187
|
* @return UninstallMonitoringAgentResponse
|