'1.0',
'info' => ['style' => 'RPC', 'product' => 'Cms', 'version' => '2019-01-01'],
'directories' => [
[
'children' => [
[
'children' => ['CreateMonitorGroup', 'ModifyMonitorGroup', 'DeleteMonitorGroup', 'DescribeMonitorGroups', 'CreateMonitorGroupInstances', 'ModifyMonitorGroupInstances', 'DescribeMonitorGroupInstances', 'DescribeMonitorGroupDynamicRules', 'DescribeMonitorGroupInstanceAttribute', 'DeleteMonitorGroupDynamicRule', 'DeleteMonitorGroupInstances', 'DescribeMonitorGroupCategories', 'PutMonitorGroupDynamicRule', 'CreateGroupMonitoringAgentProcess', 'ModifyGroupMonitoringAgentProcess', 'DeleteGroupMonitoringAgentProcess', 'DescribeGroupMonitoringAgentProcess', 'CreateMonitorGroupNotifyPolicy', 'DeleteMonitorGroupNotifyPolicy', 'DescribeMonitorGroupNotifyPolicyList'],
'type' => 'directory',
'title' => 'Manage application groups',
],
[
'children' => ['CreateDynamicTagGroup', 'DeleteDynamicTagGroup', 'DescribeTagValueList', 'DescribeTagKeyList', 'DescribeProductResourceTagKeyList', 'DescribeDynamicTagRuleList'],
'type' => 'directory',
'title' => 'Tags',
],
[
'children' => ['CreateHostAvailability', 'DeleteHostAvailability', 'EnableHostAvailability', 'DisableHostAvailability', 'ModifyHostAvailability', 'DescribeUnhealthyHostAvailability', 'DescribeHostAvailabilityList'],
'type' => 'directory',
'title' => 'Availability monitoring',
],
],
'type' => 'directory',
'title' => 'Application group',
],
[
'children' => ['InstallMonitoringAgent', 'DescribeMonitoringAgentHosts', 'DescribeMonitoringAgentAccessKey', 'DescribeMonitoringAgentConfig', 'DescribeMonitoringAgentStatuses', 'ModifyHostInfo', 'DescribeMonitoringConfig', 'PutMonitoringConfig', 'UninstallMonitoringAgent', 'CreateMonitoringAgentProcess', 'CreateMonitorAgentProcess', 'DescribeMonitoringAgentProcesses', 'DeleteMonitoringAgentProcess'],
'type' => 'directory',
'title' => 'Host monitoring',
],
[
'children' => [
[
'children' => ['DescribeSystemEventHistogram', 'DescribeSystemEventMetaList', 'DescribeSystemEventAttribute', 'DescribeSystemEventCount', 'DescribeMonitorResourceQuotaAttribute', 'SendDryRunSystemEvent'],
'type' => 'directory',
'title' => 'System events',
],
[
'children' => ['DescribeCustomEventCount', 'DescribeCustomEventHistogram', 'DescribeCustomEventAttribute', 'PutCustomEvent'],
'type' => 'directory',
'title' => 'Custom events',
],
],
'type' => 'directory',
'title' => 'Event center',
],
[
'children' => ['PutCustomMetric', 'PutCustomMetricRule', 'DescribeCustomMetricList', 'DeleteCustomMetric'],
'type' => 'directory',
'title' => 'Custom monitoring',
],
[
'children' => ['PutLogMonitor', 'DeleteLogMonitor', 'DescribeLogMonitorList', 'DescribeLogMonitorAttribute'],
'type' => 'directory',
'title' => 'Log monitoring',
],
[
'children' => ['CreateMonitorGroupByResourceGroupId', 'CreateInstantSiteMonitor', 'BatchCreateInstantSiteMonitor', 'DeleteSiteMonitors', 'DisableSiteMonitors', 'ModifySiteMonitor', 'EnableSiteMonitors', 'DescribeSiteMonitorQuota', 'DescribeSiteMonitorAttribute', 'DescribeSiteMonitorISPCityList', 'DescribeSiteMonitorData', 'DescribeSiteMonitorStatistics', 'DescribeSiteMonitorList', 'DescribeSiteMonitorLog'],
'type' => 'directory',
'title' => 'Site monitoring',
],
[
'children' => ['DescribeMetricData', 'DescribeProjectMeta', 'DeleteExporterOutput', 'DeleteExporterRule', 'DescribeExporterOutputList', 'DescribeExporterRuleList', 'PutExporterOutput', 'PutExporterRule'],
'type' => 'directory',
'title' => 'Cloud service monitoring',
],
[
'children' => [
[
'children' => ['DescribeAlertHistoryList', 'DescribeAlertLogCount', 'DescribeAlertLogList', 'DescribeAlertLogHistogram'],
'type' => 'directory',
'title' => 'Alert history',
],
[
'children' => ['DescribeProductsOfActiveMetricRule', 'DescribeActiveMetricRuleList', 'EnableActiveMetricRule', 'DisableActiveMetricRule'],
'type' => 'directory',
'title' => 'One-click alert',
],
[
'children' => ['CreateMetricRuleTemplate', 'DeleteMetricRuleTemplate', 'ModifyMetricRuleTemplate', 'DescribeMetricRuleTemplateAttribute', 'DescribeMetricRuleTemplateList', 'ApplyMetricRuleTemplate'],
'type' => 'directory',
'title' => 'Alert templates',
],
[
'children' => ['DescribeMetricRuleList', 'CreateGroupMetricRules', 'CreateMetricRuleResources', 'DeleteMetricRuleTargets', 'DeleteMetricRules', 'DeleteMetricRuleResources', 'EnableMetricRules', 'DisableMetricRules', 'DescribeMetricRuleTargets', 'DescribeMetricRuleCount', 'DescribeAlertingMetricRuleResources', 'PutMetricRuleTargets', 'PutResourceMetricRule', 'PutResourceMetricRules', 'PutGroupMetricRule'],
'type' => 'directory',
'title' => 'Threshold alert rules',
],
[
'children' => ['DeleteEventRuleTargets', 'DeleteEventRules', 'EnableEventRules', 'DisableEventRules', 'DescribeEventRuleAttribute', 'DescribeEventRuleList', 'DescribeEventRuleTargetList', 'PutEventRuleTargets', 'PutEventRule', 'PutCustomEventRule'],
'type' => 'directory',
'title' => 'Event-triggered alert rules',
],
[
'children' => ['CreateMetricRuleBlackList', 'ModifyMetricRuleBlackList', 'DeleteMetricRuleBlackList', 'DescribeMetricRuleBlackList', 'EnableMetricRuleBlackList'],
'type' => 'directory',
'title' => 'Alert blacklist',
],
[
'children' => ['DescribeContactListByContactGroup', 'DescribeContactGroupList', 'DescribeContactList', 'PutContact', 'PutContactGroup'],
'type' => 'directory',
'title' => 'Alert contacts',
],
],
'type' => 'directory',
'title' => 'Alert service',
],
[
'children' => ['CreateHybridMonitorNamespace', 'ModifyHybridMonitorNamespace', 'DeleteHybridMonitorNamespace', 'DescribeHybridMonitorNamespaceList', 'CreateHybridMonitorTask', 'ModifyHybridMonitorTask', 'DeleteHybridMonitorTask', 'DescribeHybridMonitorTaskList', 'PutHybridMonitorMetricData', 'DescribeHybridMonitorDataList', 'CreateHybridMonitorSLSGroup', 'ModifyHybridMonitorSLSGroup', 'DeleteHybridMonitorSLSGroup', 'DescribeHybridMonitorSLSGroup', 'Cursor', 'BatchExport'],
'type' => 'directory',
'title' => 'Hybrid Cloud monitoring',
],
[
'children' => ['DescribeSyntheticProbeList', 'AddTags', 'BatchCreateOnceSiteMonitor', 'CreateSiteMonitor', 'DeleteContact', 'DeleteContactGroup', 'DescribeMetricLast', 'DescribeMetricList', 'DescribeMetricMetaList', 'DescribeMetricTop', 'DescribeSiteInstantMonitorLog', 'RemoveTags'],
'type' => 'directory',
'title' => 'Others',
],
],
'components' => [
'schemas' => [
'Dimension' => [
'title' => 'Dimension',
'description' => 'The dimension information of the metric.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'Label' => ['title' => 'Dimension label', 'description' => 'The name of the metric dimension.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'instanceId', 'backendName' => 'label'],
'Value' => ['title' => 'Dimension value', 'description' => 'The value of the metric dimension.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'i-dferwret*****', 'backendName' => 'value'],
],
'example' => '',
],
'Matcher' => [
'title' => 'mathcer',
'description' => 'The dimension of the metric.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'Value' => ['title' => 'value', 'description' => 'The value of the metric dimension.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'instanceId', 'backendName' => 'value'],
'Label' => ['title' => 'label', 'description' => 'The name of the metric dimension.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'i-fewrewr*****', 'backendName' => 'label'],
'Operator' => ['title' => 'operator', 'description' => 'The matching mode of the metric dimension. Only EQUALS is supported. Default value: EQUALS.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'EQUALS', 'backendName' => 'operator'],
],
'example' => '',
],
'MetricStat' => [
'title' => '查询数据点',
'description' => 'The data queried by BatchExport.'."\n",
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'Namespace' => ['title' => 'namespace', 'description' => 'The namespace of the cloud service.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'acs_ecs_dashboard', 'backendName' => 'namespace'],
'Metric' => ['title' => 'metric', 'description' => 'The metric that is used to monitor the cloud service.'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => 'cpu_idle', 'backendName' => 'metric'],
'Period' => ['title' => 'period', 'description' => 'The time interval based on which the metric value is measured.'."\n"
."\n"
.'Unit: seconds.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'example' => '60', 'backendName' => 'period'],
'Timestamp' => ['title' => 'timestamp', 'description' => 'The timestamp of the monitoring data. Unit: milliseconds.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1641454680000', 'backendName' => 'timestamp'],
'Dimensions' => [
'title' => 'dimensions',
'description' => 'The dimension information that is used to identify the monitored object (instance).'."\n",
'visibility' => 'Public',
'type' => 'array',
'items' => ['description' => 'The dimension information that is used to identify the monitored object (instance).'."\n", 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Dimension', 'title' => '', 'example' => ''],
'backendName' => 'dimensions',
'itemName' => 'Dimension',
'example' => '',
],
'Associated' => [
'title' => 'associated',
'description' => 'The additional information about the monitored object (instance).'."\n",
'visibility' => 'Public',
'type' => 'object',
'additionalProperties' => ['description' => 'The additional information about the monitored object (instance).'."\n", 'visibility' => 'Public', 'type' => 'string', 'example' => '{"group":"test****", "name":"Alice"}', 'title' => ''],
'backendName' => 'associated',
'example' => '',
],
'Measurements' => [
'title' => 'measurements',
'description' => 'The measured value of the metric. The parameter contains multiple values by default.'."\n",
'visibility' => 'Public',
'type' => 'object',
'additionalProperties' => ['description' => 'The measured value of the metric. The parameter contains multiple values by default.'."\n", 'visibility' => 'Public', 'type' => 'any', 'example' => '{"Average":60,"Maximum":85}', 'title' => ''],
'backendName' => 'measurements',
'example' => '',
],
'LogTime' => ['title' => 'logTime', 'description' => 'The recorded time of the monitoring data. Unit: milliseconds. For non-raw data (aggregated data), the value of LogTime is NULL.'."\n", 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1683686550073', 'backendName' => 'logTime'],
],
'example' => '',
],
],
],
'apis' => [
'AddTags' => [
'summary' => 'The AddTags operation attaches tags to specified application groups.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Tag',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'A list of tags.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The tag key.'."\n"
."\n"
.'The value of N can be from 1 to 3. The tag key must be 1 to 64 characters in length.'."\n"
."\n"
.'Enter a new tag key or use an existing tag key from Cloud Monitor. For information about how to obtain tag keys, see [DescribeTagKeyList](~~2513189~~).'."\n"
."\n"
.'> The tag key cannot start with `aliyun` or `acs:`. The `Tag.N.Key` and `Tag.N.Value` parameters must be specified together.', 'type' => 'string', 'required' => true, 'example' => 'key1', 'title' => ''],
'Value' => ['description' => 'The tag value.'."\n"
."\n"
.'The value of N can be from 1 to 3. The tag value must be 1 to 64 characters in length.'."\n"
."\n"
.'Enter a new tag value or use an existing tag value from Cloud Monitor. For information about how to obtain tag values, see [DescribeTagValueList](~~2513188~~).'."\n"
."\n"
.'> The tag value cannot start with `aliyun` or `acs:`. The `Tag.N.Key` and `Tag.N.Value` parameters must be specified together.', 'type' => 'string', 'required' => true, 'example' => 'value1', 'title' => ''],
],
'required' => false,
'description' => '',
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 5,
'title' => '',
'example' => '',
],
],
[
'name' => 'GroupIds',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The IDs of the application groups.'."\n"
."\n"
.'The value of N can be from 1 to 20.'."\n"
."\n"
.'For information about how to obtain application group IDs, see [DescribeMonitorGroups](~~2513168~~).',
'type' => 'array',
'items' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => false, 'example' => '7301****', 'title' => ''],
'required' => true,
'example' => '7301****',
'maxItems' => 20,
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A status code of 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'DAE4B115-3847-5438-8709-423627F0A3A3', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'AddTags',
'description' => 'This topic provides an example of how to attach a tag to the application group `7301****`. In this example, the tag key is `key1` and the tag value is `value1`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~315526~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-08-28T10:00:57.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddTags'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:AddTags',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"DAE4B115-3847-5438-8709-423627F0A3A3\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'ApplyMetricRuleTemplate' => [
'summary' => 'Applies an alert template to an application group to generate alert rules.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'SilenceTime',
'in' => 'query',
'schema' => ['description' => 'The mute for. Unit: seconds. Default value: 86400.'."\n"
."\n"
.'> When monitoring data continuously exceeds the alert rule threshold, only one alert notification is sent within each mute period.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '86400', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.'."\n"
."\n"
.'For information about how to obtain the application group ID, see [DescribeMonitorGroups](~~115032~~).', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123456', 'title' => ''],
],
[
'name' => 'TemplateIds',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert template.'."\n"
."\n"
.'For information about how to obtain the alert template ID, see [DescribeMetricRuleTemplateList](~~114982~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '700****', 'title' => ''],
],
[
'name' => 'EnableStartTime',
'in' => 'query',
'schema' => ['description' => 'The start time of the alert effective period. Valid values: 00 to 23, which indicates 00:00 to 23:00.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '00', 'title' => ''],
],
[
'name' => 'EnableEndTime',
'in' => 'query',
'schema' => ['description' => 'The end time of the alert effective period. Valid values: 00 to 23, which indicates 00:59 to 23:59.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '23', 'title' => ''],
],
[
'name' => 'NotifyLevel',
'in' => 'query',
'schema' => ['description' => 'The alert notification method. Valid values:'."\n"
."\n"
.'- 2: phone call + text message + mailbox + TradeManager + DingTalk chatbot.'."\n"
."\n"
.'- 3: text message + mailbox + TradeManager + DingTalk chatbot.'."\n"
."\n"
.'- 4: TradeManager + DingTalk chatbot.'."\n"
."\n\n"
.'4: TradeManager + DingTalk chatbot.'."\n"
."\n"
.'4: TradeManager + DingTalk chatbot.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '4', 'title' => ''],
],
[
'name' => 'ApplyMode',
'in' => 'query',
'schema' => ['description' => 'The mode in which the alert template is applied. Valid values:'."\n"
."\n"
.'- GROUP_INSTANCE_FIRST: application group instances take priority. When the alert template is applied, instances in the application group take priority. If an instance does not exist in the application group, the rule in the template is ignored.'."\n"
."\n"
.'- ALARM_TEMPLATE_FIRST: alert template instances take priority. When the alert template is applied, alert rules are created regardless of whether the instances exist in the application group.', 'type' => 'string', 'required' => false, 'example' => 'GROUP_INSTANCE_FIRST', 'title' => ''],
],
[
'name' => 'Webhook',
'in' => 'query',
'schema' => ['description' => 'The callback URL to which a POST request is sent when an alert is triggered.', 'type' => 'string', 'required' => false, 'example' => 'https://www.aliyun.com', 'title' => ''],
],
[
'name' => 'AppendMode',
'in' => 'query',
'schema' => ['description' => 'The policy for applying the template. Valid values:'."\n"
."\n"
.'- all: deletes all rules that were created from alert templates for the selected group, and then creates new alert rules based on the template (default value).'."\n"
."\n"
.'- append: deletes the rules that were created from this alert template for the selected group, and then creates new alert rules based on the current template.', 'type' => 'string', 'required' => false, 'example' => 'all', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
.'>The value 200 indicates success.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3F897F3C-020A-4993-95B4-63ABB84F83E6', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: Successful.'."\n"
."\n"
.'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Resource' => [
'description' => 'The resources affected by the alert rules.',
'type' => 'object',
'properties' => [
'GroupId' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'example' => '123456', 'title' => ''],
'AlertResults' => [
'description' => 'The details of the generated alert rules.',
'type' => 'array',
'items' => [
'description' => 'The details of the generated alert rules.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
.'>The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'alert rule is creating, please wait a few minutes.', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: Successful.'."\n"
."\n"
.'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'RuleName' => ['description' => 'The name of the alert rule.', 'type' => 'string', 'example' => 'test123', 'title' => ''],
'RuleId' => ['description' => 'The ID of the alert rule.', 'type' => 'string', 'example' => 'applyTemplate8ab74c6b-9f27-47ab-8841-de01dc08****', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"3F897F3C-020A-4993-95B4-63ABB84F83E6\\",\\n \\"Success\\": true,\\n \\"Resource\\": {\\n \\"GroupId\\": 123456,\\n \\"AlertResults\\": [\\n {\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"alert rule is creating, please wait a few minutes.\\",\\n \\"Success\\": true,\\n \\"RuleName\\": \\"test123\\",\\n \\"RuleId\\": \\"applyTemplate8ab74c6b-9f27-47ab-8841-de01dc08****\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'Apply an alert template to an application group',
'description' => 'This topic provides an example on how to apply the alert template `700****` to the application group `123456`. The ID of the generated alert rule is `applyTemplate8ab74c6b-9f27-47ab-8841-de01dc08****`, and the name is `test123`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-02-27T07:25:21.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ApplyMetricRuleTemplate'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:ApplyMetricRuleTemplate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'MetricRuleTemplate', 'arn' => 'acs:cms::{#accountId}:group/{#groupId}'],
],
],
],
],
],
'BatchCreateInstantSiteMonitor' => [
'summary' => 'You can call the BatchCreateInstantSiteMonitor operation to create a batch of site monitoring tasks.',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'TaskList',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The list of site monitoring tasks.'."\n"
."\n"
.'> You must create at least one site monitoring task. The `Address`, `TaskName`, and `TaskType` parameters are required.',
'type' => 'array',
'items' => [
'description' => 'The list of site monitoring tasks.',
'type' => 'object',
'properties' => [
'Address' => ['description' => 'The URL or IP address of the site monitoring task.'."\n"
."\n"
.'> You must create at least one site monitoring task. The `Address`, `TaskName`, and `TaskType` parameters are required.', 'type' => 'string', 'required' => false, 'example' => 'https://www.aliyun.com', 'title' => ''],
'IspCities' => ['description' => 'The information about the detection points. If you leave this parameter empty, the system randomly selects three detection points.'."\n"
."\n"
.'The value must be a `JSONArray`. For example, `[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]` corresponds to Beijing, Hangzhou, and Qingdao.'."\n"
."\n"
.'For more information about how to obtain detection point information, see [DescribeSiteMonitorISPCityList](~~115045~~).', 'type' => 'string', 'required' => false, 'example' => '[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]', 'title' => ''],
'OptionsJson' => ['description' => 'The advanced extension options for the protocol type of the site monitoring task. Different protocol types correspond to different extension options.', 'type' => 'string', 'required' => false, 'example' => '{"time_out":5000}', 'title' => ''],
'TaskName' => ['description' => 'The name of the site monitoring task.'."\n"
."\n"
.''."\n"
."\n"
.'The value must be 4 to 100 characters in length and can contain English letters, numbers, underscores (\\_), and Chinese characters.'."\n"
."\n"
.''."\n"
."\n"
.''."\n"
."\n"
.'The name of the site monitoring task.'."\n"
."\n"
.''."\n"
."\n"
.''."\n"
."\n"
.'The name must be 4 to 100 characters in length and can contain letters, digits, and underscores (\\_).'."\n"
."\n"
.''."\n"
."\n"
.'> You must create at least one site monitoring task. The `Address`, `TaskName`, and `TaskType` parameters are required.', 'type' => 'string', 'required' => false, 'example' => 'HangZhou_ECS1', 'title' => ''],
'TaskType' => ['description' => 'The protocol type of the monitoring task.'."\n"
."\n"
.'Valid values: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.'."\n"
."\n"
.'> You must create at least one site monitoring task. The `Address`, `TaskName`, and `TaskType` parameters are required.', 'type' => 'string', 'required' => false, 'example' => 'HTTP', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 200,
'minItems' => 1,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'None.',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '7AE72720-2C96-5446-9F2B-308C7CEDFF1A'],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'successful', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Data' => [
'description' => 'The information about the site monitoring tasks.',
'type' => 'array',
'items' => [
'description' => 'The information about the site monitoring tasks.',
'type' => 'object',
'properties' => [
'TaskName' => ['description' => 'The name of the site monitoring task.', 'type' => 'string', 'example' => 'HangZhou_ECS1', 'title' => ''],
'TaskId' => ['description' => 'The ID of the site monitoring task.', 'type' => 'string', 'example' => '679fbe4f-b80b-4706-91b2-5427b43e****', 'title' => ''],
],
'title' => '',
'example' => '',
],
'example' => '[{"taskName": "HangZhou_ECS1", "taskId": "679fbe4f-b80b-4706-91b2-5427b43e****"}]',
'title' => '',
],
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A value of 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameterValue', 'errorMessage' => 'Illegal parameters.', 'description' => 'Illegal parameters.'],
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'The parameter is missing or invalid. %s', 'description' => ''],
],
403 => [
['errorCode' => 'Forbidden', 'errorMessage' => 'You are not authorized to operate the specified resource.', 'description' => 'No permission, please use RAM to authorize'],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
429 => [
['errorCode' => 'ResourceOverLimit', 'errorMessage' => 'The resource has exceeded the limit. %s', 'description' => ''],
],
],
'title' => 'BatchCreateInstantSiteMonitor',
'description' => 'This topic provides an example of how to create a site monitoring task named `HangZhou_ECS1`. The task uses the `HTTP` protocol to monitor `https://www.aliyun.com`. The response shows that the task is successfully created with the name `HangZhou_ECS1` and the ID `679fbe4f-b80b-4706-91b2-5427b43e****`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-07-22T08:20:49.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2022-07-21T06:24:11.000Z', 'description' => 'OpenAPI offline'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'BatchCreateInstantSiteMonitor'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:BatchCreateInstantSiteMonitor',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7AE72720-2C96-5446-9F2B-308C7CEDFF1A\\",\\n \\"Message\\": \\"successful\\",\\n \\"Success\\": true,\\n \\"Data\\": [\\n {\\n \\"TaskName\\": \\"HangZhou_ECS1\\",\\n \\"TaskId\\": \\"679fbe4f-b80b-4706-91b2-5427b43e****\\"\\n }\\n ],\\n \\"Code\\": \\"200\\"\\n}","type":"json"}]',
],
'BatchCreateOnceSiteMonitor' => [
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => true,
'parameters' => [
[
'name' => 'TaskList',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Address' => ['type' => 'string'],
'IspCities' => ['type' => 'string'],
'OptionsJson' => ['type' => 'string'],
'TaskName' => ['type' => 'string'],
'TaskType' => ['type' => 'string'],
],
],
'required' => true,
'maxItems' => 200,
'minItems' => 1,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['type' => 'string'],
'Message' => ['type' => 'string'],
'Success' => ['type' => 'boolean'],
'Data' => ['type' => 'string'],
'Code' => ['type' => 'string'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameterValue', 'errorMessage' => 'Illegal parameters.', 'description' => 'Illegal parameters.'],
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'The parameter is missing or invalid. %s', 'description' => ''],
],
403 => [
['errorCode' => 'InvalidAuthorization', 'errorMessage' => 'Permission denied', 'description' => 'Permission denied.'],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
429 => [
['errorCode' => 'ResourceOverLimit', 'errorMessage' => 'The resource has exceeded the limit. %s', 'description' => ''],
],
],
'changeSet' => [
['createdAt' => '2022-04-15T12:04:08.000Z', 'description' => 'OpenAPI offline'],
],
'flowControl' => [
'flowControlList' => [],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"\\",\\n \\"Message\\": \\"\\",\\n \\"Success\\": true,\\n \\"Data\\": \\"\\",\\n \\"Code\\": \\"\\"\\n}","type":"json"}]',
],
'BatchExport' => [
'summary' => 'Calls the BatchExport operation to export monitoring data defined in the Cursor operation.',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'paid'],
'parameters' => [
[
'name' => 'Namespace',
'in' => 'formData',
'schema' => ['description' => 'The data namespace of the cloud service.'."\n"
."\n"
.'For information about how to obtain the data namespace of a cloud service, see [Appendix 1: Metrics](~~163515~~).'."\n"
."\n"
.'> This parameter must be the same as the request parameter `Namespace` in the Cursor operation.', 'type' => 'string', 'required' => true, 'example' => 'acs_ecs_dashboard', 'title' => ''],
],
[
'name' => 'Metric',
'in' => 'formData',
'schema' => ['description' => 'The name of the metric of the cloud service.'."\n"
."\n"
.'For information about how to obtain the name of a metric of a cloud service, see [Appendix 1: Metrics](~~163515~~).'."\n"
."\n"
.'> This parameter must be the same as the request parameter `Metric` in the Cursor operation.', 'type' => 'string', 'required' => true, 'example' => 'cpu_idle', 'title' => ''],
],
[
'name' => 'Cursor',
'in' => 'formData',
'schema' => ['description' => 'When you call this operation in a loop to export data, you must specify the value of `Cursor`. You can obtain the value of `Cursor` by using the following methods:'."\n"
."\n"
.'- When you call this operation for the first time, you must first call the Cursor operation to obtain the value of `Cursor`. For more information, see [Cursor](~~2330730~~).'."\n"
."\n"
.'- When you call this operation again, you can obtain the value of `Cursor` from the response of the last call.'."\n", 'type' => 'string', 'required' => true, 'example' => 'eyJidWNrZXRzIjo0LCJjdXJzb3IiOiIxNjQxNDU0MzIwMDAwMWUxY2YxNWY0NTU0MTliZjllYTY4OWQ2ODI1OTU1Yzc1NmZjMDQ2OTMxMzczMzM2MzUzMTMxMzEzMzM0MzMzODM5MzEzMTMwMjQyYzY5MmQ3NTY2MzYzMjY3NmI2ZjM5MzU2YjY4MzAzMTYyNzg3MTcwNjkzMTM3MjQyYyIsImN1cnNvclZlcnNpb24iOiJxdWVyeSIsImVuZFRpbWUiOjE2NDE0NTQ3OTU4MjMsImV4cG9ydEVuZFRpbWUiOjE2NDE0NTQ3OTU4MjMsImV4cG9ydFN0YXJ0VGltZSI6MTY0MTQ1NDE5NTgyMywiZXhwcmVzc1JhbmdlIjpmYWxzZSwiaGFzTmV4dCI6dHJ1ZSwiaW5wdXRNZXRyaWMiOiJDUFVVdGlsaXphdGlvbiIsImlucHV0TmFtZXNwYWNlIjoiYWNzX2Vjc19kYXNoYm9hcmQiLCJsaW1pdCI6MTAwMCwibG9nVGltZU1vZGUiOnRydWUsIm1hdGNoZXJzIjp7ImNoYWluIjpbeyJsYWJlbCI6InVzZXJJZCIsIm9wZXJhdG9yIjoiRVFVQUxTIiwidmFsdWUiOiIxNzM2NTExMTM0Mzg5MTEwIn1dfSwibWV0cmljIjoiQ1BVVXRpbGl6YXRpb24iLCJtZXRyaWNUeXBlIjoiTUVUUklDIiwibmFtZXNwYWNlIjoiYWNzX2Vjc19kYXNoYm9hcmQiLCJuZXh0UGtBZGFwdGVyIjp7fSwib2Zmc2V0IjowLCJwYXJlbnRVaWQiOjEyNzA2NzY2Nzk1NDY3MDQsInN0YXJ0VGltZSI6MTY0MTQ1NDE5NTgyMywic3RlcCI6LTEsInRpbWVvdXQiOjEyMCwid2luZG93Ijo2****', 'title' => ''],
],
[
'name' => 'Length',
'in' => 'formData',
'schema' => ['description' => 'The maximum number of data entries to return each time.'."\n"
."\n"
.'Valid values: 1 to 10000.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1000', 'title' => ''],
],
[
'name' => 'Measurements',
'in' => 'formData',
'style' => 'json',
'schema' => [
'description' => 'The measurements that are used to customize the returned data. By default, all measurements are returned.'."\n"
."\n"
.'For example, the metric `cpu_idle` of the cloud service `acs_ecs_dashboard` has three measurement columns: `Average`, `Maximum`, and `Minimum`. If you only need to return the `Average` and `Maximum` columns, set this parameter to the array `["Average", "Maximum"]`.'."\n"
."\n"
.'For information about how to obtain the measurements of a metric of a cloud service, see the `statistics` column of [Appendix 1: Metrics](~~163515~~).',
'type' => 'array',
'items' => ['description' => 'The column name of the measurement.', 'type' => 'string', 'required' => false, 'example' => 'Maximum', 'title' => ''],
'required' => false,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'None.',
'type' => 'object',
'properties' => [
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The value 200 indicates success.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: successful'."\n"
."\n"
.'- false: failed', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '251402CD-305C-1617-808E-D8C11FC8138D', 'title' => ''],
'Cursor' => ['description' => 'The cursor that is used to call this operation again.'."\n"
."\n"
.'> If the returned result is `null`, the monitoring data has been exported.', 'type' => 'string', 'example' => 'v2.5eyJidWNrZXRzIjo0LCJjdXJzb3IiOiIxNjQxNDU0ODAwMDAwMWUxY2YxNWY0NTU0MTliZjllYTY4OWQ2ODI1OTU1Yzc1NmZjMDQ2OTMxMzczMzM2MzUzMTMxMzEzMzM0MzMzODM5MzEzMTMwMjQyYzY5MmQzMjdhNjU2MjY3N2E2NjZhNzczOTY2NmM3Mjc0NjM3MzY5Njg3NDcyMjQyYyIsImN1cnNvclZlcnNpb24iOiJxdWVyeSIsImVuZFRpbWUiOjE2NDE0NTUyMzYxMTIsImV4cG9ydEVuZFRpbWUiOjE2NDE0NTUyMzYxMTIsImV4cG9ydFN0YXJ0VGltZSI6MTY0MTQ1NDYzNjExMiwiZXhwcmVzc1JhbmdlIjpmYWxzZSwiaGFzTmV4dCI6dHJ1ZSwiaW5wdXRNZXRyaWMiOiJDUFVVdGlsaXphdGlvbiIsImlucHV0TmFtZXNwYWNlIjoiYWNzX2Vjc19kYXNoYm9hcmQiLCJsaW1pdCI6MTAwMCwibG9nVGltZU1vZGUiOnRydWUsIm1hdGNoZXJzIjp7ImNoYWluIjpbeyJsYWJlbCI6InVzZXJJZCIsIm9wZXJhdG9yIjoiRVFVQUxTIiwidmFsdWUiOiIxNzM2NTExMTM0Mzg5MTEwIn1dfSwibWV0cmljIjoiQ1BVVXRpbGl6YXRpb24iLCJtZXRyaWNUeXBlIjoiTUVUUklDIiwibmFtZXNwYWNlIjoiYWNzX2Vjc19kYXNoYm9hcmQiLCJuZXh0UGtBZGFwdGVyIjp7fSwib2Zmc2V0IjowLCJwYXJlbnRVaWQiOjEyNzA2NzY2Nzk1NDY3MDQsInN0YXJ0VGltZSI6MTY0MTQ1NDYzNjExMiwic3RlcCI6LTEsInRpbWVvdXQiOjEyMCwid2luZG93Ijo2MH0***', 'title' => ''],
'Length' => ['description' => 'The number of data entries returned for this call.', 'type' => 'integer', 'format' => 'int32', 'example' => '1000', 'title' => ''],
'Anchor' => ['description' => 'The timestamp when the backend requested the data. A larger timestamp indicates that the exported data is closer to the current time.', 'type' => 'integer', 'format' => 'int64', 'example' => '1678781819000', 'title' => ''],
'HasNext' => ['description' => 'Indicates whether the data has been exported. Valid values:'."\n"
."\n"
.'- true: Some data has not been exported.'."\n"
.'- false: All data has been exported.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'DataResults' => [
'description' => 'The data returned by this call.',
'type' => 'array',
'items' => ['description' => 'The exported data. The details are as follows:'."\n"
.'- Namespace: the data namespace of the cloud service. Example: `acs_ecs_dashboard`.'."\n"
.'- Metric: the name of the metric of the cloud service. Example: `cpu_idle`.'."\n"
.'- Timestamp: the timestamp of the monitoring data. Unit: milliseconds. Example: 1641454680000.'."\n"
.'- Period: the statistical period of the monitoring data. Unit: seconds. Example: 60.'."\n"
.'- Dimensions: the Dimension information that is used to identify the monitored object (instance). Example: `[{"Label":"userId", "Value":""20654616023382****"}, {"Label":"InstanceId", "Value":""i-2ze2d6j5uhg20x4****"}]`.'."\n"
.'- Associated: the additional information about the monitored object (instance), such as tag information. The value is a collection of key:value pairs. Example: `{"group":"test****", "name":"Alice"}`.'."\n"
.'- Measurements: the measurements of the metric (multi-value mode by default). Example: `{"Average":60,"Maximum":85}`.'."\n"
.'- LogTime: the record time of the monitoring data. Unit: milliseconds. For non-raw data (aggregated data), `LogTime` is empty (NULL).', '$ref' => '#/components/schemas/MetricStat', 'title' => '', 'example' => ''],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Exports the monitoring data defined in Cursor',
'description' => '### Prerequisites'."\n"
.'Make sure that you have called the [Cursor](~~2330730~~) operation to obtain the initial `Cursor`.'."\n"
.'### Usage notes'."\n"
.'This topic provides an example to show how to export the monitoring data of an initial `Cursor` of the metric `cpu_idle` of the cloud service `acs_ecs_dashboard`. A maximum of 1,000 data entries are returned per call.'."\n",
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'BatchExport'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'cms:BatchExport',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"success\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"RequestId\\": \\"251402CD-305C-1617-808E-D8C11FC8138D\\",\\n \\"Cursor\\": \\"v2.5eyJidWNrZXRzIjo0LCJjdXJzb3IiOiIxNjQxNDU0ODAwMDAwMWUxY2YxNWY0NTU0MTliZjllYTY4OWQ2ODI1OTU1Yzc1NmZjMDQ2OTMxMzczMzM2MzUzMTMxMzEzMzM0MzMzODM5MzEzMTMwMjQyYzY5MmQzMjdhNjU2MjY3N2E2NjZhNzczOTY2NmM3Mjc0NjM3MzY5Njg3NDcyMjQyYyIsImN1cnNvclZlcnNpb24iOiJxdWVyeSIsImVuZFRpbWUiOjE2NDE0NTUyMzYxMTIsImV4cG9ydEVuZFRpbWUiOjE2NDE0NTUyMzYxMTIsImV4cG9ydFN0YXJ0VGltZSI6MTY0MTQ1NDYzNjExMiwiZXhwcmVzc1JhbmdlIjpmYWxzZSwiaGFzTmV4dCI6dHJ1ZSwiaW5wdXRNZXRyaWMiOiJDUFVVdGlsaXphdGlvbiIsImlucHV0TmFtZXNwYWNlIjoiYWNzX2Vjc19kYXNoYm9hcmQiLCJsaW1pdCI6MTAwMCwibG9nVGltZU1vZGUiOnRydWUsIm1hdGNoZXJzIjp7ImNoYWluIjpbeyJsYWJlbCI6InVzZXJJZCIsIm9wZXJhdG9yIjoiRVFVQUxTIiwidmFsdWUiOiIxNzM2NTExMTM0Mzg5MTEwIn1dfSwibWV0cmljIjoiQ1BVVXRpbGl6YXRpb24iLCJtZXRyaWNUeXBlIjoiTUVUUklDIiwibmFtZXNwYWNlIjoiYWNzX2Vjc19kYXNoYm9hcmQiLCJuZXh0UGtBZGFwdGVyIjp7fSwib2Zmc2V0IjowLCJwYXJlbnRVaWQiOjEyNzA2NzY2Nzk1NDY3MDQsInN0YXJ0VGltZSI6MTY0MTQ1NDYzNjExMiwic3RlcCI6LTEsInRpbWVvdXQiOjEyMCwid2luZG93Ijo2MH0***\\",\\n \\"Length\\": 1000,\\n \\"Anchor\\": 1678781819000,\\n \\"HasNext\\": true,\\n \\"DataResults\\": [\\n {\\n \\"Namespace\\": \\"acs_ecs_dashboard\\",\\n \\"Metric\\": \\"cpu_idle\\",\\n \\"Period\\": 60,\\n \\"Timestamp\\": 1641454680000,\\n \\"Dimensions\\": [\\n {\\n \\"Label\\": \\"instanceId\\",\\n \\"Value\\": \\"i-dferwret*****\\"\\n }\\n ],\\n \\"Associated\\": {\\n \\"key\\": \\"{\\\\\\"group\\\\\\":\\\\\\"test****\\\\\\", \\\\\\"name\\\\\\":\\\\\\"Alice\\\\\\"}\\"\\n },\\n \\"Measurements\\": {\\n \\"key\\": \\"{\\\\\\"Average\\\\\\":60,\\\\\\"Maximum\\\\\\":85}\\"\\n },\\n \\"LogTime\\": 1683686550073\\n }\\n ]\\n}","type":"json"}]',
],
'CreateDynamicTagGroup' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'TagKey',
'in' => 'query',
'schema' => ['description' => 'The tag key of the resource.'."\n"
."\n"
.'For more information about how to query the tag keys of resources, see [DescribeTagKeyList](~~145558~~).', 'type' => 'string', 'required' => true, 'example' => 'ecs_instance', 'title' => ''],
],
[
'name' => 'ContactGroupList',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The alert contact groups. The value of N can be from 1 to 100. Alert notifications for the application group are sent to the alert contacts in these alert contact groups.'."\n"
."\n"
.'An alert contact group can contain one or more alert contacts. For more information about how to create alert contacts and alert contact groups, see [PutContact](~~114923~~) and [PutContactGroup](~~114929~~). For more information about how to obtain alert contact groups, see [DescribeContactGroupList](~~114922~~).',
'type' => 'array',
'items' => ['description' => 'The alert contact groups. The value of N can be from 1 to 100. Alert notifications for the application group are sent to the alert contacts in these alert contact groups.'."\n"
."\n"
.'An alert contact group can contain one or more alert contacts. For more information about how to create alert contacts and alert contact groups, see [PutContact](~~114923~~) and [PutContactGroup](~~114929~~). For more information about how to obtain alert contact groups, see [DescribeContactGroupList](~~114922~~).', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'ECS_Group', 'title' => ''],
'required' => true,
'docRequired' => true,
'example' => 'ECS_Group',
'maxItems' => 10,
'title' => '',
],
],
[
'name' => 'MatchExpress',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The match expressions that are used to create an application group from tags.',
'type' => 'array',
'items' => [
'description' => 'The match expressions that are used to create an application group from tags. The value of N can be from 1 to 3.',
'type' => 'object',
'properties' => [
'TagValueMatchFunction' => ['description' => 'The method that is used to match the values of resource tags. The value of N is 1. Valid values:'."\n"
."\n"
.'- contains: includes.'."\n"
."\n"
.'- startWith: prefix.'."\n"
."\n"
.'- endWith: suffix.'."\n"
."\n"
.'- notContains: does not include.'."\n"
."\n"
.'- equals: equals.'."\n"
."\n"
.'- all: all.'."\n"
."\n"
.'> You must specify both the `MatchExpress.N.TagValueMatchFunction` and `MatchExpress.N.TagValue` parameters.', 'type' => 'string', 'required' => false, 'example' => 'contains', 'title' => ''],
'TagValue' => ['description' => 'The value of the resource tag. The value of N is 1.'."\n"
."\n"
.'> You must specify both the `MatchExpress.N.TagValueMatchFunction` and `MatchExpress.N.TagValue` parameters.', 'type' => 'string', 'required' => false, 'example' => 'instance', 'title' => ''],
'TagName' => ['description' => 'The key of the tag that is used to create the group. If multiple resources have this tag key, the resources that meet the filter conditions are added to the same group based on the same key-value pair.', 'type' => 'string', 'required' => false, 'example' => 'appname', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 4,
'title' => '',
'example' => '',
],
],
[
'name' => 'TagRegionId',
'in' => 'query',
'schema' => ['description' => 'The ID of the region to which the tag belongs.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
[
'name' => 'EnableSubscribeEvent',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to automatically subscribe to event notifications for the application group. When a critical or warning event occurs on a resource in the application group, CloudMonitor sends an alert notification. Valid values:'."\n"
."\n"
.'- true: enabled.'."\n"
."\n"
.'- false (default): disabled.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'EnableInstallAgent',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to automatically install the CloudMonitor agent for the application group. CloudMonitor automatically installs the agent on the hosts in the application group. Valid values:'."\n"
."\n"
.'- true: enabled.'."\n"
."\n"
.'- false (default): disabled.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'MatchExpressFilterRelation',
'in' => 'query',
'schema' => ['description' => 'The relationship between the conditional expressions for the tag values. Valid values:'."\n"
."\n"
.'- and (default)'."\n"
."\n"
.'- or', 'type' => 'string', 'required' => false, 'default' => 'and', 'example' => 'and', 'title' => ''],
],
[
'name' => 'TemplateIdList',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The ID of the alert template.'."\n"
."\n"
.'For more information about how to query the IDs of alert templates, see [DescribeMetricRuleTemplateList](~~114982~~).',
'type' => 'array',
'items' => ['description' => 'The ID of the alert template.'."\n"
."\n"
.'For more information about how to query the IDs of alert templates, see [DescribeMetricRuleTemplateList](~~114982~~).', 'type' => 'string', 'required' => false, 'example' => '70****', 'title' => ''],
'required' => false,
'example' => '85****',
'maxItems' => 10,
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A status code of 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '84AC6F0B-7945-466A-AA44-99BB5A561F86', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Id' => ['description' => 'The ID of the tag matching rule.', 'type' => 'string', 'example' => '2534dc0a-e3e5-4ae1-a2fc-75ef166c****', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
429 => [
['errorCode' => 'ResourceOverLimit', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'CreateDynamicTagGroup',
'summary' => 'You can call the CreateDynamicTagGroup operation to automatically create application groups using tags.',
'description' => 'This operation supports the following Alibaba Cloud services: Elastic Compute Service (ECS), ApsaraDB RDS, and Server Load Balancer (SLB).'."\n"
."\n"
.'This topic provides an example of how to automatically create an application group for resources that have the `ecs_instance` tag key. The alert contact group for the application group is `ECS_Group`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-03-15T03:17:14.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2022-07-13T10:09:33.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-09-24T08:25:15.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-09-24T08:25:15.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDynamicTagGroup'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:CreateDynamicTagGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"84AC6F0B-7945-466A-AA44-99BB5A561F86\\",\\n \\"Success\\": true,\\n \\"Id\\": \\"2534dc0a-e3e5-4ae1-a2fc-75ef166c****\\"\\n}","type":"json"}]',
],
'CreateGroupMetricRules' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.'."\n"
."\n"
.'For information about how to obtain the application group ID, see [DescribeMonitorGroups](~~115032~~).', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '3607****', 'title' => ''],
],
[
'name' => 'GroupMetricRules',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The list of metric-based alert rules for the application group.',
'type' => 'array',
'items' => [
'description' => 'The metric-based alert rule for the application group.',
'type' => 'object',
'properties' => [
'Escalations.Info.Threshold' => ['description' => 'The threshold for Info-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> Set at least one of the alert severity levels Critical, Warn, or Info. For each specified alert severity level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'string', 'required' => false, 'example' => '10', 'title' => ''],
'MetricName' => ['description' => 'The name of the metric.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'For information about how to obtain the metric name, see [DescribeMetricMetaList](~~98846~~) or [Cloud service monitoring](~~163515~~).', 'type' => 'string', 'required' => true, 'example' => 'cpu_total', 'title' => ''],
'Escalations.Warn.Threshold' => ['description' => 'The threshold for Warn-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> Set at least one of the alert severity levels Critical, Warn, or Info. For each specified alert severity level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'string', 'required' => false, 'example' => '20', 'title' => ''],
'EffectiveInterval' => ['description' => 'The effective period of the alert rule. Valid values of N: 1 to 200.', 'type' => 'string', 'required' => false, 'example' => '05:31-23:59', 'title' => ''],
'NoEffectiveInterval' => ['description' => 'The time period during which the alert rule is ineffective. Valid values of N: 1 to 200.', 'type' => 'string', 'required' => false, 'example' => '00:00-05:30', 'title' => ''],
'RuleId' => ['description' => 'The ID of the alert rule.'."\n"
."\n"
.'Valid values of N: 1 to 200.', 'type' => 'string', 'required' => true, 'example' => '456789', 'title' => ''],
'Escalations.Critical.Times' => ['description' => 'The number of times that the monitoring metric must reach the alert threshold before a Critical-level alert notification is sent.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> Settings for at least one of the alert severity levels Critical, Warn (warning), or Info must be specified. For each specified alert severity level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'title' => ''],
'Dimensions' => ['description' => 'The monitoring dimensions of the specified resource.'."\n"
."\n"
.'The value is a collection of `key:value` pairs, such as `{"userId":"120886317861****"}` and `{"instanceId":"i-2ze2d6j5uhg20x47****"}`.', 'type' => 'string', 'required' => false, 'example' => '[{"instanceId":"i-m5e1qg6uo38rztr4****"}]', 'title' => ''],
'Escalations.Critical.Threshold' => ['description' => 'The threshold that triggers Critical-level alert notifications.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> Set at least one of the alert severity levels Critical, Warn, or Info. For each specified alert severity level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'string', 'required' => false, 'example' => '90', 'title' => ''],
'Escalations.Critical.Statistics' => ['description' => 'The statistical method for Critical-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'The valid values of this parameter are determined by the `Statistics` column corresponding to the `MetricName` of the specified Alibaba Cloud service, such as Maximum, Minimum, and Average. For information about how to obtain the valid values, see [Cloud service monitoring](~~163515~~).'."\n"
."\n"
.'> Set at least one of the alert severity levels Critical, Warn, or Info. For each specified alert severity level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
'Escalations.Warn.ComparisonOperator' => ['description' => 'The comparison operator for Warn-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold. '."\n"
.'- GreaterThanThreshold: greater than the threshold. '."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold. '."\n"
.'- LessThanThreshold: less than the threshold. '."\n"
.'- NotEqualToThreshold: not equal to the threshold. '."\n"
.'- GreaterThanYesterday: greater than the value at the same time yesterday. '."\n"
.'- LessThanYesterday: less than the value at the same time yesterday. '."\n"
.'- GreaterThanLastWeek: greater than the value at the same time last week. '."\n"
.'- LessThanLastWeek: less than the value at the same time last week. '."\n"
.'- GreaterThanLastPeriod: greater than the value in the last period. '."\n"
.'- LessThanLastPeriod: less than the value in the last period. '."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> Set at least one of the alert severity levels Critical, Warn, or Info. For each specified alert severity level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Escalations.Info.Times' => ['description' => 'The number of times that the monitoring metric must reach the alert threshold before an Info-level alert notification is sent.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> Settings for at least one of the alert severity levels Critical, Warn (warning), or Info must be specified. For each specified alert severity level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
'SilenceTime' => ['description' => 'The mute period of the alert notification. Valid values of N: 1 to 200.'."\n"
."\n"
.'Unit: seconds. Default value: 86400. Minimum value: 3600.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '86400', 'title' => ''],
'Webhook' => ['description' => 'The callback URL to which an alert notification is sent. Valid values of N: 1 to 200.'."\n"
."\n"
.'Specify a publicly accessible URL. CloudMonitor sends a POST request to push alert information to this URL. Only the HTTP protocol is supported.', 'type' => 'string', 'required' => false, 'example' => 'https://www.aliyun.com', 'title' => ''],
'Namespace' => ['description' => 'The namespace of the Alibaba Cloud service.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'For information about how to obtain the namespace of an Alibaba Cloud service, see [DescribeMetricMetaList](~~98846~~) or [Cloud service monitoring](~~163515~~).', 'type' => 'string', 'required' => true, 'example' => 'acs_ecs_dashboard', 'title' => ''],
'EmailSubject' => ['description' => 'The subject of the alert notification email.'."\n"
."\n"
.'Valid values of N: 1 to 200.', 'type' => 'string', 'required' => false, 'example' => 'ECS instance', 'title' => ''],
'Period' => ['description' => 'The reporting period of monitoring data.'."\n"
."\n"
.'Valid values of N: 1 to 200. '."\n"
."\n"
.'The value of `Period` must be 60 or a multiple of 60. Unit: seconds. Default value: 300.', 'type' => 'string', 'required' => false, 'example' => '60', 'title' => ''],
'RuleName' => ['description' => 'The name of the alert rule.'."\n"
."\n"
.'Valid values of N: 1 to 200.', 'type' => 'string', 'required' => true, 'example' => 'ECS_Rule1', 'title' => ''],
'Escalations.Info.Statistics' => ['description' => 'The statistical method for Info-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'The valid values of this parameter are determined by the `Statistics` column corresponding to the `MetricName` of the specified Alibaba Cloud service, such as Maximum, Minimum, and Average. For information about how to obtain the valid values, see [Cloud service monitoring](~~163515~~).'."\n"
."\n"
.'> Set at least one of the alert severity levels Critical, Warn, or Info. For each specified alert severity level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
'Escalations.Warn.Times' => ['description' => 'The number of times that the monitoring metric must reach the alert threshold before a Warn-level alert notification is sent.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> Settings for at least one of the alert severity levels Critical, Warn (warning), or Info must be specified. For each specified alert severity level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'title' => ''],
'Escalations.Info.ComparisonOperator' => ['description' => 'The comparison operator for Info-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold. '."\n"
.'- GreaterThanThreshold: greater than the threshold. '."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold. '."\n"
.'- LessThanThreshold: less than the threshold. '."\n"
.'- NotEqualToThreshold: not equal to the threshold. '."\n"
.'- GreaterThanYesterday: greater than the value at the same time yesterday. '."\n"
.'- LessThanYesterday: less than the value at the same time yesterday. '."\n"
.'- GreaterThanLastWeek: greater than the value at the same time last week. '."\n"
.'- LessThanLastWeek: less than the value at the same time last week. '."\n"
.'- GreaterThanLastPeriod: greater than the value in the last period. '."\n"
.'- LessThanLastPeriod: less than the value in the last period. '."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> Set at least one of the alert severity levels Critical, Warn, or Info. For each specified alert severity level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Interval' => ['description' => 'The detection period of the alert rule.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'Unit: seconds. The default value is the minimum reporting frequency of the metric.'."\n"
."\n"
.'> Keep the detection period of the alert rule consistent with the data reporting period. If the detection period is shorter than the data reporting period, alerts may not be triggered due to insufficient data.', 'type' => 'string', 'required' => false, 'example' => '60', 'title' => ''],
'Category' => ['description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'For information about how to obtain the abbreviation, see the `metricCategory` tag in the `Labels` response parameter of the [DescribeProjectMeta](~~114916~~) operation.', 'type' => 'string', 'required' => true, 'example' => 'ECS', 'title' => ''],
'Escalations.Critical.ComparisonOperator' => ['description' => 'The comparison operator for Critical-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold. '."\n"
.'- GreaterThanThreshold: greater than the threshold. '."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold. '."\n"
.'- LessThanThreshold: less than the threshold. '."\n"
.'- NotEqualToThreshold: not equal to the threshold. '."\n"
.'- GreaterThanYesterday: greater than the value at the same time yesterday. '."\n"
.'- LessThanYesterday: less than the value at the same time yesterday. '."\n"
.'- GreaterThanLastWeek: greater than the value at the same time last week. '."\n"
.'- LessThanLastWeek: less than the value at the same time last week. '."\n"
.'- GreaterThanLastPeriod: greater than the value in the last period. '."\n"
.'- LessThanLastPeriod: less than the value in the last period. '."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> Set at least one of the alert severity levels Critical, Warn, or Info. For each specified alert severity level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Escalations.Warn.Statistics' => ['description' => 'The statistical method for Warn-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'The valid values of this parameter are determined by the `Statistics` column corresponding to the `MetricName` of the specified Alibaba Cloud service, such as Maximum, Minimum, and Average. For information about how to obtain the valid values, see [Cloud service monitoring](~~163515~~).'."\n"
."\n"
.'> Set at least one of the alert severity levels Critical, Warn, or Info. For each specified alert severity level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
'NoDataPolicy' => ['description' => 'The processing method when no monitoring data is found. Valid values:'."\n"
.'- KEEP_LAST_STATE (default): No action is performed.'."\n"
.'- INSUFFICIENT_DATA: An alert whose content is "Insufficient Data" is triggered.'."\n"
.'- OK: The status is considered normal.'."\n"
."\n"
.'Valid values of N: 1 to 200.', 'type' => 'string', 'required' => false, 'example' => 'KEEP_LAST_STATE', 'title' => ''],
'ContactGroups' => ['description' => 'The alert contact group.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'For information about how to obtain the alert contact group, see [DescribeContactGroupList](~~114922~~).', 'type' => 'string', 'required' => false, 'example' => 'ECS_Group', 'title' => ''],
'Labels' => [
'description' => 'The tag keys of the alert rule.',
'type' => 'array',
'items' => [
'description' => 'The tag keys of the alert rule.',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The tag key of the alert rule. The tag is included in alert notifications.'."\n"
."\n"
.'Valid values of N: 1 to 200.', 'type' => 'string', 'required' => false, 'example' => 'key1', 'title' => ''],
'Value' => ['description' => 'The tag value of the alert rule. The tag is included in alert notifications.'."\n"
."\n"
.'Valid values of N: 1 to 200.', 'type' => 'string', 'required' => false, 'example' => 'value1', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 20,
'minItems' => 0,
'title' => '',
'example' => '',
],
'Options' => ['description' => 'The advanced settings.'."\n"
."\n"
.'Format: {"key1":"value1","key2":"value2"}. For example, {"NotSendOK":true} specifies whether to send an alert recovery notification. The key is NotSendOK, and the value is true (do not send) or false (send, which is the default).', 'type' => 'string', 'required' => false, 'example' => '{'."\n"
.' "NotSendOK": true'."\n"
.'}', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 200,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
.'>A value of 200 indicates success.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '461CF2CD-2FC3-4B26-8645-7BD27E7D0F1D', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation is successful. Valid values:'."\n"
."\n"
.'- true: The operation is successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Resources' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'AlertResult' => [
'description' => 'The list of alert rules.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code of the newly created alert rule.'."\n"
.'>A value of 200 indicates success.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message of the newly created alert rule.', 'type' => 'string', 'example' => 'Metric not found.', 'title' => ''],
'Success' => ['description' => 'Indicates whether the alert rule is created. Valid values:'."\n"
."\n"
.'- true: The alert rule is created.'."\n"
."\n"
.'- false: The alert rule failed to be created.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'RuleName' => ['description' => 'The name of the newly created alert rule.', 'type' => 'string', 'example' => 'ECS_Rule1', 'title' => ''],
'RuleId' => ['description' => 'The ID of the newly created alert rule.', 'type' => 'string', 'example' => '456789', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
412 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => '500', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Create alert rules in batches for a specified application group',
'summary' => 'Creates alert rules in batches for a specified application group by calling the CreateGroupMetricRules operation.',
'description' => 'This topic provides an example on how to create an alert rule for the monitoring metric `cpu_total` of Elastic Computing Service (ECS) in the application group `123456`. The alert rule ID is `456789`, the alert rule name is `ECS_Rule1`, the alert severity is `Critical`, the statistical method is `Average`, the comparison operator is `GreaterThanOrEqualToThreshold`, the threshold is `90`, and the retry count is `3`. The response shows that the alert rule `ECS_Rule1` is created.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-12-13T07:02:48.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-10-28T09:43:37.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-10-28T09:43:37.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-10-28T09:43:37.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateGroupMetricRules'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:CreateGroupMetricRules',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'GroupMetricRule', 'arn' => 'acs:cms::{#accountId}:group/{#groupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"461CF2CD-2FC3-4B26-8645-7BD27E7D0F1D\\",\\n \\"Success\\": true,\\n \\"Resources\\": {\\n \\"AlertResult\\": [\\n {\\n \\"Code\\": 200,\\n \\"Message\\": \\"Metric not found.\\",\\n \\"Success\\": true,\\n \\"RuleName\\": \\"ECS_Rule1\\",\\n \\"RuleId\\": \\"456789\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'CreateGroupMonitoringAgentProcess' => [
'summary' => 'Creates a process monitoring task for an application group.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'high', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.'."\n"
."\n"
.'For more information about how to obtain the ID of an application group, see [DescribeMonitorGroups](~~115032~~).', 'type' => 'string', 'required' => true, 'example' => '3607****', 'title' => ''],
],
[
'name' => 'ProcessName',
'in' => 'query',
'schema' => ['description' => 'The process name.', 'type' => 'string', 'required' => true, 'example' => 'Process_Java', 'title' => ''],
],
[
'name' => 'MatchExpressFilterRelation',
'in' => 'query',
'schema' => ['description' => 'The logical operator used between conditional expressions that are used to match instances. Valid values:'."\n"
."\n"
.'- all'."\n"
."\n"
.'- and'."\n"
."\n"
.'- or', 'type' => 'string', 'required' => false, 'example' => 'and', 'title' => ''],
],
[
'name' => 'MatchExpress',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The expressions used to match instances.'."\n"
."\n"
.'Valid values of N: 1 to 3.',
'type' => 'array',
'items' => [
'description' => 'The expression used to match instances.'."\n"
."\n"
.'Valid values of N: 1 to 3.',
'type' => 'object',
'properties' => [
'Value' => ['description' => 'The keyword used to match the instance name.'."\n"
."\n"
.'Valid values of N: 1 to 3.', 'type' => 'string', 'required' => false, 'example' => 'portalHost', 'title' => ''],
'Name' => ['description' => 'The criteria based on which the instances are matched.'."\n"
."\n"
.'Valid values of N: 1 to 3.'."\n"
."\n"
.'> Set the value to name. The value name indicates that the instances are matched based on the instance name.', 'type' => 'string', 'required' => false, 'example' => 'name1', 'title' => ''],
'Function' => ['description' => 'The matching condition. Valid values:'."\n"
."\n"
.'- all (default value): matches all'."\n"
."\n"
.'- startWith: starts with a prefix'."\n"
."\n"
.'- endWith: ends with a suffix'."\n"
."\n"
.'- contains: contains'."\n"
."\n"
.'- notContains: does not contain'."\n"
."\n"
.'- equals: equals'."\n"
."\n"
.'Valid values of N: 1 to 3.', 'type' => 'string', 'required' => false, 'example' => 'startWith', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 3,
'title' => '',
'example' => '',
],
],
[
'name' => 'AlertConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => 'The alert rule configurations.'."\n"
."\n"
.'Valid values of N: 1 to 3.',
'type' => 'array',
'items' => [
'description' => 'The alert rule configuration.'."\n"
."\n"
.'Valid values of N: 1 to 3.',
'type' => 'object',
'properties' => [
'SilenceTime' => ['description' => 'The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds. Minimum value: 3600, which is equivalent to one hour. Default value: 86400, which is equivalent to one day.'."\n"
."\n"
.'Valid values of N: 1 to 3.'."\n"
."\n"
.'> Only one alert notification is sent during a mute period even if the metric value exceeds the alert threshold during consecutive checks.', 'type' => 'string', 'required' => false, 'default' => '86400', 'example' => '86400', 'title' => ''],
'ComparisonOperator' => ['description' => 'The operator that is used to compare the metric value with the threshold. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold'."\n"
."\n"
.'- GreaterThanThreshold: greater than the threshold'."\n"
."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold'."\n"
."\n"
.'- LessThanThreshold: less than the threshold'."\n"
."\n"
.'- NotEqualToThreshold: not equal to the threshold'."\n"
."\n"
.'- GreaterThanYesterday: greater than the metric value at the same time yesterday'."\n"
."\n"
.'- LessThanYesterday: less than the metric value at the same time yesterday'."\n"
."\n"
.'- GreaterThanLastWeek: greater than the metric value at the same time last week'."\n"
."\n"
.'- LessThanLastWeek: less than the metric value at the same time last week'."\n"
."\n"
.'- GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle'."\n"
."\n"
.'- LessThanLastPeriod: less than the metric value in the previous monitoring cycle'."\n"
."\n"
.'Valid values of N: 1 to 3.', 'type' => 'string', 'required' => true, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Webhook' => ['description' => 'The callback URL.'."\n"
."\n"
.'Valid values of N: 1 to 3.', 'type' => 'string', 'required' => false, 'example' => 'https://www.aliyun.com', 'title' => ''],
'Times' => ['description' => 'The number of times for which the threshold can be consecutively exceeded. Default value: 3.'."\n"
."\n"
.'Valid values of N: 1 to 3.'."\n"
."\n"
.'> A metric triggers an alert only after the metric value reaches the threshold consecutively for the specified times.', 'type' => 'string', 'required' => true, 'example' => '3', 'title' => ''],
'EscalationsLevel' => ['description' => 'The alert level. Valid values:'."\n"
."\n"
.'- critical (default)'."\n"
."\n"
.'- warn'."\n"
."\n"
.'- info'."\n"
."\n"
.'Valid values of N: 1 to 3.', 'type' => 'string', 'required' => true, 'example' => 'warn', 'title' => ''],
'EffectiveInterval' => ['description' => 'The period of time during which the alert rule is effective.'."\n"
."\n"
.'Valid values of N: 1 to 3.', 'type' => 'string', 'required' => false, 'example' => '07:00-22:59', 'title' => ''],
'NoEffectiveInterval' => ['description' => 'This parameter is deprecated.', 'type' => 'string', 'required' => false, 'example' => '00:00-05:30', 'title' => ''],
'Threshold' => ['description' => 'The alert threshold.'."\n"
."\n"
.'Valid values of N: 1 to 3.', 'type' => 'string', 'required' => true, 'example' => '5', 'title' => ''],
'Statistics' => ['description' => 'The statistical aggregation method that is used to calculate the metric values.'."\n"
."\n"
.'Valid values of N: 1 to 3.'."\n"
."\n"
.'> Set the value to Average.', 'type' => 'string', 'required' => true, 'example' => 'Average', 'title' => ''],
'TargetList' => [
'description' => 'The alert triggers.',
'type' => 'array',
'items' => [
'description' => 'The alert trigger.',
'type' => 'object',
'properties' => [
'Id' => ['description' => 'The ID of the resource for which alerts are triggered.'."\n"
."\n"
.'For more information about how to obtain the ID of a resource for which alerts are triggered, see [DescribeMetricRuleTargets](~~121592~~).', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
'Arn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the resource.'."\n"
."\n"
.'For more information about how to query the ARN of a resource, see [DescribeMetricRuleTargets](~~121592~~).'."\n"
."\n"
.'Format: `acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. Example: `acs:mns:cn-hangzhou:120886317861****:/queues/test123/message`. Fields:'."\n"
."\n"
.'- {Service name abbreviation}: the abbreviation of the service name. Set the value to Simple Message Queue (formerly MNS) (SMQ).'."\n"
."\n"
.'- {userId}: the ID of the Alibaba Cloud account.'."\n"
."\n"
.'- {regionId}: the region ID of the SMQ queue or topic.'."\n"
."\n"
.'- {Resource type}: the type of the resource that triggers the alert. Valid values:'."\n"
."\n"
.' - **queues**'."\n"
."\n"
.' - **topics**'."\n"
."\n"
.'- {Resource name}: the resource name.'."\n"
."\n"
.' - If the resource type is **queues**, the resource name is the queue name.'."\n"
."\n"
.' - If the resource type is **topics**, the resource name is the topic name.', 'type' => 'string', 'required' => false, 'example' => 'acs:mns:cn-hangzhou:120886317861****:/queues/test/message', 'title' => ''],
'Level' => ['description' => 'The alert level. Valid values:'."\n"
."\n"
.'- INFO'."\n"
."\n"
.'- WARN'."\n"
."\n"
.'- CRITICAL', 'type' => 'string', 'required' => false, 'example' => '["INFO", "WARN", "CRITICAL"]', 'title' => ''],
'JsonParams' => ['description' => 'The parameters of the alert callback. The parameters are in the JSON format.', 'type' => 'string', 'required' => false, 'example' => '{"customField1":"value1","customField2":"$.name"}', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 3,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the call is successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '718FEA81-64C3-4F23-8F90-0531F7489FC1', 'title' => ''],
'Success' => ['description' => 'Indicates whether the call is successful. Valid values:'."\n"
."\n"
.'- true: The call is successful.'."\n"
."\n"
.'- false: The call fails.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Resource' => [
'description' => 'The group process information.',
'type' => 'object',
'properties' => [
'GroupProcessId' => ['description' => 'The ID of the group process.', 'type' => 'string', 'example' => '7F2B0024-4F21-48B9-A764-211CEC48****', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'CreateGroupMonitoringAgentProcess',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-03-20T02:25:55.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2022-08-05T04:05:02.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateGroupMonitoringAgentProcess'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:CreateGroupMonitoringAgentProcess',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'GroupMonitoringAgentProcess', 'arn' => 'acs:cms::{#accountId}:group/{#groupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"718FEA81-64C3-4F23-8F90-0531F7489FC1\\",\\n \\"Success\\": true,\\n \\"Resource\\": {\\n \\"GroupProcessId\\": \\"7F2B0024-4F21-48B9-A764-211CEC48****\\"\\n }\\n}","type":"json"}]',
],
'CreateHostAvailability' => [
'summary' => 'Creates an availability monitoring task.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The application group ID.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123456', 'title' => ''],
],
[
'name' => 'TaskName',
'in' => 'query',
'schema' => ['description' => 'The name of the availability monitoring task. The name must be 4 to 100 characters in length and can contain letters, digits, underscores (_), and Chinese characters.', 'type' => 'string', 'required' => true, 'example' => 'task1', 'title' => ''],
],
[
'name' => 'TaskScope',
'in' => 'query',
'schema' => ['description' => 'The detection scope of the availability monitoring task. Valid values:'."\n"
."\n"
.'- GROUP: uses all ECS instances in the current application group as detection probes.'."\n"
.'- GROUP_SPEC_INSTANCE: uses specified ECS instances in the current application group as detection probes. If you set this parameter to GROUP_SPEC_INSTANCE, you must also set InstanceList to specify the ECS instances that initiate detection.', 'type' => 'string', 'required' => false, 'default' => 'GROUP', 'example' => 'GROUP', 'title' => ''],
],
[
'name' => 'TaskType',
'in' => 'query',
'schema' => ['description' => 'The detection type of the availability monitoring task. Valid values:'."\n"
."\n"
.'- PING'."\n"
.'- TELNET'."\n"
.'- HTTP', 'type' => 'string', 'required' => true, 'example' => 'HTTP', 'title' => ''],
],
[
'name' => 'TaskOption.HttpURI',
'in' => 'query',
'schema' => ['description' => 'The URI for HTTP or Telnet detection.', 'type' => 'string', 'required' => false, 'example' => 'https://www.aliyun.com'."\n"
.'telnet://127.0.0.1:80', 'title' => ''],
],
[
'name' => 'TaskOption.TelnetOrPingHost',
'in' => 'query',
'schema' => ['description' => 'The domain name or address to detect.'."\n"
.'>If the detection type is PING, set this parameter.', 'type' => 'string', 'required' => false, 'example' => 'www.aliyun.com', 'title' => ''],
],
[
'name' => 'TaskOption.HttpResponseCharset',
'in' => 'query',
'schema' => ['description' => 'The response character set for HTTP detection.'."\n"
."\n"
.'> Only UTF-8 is supported.', 'type' => 'string', 'required' => false, 'example' => 'UTF-8', 'title' => ''],
],
[
'name' => 'TaskOption.HttpPostContent',
'in' => 'query',
'schema' => ['description' => 'The POST content of the HTTP detection request.', 'type' => 'string', 'required' => false, 'example' => 'params1=paramsValue1', 'title' => ''],
],
[
'name' => 'TaskOption.HttpResponseMatchContent',
'in' => 'query',
'schema' => ['description' => 'The content to match in the response.', 'type' => 'string', 'required' => false, 'example' => 'ok', 'title' => ''],
],
[
'name' => 'TaskOption.HttpMethod',
'in' => 'query',
'schema' => ['description' => 'The method for the detection type. Valid values:'."\n"
."\n"
.'- GET'."\n"
.'- POST'."\n"
.'- HEAD'."\n"
."\n"
.'>If the detection type is HTTP, set this parameter.', 'type' => 'string', 'required' => false, 'example' => 'GET', 'title' => ''],
],
[
'name' => 'TaskOption.HttpNegative',
'in' => 'query',
'schema' => ['description' => 'The alert rule for matching HTTP response content. Valid values:'."\n"
.'- true: An alert is triggered if the HTTP response content contains the specified alert rule content.'."\n"
.'- false: An alert is triggered if the HTTP response content does not contain the specified alert rule content.'."\n"
."\n"
.'>This parameter takes effect only when the detection type is HTTP.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'TaskOption.HttpHeader',
'in' => 'query',
'schema' => ['description' => 'The header of the HTTP request. The format is `Parameter name:Parameter value`. Separate multiple parameters with line breaks. Example:'."\n"
.'```'."\n"
.'params1:value1'."\n"
.'params2:value2'."\n"
.'```', 'type' => 'string', 'required' => false, 'example' => 'token:testTokenValue', 'title' => ''],
],
[
'name' => 'TaskOption.Interval',
'in' => 'query',
'schema' => ['description' => 'The detection frequency. Unit: seconds. Valid values: 15, 30, 60, 120, 300, 900, 1800, and 3600.'."\n"
."\n"
.'> Only CloudMonitor agent 3.5.1 or later supports this parameter.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60', 'title' => ''],
],
[
'name' => 'AlertConfig.NotifyType',
'in' => 'query',
'schema' => ['description' => 'The alert notification type. Valid values:'."\n"
."\n"
.'- 2: phone call + text message + email + DingTalk chatbot.'."\n"
."\n"
.'- 1: text message + email + DingTalk chatbot.'."\n"
."\n"
.'- 0: email + DingTalk chatbot.'."\n"
."\n\n"
.'0: email + DingTalk chatbot.'."\n"
."\n"
.'0: email + DingTalk chatbot.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '0', 'title' => ''],
],
[
'name' => 'AlertConfig.StartTime',
'in' => 'query',
'schema' => ['description' => 'The start time when the alert takes effect. Valid values: 0 to 23.'."\n"
."\n"
.'For example, if `AlertConfig.StartTime` is set to 0 and `AlertConfig.EndTime` is set to 22, the alert is effective from 00:00:00 to 22:00:00.'."\n"
."\n"
.'>If the alert is not within the effective period, no alert notification is sent even if the threshold is exceeded.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
],
[
'name' => 'AlertConfig.EndTime',
'in' => 'query',
'schema' => ['description' => 'The end time when the alert takes effect. Valid values: 0 to 23.'."\n"
."\n"
.'For example, if `AlertConfig.StartTime` is set to 0 and `AlertConfig.EndTime` is set to 22, the alert is effective from 00:00:00 to 22:00:00.'."\n"
."\n"
.'>If the alert is not within the effective period, no alert notification is sent even if the threshold is exceeded.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '22', 'title' => ''],
],
[
'name' => 'AlertConfig.SilenceTime',
'in' => 'query',
'schema' => ['description' => 'The mute period. Unit: seconds. Default value: 86400 (1 day).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '86400', 'title' => ''],
],
[
'name' => 'AlertConfig.WebHook',
'in' => 'query',
'schema' => ['description' => 'The webhook address.', 'type' => 'string', 'required' => false, 'example' => 'https://www.aliyun.com/webhook.json', 'title' => ''],
],
[
'name' => 'AlertConfigEscalationList',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'None.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'MetricName' => ['description' => 'The metric for the alert. Valid values of N: 1 to 21. Valid values:'."\n"
."\n"
.'- HttpStatus: HTTP status code.'."\n"
.'- HttpLatency: HTTP latency.'."\n"
.'- TelnetStatus: Telnet status code.'."\n"
.'- TelnetLatency: Telnet latency.'."\n"
.'- PingLostRate: Ping packet loss rate.', 'type' => 'string', 'required' => true, 'example' => 'HttpStatus', 'title' => ''],
'Value' => ['description' => 'The alert threshold. Valid values of N: 1 to 21.', 'type' => 'string', 'required' => false, 'example' => '90', 'title' => ''],
'Times' => ['description' => 'The number of alert retries. Valid values of N: 1 to 21.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'title' => ''],
'Operator' => ['description' => 'The comparison operator for the alert rule. Valid values of N: 1 to 21. Valid values:'."\n"
."\n"
.'- `>`'."\n"
.'- `>=`'."\n"
.'- `<`'."\n"
.'- `<=`'."\n"
.'- `=`', 'type' => 'string', 'required' => false, 'example' => '>', 'title' => ''],
'Aggregate' => ['description' => 'The statistical method for the alert. Valid values of N: 1 to 21. The valid values vary based on the metric:'."\n"
."\n"
.'- HttpStatus: Value.'."\n"
.'- HttpLatency: Average.'."\n"
.'- TelnetStatus: Value.'."\n"
.'- TelnetLatency: Average.'."\n"
.'- PingLostRate: Average.'."\n"
."\n"
.'>The statistical method for status codes is the original value (Value). The statistical method for latency or packet loss rate is the average value (Average).', 'type' => 'string', 'required' => false, 'example' => 'Value', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 10,
'title' => '',
'example' => '',
],
],
[
'name' => 'InstanceList',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The list of ECS instances that initiate detection. Valid values of N: 1 to 21.'."\n"
."\n"
.'> Set this parameter when `TaskScope` is set to `GROUP_SPEC_INSTANCE`.',
'type' => 'array',
'items' => ['description' => 'The list of ECS instances that initiate detection. Valid values of N: 1 to 21.'."\n"
."\n"
.'> Set this parameter when `TaskScope` is set to `GROUP_SPEC_INSTANCE`.', 'type' => 'string', 'required' => false, 'example' => '2', 'title' => ''],
'required' => false,
'example' => 'i-absdfkwl321****',
'maxItems' => 1000,
'title' => '',
],
],
[
'name' => 'AlertConfigTargetList',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => 'The alert trigger targets.',
'type' => 'array',
'items' => [
'description' => 'The alert trigger targets.',
'type' => 'object',
'properties' => [
'Id' => ['description' => 'The ID of the alert trigger target.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
'Arn' => ['description' => 'The resource ARN. Format: `acs:{AbbreviatedCloudServiceName}:{regionId}:{userId}:/{ResourceType}/{ResourceName}/message`. Example: `acs:mns:ap-southeast-1:120886317861****:/queues/test123/message`. The following list describes the parameters:'."\n"
."\n"
.'- {AbbreviatedCloudServiceName}: Only Simple Message Queue (formerly MNS) is supported.'."\n"
."\n"
.'- {userId}: The Alibaba Cloud account ID.'."\n"
."\n"
.'- {regionId}: The region where the Simple Message Queue (formerly MNS) queue or topic resides.'."\n"
."\n"
.'- {ResourceType}: The type of the resource that accepts alerts. Valid values:'."\n"
."\n"
.' - **queues**: queue.'."\n"
.' - **topics**: topic.'."\n"
."\n"
.'- {ResourceName}: The resource name.'."\n"
."\n"
.' - If the resource type is **queues**, the resource name is the queue name.'."\n"
.' - If the resource type is **topics**, the resource name is the topic name.', 'type' => 'string', 'required' => false, 'example' => 'acs:mns:cn-hangzhou:120886317861****:/queues/test/message', 'title' => ''],
'Level' => ['description' => 'The alert level. Valid values:'."\n"
."\n"
.'- INFO: information.'."\n"
.'- WARN: warning.'."\n"
.'- CRITICAL: critical.', 'type' => 'string', 'required' => false, 'example' => '["INFO", "WARN", "CRITICAL"]', 'title' => ''],
'JsonParams' => ['description' => 'The JSON-formatted parameters of the alert callback.', 'type' => 'string', 'required' => false, 'example' => '{"customField1":"value1","customField2":"$.name"}', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'>200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'ACBDBB40-DFB6-4F4C-8957-51FFB233969C', 'title' => ''],
'TaskId' => ['description' => 'The ID of the availability monitoring task.', 'type' => 'integer', 'format' => 'int64', 'example' => '12345', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Parameter invalid.', 'description' => 'The parameter is invalid.'],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => 'ResourceConflict', 'errorMessage' => 'Concurrent modification of resources.', 'description' => ''],
['errorCode' => 'ResourceExist', 'errorMessage' => 'Resources already exist.', 'description' => ''],
],
412 => [
['errorCode' => 'ResouceOverLimit', 'errorMessage' => 'The task over limit', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"ACBDBB40-DFB6-4F4C-8957-51FFB233969C\\",\\n \\"TaskId\\": 12345,\\n \\"Success\\": true\\n}","type":"json"}]',
'title' => 'Create an availability monitoring task',
'description' => 'This topic provides an example on how to create an availability monitoring task named `task1` with the detection type `HTTP` in the application group `123456`. Alert notifications are sent by email and DingTalk chatbot.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-02-13T11:47:48.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2022-08-05T04:05:02.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2022-03-22T08:53:07.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateHostAvailability'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:CreateHostAvailability',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'HostAvailability', 'arn' => 'acs:cms::{#accountId}:group/{#groupId}'],
],
],
],
],
],
'CreateHybridMonitorNamespace' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The name of the metric repository.'."\n"
."\n"
.'Format: consists of lowercase letters, digits, and hyphens (-).', 'type' => 'string', 'required' => true, 'example' => 'aliyun', 'title' => ''],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['description' => 'The description of the metric repository.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'Alibaba Cloud product metric repository.', 'title' => ''],
],
[
'name' => 'Spec',
'in' => 'query',
'schema' => [
'description' => 'The data storage duration. Valid values:'."\n"
."\n"
.'- cms.s1.large: storage duration of 15 days.'."\n"
.'- cms.s1.xlarge: storage duration of 32 days.'."\n"
.'- cms.s1.2xlarge: storage duration of 63 days.'."\n"
.'- cms.s1.3xlarge (default): storage duration of 93 days.'."\n"
.'- cms.s1.6xlarge: storage duration of 185 days.'."\n"
.'- cms.s1.12xlarge: storage duration of 376 days.'."\n"
."\n"
.'For the pricing of different storage duration specifications, see the **Pricing** section in [monitoring dashboard](~~223532~~).',
'enumValueTitles' => ['cms.s1.large' => 'cms.s1.large', 'cms.s1.2xlarge' => 'cms.s1.2xlarge', 'cms.s1.xlarge' => 'cms.s1.xlarge', 'cms.s1.6xlarge' => 'cms.s1.6xlarge', 'cms.s1.3xlarge' => 'cms.s1.3xlarge'],
'type' => 'string',
'required' => false,
'docRequired' => false,
'enum' => [],
'example' => 'cms.s1.3xlarge',
'title' => '',
],
],
[
'name' => 'NamespaceType',
'in' => 'query',
'schema' => ['description' => 'The storage solution for monitoring data. Valid values:'."\n"
."\n"
.'- aliyun_prometheus: monitoring data is stored in Managed Service for Prometheus.'."\n"
."\n"
.'> For more information about storage solutions for monitoring data, see [Storage solutions for Hybrid Cloud Monitoring data](~~2594921~~).', 'type' => 'string', 'required' => false, 'example' => 'aliyun_prometheus', 'title' => ''],
],
[
'name' => 'NamespaceRegion',
'in' => 'query',
'schema' => ['description' => 'The region in which monitoring data is stored.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The response code.', 'type' => 'string', 'example' => 'Success', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Namespace.Existed', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3843D23A-FB9E-5DC8-BCCC-458768B79296', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: Successful.'."\n"
.'- false: Failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Create a metric repository',
'summary' => 'Calls the CreateHybridMonitorNamespace operation to create a metric repository.',
'description' => '## Before you begin'."\n"
.'Make sure that you have activated Hybrid Cloud Monitoring. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).'."\n"
."\n"
.'## Operation description'."\n"
.'This topic provides an example on how to create a metric repository named `aliyun` with a data storage duration of `cms.s1.3xlarge`. The response indicates that the metric repository is created.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [
['createdAt' => '2023-11-21T10:00:14.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2022-12-27T07:31:03.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2022-03-29T07:11:29.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateHybridMonitorNamespace'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:CreateCustomNamespace',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"Namespace.Existed\\",\\n \\"RequestId\\": \\"3843D23A-FB9E-5DC8-BCCC-458768B79296\\",\\n \\"Success\\": \\"true\\"\\n}","type":"json"}]',
],
'CreateHybridMonitorSLSGroup' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'SLSGroupName',
'in' => 'query',
'schema' => ['description' => 'The name of the Logstore group.'."\n"
."\n"
.'The name must be 2 to 32 characters in length and can contain uppercase letters, lowercase letters, digits, and underscores (_). The name must start with a letter.', 'type' => 'string', 'required' => true, 'example' => 'Logstore_test', 'title' => ''],
],
[
'name' => 'SLSGroupDescription',
'in' => 'query',
'schema' => ['description' => 'The description of the Logstore group.', 'type' => 'string', 'required' => false, 'example' => 'Logstore group of Alibaba Cloud products.', 'title' => ''],
],
[
'name' => 'SLSGroupConfig',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The configurations of the Logstore group.'."\n"
."\n"
.'Valid values of N: 1 to 25.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'SLSRegion' => ['description' => 'The region.'."\n"
."\n"
.'Valid values of N: 1 to 25.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''],
'SLSProject' => ['description' => 'The project.'."\n"
."\n"
.'Valid values of N: 1 to 25.', 'type' => 'string', 'required' => true, 'example' => 'aliyun-project', 'title' => ''],
'SLSLogstore' => ['description' => 'The Logstore.'."\n"
."\n"
.'Valid values of N: 1 to 25.', 'type' => 'string', 'required' => true, 'example' => 'Logstore-ECS', 'title' => ''],
'SLSUserId' => ['description' => 'The member ID.'."\n"
."\n"
.'Valid values of N: 1 to 25.'."\n"
."\n"
.'If you invoke this operation by using a management account, you can associate the Alibaba Cloud services of any member in the resource folder with Hybrid Cloud Monitoring through cloud native mode. You can use the resource folder to monitor the Alibaba Cloud services of multiple accounts.'."\n"
."\n"
.'> If a member uses CloudMonitor for the first time, make sure that the member has been granted the authorization for the CloudMonitor service-linked role (AliyunServiceRoleForCloudMonitor). For more information, see [CloudMonitor service-linked role](~~170423~~).', 'type' => 'string', 'required' => false, 'example' => '120886317861****', 'title' => ''],
],
'required' => true,
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 30,
'minItems' => 1,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Duplicate.SLSGroup', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '66683237-7126-50F8-BBF8-D67ACC919A17', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
.'- false: The operation failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'The parameter is missing or invalid. %s', 'description' => ''],
],
403 => [
['errorCode' => 'InvalidAuthorization', 'errorMessage' => 'Permission denied.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
412 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Create a logstore group for SLS log metrics',
'summary' => 'Creates a Logstore group for Hybrid Cloud Monitoring.',
'description' => '### Before you begin'."\n"
.'Make sure that you have activated Simple Log Service (SLS) and created a project and a Logstore. For more information, see [Quick Start](~~54604~~).'."\n"
."\n"
.'### Operation description'."\n"
.'This topic provides an example on how to create a Logstore group named `Logstore_test`. The region is `ap-southeast-1`, the project is `aliyun-project`, and the Logstore is `Logstore-ECS`. The response shows that the Logstore group is created.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [
['createdAt' => '2022-08-04T08:55:46.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateHybridMonitorSLSGroup'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:CreateHybridMonitorSLSGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Duplicate.SLSGroup\\",\\n \\"RequestId\\": \\"66683237-7126-50F8-BBF8-D67ACC919A17\\",\\n \\"Success\\": \\"true\\"\\n}","type":"json"}]',
],
'CreateHybridMonitorTask' => [
'summary' => 'Creates a monitoring task for Alibaba Cloud services or Simple Log Service (SLS) logs in Hybrid Cloud Monitoring.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'paid', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The name of the namespace.'."\n"
."\n"
.'For information about how to obtain the namespace name, see [DescribeHybridMonitorNamespaceList](~~428880~~).', 'type' => 'string', 'required' => true, 'docRequired' => false, 'example' => 'aliyun', 'title' => ''],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['description' => 'The description of the monitoring task.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '阿里云产品数据接入任务。', 'title' => ''],
],
[
'name' => 'TaskName',
'in' => 'query',
'schema' => ['description' => 'The name of the monitoring task.'."\n"
."\n"
.'- If `TaskType` is set to `aliyun_fc`, enter the name of the data import task for the Alibaba Cloud service.'."\n"
.'- If `TaskType` is set to `aliyun_sls`, enter the metric name for SLS logs.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'aliyun_task', 'title' => ''],
],
[
'name' => 'TaskType',
'in' => 'query',
'schema' => [
'description' => 'The type of the monitoring task. Valid values:'."\n"
."\n"
.'- aliyun_fc: a data import task for Alibaba Cloud services.'."\n"
.'- aliyun_sls: a metric for SLS logs.',
'enumValueTitles' => ['aliyun_fc' => 'aliyun_fc', 'aliyun_sls' => 'aliyun_sls'],
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'aliyun_fc',
'title' => '',
],
],
[
'name' => 'CollectTargetType',
'in' => 'query',
'schema' => ['description' => 'The type of the collection target for monitoring data.'."\n"
.'- If `TaskType` is set to `aliyun_fc`, enter `aliyun_fc`.'."\n"
.'- If `TaskType` is set to `aliyun_sls`, enter the name of the Logstore group for SLS logs.', 'type' => 'string', 'required' => true, 'example' => 'aliyun_fc', 'title' => ''],
],
[
'name' => 'CollectInterval',
'in' => 'query',
'schema' => [
'description' => 'The collection period of the metric. Valid values:'."\n"
."\n"
.'- 15'."\n"
.'- 60 (default)'."\n"
."\n"
.'Unit: seconds.'."\n"
."\n"
.'> This parameter is required only when `TaskType` is set to `aliyun_sls`.',
'enumValueTitles' => [15 => '15', 60 => '60'],
'type' => 'string',
'required' => false,
'example' => '60',
'title' => '',
],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The application group ID.'."\n"
."\n"
.'For information about how to obtain the application group ID, see [DescribeMonitorGroups](~~115032~~).'."\n"
."\n"
.'> This parameter is required only when `TaskType` is set to `aliyun_sls`.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '3607****', 'title' => ''],
],
[
'name' => 'YARMConfig',
'in' => 'query',
'schema' => ['description' => 'The configuration file of the Alibaba Cloud service that is connected to Hybrid Cloud Monitoring.'."\n"
."\n"
.'- namespace: the namespace of the Alibaba Cloud service. For information about how to query the namespace of an Alibaba Cloud service, see [DescribeMetricMetaList](~~98846~~).'."\n"
.'- metric_list: the metrics of the Alibaba Cloud service. For information about how to query the metrics of an Alibaba Cloud service, see [DescribeMetricMetaList](~~98846~~).'."\n"
."\n"
.'The following example shows the configuration file:'."\n"
."\n"
.'```'."\n"
.'products:'."\n"
.'- namespace: acs_ecs_dashboard'."\n"
.' metric_info:'."\n"
.' - metric_list:'."\n"
.' - cpu_total'."\n"
.' - cpu_idle'."\n"
.' - diskusage_utilization'."\n"
.' - CPUUtilization'."\n"
.' - DiskReadBPS'."\n"
.' - InternetOut'."\n"
.' - IntranetOut'."\n"
.' - cpu_system'."\n"
.'- namespace: acs_rds_dashboard'."\n"
.' metric_info:'."\n"
.' - metric_list:'."\n"
.' - MySQL_QPS'."\n"
.' - MySQL_TPS'."\n"
.'```'."\n"
.'> This parameter is required only when `TaskType` is set to `aliyun_fc`.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'products:- namespace: acs_ecs_dashboard metric_info: - metric_list: - cpu_total', 'title' => ''],
],
[
'name' => 'TargetUserId',
'in' => 'query',
'schema' => ['description' => 'The member ID.'."\n"
."\n"
.'When you invoke this operation by using a management account, you can use cloud native mode to connect Alibaba Cloud services of any member in the resource folder to Hybrid Cloud Monitoring. This allows you to implement cross-account unified monitoring of Alibaba Cloud services through the resource folder. Go to **Settings** to configure this feature in the CloudMonitor console.'."\n"
."\n"
.'> This parameter is required only when `TaskType` is set to `aliyun_fc`.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '120886317861****', 'title' => ''],
],
[
'name' => 'AttachLabels',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The labels of the metric.'."\n"
."\n"
.'> This parameter is required only when `TaskType` is set to `aliyun_sls`.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Value' => ['description' => 'The label value of the metric.', 'type' => 'string', 'required' => false, 'example' => 'testValue', 'title' => ''],
'Name' => ['description' => 'The label key of the metric.', 'type' => 'string', 'required' => false, 'example' => 'app_service', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 10,
'title' => '',
'example' => '',
],
],
[
'name' => 'TargetUserIdList',
'in' => 'query',
'schema' => ['description' => 'The member IDs. Separate multiple member IDs with commas (,).'."\n"
."\n"
.'> This parameter is required only when you call this operation by using a management account.', 'type' => 'string', 'required' => false, 'example' => '120886317861****', 'title' => ''],
],
[
'name' => 'SLSProcessConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => 'The SLS log configuration.'."\n"
."\n"
.'> This parameter is required only when `TaskType` is set to `aliyun_sls`.',
'type' => 'object',
'properties' => [
'Filter' => [
'description' => 'The filter conditions for parameters in SLS logs.',
'type' => 'object',
'properties' => [
'Relation' => [
'description' => 'The relationship between multiple filter conditions. Valid values:'."\n"
."\n"
.'- and (default): Logs are processed only when all filter conditions are met.'."\n"
.'- or: Logs are processed when any filter condition is met.',
'enumValueTitles' => ['or' => 'or', 'and' => 'and'],
'type' => 'string',
'required' => false,
'example' => 'and',
'title' => '',
],
'Filters' => [
'description' => 'The list of filter conditions for parameters in SLS logs.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'SLSKeyName' => ['description' => 'The name of the parameter to filter in SLS logs.', 'type' => 'string', 'required' => false, 'example' => 'code', 'title' => ''],
'Operator' => [
'description' => 'The filter method for parameter values in SLS logs. Valid values:'."\n"
.'- `contain`: contains.'."\n"
.'- `notContain`: does not contain.'."\n"
.'- `>`: greater than.'."\n"
.'- `<`: less than.'."\n"
.'- `=`: equal to.'."\n"
.'- `!=`: not equal to.'."\n"
.'- `>=`: greater than or equal to.'."\n"
.'- `<=`: less than or equal to.',
'type' => 'string',
'enum' => ['>', '>=', '=', '<=', '<', '!=', 'contain', 'notContain'],
'required' => false,
'example' => '=',
'title' => '',
],
'Value' => ['description' => 'The filter value of the parameter in SLS logs.', 'type' => 'string', 'required' => false, 'example' => '200', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
'required' => false,
'title' => '',
'example' => '',
],
'Statistics' => [
'description' => 'The statistical method for SLS logs.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'SLSKeyName' => ['description' => 'The name of the parameter for SLS log statistics.', 'type' => 'string', 'required' => false, 'example' => 'name', 'title' => ''],
'Function' => ['description' => 'Aggregates log data within the statistical period based on the selected statistical method. Valid values:'."\n"
.'- count: counts the number of occurrences.'."\n"
.'- sum: calculates the sum.'."\n"
.'- avg: calculates the average.'."\n"
.'- max: returns the maximum value.'."\n"
.'- min: returns the minimum value.'."\n"
.'- value: samples within the period.'."\n"
.'- countps: calculates the per-second average of the count for the specified field within the statistical period.'."\n"
.'- sumps: calculates the per-second average of the sum for the specified field within the statistical period.'."\n"
.'- distinct: calculates the number of occurrences of the specified field after deduplication within the statistical period.'."\n"
.'- distribution: calculates the number of occurrences of field values within a specified range.'."\n"
.'- percentile: calculates the distribution value of field values, such as P50.', 'type' => 'string', 'required' => false, 'example' => 'count', 'title' => ''],
'Alias' => ['description' => 'The alias of the SLS log statistical result.', 'type' => 'string', 'minLength' => 0, 'pattern' => '^[a-zA-Z_][a-zA-Z0-9_]{1,39}$', 'required' => false, 'example' => 'level_count', 'title' => ''],
'Parameter1' => ['description' => 'The statistical value of SLS logs.'."\n"
."\n"
.'- If `Function` is set to `distribution`, this parameter specifies the lower limit of the statistical range. For example, to count the number of 2XX HTTP status codes, set this parameter to 200.'."\n"
."\n"
.'- If `Function` is set to `percentile`, this parameter specifies the percentile of the statistical distribution. For example, 0.5 indicates P50.', 'type' => 'string', 'required' => false, 'example' => '200', 'title' => ''],
'Parameter2' => ['description' => 'The statistical value of SLS logs.'."\n"
."\n"
.'> This parameter is required only when `Function` is set to `distribution`. This parameter specifies the upper limit of the statistical range. For example, to count the number of 2XX HTTP status codes, set this parameter to 299.', 'type' => 'string', 'required' => false, 'example' => '299', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
'GroupBy' => [
'description' => 'Aggregates data by spatial dimension, which is equivalent to Group By in SQL.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'SLSKeyName' => ['description' => 'The name of the parameter for SLS log statistics.', 'type' => 'string', 'required' => false, 'example' => 'code', 'title' => ''],
'Alias' => ['description' => 'The alias of the SLS log statistical result.', 'type' => 'string', 'pattern' => '^[a-zA-Z_][a-zA-Z0-9_]{1,39}$', 'required' => false, 'example' => 'ApiResult', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
'Express' => [
'description' => 'The arithmetic operation result of the extended field for SLS log statistical results.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Express' => ['description' => 'The arithmetic operation result of the extended field for SLS log statistical results.', 'type' => 'string', 'required' => false, 'example' => 'success_count', 'title' => ''],
'Alias' => ['description' => 'The alias of the arithmetic operation result of the extended field for SLS log statistical results.', 'type' => 'string', 'pattern' => '^[a-zA-Z_][a-zA-Z0-9_]{1,39}$', 'required' => false, 'example' => 'SuccRate', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
'required' => false,
'title' => '',
'example' => '',
],
],
[
'name' => 'CloudAccessId',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => 'The list of primary account IDs of other cloud providers that are connected to CloudMonitor.',
'type' => 'array',
'items' => ['description' => 'The primary account ID of another cloud provider that is connected to CloudMonitor.', 'type' => 'string', 'required' => false, 'example' => 'n5n9ik1b****', 'title' => ''],
'required' => false,
'maxItems' => 50,
'minItems' => 1,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'yamlConfigFail', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '28CEA2E0-3E90-51B2-A7E8-B1ED75534E49', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: Successful.'."\n"
.'- false: Failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'TaskId' => ['description' => 'The monitoring task ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '36****', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"yamlConfigFail\\",\\n \\"RequestId\\": \\"28CEA2E0-3E90-51B2-A7E8-B1ED75534E49\\",\\n \\"Success\\": \\"true\\",\\n \\"TaskId\\": 0\\n}","type":"json"}]',
'title' => 'Create a monitoring task',
'description' => '## Operation description'."\n"
.'- Before calling this operation, make sure that Hybrid Cloud Monitoring is activated.'."\n"
.'- To create a metric for SLS logs, make sure that SLS is activated and that a project and a Logstore are created.'."\n"
.'- Depending on the value of `TaskType`, some parameters are required. For example, if `TaskType` is set to `aliyun_fc`, you must configure `YARMConfig`. If `TaskType` is set to `aliyun_sls`, you must configure parameters such as `CollectInterval`.'."\n"
.'- For cross-account operations, specify `TargetUserId` or `TargetUserIdList` to connect resources of other members to Hybrid Cloud Monitoring.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [
['createdAt' => '2023-12-21T08:28:56.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2022-12-27T07:31:04.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2022-06-09T09:38:01.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-12-09T02:41:41.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-12-09T02:41:41.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateHybridMonitorTask'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:CreateHybridMonitorTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'CreateInstantSiteMonitor' => [
'summary' => 'Creates a one-time site monitoring task.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'paid'],
'parameters' => [
[
'name' => 'Address',
'in' => 'query',
'schema' => ['description' => 'The URL or IP address of the monitoring node.', 'type' => 'string', 'required' => true, 'example' => 'http://www.aliyun.com', 'title' => ''],
],
[
'name' => 'TaskType',
'in' => 'query',
'schema' => ['description' => 'The type of the monitoring node.'."\n"
.'Valid values: HTTP, PING, TCP, UDP, and DNS.', 'type' => 'string', 'required' => true, 'example' => 'HTTP', 'title' => ''],
],
[
'name' => 'TaskName',
'in' => 'query',
'schema' => ['description' => 'The name of the monitoring node.'."\n"
."\n"
.'The name must be 4 to 100 characters in length and can contain letters, digits, underscores (_), and Chinese characters.'."\n"
."\n\n"
.'The name must be 4 to 100 characters in length and can contain letters, digits, and underscores (_).'."\n"
."\n"
.'The name must be 4 to 100 characters in length and can contain letters, digits, and underscores (_).', 'type' => 'string', 'required' => true, 'example' => 'task1', 'title' => ''],
],
[
'name' => 'IspCities',
'in' => 'query',
'schema' => ['description' => 'The detection point information. If this parameter is left empty, the system randomly selects three detection points.'."\n"
."\n"
.'The value is in `JSONArray` format. Example: [{"city":"546","isp":"465", "type":"IDC"},{"city":"572","isp":"465", "type":"LASTMILE"},{"city":"738","isp":"465"}], which correspond to Beijing, Hangzhou, and Qingdao respectively.'."\n"
."\n"
.'The type parameter specifies the detection point type. When AgentGroup is set to PC, valid values are IDC and LASTMILE. IDC indicates detection points with deployment in data centers. LASTMILE indicates detection points with deployment in end-user homes that use fixed-line networks. The type parameter is an optional options. Default value: IDC. When AgentGroup is set to MOBILE, this parameter does not need to be specified.'."\n"
."\n"
.'For information about how to obtain detection point information, see [DescribeSiteMonitorISPCityList](~~115045~~).'."\n"
."\n"
.'> You must specify either `IspCities` or `RandomIspCity`.', 'type' => 'string', 'required' => false, 'example' => '[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]', 'title' => ''],
],
[
'name' => 'OptionsJson',
'in' => 'query',
'schema' => ['description' => 'The advanced extension options for the protocol type of the monitoring node. Different protocol types correspond to different extension options.', 'type' => 'string', 'required' => false, 'example' => '{"time_out":5000}', 'title' => ''],
],
[
'name' => 'RandomIspCity',
'in' => 'query',
'schema' => ['description' => 'The number of detection points.'."\n"
."\n"
.'> - You must specify either `IspCities` or `RandomIspCity`.- If you configure the Settings for the `RandomIspCity` parameter, the `IspCities` parameter automatically becomes invalid.', 'type' => 'integer', 'format' => 'int32', 'default' => '0', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'AgentGroup',
'in' => 'query',
'schema' => [
'description' => 'The type of detection point. Valid values: PC and MOBILE. PC indicates fixed-line network detection points. MOBILE indicates mobile terminal detection points. Default value: PC.',
'type' => 'string',
'enum' => ['PC', 'MOBILE'],
'required' => false,
'example' => 'PC',
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'successful', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '68192f5d-0d45-4b98-9724-892813f86c71', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation is successful. Valid values:'."\n"
.'* true: Successful.'."\n"
.'* false: Failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'CreateResultList' => [
'description' => 'The result list of the one-time site monitoring node.',
'type' => 'array',
'items' => [
'description' => 'The result list of the one-time site monitoring node.',
'type' => 'object',
'properties' => [
'TaskId' => ['description' => 'The monitoring node ID.', 'type' => 'string', 'example' => '2c8dbdf9-a3ab-46a1-85a4-f094965e****', 'title' => ''],
'TaskName' => ['description' => 'The monitoring node name.', 'type' => 'string', 'example' => 'task1', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'IllegalAddress', 'errorMessage' => 'Illegal HTTP address', 'description' => ''],
['errorCode' => 'OperationError', 'errorMessage' => 'Operation failed', 'description' => ''],
['errorCode' => 'TaskNotExists', 'errorMessage' => 'Task does not exist', 'description' => ''],
['errorCode' => 'OperatorInvalid', 'errorMessage' => 'Operator invalid', 'description' => ''],
['errorCode' => 'OperatorCityInvalid', 'errorMessage' => 'Operator City invalid', 'description' => ''],
['errorCode' => 'NameRepeat', 'errorMessage' => 'Task name repeat', 'description' => ''],
['errorCode' => 'CreateAlarmError', 'errorMessage' => 'Create alarm error', 'description' => ''],
['errorCode' => 'NameNotExists', 'errorMessage' => 'Task name not exists', 'description' => ''],
['errorCode' => 'Illegal Task Name', 'errorMessage' => 'The task name of the sitemonitor task is illegal.', 'description' => 'Site monitoring task name is illegal.'],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'Forbidden', 'errorMessage' => '%s', 'description' => ''],
],
406 => [
['errorCode' => 'ExceedingQuota', 'errorMessage' => 'Exceeding quota limits.', 'description' => 'The number of tasks exceeds the limit'],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Create a one-time site monitoring task',
'description' => 'Only Alibaba Cloud accounts that have activated Network Analysis and Monitoring can create one-time site monitoring tasks.'."\n"
."\n"
.'This topic provides an example of how to create a one-time site monitoring task. The task name is `task1`, the monitored address is `http://www.China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China China.',
'requestParamsDescription' => '## Advanced metric description for TaskType'."\n"
."\n"
.'The following tables describe how to configure the Settings for the advanced parameters for HTTP, PING, TCP, UDP, and DNS in `TaskType`.'."\n"
."\n"
.'- HTTP'."\n"
."\n"
.'| Parameter | Type | Description |'."\n"
.'| ----- | -------------- | ----------- |'."\n"
.'|http_method |String |The HTTP request method. Valid values: GET, POST, and HEAD. Default value: GET. |'."\n"
.'|header |String |Custom HTTP headers separated by line breaks (\\n).
Each header line must conform to the HTTP protocol (key-value pairs separated by a colon). |'."\n"
.'|cookie |String |The cookie, which follows the standard HTTP request format. |'."\n"
.'|request_content |String |The request content. Two formats are supported: JSON and form. If this parameter is not specified, the request does not contain a body. |'."\n"
.'|response_content |String |The expected response content. During monitoring, the first 64 bytes returned by the HTTP server are checked. |'."\n"
.'|match_rule |String |0: The monitoring succeeds if the response does not contain response_content.
1: The monitoring succeeds if the response contains response_content. |'."\n"
.'|username |String |If a username is provided, a BasicAuth header is included in the HTTP request. |'."\n"
.'|password |String |The HTTP request authentication password. |'."\n"
.'|time_out |int |The timeout period. Unit: milliseconds. Default value: 30000. |'."\n"
.'|max_redirect |int |The maximum number of redirects. The default value is 5 for ECS probes and 2 for carrier detection points.
To disable redirects, set this parameter to 0.
Valid values: 0 to 50. |'."\n"
."\n"
.' '."\n"
.'- PING'."\n"
."\n"
.'| Parameter | Type | Description |'."\n"
.'| ----- | -------------- | ----------- |'."\n"
.'|failure_rate |int |If the PING failure rate exceeds this value, the monitoring is failed and returns 610 (PingAllFail) or 615 (PingPartialFail).
Default value: 0.1. |'."\n"
.'|ping_num |int |The number of PING attempts. Default value: 20.
Valid values: 1 to 100. |'."\n"
."\n"
.'- TCP or UDP'."\n"
."\n"
.'| Parameter | Type | Description |'."\n"
.'| ----- | -------------- | ----------- |'."\n"
.'|port |int |The port of the TCP or UDP server. |'."\n"
.'|request_content |string |The request content. When request_format is set to hex, the request_content value is in hexadecimal compact format. |'."\n"
.'|request_format |string |When request_format is set to other values, request_content is sent to the TCP or UDP server as a plain character string. |'."\n"
.'|response_content |string |The response content. If the content returned by the TCP or UDP server does not contain response_content, the monitoring is failed.
When response_format is set to hex, the response_content value is in hexadecimal compact format.
When response_content is set to other values, response_content is a plain character string. |'."\n"
."\n"
.'- DNS'."\n"
."\n"
.'| Parameter | Type | Description |'."\n"
.'| ----- | -------------- | ----------- |'."\n"
.'|dns_server |string |The DNS server address, which can be a domain name or IP address. |'."\n"
.'|dns_type |string |The DNS query type. Valid values: A, NS, CNAME, MX, TXT, and ANY. |'."\n"
.'|expect_value |string |The list of expected values separated by whitespace. |'."\n"
.'|match_rule |string |The relationship between the expected value list and the DNS list. If the specified relationship is not met, the monitoring is failed.
Empty string or IN_DNS: The expected value list is a subset of the DNS list.
DNS_IN: The DNS list is a subset of the expected value list.
EQUAL: The DNS list is equal to the expected value list.
ANY: The DNS list and the expected value list have a non-empty intersection. |',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-08-22T03:53:07.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2025-08-07T12:32:02.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2025-08-07T08:50:07.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2025-04-29T08:05:31.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2022-06-22T09:29:55.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2021-12-01T09:58:37.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateInstantSiteMonitor'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:CreateInstantSiteMonitor',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"68192f5d-0d45-4b98-9724-892813f86c71\\",\\n \\"Success\\": \\"true\\",\\n \\"CreateResultList\\": [\\n {\\n \\"TaskId\\": \\"2c8dbdf9-a3ab-46a1-85a4-f094965e****\\",\\n \\"TaskName\\": \\"task1\\"\\n }\\n ]\\n}","type":"json"}]',
'translator' => 'machine',
],
'CreateMetricRuleBlackList' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'high', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => 'The name of the blacklist policy.', 'type' => 'string', 'required' => true, 'example' => 'Blacklist-01', 'title' => ''],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The namespace of the cloud service.'."\n"
."\n"
.'For more information about the namespaces of different cloud services, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => true, 'example' => 'acs_ecs_dashboard', 'title' => ''],
],
[
'name' => 'Category',
'in' => 'query',
'schema' => ['description' => 'The category of the cloud service. For example, ApsaraDB for Redis includes the following categories: ApsaraDB for Redis (standard architecture), ApsaraDB for Redis (cluster architecture), and ApsaraDB for Redis (read/write splitting architecture). In this case, the valid values of this parameter for ApsaraDB for Redis include `kvstore_standard`, `kvstore_sharding`, and `kvstore_splitrw`.', 'type' => 'string', 'required' => true, 'example' => 'ecs', 'title' => ''],
],
[
'name' => 'ScopeType',
'in' => 'query',
'schema' => ['description' => 'The effective scope of the blacklist policy. Valid values:'."\n"
."\n"
.'- USER (default): The blacklist policy takes effect only for the current Alibaba Cloud account.'."\n"
."\n"
.'- GROUP: The blacklist policy takes effect only for the specified application group. For information about how to query the IDs of application groups, see [DescribeMonitorGroups](~~115032~~).', 'type' => 'string', 'required' => false, 'example' => 'USER', 'title' => ''],
],
[
'name' => 'ScopeValue',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group. The value of this parameter is a JSON array.'."\n"
."\n"
.'> This parameter must be specified when `ScopeType` is set to `GROUP`.', 'type' => 'string', 'required' => false, 'example' => '["67****","78****"]', 'title' => ''],
],
[
'name' => 'EnableStartTime',
'in' => 'query',
'schema' => ['description' => 'The timestamp when the blacklist policy starts to take effect.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'string', 'required' => false, 'example' => '1640237400000', 'title' => ''],
],
[
'name' => 'EnableEndTime',
'in' => 'query',
'schema' => ['description' => 'The timestamp when the blacklist policy expires.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'string', 'required' => false, 'example' => '1640608200000', 'title' => ''],
],
[
'name' => 'EffectiveTime',
'in' => 'query',
'schema' => ['description' => 'The time range within which the blacklist policy is effective.'."\n"
."\n"
.'- If you do not configure this parameter, the blacklist policy is permanently effective.'."\n"
."\n"
.'- If you configure this parameter, the blacklist policy is effective only within the specified time range. Examples:'."\n"
."\n"
.' - `03:00-04:59`: The blacklist policy is effective from 03:00 to 05:00 local time. 05:00 local time is excluded.'."\n"
."\n"
.' - `03:00-04:59 UTC+0700`: The blacklist policy is effective from 03:00 to 05:00 (UTC+7). 05:00 (UTC+7) is excluded.', 'type' => 'string', 'required' => false, 'example' => '03:00-04:59', 'title' => ''],
],
[
'name' => 'Instances',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The IDs of the instances that belong to the specified cloud service.',
'type' => 'array',
'items' => ['description' => 'The IDs of the instances that belong to the specified cloud service.'."\n"
."\n"
.'Valid values of N: 1 to 100.', 'type' => 'string', 'required' => false, 'example' => '{"instanceId":"i-bp1ew0zfkjblsuwx****"}', 'title' => ''],
'required' => true,
'maxItems' => 100,
'title' => '',
'example' => '',
],
],
[
'name' => 'Metrics',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The metrics of the instance.'."\n"
."\n"
.'- If you do not configure this parameter, the blacklist policy applies to all metrics of the specified cloud service.'."\n"
."\n"
.'- If you configure this parameter, the blacklist policy applies only to the current metric.',
'type' => 'array',
'items' => [
'description' => 'None',
'type' => 'object',
'properties' => [
'MetricName' => ['description' => 'The metric name.'."\n"
."\n"
.'Valid values of N: 1 to 10.', 'type' => 'string', 'required' => true, 'example' => 'disk_utilization', 'title' => ''],
'Resource' => ['description' => 'The extended dimension of the instance. For example, `{"device":"C:"}` specifies that the blacklist policy is applied to all C disks of the specified Elastic Compute Service (ECS) instance.'."\n"
."\n"
.'Valid values of N: 1 to 10.', 'type' => 'string', 'required' => false, 'example' => '{"device":"C:"}', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 10,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The request has failed due to a temporary failure of the server.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '5C637FA3-3959-3352-8BE6-78CE2ED2D33D', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Id' => ['description' => 'The ID of the blacklist policy.', 'type' => 'string', 'example' => '93514c96-ceb8-47d8-8ee3-93b6d98b****', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
409 => [
['errorCode' => 'ResourceConflict', 'errorMessage' => 'Concurrent modification of resources.', 'description' => ''],
['errorCode' => 'ResourceExist', 'errorMessage' => 'Resources already exist.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'CreateMetricRuleBlackList',
'summary' => 'Creates a blacklist policy.',
'description' => '### Background information'."\n"
."\n"
.'- CloudMonitor blocks alert notifications based on the blacklist policies that take effect. To block alert notifications when the value of a metric that belongs to a cloud service reaches the threshold that you specified, add the metric to a blacklist policy.'."\n"
."\n"
.'- CloudMonitor allows you to create blacklist policies only based on threshold metrics. You cannot create blacklist policies based on system events. For more information about the cloud services and the thresholds of the metrics that are supported by CloudMonitor, see [Appendix 1: Metrics](~~163515~~).',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [
['createdAt' => '2023-04-23T03:09:37.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMetricRuleBlackList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:CreateMetricRuleBlackList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The request has failed due to a temporary failure of the server.\\",\\n \\"RequestId\\": \\"5C637FA3-3959-3352-8BE6-78CE2ED2D33D\\",\\n \\"Success\\": true,\\n \\"Id\\": \\"93514c96-ceb8-47d8-8ee3-93b6d98b****\\"\\n}","type":"json"}]',
],
'CreateMetricRuleResources' => [
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert rule.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'i-2ze3w55tr2rcpejpcfap_59c96b85-0339-4f35-ba66-ae4e34d3****', 'title' => ''],
],
[
'name' => 'Overwrite',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to overwrite. Valid values:'."\n"
."\n"
.'- true: overwrites. The resources submitted this time overwrite the previously associated resources. That is, full modification is performed.'."\n"
."\n"
.'- false: does not overwrite. The resources submitted this time do not overwrite the previously associated resources (the associated resources are the historical associated resources plus the resources submitted this time). That is, incremental modification is performed.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'false', 'title' => ''],
],
[
'name' => 'Resources',
'in' => 'query',
'schema' => ['description' => 'The associated resources. The value is in the JSON array format.'."\n"
.'> A maximum of 100 resource instances can be added at a time, and an alert rule can be associated with a maximum of 3,000 instances.'."\n"
.'>', 'type' => 'string', 'required' => true, 'example' => '[{"instanceId":"i-a2d5q7pm3f9yr29e****"}]', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
.'> The value 200 indicates success.'."\n"
.'>', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0671A721-0D7A-4F11-BB77-2416325D65AB', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. The value true indicates success, and the value false indicates failure.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Create a resource associated with an alert rule',
'summary' => 'Calls the CreateMetricRuleResources operation to create a resource associated with an alert rule.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMetricRuleResources'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:CreateMetricRuleResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"0671A721-0D7A-4F11-BB77-2416325D65AB\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'CreateMetricRuleTemplate' => [
'summary' => 'Creates an alert template.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => 'The name of the alert template.', 'type' => 'string', 'required' => true, 'example' => 'Template1', 'title' => ''],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['description' => 'The description of the alert template.', 'type' => 'string', 'required' => false, 'example' => 'ECS_Template1', 'title' => ''],
],
[
'name' => 'AlertTemplates',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The details of the alert template.',
'type' => 'array',
'items' => [
'description' => 'The alert template.',
'type' => 'object',
'properties' => [
'Escalations.Info.Threshold' => ['description' => 'The threshold for Info-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.', 'type' => 'string', 'required' => false, 'example' => '20', 'title' => ''],
'MetricName' => ['description' => 'The metric name.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'For information about how to obtain the name of a metric, see [DescribeMetricMetaList](~~98846~~) or [Metrics](~~163515~~).', 'type' => 'string', 'required' => true, 'example' => 'cpu_total', 'title' => ''],
'Webhook' => ['description' => 'The callback URL.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'The callback URL must be accessible over the Internet. CloudMonitor pushes an alert notification to the specified callback URL by sending an HTTP POST request. Only the HTTP protocol is supported.', 'type' => 'string', 'required' => false, 'example' => 'http://ww.aliyun.com', 'title' => ''],
'Escalations.Warn.Threshold' => ['description' => 'The threshold for Warn-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.', 'type' => 'string', 'required' => false, 'example' => '30', 'title' => ''],
'Namespace' => ['description' => 'The namespace of the cloud service.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'For information about how to obtain the namespace of a cloud service, see [DescribeMetricMetaList](~~98846~~) or [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => true, 'example' => 'acs_ecs_dashboard', 'title' => ''],
'Period' => ['description' => 'The aggregation period of monitoring data. Unit: seconds.'."\n"
."\n"
.'The default value is the minimum aggregation period. Generally, you do not need to specify the minimum aggregation period.'."\n"
."\n"
.'Valid values of N: 1 to 200.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60', 'title' => ''],
'RuleName' => ['description' => 'The name of the alert rule.'."\n"
."\n"
.'Valid values of N: 1 to 200.', 'type' => 'string', 'required' => true, 'example' => 'ECS_Rule1', 'title' => ''],
'Escalations.Critical.Times' => ['description' => 'The consecutive number of times for which the metric value meets the alert condition before a Critical-level alert is triggered.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'title' => ''],
'Selector' => ['description' => 'The dimension of the alert. It is an extended field.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'For example, an alert template is applied to an application group, this parameter is set to `{"disk":"/"}`, and the MetricName parameter is set to `DiskUtilization`. In this case, the generated alert rule is applied to the root disk partition (`"/"`) of all instances in the application group to which the alert template is applied.'."\n"
."\n"
.'> For more information about the values of extended fields, see [DescribeMetricRuleTemplateAttribute](~~114979~~).', 'type' => 'string', 'required' => false, 'example' => '{"disk":"/"}', 'title' => ''],
'Escalations.Info.Statistics' => ['description' => 'The statistical method for Info-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](~~163515~~).'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
'Escalations.Warn.Times' => ['description' => 'The consecutive number of times for which the metric value meets the alert condition before a Warn-level alert is triggered.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
'Escalations.Info.ComparisonOperator' => ['description' => 'The operator that is used to compare the metric value with the threshold for Info-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold'."\n"
."\n"
.'- GreaterThanThreshold: greater than the threshold'."\n"
."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold'."\n"
."\n"
.'- LessThanThreshold: less than the threshold'."\n"
."\n"
.'- NotEqualToThreshold: not equal to the threshold'."\n"
."\n"
.'- GreaterThanYesterday: greater than the metric value at the same time yesterday'."\n"
."\n"
.'- LessThanYesterday: less than the metric value at the same time yesterday'."\n"
."\n"
.'- GreaterThanLastWeek: greater than the metric value at the same time last week'."\n"
."\n"
.'- LessThanLastWeek: less than the metric value at the same time last week'."\n"
."\n"
.'- GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle'."\n"
."\n"
.'- LessThanLastPeriod: less than the metric value in the previous monitoring cycle'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Category' => ['description' => 'The abbreviation of the cloud service name.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'For more information about how to obtain the abbreviation of a cloud service name, see `metricCategory` in the response parameter `Labels` of the [DescribeProjectMeta](~~114916~~) operation.', 'type' => 'string', 'required' => true, 'example' => 'ecs', 'title' => ''],
'Escalations.Critical.Threshold' => ['description' => 'The threshold for Critical-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.', 'type' => 'string', 'required' => false, 'example' => '30', 'title' => ''],
'Escalations.Critical.Statistics' => ['description' => 'The statistical method for Critical-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](~~163515~~).'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
'Escalations.Critical.ComparisonOperator' => ['description' => 'The operator that is used to compare the metric value with the threshold for Critical-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold'."\n"
."\n"
.'- GreaterThanThreshold: greater than the threshold'."\n"
."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold'."\n"
."\n"
.'- LessThanThreshold: less than the threshold'."\n"
."\n"
.'- NotEqualToThreshold: not equal to the threshold'."\n"
."\n"
.'- GreaterThanYesterday: greater than the metric value at the same time yesterday'."\n"
."\n"
.'- LessThanYesterday: less than the metric value at the same time yesterday'."\n"
."\n"
.'- GreaterThanLastWeek: greater than the metric value at the same time last week'."\n"
."\n"
.'- LessThanLastWeek: less than the metric value at the same time last week'."\n"
."\n"
.'- GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle'."\n"
."\n"
.'- LessThanLastPeriod: less than the metric value in the previous monitoring cycle'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Escalations.Warn.ComparisonOperator' => ['description' => 'The operator that is used to compare the metric value with the threshold for Warn-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold'."\n"
."\n"
.'- GreaterThanThreshold: greater than the threshold'."\n"
."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold'."\n"
."\n"
.'- LessThanThreshold: less than the threshold'."\n"
."\n"
.'- NotEqualToThreshold: not equal to the threshold'."\n"
."\n"
.'- GreaterThanYesterday: greater than the metric value at the same time yesterday'."\n"
."\n"
.'- LessThanYesterday: less than the metric value at the same time yesterday'."\n"
."\n"
.'- GreaterThanLastWeek: greater than the metric value at the same time last week'."\n"
."\n"
.'- LessThanLastWeek: less than the metric value at the same time last week'."\n"
."\n"
.'- GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle'."\n"
."\n"
.'- LessThanLastPeriod: less than the metric value in the previous monitoring cycle'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Escalations.Info.Times' => ['description' => 'The consecutive number of times for which the metric value meets the alert condition before an Info-level alert is triggered.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
'Escalations.Warn.Statistics' => ['description' => 'The statistical method for the Warn-level alert.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](~~163515~~).'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 200,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The data returned.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '9763ED1A-4D09-41BF-851E-310421750204', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Id' => ['description' => 'The ID of the alert template.', 'type' => 'integer', 'format' => 'int64', 'example' => '12345', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'InvalidClientTokenId', 'errorMessage' => 'not allow this operation.', 'description' => 'No permission'],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'ResourceConflict', 'errorMessage' => 'Concurrent modification of resources.', 'description' => ''],
['errorCode' => 'ResourceExist', 'errorMessage' => 'Resources already exist.', 'description' => ''],
],
412 => [
['errorCode' => 'ResourcesOverLimit', 'errorMessage' => 'Resources over limit.', 'description' => ''],
],
429 => [
['errorCode' => 'Throttli∂ngException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalFailure', 'errorMessage' => '%s', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'CreateMetricRuleTemplate',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-02-12T07:07:35.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMetricRuleTemplate'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:CreateMetricRuleTemplate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"9763ED1A-4D09-41BF-851E-310421750204\\",\\n \\"Success\\": true,\\n \\"Id\\": 12345\\n}","type":"json"}]',
],
'CreateMonitorAgentProcess' => [
'summary' => 'Creates a task to monitor a process.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'ProcessName',
'in' => 'query',
'schema' => ['description' => 'The process name.', 'type' => 'string', 'required' => true, 'example' => 'AliYunDun', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'i-2ze2d6j5uhg20x47****', 'title' => ''],
],
[
'name' => 'ProcessUser',
'in' => 'query',
'schema' => ['description' => 'The user who launches the process.', 'type' => 'string', 'required' => false, 'example' => 'admin', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'User not authorized to operate on the specified resource.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '971CC023-5A96-452A-BB7C-2483F948BCFD', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Id' => ['description' => 'The process ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123456', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'CreateMonitorAgentProcess',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMonitorAgentProcess'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:CreateMonitorAgentProcess',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"User not authorized to operate on the specified resource.\\",\\n \\"RequestId\\": \\"971CC023-5A96-452A-BB7C-2483F948BCFD\\",\\n \\"Success\\": true,\\n \\"Id\\": 123456\\n}","type":"json"}]',
],
'CreateMonitorGroup' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'GroupName',
'in' => 'query',
'schema' => ['description' => 'The name of the application group.', 'type' => 'string', 'required' => true, 'example' => 'ECS_Group', 'title' => ''],
],
[
'name' => 'ContactGroups',
'in' => 'query',
'schema' => ['description' => 'The alert contact group. The alert notifications of the application group are sent to the alert contacts that belong to the alert contact group.'."\n"
."\n"
.'> An alert contact group can contain one or more alert contacts. For information about how to create alert contacts and alert contact groups, see [PutContact](~~PutContact~~) and [PutContactGroup](~~PutContactGroup~~).', 'type' => 'string', 'required' => false, 'example' => 'ECS_Alert_Group', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '83C89BA6-ABD4-4398-A175-83E86C47A001', 'title' => ''],
'GroupId' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'example' => '1234567', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'InvalidClientTokenId', 'errorMessage' => 'not allow this operation.', 'description' => 'No permission'],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'ResourceConflict', 'errorMessage' => 'Concurrent modification of resources.', 'description' => ''],
['errorCode' => 'ResourceExist', 'errorMessage' => 'Resources already exist.', 'description' => ''],
],
412 => [
['errorCode' => 'ResourcesOverLimit', 'errorMessage' => 'Resources over limit.', 'description' => ''],
],
429 => [
['errorCode' => 'Throttli∂ngException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'CreateMonitorGroup',
'summary' => 'Creates an application group.',
'description' => 'In this example, an application group named `ECS_Group` is created.',
'requestParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-02-12T07:07:35.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMonitorGroup'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:CreateMonitorGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"83C89BA6-ABD4-4398-A175-83E86C47A001\\",\\n \\"GroupId\\": 1234567,\\n \\"Success\\": true\\n}","type":"json"}]',
],
'CreateMonitorGroupByResourceGroupId' => [
'summary' => 'Creates an application group by using a resource group.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'EnableSubscribeEvent',
'in' => 'query',
'schema' => ['description' => 'Specifies whether the application group automatically subscribes to event notifications. If events whose severity level is critical or warning occur on resources in an application group, CloudMonitor sends alert notifications. Valid values:'."\n"
."\n"
.'- true: The application group automatically subscribes to event notifications.'."\n"
."\n"
.'- false (default): The application group does not automatically subscribe to event notifications.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'EnableInstallAgent',
'in' => 'query',
'schema' => ['description' => 'Specifies whether the CloudMonitor agent is automatically installed for the application group. CloudMonitor determines whether to automatically install the CloudMonitor agent for the hosts in an application group based on the value of this parameter. Valid values:'."\n"
."\n"
.'- true: The CloudMonitor agent is automatically installed.'."\n"
."\n"
.'- false (default): The CloudMonitor agent is not automatically installed.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => ['description' => 'The ID of the region where the resource group resides.'."\n"
."\n"
.'For information about how to obtain the ID of the region where a resource group resides, see [GetResourceGroup](~~158866~~).', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the resource group.'."\n"
."\n"
.'For information about how to obtain the ID of a resource group, see [ListResourceGroups](~~158855~~).', 'type' => 'string', 'required' => true, 'example' => 'rg-acfmw3ty5y7****', 'title' => ''],
],
[
'name' => 'ResourceGroupName',
'in' => 'query',
'schema' => ['description' => 'The name of the resource group.'."\n"
."\n"
.'For information about how to obtain the name of a resource group, see [ListResourceGroups](~~158855~~).', 'type' => 'string', 'required' => true, 'example' => 'CloudMonitor', 'title' => ''],
],
[
'name' => 'ContactGroupList',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The alert contact groups. The alert notifications of the application group are sent to the alert contacts that belong to the specified alert contact groups.'."\n"
."\n"
.'An alert contact group can contain one or more alert contacts. For information about how to create alert contacts and alert contact groups, see [PutContact](~~114923~~) and [PutContactGroup](~~114929~~). For information about how to obtain alert contact groups, see [DescribeContactGroupList](~~114922~~).',
'type' => 'array',
'items' => ['description' => 'The alert contact group. The alert notifications of the application group are sent to the alert contacts that belong to the specified alert contact groups.'."\n"
."\n"
.'An alert contact group can contain one or more alert contacts. For information about how to create alert contacts and alert contact groups, see [PutContact](~~114923~~) and [PutContactGroup](~~114929~~). For information about how to obtain alert contact groups, see [DescribeContactGroupList](~~114922~~).', 'type' => 'string', 'required' => false, 'example' => 'ECS_Group', 'title' => ''],
'required' => true,
'example' => 'ECS_Group',
'maxItems' => 20,
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '784CAB3C-F613-5BCE-8469-6DCB29B18A20', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Id' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'example' => '3607****', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
4092 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'ResourceGroupId already create group', 'description' => ''],
],
],
'title' => 'CreateMonitorGroupByResourceGroupId',
'description' => 'This topic provides an example on how to create an application group by using the resource group `CloudMonitor` and the alert contact group `ECS_Group`. The region ID of the resource group is `cn-hangzhou`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2021-10-25T07:45:36.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMonitorGroupByResourceGroupId'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:CreateMonitorGroupByResourceGroupId',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"784CAB3C-F613-5BCE-8469-6DCB29B18A20\\",\\n \\"Success\\": true,\\n \\"Id\\": 0\\n}","type":"json"}]',
],
'CreateMonitorGroupInstances' => [
'summary' => 'Adds resources to an application group.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '3607****', 'title' => ''],
],
[
'name' => 'Instances',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The instances that you want to add to the application group.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'InstanceName' => ['description' => 'The instance name.', 'type' => 'string', 'required' => true, 'example' => 'test-instance-ecs', 'title' => ''],
'Category' => ['description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
."\n"
.'To obtain the abbreviation of an Alibaba Cloud service name, call the [DescribeProjectMeta](~~114916~~) operation. The `metricCategory` tag in the `Labels` response parameter indicates the abbreviation of the Alibaba Cloud service name.', 'type' => 'string', 'required' => true, 'example' => 'ecs', 'title' => ''],
'InstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'i-2ze26xj5wwy12****', 'title' => ''],
'RegionId' => ['description' => 'The region ID of the instance.', 'type' => 'string', 'required' => true, 'example' => ' cn-hangzhou', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 2000,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '1BC69FEB-56CD-4555-A0E2-02536A24A946', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'InvalidClientTokenId', 'errorMessage' => 'not allow this operation.', 'description' => 'No permission'],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => '%s', 'description' => ''],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'ResourceExist', 'errorMessage' => '%s', 'description' => ''],
],
412 => [
['errorCode' => 'ResourcesOverLimit', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'Throttli∂ngException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'CreateMonitorGroupInstances',
'description' => '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.'."\n"
."\n"
.'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`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-02-12T07:07:35.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMonitorGroupInstances'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:CreateMonitorGroupInstances',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"1BC69FEB-56CD-4555-A0E2-02536A24A946\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'CreateMonitorGroupNotifyPolicy' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'PolicyType',
'in' => 'query',
'schema' => [
'description' => 'The type of the pause notification. Currently, only PauseNotify is supported.',
'type' => 'string',
'required' => true,
'enum' => ['PauseNotify'],
'example' => 'PauseNotify',
'title' => '',
],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The application group ID.', 'type' => 'string', 'required' => true, 'example' => '7301****', 'title' => ''],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => 'The start timestamp for pausing notifications.'."\n"
."\n"
.'The value is a UNIX timestamp, which represents the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1622949300000', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => 'The end timestamp for pausing notifications.'."\n"
."\n"
.'The value is a UNIX timestamp, which represents the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1623208500000', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'>The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '13356BCA-3EC3-4748-A771-2064DA69AEF1', 'title' => ''],
'Result' => ['description' => 'The number of entries returned for the creation result.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: Successful.'."\n"
."\n"
.'- false: Failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
204 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error. ', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Create a pause alert notification policy for an application group',
'summary' => 'Calls the CreateMonitorGroupNotifyPolicy operation to create a pause alert notification policy for an application group.',
'description' => 'During the effective period of the policy, no alert notifications are sent for any alerts triggered within the application group.'."\n"
.' '."\n"
.'This topic provides an example on how to create a pause alert notification policy named `PauseNotify` for the application group `7301****`. The application group pauses alert notifications during the period from `1622949300000` to `1623208500000` (UTC+8 `2021-06-06 11:15:00` to `2021-06-09 11:15:00`).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMonitorGroupNotifyPolicy'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:CreateMonitorGroupNotifyPolicy',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"13356BCA-3EC3-4748-A771-2064DA69AEF1\\",\\n \\"Result\\": 1,\\n \\"Success\\": \\"true\\"\\n}","type":"json"}]',
],
'CreateMonitoringAgentProcess' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'ProcessName',
'in' => 'query',
'schema' => ['description' => 'The name of the process.', 'type' => 'string', 'required' => false, 'example' => 'java', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => ' i-2ze51wjtwox01r8g****', 'title' => ''],
],
[
'name' => 'ProcessUser',
'in' => 'query',
'schema' => ['description' => 'The user who launches the process.', 'type' => 'string', 'required' => false, 'example' => 'admin', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'User not authorized to operate on the specified resource.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0DFCB47D-E7E1-4CBE-A381-8339F7B300EF', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Id' => ['description' => 'The process ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '12345', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'CreateMonitoringAgentProcess',
'summary' => 'Creates a task to monitor a process.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMonitoringAgentProcess'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:CreateMonitoringAgentProcess',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"User not authorized to operate on the specified resource.\\",\\n \\"RequestId\\": \\"0DFCB47D-E7E1-4CBE-A381-8339F7B300EF\\",\\n \\"Success\\": true,\\n \\"Id\\": 12345\\n}","type":"json"}]',
],
'CreateSiteMonitor' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'paid'],
'parameters' => [
[
'name' => 'Address',
'in' => 'query',
'schema' => ['description' => 'The URL or IP address to monitor.', 'type' => 'string', 'required' => true, 'example' => 'https://www.aliyun.com', 'title' => ''],
],
[
'name' => 'TaskType',
'in' => 'query',
'schema' => ['description' => 'The type of monitoring task.'."\n"
."\n"
.'Valid protocols include HTTP(S), PING, TCP, UDP, DNS, SMTP, POP3, FTP, and WEBSOCKET.', 'type' => 'string', 'required' => true, 'example' => 'HTTP', 'title' => ''],
],
[
'name' => 'TaskName',
'in' => 'query',
'schema' => ['description' => 'The name of the monitoring task.'."\n"
."\n"
.'The name must be 4 to 100 characters long and can contain letters, digits, underscores (\\_), and Chinese characters.', 'type' => 'string', 'required' => true, 'example' => 'HanZhou_ECS1', 'title' => ''],
],
[
'name' => 'Interval',
'in' => 'query',
'schema' => ['description' => 'The monitoring frequency in minutes.'."\n"
."\n"
.'Valid values: 1, 5, 15, 30, and 60.'."\n"
."\n"
.'Default: 1.', 'type' => 'string', 'required' => false, 'default' => '1', 'example' => '1', 'title' => ''],
],
[
'name' => 'IspCities',
'in' => 'query',
'schema' => ['description' => 'The detection points. If you do not specify this parameter, the system randomly selects three detection points from different Internet Service Providers (ISPs).'."\n"
."\n"
.'The value must be a JSON array. Example: `[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]`. The values correspond to Beijing, Hangzhou, and Qingdao.'."\n"
."\n"
.'For more information, see [DescribeSiteMonitorISPCityList](~~115045~~).', 'type' => 'string', 'required' => false, 'example' => '[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]', 'title' => ''],
],
[
'name' => 'OptionsJson',
'in' => 'query',
'schema' => ['description' => 'The advanced options for the specified protocol. The available options vary based on the protocol type.', 'type' => 'string', 'required' => false, 'example' => '{"time_out":5000}', 'title' => ''],
],
[
'name' => 'AlertIds',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert rule.'."\n"
."\n"
.'For more information, see [DescribeMetricRuleList](~~114941~~).', 'type' => 'string', 'required' => false, 'example' => 'SystemDefault_acs_ecs_dashboard_InternetOutRate_Percent', 'title' => ''],
],
[
'name' => 'AgentGroup',
'in' => 'query',
'schema' => ['description' => 'The group of detection points for the network probe task. \\`PC\\` indicates detection points on PCs. \\`MOBILE\\` indicates detection points on mobile devices. \\`FC\\` indicates detection points in a VPC. The default value is \\`PC\\`.', 'type' => 'string', 'required' => false, 'example' => 'PC', 'title' => ''],
],
[
'name' => 'CustomSchedule',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => ['description' => 'The custom detection schedule. Specify a time period and the days of the week for detection.', 'type' => 'string', 'example' => '{"start_hour":0,"end_hour":24, "days":[0], "time_zone":"Local"}', 'required' => false, 'title' => ''],
],
[
'name' => 'VpcConfig',
'in' => 'query',
'schema' => ['description' => 'The network information required to create a network probe task in a VPC. This must be a JSON object that contains the \\`vpcId\\`, \\`vswitchId\\`, \\`securityGroupId\\`, and \\`region\\` fields.', 'type' => 'string', 'required' => false, 'example' => '{"vpcId": "vpc-xxxxxx", "vswitchId": "vsw-xxxxxx", "securityGroupId": "sg-xxxxxx", "region": "cn-beijing"}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code of the operation.'."\n"
."\n"
.'> A value of \\`200\\` indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The message returned for the request.', 'type' => 'string', 'example' => 'Successful', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '68192f5d-0d45-4b98-9724-892813f86c71', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true: The request was successful.'."\n"
."\n"
.'- false: The request failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'Data' => [
'description' => 'The results of the monitoring task.',
'type' => 'object',
'properties' => [
'AttachAlertResult' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Contact' => [
'description' => 'The results of associating the alert rules.',
'type' => 'array',
'items' => [
'description' => 'The result for a single alert rule association.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code for the association operation.'."\n"
."\n"
.'> A value of \\`200\\` indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The message returned for the association operation.', 'type' => 'string', 'example' => 'successful', 'title' => ''],
'RequestId' => ['description' => 'The request ID for the association operation.', 'type' => 'string', 'example' => '5dd33455-4f65-4b0c-9200-33d66f3f340b', 'title' => ''],
'Success' => ['description' => 'Indicates whether the alert rule was successfully associated. Valid values:'."\n"
."\n"
.'- true: The association was successful.'."\n"
."\n"
.'- false: The association failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'RuleId' => ['description' => 'The ID of the alert rule.', 'type' => 'string', 'example' => 'SystemDefault_acs_ecs_dashboard_InternetOutRate_Percent', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'CreateResultList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'CreateResultList' => [
'description' => 'A list of results for each created task.'."\n"
."\n"
.'This is returned only if the task creation is successful.',
'type' => 'array',
'items' => [
'description' => 'The result for a single created task.'."\n"
."\n"
.'This is returned only if the task creation is successful.',
'type' => 'object',
'properties' => [
'TaskId' => ['description' => 'The ID of the created monitoring task.', 'type' => 'string', 'example' => '2c8dbdf9-a3ab-46a1-85a4-f094965e****', 'title' => ''],
'TaskName' => ['description' => 'The name of the created monitoring task.', 'type' => 'string', 'example' => 'HanZhou_ECS1', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => 'N/A.',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'IllegalAddress', 'errorMessage' => 'Illegal HTTP address', 'description' => ''],
['errorCode' => 'OperationError', 'errorMessage' => 'Operation failed', 'description' => ''],
['errorCode' => 'TaskNotExists', 'errorMessage' => 'Task does not exist', 'description' => ''],
['errorCode' => 'OperatorInvalid', 'errorMessage' => 'Operator invalid', 'description' => ''],
['errorCode' => 'NameRepeat', 'errorMessage' => 'Task name repeat', 'description' => ''],
['errorCode' => 'CreateAlarmError', 'errorMessage' => 'Create alarm error', 'description' => ''],
['errorCode' => 'NameNotExists', 'errorMessage' => 'Task name not exists', 'description' => ''],
['errorCode' => 'OperatorCityInvalid', 'errorMessage' => 'Invalid Isp.', 'description' => 'Invalid Isp'],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'Forbidden', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'RestrictedUser', 'errorMessage' => 'The user\'s operation is restricted, please register NAAM product code', 'description' => ''],
],
406 => [
['errorCode' => 'ExceedingQuota', 'errorMessage' => 'Exceeding quota limits.', 'description' => 'The number of tasks exceeds the limit'],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'CreateSiteMonitor',
'summary' => 'Creates a site monitoring task.',
'description' => 'This topic describes how to create a site monitoring task. The example creates a task named `HanZhou_ECS1` to monitor the URL `https://www.aliyun.com` over `HTTPS`.',
'requestParamsDescription' => 'The following tables describe the advanced parameters for the HTTP(S), PING, TCP, UDP, DNS, WEBSOCKET, SMTP, POP3, and FTP task types.'."\n"
."\n"
.'- HTTP(S)'."\n"
."\n"
.'| Parameter | Type | Description |'."\n"
.'| ---------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |'."\n"
.'| http_method | String | The HTTP or HTTPS request method. Valid values: GET, POST, and HEAD. Default: GET. |'."\n"
.'| header | String | The custom HTTP header. Separate multiple headers with line feeds (\\n).
Each header must be in `key:value` format and follow the HTTP protocol. |'."\n"
.'| cookie | String | The cookie, formatted as a standard HTTP request cookie. |'."\n"
.'| request_content | String | The request content, in JSON or form format. If you do not specify this parameter, the request body is empty. |'."\n"
.'| response_content | String | The expected response content. The system checks the first 64 bytes of the server\'s response. |'."\n"
.'| match_rule | String | 0: The probe is successful if the response does not contain the response_content value.
1: The probe is successful if the response contains the response_content value. |'."\n"
.'| username | String | The username for Basic authentication. If specified, a `BasicAuth` header is included in the HTTP request. |'."\n"
.'| password | String | The password for Basic authentication. |'."\n"
.'| time_out | int | The timeout period in milliseconds. Default: 5000. |'."\n"
.'| max_redirect | int | The maximum number of redirects. Default: 5 for ECS detection points and 2 for carrier detection points.
Set to 0 to disable redirects.
Valid values: 0 to 50. |'."\n"
."\n"
.'- PING'."\n"
."\n"
.'| Parameter | Type | Description |'."\n"
.'| ------------ | ---- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |'."\n"
.'| failure_rate | Text | The failure rate threshold. If the ping failure rate exceeds this value, the probe fails and returns error code 610 (PingAllFail) or 615 (PingPartialFail).
Default: 0.1. |'."\n"
.'| ping_num | int | The number of ping packets to send. Default: 10.
Valid values: 1 to 100. |'."\n"
."\n"
.'- DNS'."\n"
."\n"
.'| Parameter | Type | Description |'."\n"
.'| ------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |'."\n"
.'| dns_server | string | The address of the DNS server. This can be a domain name or an IP address. |'."\n"
.'| dns_type | string | The DNS query type. Valid values: A, NS, CNAME, MX, TXT, ANY, and AAAA. |'."\n"
.'| expect_value | string | A space-separated list of expected values. |'."\n"
.'| match_rule | string | The matching rule between the expected values and the DNS query results. The probe fails if this rule is not met.
\\`IN_DNS` or empty string: The expected values must be a subset of the DNS results.
\\`DNS_IN`: The DNS results must be a subset of the expected values.
\\`EQUAL`: The DNS results must be identical to the expected values.
\\`ANY`: The DNS results and the expected values must have at least one value in common. |'."\n"
."\n"
.'- FTP'."\n"
."\n"
.'| Parameter | Type | Description |'."\n"
.'| --------- | ------ | ---------------------------------------------------------------------- |'."\n"
.'| port | int | The FTP server port. Default: 21 for FTP and 990 for FTPS. |'."\n"
.'| username | string | The username for FTP login. If not specified, anonymous login is used. |'."\n"
.'| password | string | The password for FTP login. |'."\n"
."\n"
.'- POP3 or SMTP'."\n"
."\n"
.'| Parameter | Type | Description |'."\n"
.'| --------- | ------ | ----------------------------------------------------------------------------- |'."\n"
.'| port | int | The server port. Default: 110 for POP3, 995 for POP3S, and 25 for SMTP. |'."\n"
.'| username | string | The username for POP3 or SMTP login. Both username and password are required. |'."\n"
.'| password | string | The password for POP3 or SMTP login. Both username and password are required. |'."\n"
."\n"
.'- TCP or UDP'."\n"
."\n"
.'| Parameter | Type | Description |'."\n"
.'| ---------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |'."\n"
.'| port | int | The TCP or UDP server port. |'."\n"
.'| request_content | string | The request content. If `request_format` is `hex`, this value must be in compact hexadecimal format. |'."\n"
.'| request_format | string | The format of the request content. If this is not `hex`, the `request_content` is sent as a regular string. |'."\n"
.'| response_content | string | The expected response content. The probe fails if the server response does not contain this value.
If `request_format` is `hex`, this value must be in compact hexadecimal format.
Otherwise, it is treated as a regular string. |'."\n"
."\n"
.'- WEBSOCKET'."\n"
."\n"
.'| Parameter | Type | Description |'."\n"
.'| --------------- | ------- | ----------------------------------------------------------------------------------------- |'."\n"
.'| request_content | string | The message content to send. |'."\n"
.'| empty_message | boolean | Specifies whether an empty message or no message from the server is considered a success. |',
'changeSet' => [
['createdAt' => '2025-09-11T05:58:37.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2025-02-13T09:00:16.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2024-09-09T12:32:10.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2023-08-04T02:58:38.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2023-06-19T07:10:45.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2022-12-27T07:31:03.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2022-06-22T09:29:55.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2021-11-02T03:20:17.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateSiteMonitor'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:CreateSiteMonitor',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Successful\\",\\n \\"RequestId\\": \\"68192f5d-0d45-4b98-9724-892813f86c71\\",\\n \\"Success\\": \\"true\\",\\n \\"Data\\": {\\n \\"AttachAlertResult\\": {\\n \\"Contact\\": [\\n {\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"5dd33455-4f65-4b0c-9200-33d66f3f340b\\",\\n \\"Success\\": \\"true\\",\\n \\"RuleId\\": \\"SystemDefault_acs_ecs_dashboard_InternetOutRate_Percent\\"\\n }\\n ]\\n }\\n },\\n \\"CreateResultList\\": {\\n \\"CreateResultList\\": [\\n {\\n \\"TaskId\\": \\"2c8dbdf9-a3ab-46a1-85a4-f094965e****\\",\\n \\"TaskName\\": \\"HanZhou_ECS1\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'extraInfo' => "\n"
."\n\n",
],
'Cursor' => [
'summary' => 'Calls the Cursor operation to define the scope of monitoring data to be exported, and returns the Cursor value used for the initial call to the BatchExport operation.',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'paid', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Namespace',
'in' => 'formData',
'schema' => ['description' => 'The data namespace of the cloud service.'."\n"
."\n"
.'For information about how to obtain the data namespace of a cloud service, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => true, 'example' => 'acs_ecs_dashboard', 'title' => ''],
],
[
'name' => 'Metric',
'in' => 'formData',
'schema' => ['description' => 'The metric name of the cloud service.'."\n"
."\n"
.'For information about how to obtain the metric name of a cloud service, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => true, 'example' => 'cpu_idle', 'title' => ''],
],
[
'name' => 'Period',
'in' => 'formData',
'schema' => ['description' => 'The statistical period of the metric.'."\n"
."\n"
.'Unit: seconds.'."\n"
."\n"
.'> The statistical period of a metric is typically 60 seconds. For special values, see the `Period` parameter in [Appendix 1: Metrics](~~163515~~).'."\n"
."\n", 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '60', 'title' => ''],
],
[
'name' => 'StartTime',
'in' => 'formData',
'schema' => ['description' => 'The beginning of the time range to query.'."\n"
."\n"
.'The value is in the YYYY-MM-DDThh:mm:ssZ format. For example, 2023-01-01T00:00:00Z indicates 00:00:00 on January 1, 2023 (GMT).'."\n"
."\n"
.'> The time to live (TTL) of monitoring data varies based on the statistical granularity in CloudMonitor. Configure a proper time range based on the TTL of the data that corresponds to the `Period` parameter.', 'type' => 'string', 'required' => true, 'example' => '1641627000000', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'formData',
'schema' => ['description' => 'The end of the time range to query.'."\n"
."\n"
.'Unit: milliseconds.'."\n"
."\n"
.'> - Unix timestamp: the number of milliseconds that have elapsed since 00:00:00 on January 1, 1970. The value is in the YYYY-MM-DDThh:mm:ssZ format. For example, 2023-01-01T00:00:00Z indicates 00:00:00 on January 1, 2023 (GMT).'."\n"
.'- If you do not specify an end time, the end time is unlimited. You do not need to specify this parameter when you export data in real time.'."\n"
.'- The time to live (TTL) of monitoring data varies based on the statistical granularity in CloudMonitor. Configure a proper time range based on the TTL of the data that corresponds to the `Period` parameter.', 'type' => 'string', 'required' => false, 'example' => '1641645000000', 'title' => ''],
],
[
'name' => 'Matchers',
'in' => 'formData',
'style' => 'json',
'schema' => [
'description' => 'The dimension information of the metric.',
'type' => 'array',
'items' => ['description' => 'The dimension information of the metric.', '$ref' => '#/components/schemas/Matcher', 'required' => false, 'title' => '', 'example' => ''],
'required' => false,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'Cursor' => ['description' => 'The Cursor that is used as an input parameter to export data in the [BatchExport](~~2329847~~) operation.'."\n"
."\n", 'type' => 'string', 'example' => 'v2.5eyJiYXRjaGVzIjoxLCJidWNrZXRCeXRlcyI6IndBPT0iLCJidWNrZXRzIjo0LCJjdXJyZW50QnVja2V0IjotNjQsImN1cnJlbnRUYXJnZXRUaW1lU2xvdCI6MTY3ODc1MjAwMCwiZW5kVGltZSI6MTY3ODc4MjQxOTAwMCwiZXhwb3J0RW5kVGltZSI6MTY3ODc4MjQxOTAwMCwiZXhwb3J0U3RhcnRUaW1lIjoxNjc4NzgxODE5MDAwLCJleHByZXNzUmFuZ2UiOmZhbHNlLCJoYXNOZXh0Ijp0cnVlLCJpbmRleCI6MCwibGF0ZXN0TG9nVGltZSI6MCwibWF0Y2hlcnMiOnsiY2hhaW4iOlt7ImxhYmVsIjoidXNlcklkIiwib3BlcmF0b3IiOiJFUVVBTFMiLCJ2YWx1ZSI6IjEyNzA2NzY2Nzk1NDY3MDQifV0sImxvY2tlZCI6dHJ1ZX0sIm1ldHJpYyI6IlNwbGl0cndQcm94eU1heFJlc3BvbnNlU2l6ZSIsIm1ldHJpY1R5cGUiOiJNRVRSSUMiLCJuYW1lc3BhY2UiOiJhY3Nfa3ZzdG9yZV9leCIsIm5leHRQa0FkYXB0ZXIiOnsiZGltIjoiVjowXG5EOmB1c2VySWRgPTEyNzA2NzY2Nzk1NDY3MDQsYGluc3RhbmNlSWRgPXItcmo5ZjlzMTlsc3V1MXd1bnVyLGBub2RlSWRgPXItcmo5ZjlzMTlsc3V1MXd1bnVyLXByb3h5LTIsXG4iLCJtZXRhIjoiXG5WOjBcbk06YWNzX2t2c3RvcmVfZXgvU3BsaXRyd1Byb3h5TWF4UmVzcG9uc2VTaXplXG5XOjYwXG5COjRcbkk6LTFcblQ6MFxuQzpgQXZlcmFnZWAsYE1heGltdW1gLGBfX2NvdW50X19gLGBfX3RzX19gXG4iLCJyZCI6InN1YkFMU0RwWXY2K0t6aENQQUFBWkErNUFKMEpjbGErRGd2V0hFNWxDSHMvbGtqR2FXYTFJTkVwdFE9PSIsInRhZyI6IiJ9LCJvZmZzZXQiOjAsIm9mZnNldERpZ2l0Ijo0NTU0NTczNDQyMTc4NDIxMjIsInN0YXJ0VGltZSI6MTY3ODc4MTgxOTAwMCwic3RlcCI6LTEsInRhZ01hdGNoZXJzIjp7ImNoYWluIjpbXSwibG9ja2VkIjp0cnVlfSwidGFyZ2V0VGltZVNsb3RzIjpbMTY3ODY2NTYwMCwxNjc4NzUyMDAwXSwidXVpZCI6ImQwMmFhZmY1LWU3ZGQtNDUyYy0***********', 'title' => ''],
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The status code 200 indicates that the call is successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Success' => ['description' => 'Indicates whether the call is successful. Valid values:'."\n"
."\n"
.'- true: The call is successful.'."\n"
."\n"
.'- false: The call fails.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '915C2D7A-E6A4-17C3-8E13-4DBDD61E7919', 'title' => ''],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Defines the scope of monitoring data to be exported',
'description' => '### Prerequisites'."\n"
.'Make sure that Enterprise CloudMonitor is activated. For more information, see [Activate Enterprise CloudMonitor](~~250773~~).'."\n"
."\n"
.'### Background information'."\n"
.'First, call this operation to obtain the initial Cursor. Then, call the [BatchExport](~~2329847~~) operation to export monitoring data.'."\n"
.'### Usage notes'."\n"
.'This topic provides an example to describe how to define the scope to export data of the `cpu_idle` metric of the `acs_ecs_dashboard` cloud service every 60 seconds in the time range from `1641627000000` (2022-01-08 15:30:00) to `1641645000000` (2022-01-08 20:30:00). The returned result shows the `Cursor` information.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'Cursor'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'cms:Cursor',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"success\\",\\n \\"Cursor\\": \\"v2.5eyJiYXRjaGVzIjoxLCJidWNrZXRCeXRlcyI6IndBPT0iLCJidWNrZXRzIjo0LCJjdXJyZW50QnVja2V0IjotNjQsImN1cnJlbnRUYXJnZXRUaW1lU2xvdCI6MTY3ODc1MjAwMCwiZW5kVGltZSI6MTY3ODc4MjQxOTAwMCwiZXhwb3J0RW5kVGltZSI6MTY3ODc4MjQxOTAwMCwiZXhwb3J0U3RhcnRUaW1lIjoxNjc4NzgxODE5MDAwLCJleHByZXNzUmFuZ2UiOmZhbHNlLCJoYXNOZXh0Ijp0cnVlLCJpbmRleCI6MCwibGF0ZXN0TG9nVGltZSI6MCwibWF0Y2hlcnMiOnsiY2hhaW4iOlt7ImxhYmVsIjoidXNlcklkIiwib3BlcmF0b3IiOiJFUVVBTFMiLCJ2YWx1ZSI6IjEyNzA2NzY2Nzk1NDY3MDQifV0sImxvY2tlZCI6dHJ1ZX0sIm1ldHJpYyI6IlNwbGl0cndQcm94eU1heFJlc3BvbnNlU2l6ZSIsIm1ldHJpY1R5cGUiOiJNRVRSSUMiLCJuYW1lc3BhY2UiOiJhY3Nfa3ZzdG9yZV9leCIsIm5leHRQa0FkYXB0ZXIiOnsiZGltIjoiVjowXG5EOmB1c2VySWRgPTEyNzA2NzY2Nzk1NDY3MDQsYGluc3RhbmNlSWRgPXItcmo5ZjlzMTlsc3V1MXd1bnVyLGBub2RlSWRgPXItcmo5ZjlzMTlsc3V1MXd1bnVyLXByb3h5LTIsXG4iLCJtZXRhIjoiXG5WOjBcbk06YWNzX2t2c3RvcmVfZXgvU3BsaXRyd1Byb3h5TWF4UmVzcG9uc2VTaXplXG5XOjYwXG5COjRcbkk6LTFcblQ6MFxuQzpgQXZlcmFnZWAsYE1heGltdW1gLGBfX2NvdW50X19gLGBfX3RzX19gXG4iLCJyZCI6InN1YkFMU0RwWXY2K0t6aENQQUFBWkErNUFKMEpjbGErRGd2V0hFNWxDSHMvbGtqR2FXYTFJTkVwdFE9PSIsInRhZyI6IiJ9LCJvZmZzZXQiOjAsIm9mZnNldERpZ2l0Ijo0NTU0NTczNDQyMTc4NDIxMjIsInN0YXJ0VGltZSI6MTY3ODc4MTgxOTAwMCwic3RlcCI6LTEsInRhZ01hdGNoZXJzIjp7ImNoYWluIjpbXSwibG9ja2VkIjp0cnVlfSwidGFyZ2V0VGltZVNsb3RzIjpbMTY3ODY2NTYwMCwxNjc4NzUyMDAwXSwidXVpZCI6ImQwMmFhZmY1LWU3ZGQtNDUyYy0***********\\",\\n \\"Code\\": 200,\\n \\"Success\\": true,\\n \\"RequestId\\": \\"915C2D7A-E6A4-17C3-8E13-4DBDD61E7919\\"\\n}","type":"json"}]',
],
'DeleteContact' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'ContactName',
'in' => 'query',
'schema' => ['description' => 'The name of the alert contact.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'John Doe', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '50D4CFE1-01E5-4543-939C-18BC01E3EC1C', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
.'- true: Successful.'."\n"
.'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameterValue', 'errorMessage' => 'Illegal parameters.', 'description' => 'Illegal parameters.'],
],
403 => [
['errorCode' => 'InvalidAuthorization', 'errorMessage' => 'Permission denied', 'description' => 'Permission denied.'],
],
[
['errorCode' => 'ContactNotExists', 'errorMessage' => 'ContactName does not exist.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Delete an alert contact',
'summary' => 'Deletes an alert contact.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-02-12T07:07:35.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteContact'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteContact',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"50D4CFE1-01E5-4543-939C-18BC01E3EC1C\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'DeleteContactGroup' => [
'summary' => 'Calls the DeleteContactGroup operation to delete an alert contact group.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'ContactGroupName',
'in' => 'query',
'schema' => ['description' => 'The name of the alert contact group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'My alert group', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'F722BE59-2400-4A64-9C1A-AD886AED9A69', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: Successful.'."\n"
.'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameterValue', 'errorMessage' => 'Illegal parameters.', 'description' => 'Illegal parameters.'],
],
403 => [
['errorCode' => 'InvalidAuthorization', 'errorMessage' => 'Permission denied', 'description' => 'Permission denied.'],
],
[
['errorCode' => 'ContactNotExists', 'errorMessage' => 'ContactGroupName Not Exists', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Delete an alert contact group',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteContactGroup'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteContactGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"F722BE59-2400-4A64-9C1A-AD886AED9A69\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'DeleteCustomMetric' => [
'summary' => 'Deletes the reported monitoring data of a metric.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => true, 'example' => '3607****', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The name of the metric.', 'type' => 'string', 'required' => true, 'example' => 'AdvanceCredit', 'title' => ''],
],
[
'name' => 'Md5',
'in' => 'query',
'schema' => ['description' => 'The MD5 value of the HTTP request body. The MD5 value is a 128-bit hash value used to verify the uniqueness of the reported monitoring data.'."\n"
."\n"
.'> `Md5` is returned when you query the reported monitoring data of a metric.', 'type' => 'string', 'required' => false, 'example' => '38796C8CFFEB8F89BB2A626C7BD7****', 'title' => ''],
],
[
'name' => 'UUID',
'in' => 'query',
'schema' => ['description' => 'The ID of the request for reporting monitoring data.'."\n"
."\n"
.'> `UUID` is returned when you query the reported monitoring data of a metric. We recommend that you specify the `Md5` parameter.', 'type' => 'string', 'required' => false, 'example' => '5497633c-66c5-4eae-abaa-89db5adb****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The status code 200 indicates that the call is successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '05B36C2C-5F6E-48D5-8B41-CE36DD7EE8E0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DeleteCustomMetric',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-04-23T06:11:10.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteCustomMetric'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteCustomMetric',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"05B36C2C-5F6E-48D5-8B41-CE36DD7EE8E0\\"\\n}","type":"json"}]',
],
'DeleteDynamicTagGroup' => [
'summary' => 'Deletes a tag rule.',
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'high', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'DynamicTagRuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the tag rule.'."\n"
."\n"
.'For information about how to obtain the ID of a tag rule, see [DescribeDynamicTagRuleList](~~150126~~).', 'type' => 'string', 'required' => true, 'example' => '6b882d9a-5117-42e2-9d0c-4749a0c6****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '08AAE67E-77B5-485B-9C79-D7C8C059150A', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameterValue', 'errorMessage' => 'Illegal parameters.', 'description' => 'Illegal parameters.'],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DeleteDynamicTagGroup',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDynamicTagGroup'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteDynamicTagGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"08AAE67E-77B5-485B-9C79-D7C8C059150A\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'DeleteEventRuleTargets' => [
'summary' => 'Deletes the push channels of an event-triggered alert rule.',
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'RuleName',
'in' => 'query',
'schema' => ['description' => 'The name of the event-triggered alert rule.'."\n"
."\n"
.'For information about how to obtain the name of an event-triggered alert rule, see [DescribeEventRuleList](~~114996~~).', 'type' => 'string', 'required' => true, 'example' => 'testRule', 'title' => ''],
],
[
'name' => 'Ids',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The IDs of event-triggered alert rules.',
'type' => 'array',
'items' => ['description' => 'The ID of the event-triggered alert rule.', 'type' => 'string', 'required' => false, 'example' => 'testRuleId', 'title' => ''],
'required' => true,
'maxItems' => 20,
'example' => '1',
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The response code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'successfull', 'title' => ''],
'RequestId' => ['description' => 'The request ID. You can use the request ID to query logs and troubleshoot issues.', 'type' => 'string', 'example' => '142989D9-CC52-54D0-928D-2C9B1D9F051C', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- `true`'."\n"
."\n"
.'- `false`', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameterValue', 'errorMessage' => 'Illegal parameters.', 'description' => 'Illegal parameters.'],
],
403 => [
['errorCode' => 'InvalidAuthorization', 'errorMessage' => 'Permission denied', 'description' => 'Permission denied.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DeleteEventRuleTargets',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteEventRuleTargets'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteEventRuleTargets',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successfull\\",\\n \\"RequestId\\": \\"142989D9-CC52-54D0-928D-2C9B1D9F051C\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'DeleteEventRules' => [
'summary' => 'Deletes one or more event-triggered alert rules.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'RuleNames',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The names of the event-triggered alert rules to delete.',
'type' => 'array',
'items' => ['description' => 'The name of an event-triggered alert rule to delete.', 'type' => 'string', 'required' => false, 'example' => 'lq-test', 'title' => ''],
'required' => true,
'example' => 'rule1',
'maxItems' => 20,
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code. A value of 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request. You can use this ID to query logs.', 'type' => 'string', 'example' => '45231A42-5A09-5AFF-953C-A5B3D4ED8925', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameterValue', 'errorMessage' => 'Illegal parameters.', 'description' => 'Illegal parameters.'],
],
403 => [
['errorCode' => 'InvalidAuthorization', 'errorMessage' => 'Permission denied', 'description' => 'Permission denied.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DeleteEventRules',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteEventRules'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteEventRules',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"45231A42-5A09-5AFF-953C-A5B3D4ED8925\\",\\n \\"Success\\": true\\n}","type":"json"}]',
'extraInfo' => ' ',
],
'DeleteExporterOutput' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'DestName',
'in' => 'query',
'schema' => ['description' => 'The name of the destination configuration.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'testName', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A status code of 200 indicates success. Other values indicate failure.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'Success', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '2DECF751-7AFA-43BB-8C63-2B6B07E51AE1', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values: '."\n"
.'- `true`: success'."\n"
.'- `false`: failure', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Delete a monitoring data export configuration',
'summary' => 'Calls the DeleteExporterOutput operation to delete a monitoring data export configuration.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-09-21T02:01:45.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteExporterOutput'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteExporterOutput',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Success\\",\\n \\"RequestId\\": \\"2DECF751-7AFA-43BB-8C63-2B6B07E51AE1\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'DeleteExporterRule' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'RuleName',
'in' => 'query',
'schema' => ['description' => 'The name of the export rules.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'myRuleName', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A value of 200 indicates success. Any other value indicates failure.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '6A5F022D-AC7C-460E-94AE-B9E75083D023', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values: '."\n"
.'- `true`: Successful.'."\n"
.'- `false`: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Delete export rules',
'summary' => 'Invokes the DeleteExporterRule operation to delete export rules.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-08-30T08:14:43.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-01-10T10:46:10.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteExporterRule'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteExporterRule',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"6A5F022D-AC7C-460E-94AE-B9E75083D023\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'DeleteGroupMonitoringAgentProcess' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => true, 'example' => '123456', 'title' => ''],
],
[
'name' => 'Id',
'in' => 'query',
'schema' => ['description' => 'The ID of the group process.', 'type' => 'string', 'required' => true, 'example' => '48F83746-C817-478C-9B06-7158F56B****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'>The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3F6150F9-45C7-43F9-9578-A58B2E726C90', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Delete a group process monitoring task',
'summary' => 'Deletes a group process monitoring task by calling the DeleteGroupMonitoringAgentProcess operation.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteGroupMonitoringAgentProcess'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteGroupMonitoringAgentProcess',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"3F6150F9-45C7-43F9-9578-A58B2E726C90\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'DeleteHostAvailability' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Id',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The IDs of the tasks.',
'type' => 'array',
'items' => ['description' => 'The ID of the task.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '12456', 'title' => ''],
'required' => true,
'example' => '12456',
'maxItems' => 20,
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A status code of 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '57C782E6-B235-4842-AD2B-DB94961761EB', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. \\`true\\`: The operation was successful. \\`false\\`: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DeleteHostAvailability',
'summary' => 'Deletes one or more availability monitoring jobs.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteHostAvailability'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteHostAvailability',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'HostAvailability', 'arn' => 'acs:cms::{#accountId}:group/{#groupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"57C782E6-B235-4842-AD2B-DB94961761EB\\",\\n \\"Success\\": true\\n}","type":"json"}]',
'extraInfo' => ' ',
],
'DeleteHybridMonitorNamespace' => [
'summary' => 'Deletes a namespace.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The name of the namespace.'."\n"
."\n"
.'For information about how to obtain the name of a namespace, see [DescribeHybridMonitorNamespaceList](~~428880~~).', 'type' => 'string', 'required' => true, 'example' => 'aliyun', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'Success', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Namespace.NotFound', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3843D23A-FB9E-5DC8-BCCC-458768B79296', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'string', 'example' => 'true', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'DeleteHybridMonitorNamespace',
'description' => '> If a metric import task is created for metrics in a namespace, you cannot delete the namespace unless you delete the task first.'."\n"
."\n"
.'This topic provides an example on how to delete a namespace named `aliyun`. The response shows that the namespace is deleted.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [
['createdAt' => '2022-03-29T07:11:29.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteHybridMonitorNamespace'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteCustomNamespace',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"Namespace.NotFound\\",\\n \\"RequestId\\": \\"3843D23A-FB9E-5DC8-BCCC-458768B79296\\",\\n \\"Success\\": \\"true\\"\\n}","type":"json"}]',
],
'DeleteHybridMonitorSLSGroup' => [
'summary' => 'Deletes a Logstore group.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'SLSGroupName',
'in' => 'query',
'schema' => ['description' => 'The name of the Logstore group.'."\n"
."\n"
.'For information about how to obtain the name of a Logstore group, see [DescribeHybridMonitorSLSGroup](~~429526~~).', 'type' => 'string', 'required' => true, 'example' => 'Logstore_test', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'RESOURCE_NOT_FOUND', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '85198BFF-1DE6-556E-B6A4-C77C51C62B8D', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'string', 'example' => 'true', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
412 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'DeleteHybridMonitorSLSGroup',
'description' => 'This topic provides an example on how to delete a Logstore group named `Logstore_test`. The response shows that the Logstore group is deleted.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteHybridMonitorSLSGroup'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteHybridMonitorSLSGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"RESOURCE_NOT_FOUND\\",\\n \\"RequestId\\": \\"85198BFF-1DE6-556E-B6A4-C77C51C62B8D\\",\\n \\"Success\\": \\"true\\"\\n}","type":"json"}]',
],
'DeleteHybridMonitorTask' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'TaskId',
'in' => 'query',
'schema' => ['description' => 'The ID of the metric import task.'."\n"
."\n"
.'For information about how to obtain the ID of a metric import task, see [DescribeHybridMonitorTaskList](~~428624~~).'."\n"
."\n"
.'> This parameter is required only if you call this operation to delete metrics for the logs that are imported from Log Service. In this case, the `TaskType` parameter is set to `aliyun_sls`.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '36****', 'title' => ''],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The name of the namespace.'."\n"
."\n"
.'The name can contain uppercase letters, lowercase letters, digits, and hyphens (-).'."\n"
."\n"
.'> This parameter is required only if you call this operation to delete metric import tasks for Alibaba Cloud services. In this case, the `TaskType` parameter is set to `aliyun_fc`.', 'type' => 'string', 'required' => false, 'example' => 'aliyun', 'title' => ''],
],
[
'name' => 'TargetUserId',
'in' => 'query',
'schema' => ['description' => 'The ID of the member account.'."\n"
."\n"
.'> This parameter is required only if you use a management account to call this operation to query metric import tasks that belong to a member in a resource directory. In this case, the `TaskType` parameter is set to `aliyun_fc`.', 'type' => 'string', 'required' => false, 'example' => '120886317861****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'null', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D6B8103F-7BAD-5FEB-945F-71D991AB8834', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'string', 'example' => 'true', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'DeleteHybridMonitorTask',
'summary' => 'Deletes a metric import task for Alibaba Cloud services or a metric for the logs that are imported from Log Service.',
'description' => 'This topic provides an example on how to delete a metric import task whose ID is `36****`. The returned result indicates that the metric import task is deleted.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [
['createdAt' => '2022-08-09T02:57:10.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteHybridMonitorTask'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteHybridMonitorTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"null\\",\\n \\"RequestId\\": \\"D6B8103F-7BAD-5FEB-945F-71D991AB8834\\",\\n \\"Success\\": \\"true\\"\\n}","type":"json"}]',
],
'DeleteLogMonitor' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'delete', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'LogId',
'in' => 'query',
'schema' => ['description' => 'The ID of the log monitoring metric.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '12345', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'metric not exist.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '42BFFC2B-5E4D-4FDE-BCC6-E91EE33C5967', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DeleteLogMonitor',
'summary' => 'Deletes a log monitoring metric.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteLogMonitor'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteLogMonitor',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"metric not exist.\\",\\n \\"RequestId\\": \\"42BFFC2B-5E4D-4FDE-BCC6-E91EE33C5967\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'DeleteMetricRuleBlackList' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'delete'],
'parameters' => [
[
'name' => 'Id',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert blacklist policy. Separate multiple IDs with commas (,). You can specify up to 50 IDs.'."\n"
."\n"
.'For information about how to obtain the ID of an alert blacklist policy, see [DescribeMetricRuleBlackList](~~457257~~).'."\n"
."\n"
.'> This parameter also supports JSON Array format, for example: `["a9ad2ac2-3ed9-11ed-b878-0242ac12****","5cb8a9a4-198f-4651-a353-f8b28788****"]`.', 'type' => 'string', 'required' => true, 'example' => 'a9ad2ac2-3ed9-11ed-b878-0242ac12****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'>200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B88D233C-A004-3AB8-AD9C-30CBDD4440C5', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Count' => ['description' => 'The number of alert blacklist policies that were successfully deleted.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
409 => [
['errorCode' => 'ResourceConflict', 'errorMessage' => 'Concurrent modification of resources.', 'description' => ''],
['errorCode' => 'ResourceExist', 'errorMessage' => 'Resources already exist.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Delete alert blacklist policies',
'summary' => 'Calls the DeleteMetricRuleBlackList operation to delete alert blacklist policies.',
'requestParamsDescription' => 'For information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMetricRuleBlackList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteMetricRuleBlackList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"B88D233C-A004-3AB8-AD9C-30CBDD4440C5\\",\\n \\"Success\\": true,\\n \\"Count\\": 1\\n}","type":"json"}]',
],
'DeleteMetricRuleResources' => [
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert rule.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'rr-bp18017n6iolv****', 'title' => ''],
],
[
'name' => 'Resources',
'in' => 'query',
'schema' => ['description' => 'The resources that are associated with the alert rule.', 'type' => 'string', 'required' => true, 'example' => '[{"instanceId":"i-uf6hm9lnlzsarrc7****"}]', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The responses code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The alert does not exist.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D8A35882-90C6-4F03-BBEB-153C180398EA', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DeleteMetricRuleResources',
'summary' => 'Disassociates resources from an alert rule.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMetricRuleResources'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteMetricRuleResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The alert does not exist.\\",\\n \\"RequestId\\": \\"D8A35882-90C6-4F03-BBEB-153C180398EA\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'DeleteMetricRuleTargets' => [
'summary' => 'Delete the push channels of an alert rule.',
'methods' => ['post', 'get', 'delete', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert rule.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ruleId-xxxxxx', 'title' => ''],
],
[
'name' => 'TargetIds',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The resource IDs.',
'type' => 'array',
'items' => ['description' => 'The resource ID. Valid values of N: 1 to 5.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
'required' => true,
'example' => '12345',
'maxItems' => 5,
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'\\*\\*'."\n"
."\n"
.'**Description** The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '786E92D2-AC66-4250-B76F-F1E2FCDDBA1C', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'FailIds' => [
'description' => 'The IDs of the resources that failed to be deleted.',
'type' => 'object',
'properties' => [
'TargetIds' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'TargetId' => [
'description' => 'The IDs of the resources that failed to be deleted.',
'type' => 'array',
'items' => ['description' => 'The ID of the resource that failed to be deleted.', 'type' => 'string', 'example' => '1', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed because of an unknown error, exception or failure.', 'description' => ''],
],
],
'title' => 'DeleteMetricRuleTargets',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMetricRuleTargets'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteMetricRuleTargets',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"786E92D2-AC66-4250-B76F-F1E2FCDDBA1C\\",\\n \\"Success\\": true,\\n \\"FailIds\\": {\\n \\"TargetIds\\": {\\n \\"TargetId\\": [\\n \\"1\\"\\n ]\\n }\\n }\\n}","type":"json"}]',
],
'DeleteMetricRuleTemplate' => [
'summary' => 'Deletes an alert rule template.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'TemplateId',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert rule template.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '123****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The value 200 indicates success.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '7B63F8CF-D48D-4608-A402-04FB5B2B4B6A', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Resource' => [
'description' => 'The template information.',
'type' => 'object',
'properties' => [
'TemplateId' => ['description' => 'The template ID.', 'type' => 'string', 'example' => '123****', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Delete an alert rule template',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMetricRuleTemplate'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteMetricRuleTemplate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"7B63F8CF-D48D-4608-A402-04FB5B2B4B6A\\",\\n \\"Success\\": true,\\n \\"Resource\\": {\\n \\"TemplateId\\": \\"123****\\"\\n }\\n}","type":"json"}]',
],
'DeleteMetricRules' => [
'summary' => 'The DeleteMetricRules operation deletes one or more alert rules.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Id',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The IDs of the alert rules to delete.',
'type' => 'array',
'items' => ['description' => 'The ID of the alert rule to delete.', 'type' => 'string', 'required' => false, 'example' => 'c3b2804a297444d0aa7bfd4fb0e4a01b', 'title' => ''],
'required' => true,
'example' => 'ab05733c97b7ce239fb1b53393dc1697c7e12****',
'maxItems' => 100,
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code. A value of 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request. Alibaba Cloud generates a unique ID for each request. Use this ID to troubleshoot issues.', 'type' => 'string', 'example' => '09B3A484-1A2B-5743-BB6B-D796416F2677', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
429 => [
['errorCode' => 'ThrottlingException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternetServerError', 'errorMessage' => 'InternetServerError', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DeleteMetricRules',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMetricRules'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteMetricRules',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"09B3A484-1A2B-5743-BB6B-D796416F2677\\",\\n \\"Success\\": true\\n}","type":"json"}]',
'extraInfo' => ' ',
],
'DeleteMonitorGroup' => [
'summary' => 'Deletes an application group.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'high', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123456', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The status code 200 indicates that the call was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'CA35B3AE-4FFD-4A33-AE67-67EF68711EFA', 'title' => ''],
'Success' => ['description' => 'Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Group' => [
'description' => 'The deleted application group.',
'type' => 'object',
'properties' => [
'GroupName' => ['description' => 'The name of the application group.', 'type' => 'string', 'example' => 'ECS_test', 'title' => ''],
'ContactGroups' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ContactGroup' => [
'description' => 'The alert groups that receive alert notifications for the application group.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The name of the alert group.', 'type' => 'string', 'example' => 'ECS_Group', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
['errorCode' => 'InvalidClientTokenId', 'errorMessage' => 'The X.509 certificate or cms access key ID provided does not exist in our records.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => 'ResourceConflict', 'errorMessage' => 'Concurrent modification of resources.', 'description' => ''],
],
429 => [
['errorCode' => 'Throttli∂ngException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'DeleteMonitorGroup',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMonitorGroup'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteMonitorGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"CA35B3AE-4FFD-4A33-AE67-67EF68711EFA\\",\\n \\"Success\\": true,\\n \\"Group\\": {\\n \\"GroupName\\": \\"ECS_test\\",\\n \\"ContactGroups\\": {\\n \\"ContactGroup\\": [\\n {\\n \\"Name\\": \\"ECS_Group\\"\\n }\\n ]\\n }\\n }\\n}","type":"json"}]',
],
'DeleteMonitorGroupDynamicRule' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'delete', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123456', 'title' => ''],
],
[
'name' => 'Category',
'in' => 'query',
'schema' => ['description' => 'The service to which the rule applies. Valid values: ecs, rds, and slb.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ecs', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '56B4516A-EB44-4C66-8854-0393B35F636B', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values: true and false.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'AccessForbidden', 'errorMessage' => 'The X.509 certificate or cms access key ID provided does not exist in our records.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'Throttli∂ngException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'DeleteMonitorGroupDynamicRule',
'summary' => 'Deletes a rule that is used to dynamically add the instances of a service to an application group.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMonitorGroupDynamicRule'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteMonitorGroupDynamicRule',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"56B4516A-EB44-4C66-8854-0393B35F636B\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'DeleteMonitorGroupInstances' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123456', 'title' => ''],
],
[
'name' => 'InstanceIdList',
'in' => 'query',
'schema' => ['description' => 'The instances to be removed from the application group. Separate multiple instances with commas (,). You can remove a maximum of 20 instances from an application group at a time.', 'type' => 'string', 'required' => true, 'example' => 'i-a2d5q7pm3f912****,i-a2d5q7pm3f222****', 'title' => ''],
],
[
'name' => 'Category',
'in' => 'query',
'schema' => ['description' => 'The abbreviation of the cloud service name.'."\n"
."\n"
.'> For more information about how to obtain the abbreviation of a cloud service name, see `metricCategory` in the response parameter `Labels` of the [DescribeProjectMeta](~~114916~~) operation.', 'type' => 'string', 'required' => true, 'example' => 'ecs', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '5351B0F2-26A9-4BC9-87FF-1B74034D12C3', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DeleteMonitorGroupInstances',
'summary' => 'Removes instances from an application group.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMonitorGroupInstances'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteMonitorGroupInstances',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'MonitorGroupInstances', 'arn' => 'acs:cms::{#accountId}:group/{#groupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"5351B0F2-26A9-4BC9-87FF-1B74034D12C3\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'DeleteMonitorGroupNotifyPolicy' => [
'summary' => 'Deletes a policy that is used to pause alert notifications for an application group.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'PolicyType',
'in' => 'query',
'schema' => [
'description' => 'The type of the policy.'."\n"
."\n"
.'Valid value: PauseNotify.',
'type' => 'string',
'required' => true,
'enum' => ['PauseNotify'],
'example' => 'PauseNotify',
'title' => '',
],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => false, 'example' => '6780****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B7AF834D-D38B-4A46-920B-FE974EB7E135', 'title' => ''],
'Result' => ['description' => 'The number of affected rows.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'string', 'example' => 'true', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error. ', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'DeleteMonitorGroupNotifyPolicy',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMonitorGroupNotifyPolicy'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteMonitorGroupNotifyPolicy',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"B7AF834D-D38B-4A46-920B-FE974EB7E135\\",\\n \\"Result\\": 1,\\n \\"Success\\": \\"true\\"\\n}","type":"json"}]',
],
'DeleteMonitoringAgentProcess' => [
'summary' => 'Calls the DeleteMonitoringAgentProcess operation to delete the specified process monitoring from a specified host.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'high', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'i-KpVny6l****', 'title' => ''],
],
[
'name' => 'ProcessName',
'in' => 'query',
'schema' => ['description' => 'The process name.'."\n"
."\n"
.'> You must specify either ProcessId or ProcessName.', 'type' => 'string', 'required' => false, 'example' => 'http', 'title' => ''],
],
[
'name' => 'ProcessId',
'in' => 'query',
'schema' => ['description' => 'The process ID.'."\n"
."\n"
.'> You must specify either ProcessId or ProcessName.', 'type' => 'string', 'required' => false, 'example' => '123****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '971CC023-5A96-452A-BB7C-2483F948BCFD', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: Successful.'."\n"
.'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Delete process monitoring from a specified host',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMonitoringAgentProcess'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteMonitoringAgentProcess',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"971CC023-5A96-452A-BB7C-2483F948BCFD\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'DeleteSiteMonitors' => [
'summary' => 'Deletes site monitoring tasks by calling the DeleteSiteMonitors operation.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'TaskIds',
'in' => 'query',
'schema' => ['description' => 'The IDs of the tasks to be deleted. Separate multiple task IDs with commas (,).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '01adacc2-ece5-41b6-afa2-3143ab5d****,43bd1ead-514f-4524-813e-228ce091****', 'title' => ''],
],
[
'name' => 'IsDeleteAlarms',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to delete the alert rules associated with the tasks. Valid values:'."\n"
."\n"
.'- true (default): Deletes the alert rules.'."\n"
."\n"
.'- false: Does not delete the alert rules.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message. If the request is successful, a success message is returned. If the request fails, the failure reason is returned, such as `TaskId not found`.', 'type' => 'string', 'example' => 'Request succeeded.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '123BCC5D-8B63-48EA-B747-9A8995BE7AA6', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation is successful. The value true indicates success. The value false indicates failure.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'Data' => [
'description' => 'The number of affected rows.',
'type' => 'object',
'properties' => [
'count' => ['description' => 'The number of affected rows.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'Forbidden', 'errorMessage' => 'You are not authorized to operate the specified resource.', 'description' => 'No permission, please use RAM to authorize'],
['errorCode' => 'UnauthorizedTasks', 'errorMessage' => 'You are not permitted to operate the specified tasks.', 'description' => 'You are not permitted to operate the specified tasks.'],
],
[
['errorCode' => '%s', 'errorMessage' => 'TaskId not found', 'description' => ''],
['errorCode' => 'TaskNotExist', 'errorMessage' => 'The specified task does not exist.', 'description' => 'The specified task does not exist.'],
],
406 => [
['errorCode' => 'ExceedingQuota', 'errorMessage' => 'Exceeding quota limits.', 'description' => 'The number of tasks exceeds the limit'],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'staticInfo' => [],
'title' => 'Delete site monitoring tasks',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-04-01T07:22:22.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2022-12-27T07:31:03.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteSiteMonitors'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:DeleteSiteMonitors',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Request succeeded.\\",\\n \\"RequestId\\": \\"123BCC5D-8B63-48EA-B747-9A8995BE7AA6\\",\\n \\"Success\\": \\"true\\",\\n \\"Data\\": {\\n \\"count\\": 0\\n }\\n}","type":"json"}]',
],
'DescribeActiveMetricRuleList' => [
'summary' => 'Queries initiative alert rules.',
'methods' => ['get', 'post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Product',
'in' => 'query',
'schema' => ['description' => 'The abbreviation of the cloud service that supports initiative alert rules.'."\n"
."\n"
.'For more information about how to obtain the name of a cloud service, see [DescribeProductsOfActiveMetricRule](~~114930~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ecs', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'F82E6667-7811-4BA0-842F-5B2DC42BBAAD', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Datapoints' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Alarm' => [
'description' => 'The details of the alert rules.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'SilenceTime' => ['description' => 'The mute period during which new alerts are not sent even if the trigger conditions are met.'."\n"
."\n"
.'Unit: seconds.', 'type' => 'string', 'example' => '86400', 'title' => ''],
'MetricName' => ['description' => 'The metric name.', 'type' => 'string', 'example' => 'cpu_total', 'title' => ''],
'EvaluationCount' => ['description' => 'The consecutive number of times for which the metric value meets the alert condition before an alert is triggered.', 'type' => 'string', 'example' => '3', 'title' => ''],
'Webhook' => ['description' => 'The callback URL.', 'type' => 'string', 'example' => 'https://www.aliyun.com', 'title' => ''],
'State' => ['description' => 'Indicates whether the alert rule is enabled.', 'type' => 'string', 'example' => 'Enable', 'title' => ''],
'ContactGroups' => ['description' => 'The alert contact group.', 'type' => 'string', 'example' => 'ECS_Group', 'title' => ''],
'Namespace' => ['description' => 'The namespace of the cloud service.', 'type' => 'string', 'example' => 'acs_ecs_dashboard', 'title' => ''],
'RuleName' => ['description' => 'The name of the alert rule.', 'type' => 'string', 'example' => 'SystemDefault_acs_rds_dashboard_CpuUsage', 'title' => ''],
'RuleId' => ['description' => 'The ID of the alert rule.', 'type' => 'string', 'example' => 'a151cd6023eacee2f0978e03863cc1697c89508****', 'title' => ''],
'Period' => ['description' => 'The aggregation period of monitoring data.'."\n"
."\n"
.'Unit: seconds.', 'type' => 'string', 'example' => '60', 'title' => ''],
'ComparisonOperator' => ['description' => 'The comparison operator that is used in the alert rule. Valid values:'."\n"
."\n"
.'- `>`'."\n"
."\n"
.'- `<`'."\n"
."\n"
.'- `>=`'."\n"
."\n"
.'- `<=`'."\n"
."\n"
.'- `=`'."\n"
."\n"
.'- `=`', 'type' => 'string', 'example' => '>', 'title' => ''],
'EndTime' => ['description' => 'The end of the time period during which the alert rule is effective.'."\n"
."\n"
.'Unit: hours. For example, the value 23 indicates `23:59:59`.', 'type' => 'string', 'example' => '24', 'title' => ''],
'StartTime' => ['description' => 'The beginning of the time period during which the alert rule is effective.'."\n"
."\n"
.'Unit: hours. For example, the value 00 indicates `00:00:00`.', 'type' => 'string', 'example' => '00', 'title' => ''],
'Threshold' => ['description' => 'The alert threshold.', 'type' => 'string', 'example' => '90', 'title' => ''],
'Statistics' => ['description' => 'The statistical method.', 'type' => 'string', 'example' => 'Average', 'title' => ''],
'Enable' => ['description' => 'Indicates whether the alert rule is enabled. Valid values:'."\n"
."\n"
.'- true: The alert rule is enabled.'."\n"
."\n"
.'- false: The alert rule is disabled.', 'type' => 'string', 'example' => 'true', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'AlertList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Alert' => [
'description' => 'The details of the alert rules. The result is in the same structure as that returned by the DescribeMetricRuleList operation.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'SilenceTime' => ['description' => 'The mute period during which new alerts are not sent even if the trigger conditions are met.'."\n"
."\n"
.'Unit: seconds.', 'type' => 'string', 'example' => '86400', 'title' => ''],
'MetricName' => ['description' => 'The name of the metric.', 'type' => 'string', 'example' => 'cpu_total', 'title' => ''],
'Webhook' => ['description' => 'The callback URL.', 'type' => 'string', 'example' => 'http://www.aliyun.com', 'title' => ''],
'ContactGroups' => ['description' => 'The alert contact group.', 'type' => 'string', 'example' => 'ECS_Group', 'title' => ''],
'Namespace' => ['description' => 'The namespace of the Alibaba Cloud service.', 'type' => 'string', 'example' => 'acs_ecs_dashboard', 'title' => ''],
'EffectiveInterval' => ['description' => 'The time period during which the alert rule is effective.', 'type' => 'string', 'example' => '00:00-23:59', 'title' => ''],
'NoEffectiveInterval' => ['description' => 'The time period during which the alert rule is ineffective.', 'type' => 'string', 'example' => '00:00-06:00', 'title' => ''],
'MailSubject' => ['description' => 'The subject of the alert notification email.', 'type' => 'string', 'example' => 'ECS_Bucket', 'title' => ''],
'RuleName' => ['description' => 'The name of the alert rule.', 'type' => 'string', 'example' => 'myAlert', 'title' => ''],
'RuleId' => ['description' => 'The ID of the alert rule.', 'type' => 'string', 'example' => 'ruleIdxxxx', 'title' => ''],
'Period' => ['description' => 'The aggregation period of monitoring data.'."\n"
."\n"
.'Unit: seconds.', 'type' => 'string', 'example' => '60', 'title' => ''],
'AlertState' => ['description' => 'The status of the alert rule. Valid values:'."\n"
."\n"
.'- OK: The alert rule has no active alerts.'."\n"
."\n"
.'- ALARM: The alert rule has active alerts.'."\n"
."\n"
.'- INSUFFICIENT\\_DATA: No data is found.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'Dimensions' => ['description' => 'The monitoring data of the specified resource.', 'type' => 'string', 'example' => '""', 'title' => ''],
'EnableState' => ['description' => 'Indicates whether the alert rule is enabled. Valid values:'."\n"
."\n"
.'- true: The alert rule is enabled.'."\n"
."\n"
.'- false: The alert rule is disabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Resources' => ['description' => 'The resources that are associated with the alert rule.', 'type' => 'string', 'example' => '[{"resource":"_ALL"}]', 'title' => ''],
'Escalations' => [
'description' => 'The conditions for triggering different levels of alerts.',
'type' => 'object',
'properties' => [
'Info' => [
'description' => 'The conditions for triggering Info-level alerts.',
'type' => 'object',
'properties' => [
'ComparisonOperator' => ['description' => 'The operator that is used to compare the metric value with the threshold for Info-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold'."\n"
."\n"
.'- GreaterThanThreshold: greater than the threshold'."\n"
."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold'."\n"
."\n"
.'- LessThanThreshold: less than the threshold'."\n"
."\n"
.'- NotEqualToThreshold: not equal to the threshold'."\n"
."\n"
.'- GreaterThanYesterday: greater than the metric value at the same time yesterday'."\n"
."\n"
.'- LessThanYesterday: less than the metric value at the same time yesterday'."\n"
."\n"
.'- GreaterThanLastWeek: greater than the metric value at the same time last week'."\n"
."\n"
.'- LessThanLastWeek: less than the metric value at the same time last week'."\n"
."\n"
.'- GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle'."\n"
."\n"
.'- LessThanLastPeriod: less than the metric value in the last monitoring cycle', 'type' => 'string', 'example' => 'GreaterThanThreshold', 'title' => ''],
'Times' => ['description' => 'The consecutive number of times'."\n"
."\n"
.'for which the metric value meets the alert condition before an Info-level alert is triggered.', 'type' => 'string', 'example' => '3', 'title' => ''],
'Threshold' => ['description' => 'The threshold for Info-level alerts.', 'type' => 'string', 'example' => '95', 'title' => ''],
'Statistics' => ['description' => 'The statistical methods for Info-level alerts.', 'type' => 'string', 'example' => 'Average', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Warn' => [
'description' => 'The conditions for triggering Warn-level alerts.',
'type' => 'object',
'properties' => [
'ComparisonOperator' => ['description' => 'The operator that is used to compare the metric value with the threshold for Warn-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold'."\n"
."\n"
.'- GreaterThanThreshold: greater than the threshold'."\n"
."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold'."\n"
."\n"
.'- LessThanThreshold: less than the threshold'."\n"
."\n"
.'- NotEqualToThreshold: not equal to the threshold'."\n"
."\n"
.'- GreaterThanYesterday: greater than the metric value at the same time yesterday'."\n"
."\n"
.'- LessThanYesterday: less than the metric value at the same time yesterday'."\n"
."\n"
.'- GreaterThanLastWeek: greater than the metric value at the same time last week'."\n"
."\n"
.'- LessThanLastWeek: less than the metric value at the same time last week'."\n"
."\n"
.'- GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle'."\n"
."\n"
.'- LessThanLastPeriod: less than the metric value in the last monitoring cycle', 'type' => 'string', 'example' => 'GreaterThanThreshold', 'title' => ''],
'Times' => ['description' => 'The consecutive number of times'."\n"
."\n"
.'for which the metric value meets the alert condition before a Warn-level alert is triggered.', 'type' => 'string', 'example' => '3', 'title' => ''],
'Threshold' => ['description' => 'The threshold for Warn-level alerts.', 'type' => 'string', 'example' => '80', 'title' => ''],
'Statistics' => ['description' => 'The statistical methods for Warn-level alerts.', 'type' => 'string', 'example' => 'Average', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Critical' => [
'description' => 'The trigger condition for Critical-level alerts.',
'type' => 'object',
'properties' => [
'ComparisonOperator' => ['description' => 'The operator that is used to compare the metric value with the threshold for Critical-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold'."\n"
."\n"
.'- GreaterThanThreshold: greater than the threshold'."\n"
."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold'."\n"
."\n"
.'- LessThanThreshold: less than the threshold'."\n"
."\n"
.'- NotEqualToThreshold: not equal to the threshold'."\n"
."\n"
.'- GreaterThanYesterday: greater than the metric value at the same time yesterday'."\n"
."\n"
.'- LessThanYesterday: less than the metric value at the same time yesterday'."\n"
."\n"
.'- GreaterThanLastWeek: greater than the metric value at the same time last week'."\n"
."\n"
.'- LessThanLastWeek: less than the metric value at the same time last week'."\n"
."\n"
.'- GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle'."\n"
."\n"
.'- LessThanLastPeriod: less than the metric value in the last monitoring cycle', 'type' => 'string', 'example' => 'GreaterThanThreshold', 'title' => ''],
'Times' => ['description' => 'The consecutive number of times for which the metric value meets the alert condition before a Critical-level alert is triggered.', 'type' => 'string', 'example' => '3', 'title' => ''],
'Threshold' => ['description' => 'The threshold for Critical-level alerts.', 'type' => 'string', 'example' => '99', 'title' => ''],
'Statistics' => ['description' => 'The statistical methods for Critical-level alerts.', 'type' => 'string', 'example' => 'Average', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'AccessForbidden', 'errorMessage' => 'The X.509 certificate or cms access key ID provided does not exist in our records.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
],
'title' => 'DescribeActiveMetricRuleList',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeActiveMetricRuleList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeActiveMetricRuleList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"F82E6667-7811-4BA0-842F-5B2DC42BBAAD\\",\\n \\"Success\\": true,\\n \\"Datapoints\\": {\\n \\"Alarm\\": [\\n {\\n \\"SilenceTime\\": \\"86400\\",\\n \\"MetricName\\": \\"cpu_total\\",\\n \\"EvaluationCount\\": \\"3\\",\\n \\"Webhook\\": \\"https://www.aliyun.com\\",\\n \\"State\\": \\"Enable\\",\\n \\"ContactGroups\\": \\"ECS_Group\\",\\n \\"Namespace\\": \\"acs_ecs_dashboard\\",\\n \\"RuleName\\": \\"SystemDefault_acs_rds_dashboard_CpuUsage\\",\\n \\"RuleId\\": \\"a151cd6023eacee2f0978e03863cc1697c89508****\\",\\n \\"Period\\": \\"60\\",\\n \\"ComparisonOperator\\": \\">\\",\\n \\"EndTime\\": \\"24\\",\\n \\"StartTime\\": \\"00\\",\\n \\"Threshold\\": \\"90\\",\\n \\"Statistics\\": \\"Average\\",\\n \\"Enable\\": \\"true\\"\\n }\\n ]\\n },\\n \\"AlertList\\": {\\n \\"Alert\\": [\\n {\\n \\"SilenceTime\\": \\"86400\\",\\n \\"MetricName\\": \\"cpu_total\\",\\n \\"Webhook\\": \\"http://www.aliyun.com\\",\\n \\"ContactGroups\\": \\"ECS_Group\\",\\n \\"Namespace\\": \\"acs_ecs_dashboard\\",\\n \\"EffectiveInterval\\": \\"00:00-23:59\\",\\n \\"NoEffectiveInterval\\": \\"00:00-06:00\\",\\n \\"MailSubject\\": \\"ECS_Bucket\\",\\n \\"RuleName\\": \\"myAlert\\",\\n \\"RuleId\\": \\"ruleIdxxxx\\",\\n \\"Period\\": \\"60\\",\\n \\"AlertState\\": \\"OK\\",\\n \\"Dimensions\\": \\"\\\\\\"\\\\\\"\\",\\n \\"EnableState\\": true,\\n \\"Resources\\": \\"[{\\\\\\"resource\\\\\\":\\\\\\"_ALL\\\\\\"}]\\",\\n \\"Escalations\\": {\\n \\"Info\\": {\\n \\"ComparisonOperator\\": \\"GreaterThanThreshold\\",\\n \\"Times\\": \\"3\\",\\n \\"Threshold\\": \\"95\\",\\n \\"Statistics\\": \\"Average\\"\\n },\\n \\"Warn\\": {\\n \\"ComparisonOperator\\": \\"GreaterThanThreshold\\",\\n \\"Times\\": \\"3\\",\\n \\"Threshold\\": \\"80\\",\\n \\"Statistics\\": \\"Average\\"\\n },\\n \\"Critical\\": {\\n \\"ComparisonOperator\\": \\"GreaterThanThreshold\\",\\n \\"Times\\": \\"3\\",\\n \\"Threshold\\": \\"99\\",\\n \\"Statistics\\": \\"Average\\"\\n }\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeAlertHistoryList' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => true,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert rule.'."\n"
."\n"
.'For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](~~114941~~).', 'type' => 'string', 'required' => false, 'example' => 'applyTemplate61dc81b5-d357-4cf6-a9b7-9f83c1d5****', 'title' => ''],
],
[
'name' => 'RuleName',
'in' => 'query',
'schema' => ['description' => 'The name of the alert rule.'."\n"
."\n"
.'For information about how to query the name of an alert rule, see [DescribeMetricRuleList](~~114941~~).', 'type' => 'string', 'required' => false, 'example' => 'ECS_Rule', 'title' => ''],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The namespace of the cloud service.'."\n"
."\n"
.'For information about how to query the namespace of a cloud service, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'acs_ecs_dashboard', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The metric that is used to monitor the cloud service.'."\n"
."\n"
.'For information about how to query the name of a metric, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'cpu_total', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.'."\n"
."\n"
.'For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](~~115032~~).', 'type' => 'string', 'required' => false, 'example' => '7671****', 'title' => ''],
],
[
'name' => 'Status',
'in' => 'query',
'schema' => ['description' => 'Specifies whether alerts are muted. Valid values:'."\n"
."\n"
.'- 2 (default value): Alerts are muted and are not triggered within the mute period, even if the condition specified in the alert rule is met.'."\n"
."\n"
.'- 0: Alerts are triggered or cleared.'."\n"
."\n"
.'- 1: The alert rule is ineffective.', 'type' => 'string', 'required' => false, 'example' => '2', 'title' => ''],
],
[
'name' => 'State',
'in' => 'query',
'schema' => ['description' => 'The status of the alert. Valid values:'."\n"
."\n"
.'- ALARM (default value): Alerts are triggered.'."\n"
."\n"
.'- OK: No alerts are triggered.', 'type' => 'string', 'required' => false, 'example' => 'ALARM', 'title' => ''],
],
[
'name' => 'Ascending',
'in' => 'query',
'schema' => ['description' => 'The order of alerts. Valid values:'."\n"
."\n"
.'- true (default value): reverse chronological order'."\n"
."\n"
.'- false: chronological order', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => 'The start timestamp of the historical alerts that you want to query.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'string', 'required' => false, 'example' => '1640237400000', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => 'The end timestamp of the historical alerts that you want to query.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'string', 'required' => false, 'example' => '1640608200000', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page.'."\n"
."\n"
.'Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'Page',
'in' => 'query',
'schema' => ['description' => 'The number of the page to return.'."\n"
."\n"
.'Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'C3C69FBE-2262-541F-A409-C52F380BAE63', 'title' => ''],
'Total' => ['description' => 'The total number of entries returned.', 'type' => 'string', 'example' => '2', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'AlarmHistoryList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'AlarmHistory' => [
'description' => 'The details of historical alerts.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'Indicates whether alerts are muted. Valid values:'."\n"
."\n"
.'- 2 (default): Alerts are muted and are not triggered within the mute period, even if the condition specified in the alert rule is met.'."\n"
."\n"
.'- 0: Alerts are triggered or cleared.'."\n"
."\n"
.'- 1: The alert rule is ineffective.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
'MetricName' => ['description' => 'The metric name.', 'type' => 'string', 'example' => 'cpu_total', 'title' => ''],
'EvaluationCount' => ['description' => 'The consecutive number of times for which the metric value meets the alert condition before an alert is triggered.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''],
'State' => ['description' => 'The alert status. Valid values:'."\n"
."\n"
.'- ALARM: Alerts are triggered.'."\n"
."\n"
.'- OK: No alerts are triggered.', 'type' => 'string', 'example' => 'ALARM', 'title' => ''],
'Namespace' => ['description' => 'The namespace of the cloud service.', 'type' => 'string', 'example' => 'acs_ecs_dashboard', 'title' => ''],
'Webhooks' => ['description' => 'The callback URL.', 'type' => 'string', 'example' => 'https://www.aliyun.com', 'title' => ''],
'RuleName' => ['description' => 'The name of the alert rule.', 'type' => 'string', 'example' => 'ECS_Rule', 'title' => ''],
'RuleId' => ['description' => 'The ID of the alert rule.', 'type' => 'string', 'example' => 'applyTemplate61dc81b5-d357-4cf6-a9b7-9f83c1d5****', 'title' => ''],
'LastTime' => ['description' => 'The duration of the alert. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '360133', 'title' => ''],
'Value' => ['description' => 'The threshold of the metric value to trigger or clear an alert.', 'type' => 'string', 'example' => '10.58', 'title' => ''],
'Expression' => ['description' => 'The expression that is used to trigger alerts.', 'type' => 'string', 'example' => '$Average>=10', 'title' => ''],
'GroupId' => ['description' => 'The ID of the application group.', 'type' => 'string', 'example' => '7671****', 'title' => ''],
'AlertTime' => ['description' => 'The timestamp when the alert was triggered. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1640586600000', 'title' => ''],
'InstanceName' => ['description' => 'The instance name.', 'type' => 'string', 'example' => 'i-bp1cqhiw1za2****', 'title' => ''],
'Dimensions' => ['description' => 'The resources that are monitored.', 'type' => 'string', 'example' => '{\\"instanceId\\":\\"i-bp1cqhiw1za2****\\"}', 'title' => ''],
'Level' => ['description' => 'The severity level and notification methods of the alert. Valid values:'."\n"
."\n"
.'- P4: Alert notifications are sent by using emails and DingTalk chatbots.'."\n"
."\n"
.'- OK: No alert is generated.', 'type' => 'string', 'example' => 'P4', 'title' => ''],
'Contacts' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Contact' => [
'description' => 'The alert contacts that receive alert notifications.',
'type' => 'array',
'items' => ['description' => 'The alert contact that receives alert notifications.', 'type' => 'string', 'example' => 'Alice', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'ContactALIIMs' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ContactALIIM' => [
'description' => 'The TradeManager IDs of the alert contacts.'."\n"
."\n"
.'> This parameter is valid only on the China site (aliyun.com).',
'type' => 'array',
'items' => ['description' => 'The TradeManager ID of the alert contact.'."\n"
."\n"
.'> This parameter is valid only on the China site (aliyun.com).', 'type' => 'string', 'example' => 'username@example.com', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'ContactMails' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ContactMail' => [
'description' => 'The email addresses of the alert contacts.',
'type' => 'array',
'items' => ['description' => 'The email address of the alert contact.', 'type' => 'string', 'example' => 'username@example.com', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'ContactSmses' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ContactSms' => [
'description' => 'The mobile numbers of the alert contacts.'."\n"
."\n"
.'> This parameter is valid only on the China site (aliyun.com).',
'type' => 'array',
'items' => ['description' => 'The mobile number of the alert contact.'."\n"
."\n"
.'> This parameter is valid only on the China site (aliyun.com).', 'type' => 'string', 'example' => '13900009999', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'ContactGroups' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ContactGroup' => [
'description' => 'The alert contact groups.',
'type' => 'array',
'items' => ['description' => 'The alert contact group.', 'type' => 'string', 'example' => 'ECS_Group', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
204 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError ', 'errorMessage' => 'The request processing has failed due to some unknown error. ', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'staticInfo' => [
'substitutions' => ['Cms::2019-01-01::DescribeAlertLogList'],
],
'title' => 'DescribeAlertHistoryList',
'summary' => 'Queries historical alerts.',
'description' => 'This API operation is no longer maintained. We recommend that you call the [DescribeAlertLogList](~~201087~~) operation.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeAlertHistoryList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeAlertHistoryList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"C3C69FBE-2262-541F-A409-C52F380BAE63\\",\\n \\"Total\\": \\"2\\",\\n \\"Success\\": true,\\n \\"AlarmHistoryList\\": {\\n \\"AlarmHistory\\": [\\n {\\n \\"Status\\": 2,\\n \\"MetricName\\": \\"cpu_total\\",\\n \\"EvaluationCount\\": 3,\\n \\"State\\": \\"ALARM\\",\\n \\"Namespace\\": \\"acs_ecs_dashboard\\",\\n \\"Webhooks\\": \\"https://www.aliyun.com\\",\\n \\"RuleName\\": \\"ECS_Rule\\",\\n \\"RuleId\\": \\"applyTemplate61dc81b5-d357-4cf6-a9b7-9f83c1d5****\\",\\n \\"LastTime\\": 360133,\\n \\"Value\\": \\"10.58\\",\\n \\"Expression\\": \\"$Average>=10\\",\\n \\"GroupId\\": \\"7671****\\",\\n \\"AlertTime\\": 1640586600000,\\n \\"InstanceName\\": \\"i-bp1cqhiw1za2****\\",\\n \\"Dimensions\\": \\"{\\\\\\\\\\\\\\"instanceId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"i-bp1cqhiw1za2****\\\\\\\\\\\\\\"}\\",\\n \\"Level\\": \\"P4\\",\\n \\"Contacts\\": {\\n \\"Contact\\": [\\n \\"Alice\\"\\n ]\\n },\\n \\"ContactALIIMs\\": {\\n \\"ContactALIIM\\": [\\n \\"username@example.com\\"\\n ]\\n },\\n \\"ContactMails\\": {\\n \\"ContactMail\\": [\\n \\"username@example.com\\"\\n ]\\n },\\n \\"ContactSmses\\": {\\n \\"ContactSms\\": [\\n \\"13900009999\\"\\n ]\\n },\\n \\"ContactGroups\\": {\\n \\"ContactGroup\\": [\\n \\"ECS_Group\\"\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeAlertLogCount' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => 'The start timestamp of the alert logs to be queried.'."\n"
."\n"
.'Unit: milliseconds.'."\n"
."\n"
.'You can query only the alert logs within the last year. If the query time is longer than one year, the return value of the `AlertLogCount` parameter is empty.'."\n"
."\n"
.'> The interval between the start time (StartTime) and end time (EndTime) must be less than or equal to 15 days. The start time and end time must be specified or left empty at the same time. If you do not specify the start time and end time, the alert logs within the last 15 minutes are queried by default.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1609988009694', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => 'The end timestamp of the alert logs to be queried.'."\n"
."\n"
.'Unit: milliseconds.'."\n"
."\n"
.'You can query only the alert logs within the last year. If the query time is longer than one year, the return value of the `AlertLogCount` parameter is empty.'."\n"
."\n"
.'> The interval between the start time (StartTime) and end time (EndTime) must be less than or equal to 15 days. The start time and end time must be specified or left empty at the same time. If you do not specify the start time and end time, the alert logs within the last 15 minutes are queried by default.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1610074409694', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The dimension based on which data is aggregated. This parameter is equivalent to the GROUP BY clause in SQL. Valid values:'."\n"
."\n"
.'- `product`: aggregates data by cloud service.'."\n"
."\n"
.'- `level`: aggregates data by alert level.'."\n"
."\n"
.'- `groupId`: aggregates data by application group.'."\n"
."\n"
.'- `contactGroup`: aggregates data by alert contact group.'."\n"
."\n"
.'- `product,metricName`: aggregates data both by cloud service and by metric.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'SearchKey',
'in' => 'query',
'schema' => ['description' => 'The keyword based on which the alert logs to be counted are searched.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The namespace of the cloud service.'."\n"
."\n"
.'> For more information about the namespaces of cloud services, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'acs_ecs_dashboard', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => false, 'example' => '7301****', 'title' => ''],
],
[
'name' => 'Product',
'in' => 'query',
'schema' => ['description' => 'The abbreviation of the service name.', 'type' => 'string', 'required' => false, 'example' => 'ECS', 'title' => ''],
],
[
'name' => 'Level',
'in' => 'query',
'schema' => ['description' => 'The level and notification method of the alert. Valid values:'."\n"
."\n"
.'- P4: Alert notifications are sent by using emails and DingTalk chatbots.'."\n"
."\n"
.'- OK: No alert is generated.', 'type' => 'string', 'required' => false, 'example' => 'P4', 'title' => ''],
],
[
'name' => 'SendStatus',
'in' => 'query',
'schema' => ['description' => 'The status of the alert. Valid values:'."\n"
."\n"
.'- 0: The alert is triggered or cleared.'."\n"
."\n"
.'- 1: The alert is generated not during the effective period.'."\n"
."\n"
.'- 2: The alert is muted and not triggered in a specified period.'."\n"
."\n"
.'- 3: The host is restarting.'."\n"
."\n"
.'- 4: Notifications are not sent for the alert.'."\n"
."\n"
.'When the value of the SendStatus parameter is 0, the value P4 of the Level parameter indicates a triggered alert and the value OK indicates a cleared alert.', 'type' => 'string', 'required' => false, 'example' => '0', 'title' => ''],
],
[
'name' => 'ContactGroup',
'in' => 'query',
'schema' => ['description' => 'The alert group.', 'type' => 'string', 'required' => false, 'example' => 'ECS_Group', 'title' => ''],
],
[
'name' => 'RuleName',
'in' => 'query',
'schema' => ['description' => 'The name of the alert rule.', 'type' => 'string', 'required' => false, 'example' => 'test123', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The name of the metric.'."\n"
."\n"
.'> For more information about the metrics of different cloud services, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'cpu_total', 'title' => ''],
],
[
'name' => 'LastMin',
'in' => 'query',
'schema' => ['description' => 'The statistical period of alert logs. Unit: minutes.', 'type' => 'string', 'required' => false, 'example' => '360', 'title' => ''],
],
[
'name' => 'GroupBy',
'in' => 'query',
'schema' => ['description' => 'The dimension based on which data is aggregated. This parameter is similar to the Group By clause of SQL statements. Valid values:'."\n"
."\n"
.'- `product`: aggregates data by cloud service.'."\n"
."\n"
.'- `level`: aggregates data by alert level.'."\n"
."\n"
.'- `groupId`: aggregates data by application group.'."\n"
."\n"
.'- `contactGroup`: aggregates data by alert group.'."\n"
."\n"
.'- `product,metricName`: aggregates data both by cloud service and by metric.', 'type' => 'string', 'required' => true, 'example' => 'product', 'title' => ''],
],
[
'name' => 'SourceType',
'in' => 'query',
'schema' => ['description' => 'This parameter is deprecated.', 'type' => 'string', 'required' => false, 'example' => '无', 'title' => ''],
],
[
'name' => 'EventType',
'in' => 'query',
'schema' => ['description' => 'The type of the alert event. Valid values:'."\n"
."\n"
.'- TRIGGERED: The alert is triggered.'."\n"
."\n"
.'- RESOLVED: The alert is resolved.', 'type' => 'string', 'required' => false, 'example' => 'TRIGGERED', 'title' => ''],
],
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert rule.'."\n"
."\n"
.'For more information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](~~114941~~).', 'type' => 'string', 'required' => false, 'example' => 'bfae2ca5b4e07d2c7278772e***********', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '1C4A3709-BF52-42EE-87B5-7435F0929585', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'AlertLogCount' => [
'description' => 'The statistics of alert logs.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Count' => ['description' => 'The number of alert logs.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Logs' => [
'description' => 'The details about alert logs.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The name of the dimension field based on which alert logs are aggregated.', 'type' => 'string', 'example' => 'product', 'title' => ''],
'Value' => ['description' => 'The value of the dimension field based on which alert logs are aggregated.', 'type' => 'string', 'example' => 'ECS', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Parameter invalid.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
409 => [
['errorCode' => 'ResourceConflict', 'errorMessage' => 'Concurrent modification of resources.', 'description' => ''],
['errorCode' => 'ResourceExist', 'errorMessage' => 'Resources already exist.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeAlertLogCount',
'summary' => 'Queries the statistics of alert logs.',
'description' => 'Queries the statistics of alert logs.'."\n"
."\n"
.'This topic provides an example on how to query the statistics of alert logs for Elastic Compute Service (ECS) based on the `product` dimension.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-02-13T11:47:48.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2023-12-07T03:28:51.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2023-07-27T09:48:52.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeAlertLogCount'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeAlertLogCount',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"1C4A3709-BF52-42EE-87B5-7435F0929585\\",\\n \\"Success\\": true,\\n \\"AlertLogCount\\": [\\n {\\n \\"Count\\": 1,\\n \\"Logs\\": [\\n {\\n \\"Name\\": \\"product\\",\\n \\"Value\\": \\"ECS\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
],
'DescribeAlertLogHistogram' => [
'summary' => 'Queries the number of alert logs that are generated during each interval within a period of time.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => 'The start timestamp of the alert logs to be queried.'."\n"
."\n"
.'Unit: milliseconds.'."\n"
."\n"
.'>'."\n"
."\n"
.'- You can query only the alert logs within the last year.'."\n"
."\n"
.'- The interval between the start time (`StartTime`) and end time (`EndTime`) must be less than or equal to 15 days.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1609988009694', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => 'The end timestamp of the alert logs to be queried.'."\n"
."\n"
.'Unit: milliseconds.'."\n"
."\n"
.'>'."\n"
."\n"
.'- You can query only the alert logs within the last year.'."\n"
."\n"
.'- The interval between the start time (`StartTime`) and end time (`EndTime`) must be less than or equal to 15 days.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1609989009694', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.'."\n"
."\n"
.'Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.'."\n"
."\n"
.'Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'SearchKey',
'in' => 'query',
'schema' => ['description' => 'The keyword that is used to query alert logs.', 'type' => 'string', 'required' => false, 'example' => 'alert', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => false, 'example' => '7301****', 'title' => ''],
],
[
'name' => 'Product',
'in' => 'query',
'schema' => ['description' => 'The abbreviation of the Alibaba Cloud service name.', 'type' => 'string', 'required' => false, 'example' => 'ECS', 'title' => ''],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The namespace of the Alibaba Cloud service.'."\n"
."\n"
.'> For more information about the namespaces of different cloud services, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'acs_ecs_dashboard', 'title' => ''],
],
[
'name' => 'Level',
'in' => 'query',
'schema' => ['description' => 'The severity level and notification methods of the alert. Valid values:'."\n"
."\n"
.'- P4: Alert notifications are sent by using emails and DingTalk chatbots.'."\n"
."\n"
.'- OK: No alert is generated.', 'type' => 'string', 'required' => false, 'example' => 'P4', 'title' => ''],
],
[
'name' => 'SendStatus',
'in' => 'query',
'schema' => ['description' => 'The alert status. Valid values:'."\n"
."\n"
.'- 0: The alert is triggered or cleared.'."\n"
."\n"
.'- 1: The alert is ineffective.'."\n"
."\n"
.'- 2: The alert is muted and not triggered in a specified period.'."\n"
."\n"
.'- 3: The host is restarting.'."\n"
."\n"
.'- 4: No alert notification is sent.'."\n"
."\n"
.'If the value of the SendStatus parameter is 0, the value P4 of the Level parameter indicates a triggered alert and the value OK indicates a cleared alert.', 'type' => 'string', 'required' => false, 'example' => '0', 'title' => ''],
],
[
'name' => 'ContactGroup',
'in' => 'query',
'schema' => ['description' => 'The alert contact group.', 'type' => 'string', 'required' => false, 'example' => 'ECS_Group', 'title' => ''],
],
[
'name' => 'RuleName',
'in' => 'query',
'schema' => ['description' => 'The name of the alert rule.', 'type' => 'string', 'required' => false, 'example' => 'test123', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The metric name.'."\n"
."\n"
.'> For more information about the metrics of different cloud services, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'cpu_total', 'title' => ''],
],
[
'name' => 'LastMin',
'in' => 'query',
'schema' => ['description' => 'The statistical period of alert logs. Unit: minutes.', 'type' => 'string', 'required' => false, 'example' => '360', 'title' => ''],
],
[
'name' => 'GroupBy',
'in' => 'query',
'schema' => ['description' => 'The dimensions based on which data is aggregated. This parameter is equivalent to the GROUP BY clause in SQL. Valid values:'."\n"
."\n"
.'- `product`: aggregates data by cloud service.'."\n"
."\n"
.'- `level`: aggregates data by alert level.'."\n"
."\n"
.'- `groupId`: aggregates data by application group.'."\n"
."\n"
.'- `contactGroup`: aggregates data by alert contact group.'."\n"
."\n"
.'- `product,metricName`: aggregates data both by cloud service and by metric.', 'type' => 'string', 'required' => false, 'example' => 'product', 'title' => ''],
],
[
'name' => 'SourceType',
'in' => 'query',
'schema' => ['description' => 'This parameter is deprecated.', 'type' => 'string', 'required' => false, 'example' => '无', 'title' => ''],
],
[
'name' => 'EventType',
'in' => 'query',
'schema' => ['description' => 'The type of the alert event. Valid values:'."\n"
."\n"
.'- TRIGGERED: The alert is triggered.'."\n"
."\n"
.'- RESOLVED: The alert is resolved.', 'type' => 'string', 'required' => false, 'example' => 'RESOLVED', 'title' => ''],
],
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert rule.'."\n"
."\n"
.'For more information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](~~114941~~).', 'type' => 'string', 'required' => false, 'example' => 'ae06917_75a8c43178ab66****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The response code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '1C4A3709-BF52-42EE-87B5-7435F0929585', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'AlertLogHistogramList' => [
'description' => 'The number of alert logs that were generated during each interval of a time period.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'From' => ['description' => 'The start timestamp of the queried alert logs.'."\n"
."\n"
.'Unit: seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1610074791', 'title' => ''],
'To' => ['description' => 'The end timestamp of the queried alert logs.'."\n"
."\n"
.'Unit: seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1610074800', 'title' => ''],
'Count' => ['description' => 'The number of alert logs.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
409 => [
['errorCode' => 'ResourceConflict', 'errorMessage' => 'Concurrent modification of resources.', 'description' => ''],
['errorCode' => 'ResourceExist', 'errorMessage' => 'Resources already exist.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeAlertLogHistogram',
'description' => 'This topic provides an example on how to query the number of alert logs for Elastic Compute Service (ECS) based on the `product` dimension.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-12-07T03:28:51.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2023-07-27T09:48:52.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeAlertLogHistogram'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeAlertLogHistogram',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"1C4A3709-BF52-42EE-87B5-7435F0929585\\",\\n \\"Success\\": true,\\n \\"AlertLogHistogramList\\": [\\n {\\n \\"From\\": 1610074791,\\n \\"To\\": 1610074800,\\n \\"Count\\": 20\\n }\\n ]\\n}","type":"json"}]',
],
'DescribeAlertLogList' => [
'summary' => 'Queries the alert history by calling the DescribeAlertLogList operation.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => 'The beginning of the time range to query the alert history.'."\n"
."\n"
.'Unit: milliseconds.'."\n"
."\n"
.'You can query only the alert history within the last year. If the query time range exceeds one year, the return value of the `AlertLogList` parameter is empty.'."\n"
."\n"
.'> The interval between the start time (`StartTime`) and end time (`EndTime`) must be less than or equal to 15 days. Both parameters must be specified or unspecified at the same time. If they are not specified, the alert history within the last 15 minutes is queried by default.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1609988009694', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => 'The end of the time range to query the alert history.'."\n"
."\n"
.'Unit: milliseconds.'."\n"
."\n"
.'You can query only the alert history within the last year. If the query time range exceeds one year, the return value of the `AlertLogList` parameter is empty.'."\n"
."\n"
.'> The interval between the start time (`StartTime`) and end time (`EndTime`) must be less than or equal to 15 days. Both parameters must be specified or unspecified at the same time. If they are not specified, the alert history within the last 15 minutes is queried by default.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1610074409694', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.'."\n"
."\n"
.'Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.'."\n"
."\n"
.'Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'SearchKey',
'in' => 'query',
'schema' => ['description' => 'The keyword used to query the alert history.', 'type' => 'string', 'required' => false, 'example' => 'alert', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => false, 'example' => '7301****', 'title' => ''],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The namespace of the cloud service.'."\n"
."\n"
.'> For more information about the namespaces of cloud services, see [Metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'acs_ecs_dashboard', 'title' => ''],
],
[
'name' => 'Product',
'in' => 'query',
'schema' => ['description' => 'The abbreviation of the cloud service name.'."\n"
."\n"
.'For more information about how to obtain the abbreviation of a cloud service name, see [DescribeProductsOfActiveMetricRule](~~114930~~).', 'type' => 'string', 'required' => false, 'example' => 'ECS', 'title' => ''],
],
[
'name' => 'Level',
'in' => 'query',
'schema' => ['description' => 'The alert level and notification methods. Valid values:'."\n"
."\n"
.'- P2: phone calls, text messages, emails, and DingTalk chatbots.'."\n"
."\n"
.'- P3: text messages, emails, and DingTalk chatbots.'."\n"
."\n"
.'- P4: emails and DingTalk chatbots.'."\n"
."\n"
.'- OK: no alerts.'."\n"
."\n"
.'- P4: emails and DingTalk chatbots.'."\n"
."\n"
.'- OK: no alerts.'."\n"
."\n"
.'- P4: emails and DingTalk chatbots.'."\n"
."\n"
.'- OK: no alerts.', 'type' => 'string', 'required' => false, 'example' => 'P4', 'title' => ''],
],
[
'name' => 'SendStatus',
'in' => 'query',
'schema' => ['description' => 'The alert status. Valid values:'."\n"
.'- 0: An alert is triggered or cleared.'."\n"
.'- 1: The current time is not within the effective period of the alert.'."\n"
.'- 2: The current time is within the channel silence period.'."\n"
.'- 3: The host is being restarted.'."\n"
.'- 4: No alerts are sent.'."\n"
."\n"
.'When the alert status is 0, an alert is triggered if Level is set to P2, P3, or P4; the alert is cleared if Level is set to OK.'."\n"
.'When the alert status is 0, an alert is triggered if Level is set to P4; the alert is cleared if Level is set to OK.'."\n"
.'When the alert status is 0, an alert is triggered if Level is set to P4; the alert is cleared if Level is set to OK.', 'type' => 'string', 'required' => false, 'example' => '0', 'title' => ''],
],
[
'name' => 'ContactGroup',
'in' => 'query',
'schema' => ['description' => 'The alert contact group.', 'type' => 'string', 'required' => false, 'example' => 'ECS_Group', 'title' => ''],
],
[
'name' => 'RuleName',
'in' => 'query',
'schema' => ['description' => 'The name of the alert rule.', 'type' => 'string', 'required' => false, 'example' => 'test123', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The name of the metric.'."\n"
."\n"
.'>For more information about the metrics of cloud services, see [Metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'IntranetInRate', 'title' => ''],
],
[
'name' => 'LastMin',
'in' => 'query',
'schema' => ['description' => 'The interval at which logs are obtained. Unit: minutes.', 'type' => 'string', 'required' => false, 'example' => '360', 'title' => ''],
],
[
'name' => 'GroupBy',
'in' => 'query',
'schema' => ['description' => 'The spatial dimension by which the data is aggregated, which is equivalent to Group By in SQL. Valid values:'."\n"
.'- `product`: aggregates data by cloud service.'."\n"
.'- `level`: aggregates data by alert level.'."\n"
.'- `groupId`: aggregates data by application group.'."\n"
.'- `contactGroup`: aggregates data by alert contact group.'."\n"
.'- `product,metricName`: aggregates data by cloud service and metric. ', 'type' => 'string', 'required' => false, 'example' => 'product', 'title' => ''],
],
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert rule.'."\n"
."\n"
.'For more information about how to query the ID of an alert rule, see [DescribeMetricRuleList](~~114941~~).'."\n", 'type' => 'string', 'required' => false, 'example' => 'bc369e8_30f87e517ed2fc****', 'title' => ''],
],
[
'name' => 'SourceType',
'in' => 'query',
'schema' => ['description' => 'The type of the alert rule. Valid value: METRIC, which indicates a time series metric alert rule.', 'type' => 'string', 'required' => false, 'example' => 'METRIC', 'title' => ''],
],
[
'name' => 'EventType',
'in' => 'query',
'schema' => ['description' => 'The alert type. Valid values:'."\n"
."\n"
.'- TRIGGERED: The alert is triggered.'."\n"
."\n"
.'- RESOLVED: The alert is cleared.', 'type' => 'string', 'required' => false, 'example' => 'TRIGGERED', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '1C4A3709-BF52-42EE-87B5-7435F0929585', 'title' => ''],
'Success' => ['description' => 'Indicates whether the call was successful. Valid values:'."\n"
."\n"
.'- true: The call was successful.'."\n"
."\n"
.'- false: The call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The status code 200 indicates that the call was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
'AlertLogList' => [
'description' => 'The list of alert history entries.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'MetricName' => ['description' => 'The name of the metric.', 'type' => 'string', 'example' => 'cpu_total', 'title' => ''],
'EventName' => ['description' => 'The name of the event.', 'type' => 'string', 'example' => 'IOHang', 'title' => ''],
'Product' => ['description' => 'The cloud service identifier. Valid values:'."\n"
."\n"
.'- For an Alibaba Cloud service, the value is the abbreviation of the cloud service name. Example: ECS.'."\n"
."\n"
.'- For a non-Alibaba Cloud service, the value is in the format of `acs_Product keyword`. Example: acs_networkmonitor.', 'type' => 'string', 'example' => 'ECS', 'title' => ''],
'BlackListUUID' => ['description' => 'The UUID of the matched alert blacklist.', 'type' => 'string', 'example' => '8410dbbd-7d30-41c5-94cb-****', 'title' => ''],
'Message' => ['description' => 'The alert-related information, which is a JSON string.', 'type' => 'string', 'example' => '{"alertName":"e47aa0ac-4076-44db-a47d-d1083968****_Availability"}', 'title' => ''],
'Namespace' => ['description' => 'The namespace of the cloud service.', 'type' => 'string', 'example' => 'acs_ecs_dashboard', 'title' => ''],
'LevelChange' => ['description' => 'The change of the alert level. Valid values:'."\n"
.'- `P4->OK`: The alert level changes from P4 to OK, which indicates that the alert is cleared.'."\n"
.'- `P4->P4`: indicates a P4-level alert.', 'type' => 'string', 'example' => 'P4->OK', 'title' => ''],
'InstanceId' => ['description' => 'The ID of the resource.', 'type' => 'string', 'example' => 'i-m5e1qg6uo38rztr4****', 'title' => ''],
'RuleName' => ['description' => 'The name of the alert rule.', 'type' => 'string', 'example' => 'CPU utilization', 'title' => ''],
'RuleId' => ['description' => 'The ID of the alert rule.', 'type' => 'string', 'example' => 'd582b9e9-b1c1-4f17-9279-0fe7333a****_ResponseTime', 'title' => ''],
'BlackListName' => ['description' => 'The name of the matched alert blacklist.', 'type' => 'string', 'example' => 'Black_Test', 'title' => ''],
'GroupName' => ['description' => 'The name of the application group.', 'type' => 'string', 'example' => 'ECS_Instances', 'title' => ''],
'GroupId' => ['description' => 'The ID of the application group.', 'type' => 'string', 'example' => '7301****', 'title' => ''],
'AlertTime' => ['description' => 'The timestamp when the alert was triggered.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'string', 'example' => '1610043776621', 'title' => ''],
'InstanceName' => ['description' => 'The name of the resource.', 'type' => 'string', 'example' => 'portalHost', 'title' => ''],
'BlackListDetail' => ['description' => 'The details of the matched alert blacklist.', 'type' => 'string', 'example' => '{"id":12****,"metricProject":"acs_ecs_dashboard","userId":173651113438****,"uuid":"8410dbbd-7d30-41c5-94cb-****","name":"alert-****","productCategory":"ecs","instances":[{"instanceId":"i-m5e1qg6uo38rztr4****"}],"metrics":null,"scopeType":"USER","scopeValue":"","startTime":"0001-01-01T00:00:00Z","endTime":"9999-12-31T23:59:59.999999999+08:00","effectiveTime":null,"isEnable":true,"status":1,"gmtCreate":"2021-11-02T16:35:59+08:00","gmtModified":"2021-11-02T16:35:59+08:00","loadTime":"2021-11-02T16:36:15.213072177+08:00"}', 'title' => ''],
'Level' => ['description' => 'The alert level and notification methods. Valid values:'."\n"
."\n"
.'- P2: phone calls, text messages, emails, and DingTalk chatbots.'."\n"
."\n"
.'- P3: text messages, emails, and DingTalk chatbots.'."\n"
."\n"
.'- P4: emails and DingTalk chatbots.'."\n"
."\n"
.'- OK: no alerts.'."\n"
."\n"
.'- P4: emails and DingTalk chatbots.'."\n"
."\n"
.'- OK: no alerts.'."\n"
."\n"
.'- P4: emails and DingTalk chatbots.'."\n"
."\n"
.'- OK: no alerts.', 'type' => 'string', 'example' => 'P4', 'title' => ''],
'SendStatus' => ['description' => 'The alert status. Valid values:'."\n"
.'- 0: An alert is triggered or cleared.'."\n"
.'- 1: The current time is not within the effective period of the alert.'."\n"
.'- 2: The current time is within the channel silence period.'."\n"
.'- 3: The host is being restarted.'."\n"
.'- 4: No alerts are sent.'."\n"
."\n"
.'When the alert status is 0, an alert is triggered if Level is set to P2, P3, or P4; the alert is cleared if Level is set to OK.'."\n"
.'When the alert status is 0, an alert is triggered if Level is set to P4; the alert is cleared if Level is set to OK.'."\n"
.'When the alert status is 0, an alert is triggered if Level is set to P4; the alert is cleared if Level is set to OK.', 'type' => 'string', 'example' => '0', 'title' => ''],
'ExtendedInfo' => [
'description' => 'The extended information of the alert.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The name of the extension field.', 'type' => 'string', 'example' => 'userId', 'title' => ''],
'Value' => ['description' => 'The value of the extension field.', 'type' => 'string', 'example' => '100931896542****', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Dimensions' => [
'description' => 'The dimensions of the resource for which the alert is triggered.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The key of the alerting resource.', 'type' => 'string', 'example' => 'instanceId', 'title' => ''],
'Value' => ['description' => 'The value of the alerting resource.', 'type' => 'string', 'example' => 'i-m5e1qg6uo38rztr4****', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'WebhookList' => [
'description' => 'The list of URLs that are called back when the alert is triggered.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'code' => ['description' => 'The status code returned for the alert callback.', 'type' => 'string', 'example' => '200', 'title' => ''],
'url' => ['description' => 'The URL that is called back when the alert is triggered.', 'type' => 'string', 'example' => 'https://www.aliyun.com/webhook.html', 'title' => ''],
'message' => ['description' => 'The information returned for the alert callback.', 'type' => 'string', 'example' => 'success', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'DingdingWebhookList' => [
'description' => 'The list of webhook URLs of DingTalk chatbots for the alert contact.',
'type' => 'array',
'items' => ['description' => 'The list of webhook URLs of DingTalk chatbots for the alert contact.', 'type' => 'string', 'example' => 'https://oapi.dingtalk.com/robot/send?access_token=b7ff24032da1a5f86659ecda46797e13cc1d4e4da6903d7b014ea1d1488b****', 'title' => ''],
'title' => '',
'example' => '',
],
'ContactOnCallList' => [
'description' => 'The list of phone numbers of the alert contact.',
'type' => 'array',
'items' => ['description' => 'The list of phone numbers of the alert contact.'."\n"
."\n"
.'> This parameter is applicable only to the China site.', 'type' => 'string', 'example' => '1368888****', 'title' => ''],
'title' => '',
'example' => '',
],
'ContactMailList' => [
'description' => 'The list of email addresses of the alert contact.',
'type' => 'array',
'items' => ['description' => 'The list of email addresses of the alert contact.', 'type' => 'string', 'example' => 'username@example.com', 'title' => ''],
'title' => '',
'example' => '',
],
'ContactGroups' => [
'description' => 'The list of alert contact groups.',
'type' => 'array',
'items' => ['description' => 'The alert contact group.', 'type' => 'string', 'example' => 'ECS_Group', 'title' => ''],
'title' => '',
'example' => '',
],
'ContactALIIWWList' => [
'description' => 'The list of Wangwang IDs of the alert contact.',
'type' => 'array',
'items' => ['description' => 'The list of Wangwang IDs of the alert contact.'."\n"
."\n"
.'> This parameter is applicable only to the China site.', 'type' => 'string', 'example' => 'Alice', 'title' => ''],
'title' => '',
'example' => '',
],
'ContactSMSList' => [
'description' => 'The list of phone numbers that receive text messages of the alert contact.',
'type' => 'array',
'items' => ['description' => 'The list of phone numbers that receive text messages of the alert contact.'."\n"
."\n"
.'> This parameter is applicable only to the China site.', 'type' => 'string', 'example' => '1368888****', 'title' => ''],
'title' => '',
'example' => '',
],
'ContactDingList' => [
'description' => 'The list of DingTalk accounts of the alert contact.',
'type' => 'array',
'items' => ['description' => 'The list of DingTalk accounts of the alert contact.', 'type' => 'string', 'example' => 'CloudMonitor', 'title' => ''],
'title' => '',
'example' => '',
],
'SendDetail' => [
'description' => 'The details of the alert pushing result.',
'type' => 'object',
'properties' => [
'ResultCode' => ['description' => 'The pushing status of the alert information.'."\n"
."\n"
.'- success: The alert was pushed.'."\n"
."\n"
.'- error code: If a configuration error occurs and the pushing list is empty, an error code is displayed.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'ChannelResultList' => [
'description' => 'The list of alert pushing results by alert channel.',
'type' => 'array',
'items' => [
'description' => 'The alert pushing result by alert channel.',
'type' => 'object',
'properties' => [
'Channel' => ['description' => 'The alert pushing channel. Valid values:'."\n"
."\n"
.'- MAIL: email.'."\n"
."\n"
.'- SMS: text message.'."\n"
."\n"
.'- WEBHOOK: alert callback.'."\n"
."\n"
.'- SLS: Log Service.'."\n"
."\n"
.'- ONCALL: phone call.'."\n"
."\n"
.'- FC: Function Compute.'."\n"
."\n"
.'- MNS: Message Service (MNS).', 'type' => 'string', 'example' => 'MAIL', 'title' => ''],
'ResultList' => [
'description' => 'The list of alert information results that CloudMonitor sends to the alert channel.',
'type' => 'array',
'items' => [
'description' => 'The alert information result that CloudMonitor sends to the alert channel.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'- If `Channel` is set to `WEBHOOK`, the status code is 200 or 500.'."\n"
."\n"
.'- If `Channel` is set to `MAIL`, `SMS`, `SLS`, `ONCALL`, `FC`, or `MNS`, this parameter is unavailable or empty.', 'type' => 'string', 'example' => '200', 'title' => ''],
'RequestId' => ['description' => 'The request ID returned by calling another cloud service.', 'type' => 'string', 'example' => '0BDAF8A8-04DC-5F0C-90E4-724D42C4****', 'title' => ''],
'Success' => ['description' => 'The result of calling the target.'."\n"
."\n"
.'- true: The call was successful.'."\n"
."\n"
.'- false: The call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Detail' => ['description' => 'The details of the returned result.', 'type' => 'string', 'example' => '{ }', 'title' => ''],
'notifyTargetList' => [
'description' => 'The list of channel notifications.',
'type' => 'array',
'items' => ['description' => 'The list of channel notifications.', 'type' => 'string', 'example' => 'MAIL', 'title' => ''],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'Escalation' => [
'description' => 'The rule that triggers the alert.',
'type' => 'object',
'properties' => [
'Expression' => ['description' => 'The description of the rule that triggers the alert.'."\n"
."\n"
.'> The body of the alert rule. An alert rule is triggered when the monitoring data meets the alert conditions.', 'type' => 'string', 'example' => '$Average<90', 'title' => ''],
'Times' => ['description' => 'The number of times that the alert is retried.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Level' => ['description' => 'The alert level and notification methods. Valid values:'."\n"
."\n"
.'- P2: phone calls, text messages, emails, and DingTalk chatbots.'."\n"
."\n"
.'- P3: text messages, emails, and DingTalk chatbots.'."\n"
."\n"
.'- P4: emails and DingTalk chatbots.'."\n"
."\n"
.'- OK: no alerts.'."\n"
."\n"
.'- P4: emails and DingTalk chatbots.'."\n"
."\n"
.'- OK: no alerts.'."\n"
."\n"
.'- P4: emails and DingTalk chatbots.'."\n"
."\n"
.'- OK: no alerts.', 'type' => 'string', 'example' => 'P4', 'title' => ''],
],
'title' => '',
'example' => '',
],
'SendResultList' => [
'description' => 'The list of alert sending results.',
'type' => 'array',
'items' => [
'description' => 'The list of alert sending results.',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The channel that sends the alert. Valid values:'."\n"
.'- MAIL: email.'."\n"
.'- ALIIM: Wangwang.'."\n"
.'- SMS: text message.'."\n"
.'- CALL: phone call.'."\n"
.'- DING: DingTalk chatbot.'."\n"
.'- Merged: alert combination.', 'type' => 'string', 'example' => 'MAIL', 'title' => ''],
'Value' => [
'description' => 'The notification target that corresponds to the alert channel.',
'type' => 'array',
'items' => ['description' => 'The notification target that corresponds to the alert channel.', 'type' => 'string', 'example' => 'username@example.com', 'title' => ''],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'LogId' => ['description' => 'The log ID.', 'type' => 'string', 'example' => '7510****::e8a472a0-46ae-4ac0-84b1-e46be368****', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Parameter invalid.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
409 => [
['errorCode' => 'ResourceConflict', 'errorMessage' => 'Concurrent modification of resources.', 'description' => ''],
['errorCode' => 'ResourceExist', 'errorMessage' => 'Resources already exist.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Queries the alert history',
'description' => 'This operation can query the alert history only within the last year.'."\n"
."\n"
.'This topic provides an example to show how to query the alert history of Elastic Compute Service (ECS) from the cloud service `product` dimension.',
'requestParamsDescription' => ' For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-02-13T11:47:48.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2023-12-07T03:28:51.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2023-07-27T09:48:52.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2022-09-29T06:58:57.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-10-29T08:09:51.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-10-29T08:09:51.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeAlertLogList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeAlertLogList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1C4A3709-BF52-42EE-87B5-7435F0929585\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"AlertLogList\\": [\\n {\\n \\"MetricName\\": \\"cpu_total\\",\\n \\"EventName\\": \\"IOHang\\",\\n \\"Product\\": \\"ECS\\",\\n \\"BlackListUUID\\": \\"8410dbbd-7d30-41c5-94cb-****\\",\\n \\"Message\\": \\"{\\\\\\"alertName\\\\\\":\\\\\\"e47aa0ac-4076-44db-a47d-d1083968****_Availability\\\\\\"}\\",\\n \\"Namespace\\": \\"acs_ecs_dashboard\\",\\n \\"LevelChange\\": \\"P4->OK\\",\\n \\"InstanceId\\": \\"i-m5e1qg6uo38rztr4****\\",\\n \\"RuleName\\": \\"CPU utilization\\",\\n \\"RuleId\\": \\"d582b9e9-b1c1-4f17-9279-0fe7333a****_ResponseTime\\",\\n \\"BlackListName\\": \\"Black_Test\\",\\n \\"GroupName\\": \\"ECS_Instances\\",\\n \\"GroupId\\": \\"7301****\\",\\n \\"AlertTime\\": \\"1610043776621\\",\\n \\"InstanceName\\": \\"portalHost\\",\\n \\"BlackListDetail\\": \\"{\\\\\\"id\\\\\\":12****,\\\\\\"metricProject\\\\\\":\\\\\\"acs_ecs_dashboard\\\\\\",\\\\\\"userId\\\\\\":173651113438****,\\\\\\"uuid\\\\\\":\\\\\\"8410dbbd-7d30-41c5-94cb-****\\\\\\",\\\\\\"name\\\\\\":\\\\\\"alert-****\\\\\\",\\\\\\"productCategory\\\\\\":\\\\\\"ecs\\\\\\",\\\\\\"instances\\\\\\":[{\\\\\\"instanceId\\\\\\":\\\\\\"i-m5e1qg6uo38rztr4****\\\\\\"}],\\\\\\"metrics\\\\\\":null,\\\\\\"scopeType\\\\\\":\\\\\\"USER\\\\\\",\\\\\\"scopeValue\\\\\\":\\\\\\"\\\\\\",\\\\\\"startTime\\\\\\":\\\\\\"0001-01-01T00:00:00Z\\\\\\",\\\\\\"endTime\\\\\\":\\\\\\"9999-12-31T23:59:59.999999999+08:00\\\\\\",\\\\\\"effectiveTime\\\\\\":null,\\\\\\"isEnable\\\\\\":true,\\\\\\"status\\\\\\":1,\\\\\\"gmtCreate\\\\\\":\\\\\\"2021-11-02T16:35:59+08:00\\\\\\",\\\\\\"gmtModified\\\\\\":\\\\\\"2021-11-02T16:35:59+08:00\\\\\\",\\\\\\"loadTime\\\\\\":\\\\\\"2021-11-02T16:36:15.213072177+08:00\\\\\\"}\\",\\n \\"Level\\": \\"P4\\",\\n \\"SendStatus\\": \\"0\\",\\n \\"ExtendedInfo\\": [\\n {\\n \\"Name\\": \\"userId\\",\\n \\"Value\\": \\"100931896542****\\"\\n }\\n ],\\n \\"Dimensions\\": [\\n {\\n \\"Key\\": \\"instanceId\\",\\n \\"Value\\": \\"i-m5e1qg6uo38rztr4****\\"\\n }\\n ],\\n \\"WebhookList\\": [\\n {\\n \\"code\\": \\"200\\",\\n \\"url\\": \\"https://www.aliyun.com/webhook.html\\",\\n \\"message\\": \\"success\\"\\n }\\n ],\\n \\"DingdingWebhookList\\": [\\n \\"https://oapi.dingtalk.com/robot/send?access_token=b7ff24032da1a5f86659ecda46797e13cc1d4e4da6903d7b014ea1d1488b****\\"\\n ],\\n \\"ContactOnCallList\\": [\\n \\"1368888****\\"\\n ],\\n \\"ContactMailList\\": [\\n \\"username@example.com\\"\\n ],\\n \\"ContactGroups\\": [\\n \\"ECS_Group\\"\\n ],\\n \\"ContactALIIWWList\\": [\\n \\"Alice\\"\\n ],\\n \\"ContactSMSList\\": [\\n \\"1368888****\\"\\n ],\\n \\"ContactDingList\\": [\\n \\"CloudMonitor\\"\\n ],\\n \\"SendDetail\\": {\\n \\"ResultCode\\": \\"success\\",\\n \\"ChannelResultList\\": [\\n {\\n \\"Channel\\": \\"MAIL\\",\\n \\"ResultList\\": [\\n {\\n \\"Code\\": \\"200\\",\\n \\"RequestId\\": \\"0BDAF8A8-04DC-5F0C-90E4-724D42C4****\\",\\n \\"Success\\": true,\\n \\"Detail\\": \\"{ }\\",\\n \\"notifyTargetList\\": [\\n \\"MAIL\\"\\n ]\\n }\\n ]\\n }\\n ]\\n },\\n \\"Escalation\\": {\\n \\"Expression\\": \\"$Average<90\\",\\n \\"Times\\": 1,\\n \\"Level\\": \\"P4\\"\\n },\\n \\"SendResultList\\": [\\n {\\n \\"Key\\": \\"MAIL\\",\\n \\"Value\\": [\\n \\"username@example.com\\"\\n ]\\n }\\n ],\\n \\"LogId\\": \\"7510****::e8a472a0-46ae-4ac0-84b1-e46be368****\\"\\n }\\n ]\\n}","type":"json"}]',
],
'DescribeAlertingMetricRuleResources' => [
'summary' => 'Queries the list of resources that are triggering alerts for a specified alert rule.',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['description' => 'The alert rule ID. For information about how to query alert rule IDs, see [DescribeMetricRuleList](~~114941~~).', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'putNewAlarm_user_7e78d765-0e3e-4671-ba6d-7ce39108****', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The application group ID. For information about how to query application group IDs, see [DescribeMonitorGroups](~~115032~~).', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '7671****', 'title' => ''],
],
[
'name' => 'Page',
'in' => 'query',
'schema' => ['description' => 'The page number. '."\n"
."\n"
.'Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.'."\n"
."\n"
.'Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The data namespace of the cloud service.'."\n"
."\n"
.'For information about how to obtain the data namespace of a cloud service, see [Cloud service monitoring metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'acs_mns_new', 'title' => ''],
],
[
'name' => 'Dimensions',
'in' => 'query',
'schema' => ['description' => 'The dimension map used to query monitoring data for a specified resource.', 'type' => 'string', 'required' => false, 'example' => '{\\"userId\\":\\"120886317861****\\",\\"region\\":\\"cn-huhehaote\\",\\"queue\\":\\"test-0128\\"}', 'title' => ''],
],
[
'name' => 'AlertBeforeTime',
'in' => 'query',
'schema' => ['description' => 'Queries alerts that occurred before this point in time. The value is a millisecond-level timestamp.', 'type' => 'string', 'required' => false, 'example' => '1698827400000', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
.'>A value of 200 indicates success.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The request processing has failed due to some unknown error.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0724011B-D9E0-4B2F-8C51-F17A894CC42C', 'title' => ''],
'Total' => ['description' => 'The total number of records.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Resources' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Resource' => [
'description' => 'The list of resources associated with the alert rule.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'MetricName' => ['description' => 'The metric name.', 'type' => 'string', 'example' => 'ActiveMessages', 'title' => ''],
'RetryTimes' => ['description' => 'The number of alert retries.', 'type' => 'string', 'example' => '3', 'title' => ''],
'MetricValues' => ['description' => 'The metric values when the alert was triggered. The value is a JSON string.', 'type' => 'string', 'example' => '{\\"timestamp\\":1623727500000,\\"Sum\\":926,\\"value\\":463,\\"Maximum\\":463,\\"Minimum\\":463,\\"Average\\":463,\\"SampleCount\\":2,\\"userId\\":\\"120886317861****\\",\\"region\\":\\"cn-huhehaote\\",\\"queue\\":\\"test-0128\\"}', 'title' => ''],
'Namespace' => ['description' => 'The namespace of the cloud service.', 'type' => 'string', 'example' => 'acs_mns_new', 'title' => ''],
'RuleName' => ['description' => 'The alert rule name.', 'type' => 'string', 'example' => 'test123456789', 'title' => ''],
'RuleId' => ['description' => 'The alert rule ID.', 'type' => 'string', 'example' => 'putNewAlarm_user_7e78d765-0e3e-4671-ba6d-7ce39108****', 'title' => ''],
'ProductCategory' => ['description' => 'The cloud service type.', 'type' => 'string', 'example' => 'mns', 'title' => ''],
'StartTime' => ['description' => 'The timestamp when the resource was associated with the alert rule.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'string', 'example' => '1622427900000', 'title' => ''],
'Resource' => ['description' => 'The resource that triggered the alert.', 'type' => 'string', 'example' => 'userId=120886317861****,region=cn-huhehaote,queue=test-0128', 'title' => ''],
'LastModifyTime' => ['description' => 'The timestamp when the alert rule was last modified.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'string', 'example' => '1622827900000', 'title' => ''],
'GroupId' => ['description' => 'The application group ID.'."\n"
.'>If the alert rule is associated with a specified application group, this application group ID is displayed.', 'type' => 'string', 'example' => '7671****', 'title' => ''],
'Dimensions' => ['description' => 'The dimension map used to query monitoring data for a specified resource.', 'type' => 'string', 'example' => '{\\"region\\":\\"cn-huhehaote\\",\\"queue\\":\\"test-0128\\",\\"userId\\":\\"120886317861****\\"}', 'title' => ''],
'LastAlertTime' => ['description' => 'The timestamp when the alert was last triggered.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'string', 'example' => '1622427900000', 'title' => ''],
'Level' => ['description' => 'The alert level and notification method. Valid values:'."\n"
."\n"
.'- 2: phone call + text message + email + DingTalk chatbot.'."\n"
."\n"
.'- 3: text message + email + DingTalk chatbot.'."\n"
."\n"
.'- 4: email + DingTalk chatbot.'."\n"
."\n"
.'- OK: no alert.'."\n"
."\n"
.'- 4: email + DingTalk chatbot.'."\n"
."\n"
.'- OK: no alert.'."\n"
."\n"
.'- 4: email + DingTalk chatbot.'."\n"
."\n"
.'- OK: no alert.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''],
'Threshold' => ['description' => 'The alert threshold.', 'type' => 'string', 'example' => '10', 'title' => ''],
'Statistics' => ['description' => 'The statistical method for the alert.', 'type' => 'string', 'example' => 'Average', 'title' => ''],
'Enable' => ['description' => 'Indicates whether the alert rule is enabled. Valid values:'."\n"
."\n"
.'- true: The alert rule is enabled.'."\n"
."\n"
.'- false: The alert rule is disabled.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'Escalation' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Resource' => [
'description' => 'The rule that triggered the alert.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'ComparisonOperator' => ['description' => 'The threshold comparison operator. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to'."\n"
."\n"
.'- GreaterThanThreshold: greater than'."\n"
."\n"
.'- LessThanOrEqualToThreshold: less than or equal to'."\n"
."\n"
.'- LessThanThreshold: less than'."\n"
."\n"
.'- NotEqualToThreshold: not equal to'."\n"
."\n"
.'- GreaterThanYesterday: increased compared with the same time yesterday'."\n"
."\n"
.'- LessThanYesterday: decreased compared with the same time yesterday'."\n"
."\n"
.'- GreaterThanLastWeek: increased compared with the same time last week'."\n"
."\n"
.'- LessThanLastWeek: decreased compared with the same time last week'."\n"
."\n"
.'- GreaterThanLastPeriod: increased compared with the previous period'."\n"
."\n"
.'- LessThanLastPeriod: decreased compared with the previous period', 'type' => 'string', 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'PreCondition' => ['description' => 'The threshold comparison symbol. Valid values:'."\n"
."\n"
.'- `>=`'."\n"
."\n"
.'- `=`'."\n"
."\n"
.'- `<=`'."\n"
."\n"
.'- `>`'."\n"
."\n"
.'- `<`'."\n"
."\n"
.'- `!=`', 'type' => 'string', 'example' => '>=', 'title' => ''],
'Expression' => ['description' => 'The description of the rule that triggered the alert.'."\n"
."\n"
.'> This is the body of the alert rule. When monitoring data meets the alert condition, the alert rule is triggered.', 'type' => 'string', 'example' => '$Average>=10', 'title' => ''],
'Times' => ['description' => 'The number of alert retries.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Tag' => ['description' => 'This parameter is deprecated and can be ignored.', 'type' => 'string', 'example' => '无', 'title' => ''],
'Threshold' => ['description' => 'The alert threshold.', 'type' => 'string', 'example' => '10', 'title' => ''],
'Level' => ['description' => 'The alert level and notification method. Valid values:'."\n"
."\n"
.'- 2: phone call + text message + email + DingTalk chatbot.'."\n"
."\n"
.'- 3: text message + email + DingTalk chatbot.'."\n"
."\n"
.'- 4: email + DingTalk chatbot.'."\n"
."\n"
.'- OK: no alert.'."\n"
."\n"
.'- 4: email + DingTalk chatbot.'."\n"
."\n"
.'- OK: no alert.'."\n"
."\n"
.'- 4: email + DingTalk chatbot.'."\n"
."\n"
.'- OK: no alert.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''],
'ExpressionListJoin' => ['description' => 'The relationship between multiple metrics. Valid values:'."\n"
."\n"
.'- &&: An alert notification is sent only when all metrics meet the alert conditions.'."\n"
.'- ||: An alert notification is sent when any metric meets the alert conditions.', 'type' => 'string', 'example' => '&&', 'title' => ''],
'ExpressionList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ExpressionList' => [
'description' => 'The description of the multi-metric alert rule.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'ComparisonOperator' => ['description' => 'The threshold comparison operator for the alert level. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to'."\n"
.'- GreaterThanThreshold: greater than'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to'."\n"
.'- LessThanThreshold: less than'."\n"
.'- NotEqualToThreshold: not equal to'."\n"
.'- GreaterThanYesterday: increased compared with the same time yesterday'."\n"
.'- LessThanYesterday: decreased compared with the same time yesterday'."\n"
.'- GreaterThanLastWeek: increased compared with the same time last week'."\n"
.'- LessThanLastWeek: decreased compared with the same time last week'."\n"
.'- GreaterThanLastPeriod: increased compared with the previous period'."\n"
.'- LessThanLastPeriod: decreased compared with the previous period', 'type' => 'string', 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'MetricName' => ['description' => 'The metric name.', 'type' => 'string', 'example' => 'cpu_total', 'title' => ''],
'Period' => ['description' => 'The statistical period of the metric. Unit: seconds. The default value is the original reporting period of the metric.', 'type' => 'string', 'example' => '60', 'title' => ''],
'Statistics' => ['description' => 'The statistical method for the alert level. Valid values:'."\n"
."\n"
.'- Maximum: maximum value'."\n"
.'- Minimum: minimum value'."\n"
.'- Average: average value', 'type' => 'string', 'example' => 'Average', 'title' => ''],
'Threshold' => ['description' => 'The alert threshold.', 'type' => 'string', 'example' => '90', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'ExpressionRaw' => ['description' => 'The alert condition created by using an expression. The following scenarios are supported but not limited to:'."\n"
."\n"
.'- Set an alert blacklist for specific resources. For example, `$instanceId != \'i-io8kfvcpp7x5****\' ``&&`` $Average > 50` specifies that no alert is triggered for instance `i-io8kfvcpp7x5****` even if its `Average` exceeds 50.'."\n"
.'- Set a special alert threshold for a specific instance in the rule. For example, `$Average > ($instanceId == \'i-io8kfvcpp7x5****\'? 80: 50)` specifies that an alert is triggered for instance `i-io8kfvcpp7x5****` only when its `Average` exceeds 80, while an alert is triggered for other instances when their `Average` exceeds 50.'."\n"
.'- Limit the number of instances that exceed the threshold. For example, `count($Average > 20) > 3` specifies that an alert is triggered only when more than three instances in the alert rule have an `Average` greater than 20.', 'type' => 'string', 'example' => '$Average > ($instanceId == \'i-io8kfvcpp7x5****\'? 80: 50)', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Query resources with active alerts for a specified alert rule',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-10-20T09:20:56.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2022-09-01T02:53:57.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeAlertingMetricRuleResources'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeAlertingMetricRuleResources',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"The request processing has failed due to some unknown error.\\",\\n \\"RequestId\\": \\"0724011B-D9E0-4B2F-8C51-F17A894CC42C\\",\\n \\"Total\\": 2,\\n \\"Success\\": true,\\n \\"Resources\\": {\\n \\"Resource\\": [\\n {\\n \\"MetricName\\": \\"ActiveMessages\\",\\n \\"RetryTimes\\": \\"3\\",\\n \\"MetricValues\\": \\"{\\\\\\\\\\\\\\"timestamp\\\\\\\\\\\\\\":1623727500000,\\\\\\\\\\\\\\"Sum\\\\\\\\\\\\\\":926,\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":463,\\\\\\\\\\\\\\"Maximum\\\\\\\\\\\\\\":463,\\\\\\\\\\\\\\"Minimum\\\\\\\\\\\\\\":463,\\\\\\\\\\\\\\"Average\\\\\\\\\\\\\\":463,\\\\\\\\\\\\\\"SampleCount\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"userId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"120886317861****\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"region\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"cn-huhehaote\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"queue\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"test-0128\\\\\\\\\\\\\\"}\\",\\n \\"Namespace\\": \\"acs_mns_new\\",\\n \\"RuleName\\": \\"test123456789\\",\\n \\"RuleId\\": \\"putNewAlarm_user_7e78d765-0e3e-4671-ba6d-7ce39108****\\",\\n \\"ProductCategory\\": \\"mns\\",\\n \\"StartTime\\": \\"1622427900000\\",\\n \\"Resource\\": \\"userId=120886317861****,region=cn-huhehaote,queue=test-0128\\",\\n \\"LastModifyTime\\": \\"1622827900000\\",\\n \\"GroupId\\": \\"7671****\\",\\n \\"Dimensions\\": \\"{\\\\\\\\\\\\\\"region\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"cn-huhehaote\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"queue\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"test-0128\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"userId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"120886317861****\\\\\\\\\\\\\\"}\\",\\n \\"LastAlertTime\\": \\"1622427900000\\",\\n \\"Level\\": 3,\\n \\"Threshold\\": \\"10\\",\\n \\"Statistics\\": \\"Average\\",\\n \\"Enable\\": \\"true\\",\\n \\"Escalation\\": {\\n \\"Resource\\": [\\n {\\n \\"ComparisonOperator\\": \\"GreaterThanOrEqualToThreshold\\",\\n \\"PreCondition\\": \\">=\\",\\n \\"Expression\\": \\"$Average>=10\\",\\n \\"Times\\": 1,\\n \\"Tag\\": \\"无\\",\\n \\"Threshold\\": \\"10\\",\\n \\"Level\\": 3,\\n \\"ExpressionListJoin\\": \\"&&\\",\\n \\"ExpressionList\\": {\\n \\"ExpressionList\\": [\\n {\\n \\"ComparisonOperator\\": \\"GreaterThanOrEqualToThreshold\\",\\n \\"MetricName\\": \\"cpu_total\\",\\n \\"Period\\": \\"60\\",\\n \\"Statistics\\": \\"Average\\",\\n \\"Threshold\\": \\"90\\"\\n }\\n ]\\n },\\n \\"ExpressionRaw\\": \\"$Average > ($instanceId == \'i-io8kfvcpp7x5****\'? 80: 50)\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
'translator' => 'machine',
],
'DescribeContactGroupList' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'Number of records per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '100', 'example' => '10', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'Page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '1', 'example' => '1', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Status code. Note that 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'Return message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The ID of this call request, which is a unique identifier generated by Alibaba Cloud for the request and can be used for troubleshooting and problem localization.', 'type' => 'string', 'example' => '916EE694-03C2-47B6-85EE-5054E3C168D3', 'title' => ''],
'Total' => ['description' => 'Total number of records.', 'type' => 'integer', 'format' => 'int32', 'example' => '22', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Values:'."\n"
."\n"
.'- true: Success.'."\n"
."\n"
.'- false: Failure.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'ContactGroups' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ContactGroup' => [
'description' => 'List of alarm contact groups.',
'type' => 'array',
'items' => ['description' => 'Alarm contact group.', 'type' => 'string', 'example' => '云账号报警联系人', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'ContactGroupList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ContactGroup' => [
'description' => 'List of alarm contact groups.',
'type' => 'array',
'items' => [
'description' => 'Alarm contact group.',
'type' => 'object',
'properties' => [
'Describe' => ['description' => 'Description information of the alarm contact group.', 'type' => 'string', 'example' => 'Devops-运维组', 'title' => ''],
'UpdateTime' => ['description' => 'Update time.', 'type' => 'integer', 'format' => 'int64', 'example' => '2025-03-04T02:12:06Z', 'title' => ''],
'CreateTime' => ['description' => 'Creation time.', 'type' => 'integer', 'format' => 'int64', 'example' => '2023-06-07T03:52:30Z', 'title' => ''],
'EnabledWeeklyReport' => ['description' => 'Indicates whether the weekly report function is enabled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'Name' => ['description' => 'Name.', 'type' => 'string', 'example' => 'name', 'title' => ''],
'EnableSubscribed' => ['description' => 'Indicates whether the weekly report subscription function is enabled. Values:'."\n"
."\n"
.'- true: Yes.'."\n"
."\n"
.'- false: No.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'Contacts' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Contact' => [
'description' => 'List of contacts.',
'type' => 'array',
'items' => ['description' => 'Contact.', 'type' => 'string', 'example' => '135xxxx8066', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
200 => [
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => ''],
],
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'InvalidAuthorization', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Query Alarm Contact Group List',
'summary' => 'Call the DescribeContactGroupList interface to query the list of alarm contact groups.',
'changeSet' => [
['createdAt' => '2022-01-11T10:15:57.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeContactGroupList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeContactGroupList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"916EE694-03C2-47B6-85EE-5054E3C168D3\\",\\n \\"Total\\": 22,\\n \\"Success\\": true,\\n \\"ContactGroups\\": {\\n \\"ContactGroup\\": [\\n \\"云账号报警联系人\\"\\n ]\\n },\\n \\"ContactGroupList\\": {\\n \\"ContactGroup\\": [\\n {\\n \\"Describe\\": \\"Devops-运维组\\",\\n \\"UpdateTime\\": 0,\\n \\"CreateTime\\": 0,\\n \\"EnabledWeeklyReport\\": false,\\n \\"Name\\": \\"name\\",\\n \\"EnableSubscribed\\": false,\\n \\"Contacts\\": {\\n \\"Contact\\": [\\n \\"135xxxx8066\\"\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeContactList' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.'."\n"
."\n"
.'Default value: 100.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '100', 'example' => '10', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The current page number.'."\n"
."\n"
.'Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '1', 'example' => '1', 'title' => ''],
],
[
'name' => 'ContactName',
'in' => 'query',
'schema' => ['description' => 'The name of the alert contact.', 'type' => 'string', 'required' => false, 'example' => 'Alice', 'title' => ''],
],
[
'name' => 'ChanelType',
'in' => 'query',
'schema' => ['description' => 'The alert notification method. Valid values:'."\n"
."\n"
.'- SMS: text message.'."\n"
."\n"
.'- AliIM: TradeManager.'."\n"
."\n"
.'- Mail: email.'."\n"
."\n"
.'- DingWebHook: DingTalk chatbot.', 'type' => 'string', 'required' => false, 'example' => 'Mail', 'title' => ''],
],
[
'name' => 'ChanelValue',
'in' => 'query',
'schema' => ['description' => 'The value of the alert notification method.'."\n"
."\n"
.'> This parameter is required only when `ChanelType` is set to `Mail`.', 'type' => 'string', 'required' => false, 'example' => 'Alice@example.com', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '06D5ECC2-B9BE-42A4-8FA3-1A610FB08B83', 'title' => ''],
'Total' => ['description' => 'The total number of records.', 'type' => 'integer', 'format' => 'int32', 'example' => '15', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: Successful.'."\n"
."\n"
.'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Contacts' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Contact' => [
'description' => 'The alert notification methods.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'UpdateTime' => ['description' => 'The timestamp when the alert contact was last updated.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1552356159000', 'title' => ''],
'Name' => ['description' => 'The name of the alert contact.', 'type' => 'string', 'example' => 'Alice', 'title' => ''],
'CreateTime' => ['description' => 'The timestamp when the alert contact was created.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1552356159000', 'title' => ''],
'Lang' => ['description' => 'The language type of the alert. Valid values:'."\n"
.'- zh-cn: simplified Chinese.'."\n"
.'- en: English.', 'type' => 'string', 'example' => 'zh-cn', 'title' => ''],
'Desc' => ['description' => 'The description.', 'type' => 'string', 'example' => 'ECS', 'title' => ''],
'ContactGroups' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ContactGroup' => [
'description' => 'None.',
'type' => 'array',
'items' => ['description' => 'The alert contact groups.', 'type' => 'string', 'example' => '{ "ContactGroup": [ "ECS_Group", "Jim" ] }', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'Channels' => [
'description' => 'The alert notification methods.',
'type' => 'object',
'properties' => [
'Mail' => ['description' => 'The email address.', 'type' => 'string', 'example' => 'Alice@example.com', 'title' => ''],
'AliIM' => ['description' => 'The TradeManager name.', 'type' => 'string', 'example' => 'Alice', 'title' => ''],
'DingWebHook' => ['description' => 'The webhook URL of the DingTalk chatbot.', 'type' => 'string', 'example' => 'https://oapi.dingtalk.com/robot/send?access_token=9bf44f8189597d07dfdd7a123455ffc112****', 'title' => ''],
'SMS' => ['description' => 'The mobile phone number.', 'type' => 'string', 'example' => '1333333****', 'title' => ''],
],
'title' => '',
'example' => '',
],
'ChannelsState' => [
'description' => 'The status of the alert channel.'."\n"
."\n"
.'Text messages, phone numbers, and email addresses must be activated before they can be used. When you add or modify an alert channel, the status is PENDING if the channel is not activated, and OK if the channel is activated.'."\n"
."\n"
.'Email addresses must be activated before they can be used. When you add or modify an alert channel, the status is PENDING if the channel is not activated, and OK if the channel is activated.'."\n"
."\n"
.'Email addresses must be activated before they can be used. When you add or modify an alert channel, the status is PENDING if the channel is not activated, and OK if the channel is activated..',
'type' => 'object',
'properties' => [
'Mail' => ['description' => 'The status of the email address. Valid values:'."\n"
.'- PENDING: The alert channel is not activated. Activate it before use.'."\n"
.'- OK: The alert channel is normal and alerts can be sent.', 'type' => 'string', 'example' => 'PENDING', 'title' => ''],
'AliIM' => ['description' => 'The status of the TradeManager name is normal.'."\n"
."\n"
.'Currently, only the value OK is supported. OK indicates that the TradeManager name is normal, the corresponding alert channel is normal, and alerts can be sent.'."\n"
."\n"
.'> This parameter is applicable only to the China site.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'DingWebHook' => ['description' => 'The status of the DingTalk chatbot is normal.'."\n"
."\n"
.'Currently, only the value OK is supported. OK indicates that the DingTalk chatbot is normal, the corresponding alert channel is normal, and alerts can be sent.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'SMS' => ['description' => 'The status of text messages. Valid values:'."\n"
.'- PENDING: The alert channel is not activated. Activate it before use.'."\n"
.'- OK: The alert channel is normal and alerts can be sent.'."\n"
."\n"
.'> This parameter is applicable only to the China site.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => 'InvalidAuthorization', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Query alert contacts',
'summary' => 'Calls the DescribeContactList operation to query a list of alert contacts.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeContactList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeContactList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"06D5ECC2-B9BE-42A4-8FA3-1A610FB08B83\\",\\n \\"Total\\": 15,\\n \\"Success\\": true,\\n \\"Contacts\\": {\\n \\"Contact\\": [\\n {\\n \\"UpdateTime\\": 1552356159000,\\n \\"Name\\": \\"Alice\\",\\n \\"CreateTime\\": 1552356159000,\\n \\"Lang\\": \\"zh-cn\\",\\n \\"Desc\\": \\"ECS\\",\\n \\"ContactGroups\\": {\\n \\"ContactGroup\\": [\\n \\"{ \\\\\\"ContactGroup\\\\\\": [ \\\\t\\\\\\"ECS_Group\\\\\\", \\\\\\"Jim\\\\\\" ] }\\"\\n ]\\n },\\n \\"Channels\\": {\\n \\"Mail\\": \\"Alice@example.com\\",\\n \\"AliIM\\": \\"Alice\\",\\n \\"DingWebHook\\": \\"https://oapi.dingtalk.com/robot/send?access_token=9bf44f8189597d07dfdd7a123455ffc112****\\",\\n \\"SMS\\": \\"1333333****\\"\\n },\\n \\"ChannelsState\\": {\\n \\"Mail\\": \\"PENDING\\",\\n \\"AliIM\\": \\"OK\\",\\n \\"DingWebHook\\": \\"OK\\",\\n \\"SMS\\": \\"OK\\"\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeContactListByContactGroup' => [
'summary' => 'Queries the alert contacts in an alert contact group.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ContactGroupName',
'in' => 'query',
'schema' => ['description' => 'The name of the alert contact group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'CloudMonitor', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'The group is not exists.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '06D5ECC2-B9BE-42A4-8FA3-1A610FB08B83', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Contacts' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Contact' => [
'description' => 'The alert contacts that receive alert notifications.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'UpdateTime' => ['description' => 'The time when the alert contact was modified.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1552323252000', 'title' => ''],
'Name' => ['description' => 'The name of the alert contact.', 'type' => 'string', 'example' => 'Alice', 'title' => ''],
'CreateTime' => ['description' => 'The time when the alert contact was created.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1552314252000', 'title' => ''],
'Desc' => ['description' => 'The description of the alert contact.', 'type' => 'string', 'example' => 'ECS', 'title' => ''],
'Channels' => [
'description' => 'The alert notification methods.',
'type' => 'object',
'properties' => [
'Mail' => ['description' => 'The email address of the alert contact.', 'type' => 'string', 'example' => 'alice@example.com', 'title' => ''],
'AliIM' => ['description' => 'The TradeManager ID of the alert contact.'."\n"
."\n"
.'> This parameter can be returned only on the China site (aliyun.com).', 'type' => 'string', 'example' => 'Alice', 'title' => ''],
'DingWebHook' => ['description' => 'The webhook URL of the DingTalk chatbot.', 'type' => 'string', 'example' => 'https://oapi.dingtalk.com/robot/send?access_token=9bf44f8189597d07dfdd7a123455ffc112****', 'title' => ''],
'SMS' => ['description' => 'The mobile number of the alert contact.'."\n"
."\n"
.'> This parameter can be returned only on the China site (aliyun.com).', 'type' => 'string', 'example' => '1333333****', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeContactListByContactGroup',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeContactListByContactGroup'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeContactListByContactGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The group is not exists.\\",\\n \\"RequestId\\": \\"06D5ECC2-B9BE-42A4-8FA3-1A610FB08B83\\",\\n \\"Success\\": true,\\n \\"Contacts\\": {\\n \\"Contact\\": [\\n {\\n \\"UpdateTime\\": 1552323252000,\\n \\"Name\\": \\"Alice\\",\\n \\"CreateTime\\": 1552314252000,\\n \\"Desc\\": \\"ECS\\",\\n \\"Channels\\": {\\n \\"Mail\\": \\"alice@example.com\\",\\n \\"AliIM\\": \\"Alice\\",\\n \\"DingWebHook\\": \\"https://oapi.dingtalk.com/robot/send?access_token=9bf44f8189597d07dfdd7a123455ffc112****\\",\\n \\"SMS\\": \\"1333333****\\"\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeCustomEventAttribute' => [
'summary' => 'Queries a custom event.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => 'The event name.', 'type' => 'string', 'required' => false, 'example' => 'test123', 'title' => ''],
],
[
'name' => 'EventId',
'in' => 'query',
'schema' => ['description' => 'The event ID.', 'type' => 'string', 'required' => false, 'example' => '123****', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => false, 'example' => '123****', 'title' => ''],
],
[
'name' => 'SearchKeywords',
'in' => 'query',
'schema' => ['description' => 'The keywords that are used to search for the event.'."\n"
."\n"
.'- If you need to query the custom event whose content contains a and b, set the value to a and b.'."\n"
."\n"
.'- If you need to query the custom event whose content contains a or b, set the value to a or b.', 'type' => 'string', 'required' => false, 'example' => 'cms', 'title' => ''],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => 'The beginning of the time range to query.'."\n"
."\n"
.'This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.', 'type' => 'string', 'required' => false, 'example' => '1552224365971', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => 'The end of the time range to query.'."\n"
."\n"
.'This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.', 'type' => 'string', 'required' => false, 'example' => '1552227965971', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'userId:173651113438**** and name:"BABEL_CHECK"', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '60912C8D-B340-4253-ADE7-61ACDFD25CFC', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values: Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'string', 'example' => 'true', 'title' => ''],
'CustomEvents' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'CustomEvent' => [
'description' => 'The event details.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Time' => ['description' => 'The time when the event occurred.'."\n"
."\n"
.'This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.', 'type' => 'string', 'example' => '1552199984000', 'title' => ''],
'Name' => ['description' => 'The event name.', 'type' => 'string', 'example' => 'BABEL_CHECK', 'title' => ''],
'GroupId' => ['description' => 'The ID of the application group.', 'type' => 'string', 'example' => '12345', 'title' => ''],
'Content' => ['description' => 'The content of the event.', 'type' => 'string', 'example' => 'requestId:4975A6F3-19AC-4C01-BAD2-034DA07FEBB5, info:{"autoPay":false,"autoUseCoupon":false,"bid":"26842","buyerId":118935342242****,"commodities":[{"aliyunProduceCode":"cms","chargeType":"PREPAY","commodityCode":"cms_call_num","components":[{"componentCode":"phone_count","instanceProperty":[{"code":"phone_count","value":"500"}],"moduleAttrStatus":1}],"duration":6,"free":false,"orderParams":{"aliyunProduceCode":"cms"},"orderType":"BUY","prePayPostCharge":false,"pricingCycle":"Month","quantity":1,"refundSpecCode":"","renewChange":false,"specCode":"cms_call_num","specUpdate":false,"syncToSubscription":false,"upgradeInquireFinancialValue":true}],"fromApp":"commonbuy","orderParams":{"priceCheck":"true"},"payerId":118935342242****,"requestId":"ade3ad32-f58b-45d7-add4-ac542be3d8ec","skipChannel":false,"userId":118935342242****}', 'title' => ''],
'Id' => ['description' => 'The event ID.', 'type' => 'string', 'example' => '123', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeCustomEventAttribute',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeCustomEventAttribute'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeCustomEventAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"userId:173651113438**** and name:\\\\\\"BABEL_CHECK\\\\\\"\\",\\n \\"RequestId\\": \\"60912C8D-B340-4253-ADE7-61ACDFD25CFC\\",\\n \\"Success\\": \\"true\\",\\n \\"CustomEvents\\": {\\n \\"CustomEvent\\": [\\n {\\n \\"Time\\": \\"1552199984000\\",\\n \\"Name\\": \\"BABEL_CHECK\\",\\n \\"GroupId\\": \\"12345\\",\\n \\"Content\\": \\"requestId:4975A6F3-19AC-4C01-BAD2-034DA07FEBB5, info:{\\\\\\"autoPay\\\\\\":false,\\\\\\"autoUseCoupon\\\\\\":false,\\\\\\"bid\\\\\\":\\\\\\"26842\\\\\\",\\\\\\"buyerId\\\\\\":118935342242****,\\\\\\"commodities\\\\\\":[{\\\\\\"aliyunProduceCode\\\\\\":\\\\\\"cms\\\\\\",\\\\\\"chargeType\\\\\\":\\\\\\"PREPAY\\\\\\",\\\\\\"commodityCode\\\\\\":\\\\\\"cms_call_num\\\\\\",\\\\\\"components\\\\\\":[{\\\\\\"componentCode\\\\\\":\\\\\\"phone_count\\\\\\",\\\\\\"instanceProperty\\\\\\":[{\\\\\\"code\\\\\\":\\\\\\"phone_count\\\\\\",\\\\\\"value\\\\\\":\\\\\\"500\\\\\\"}],\\\\\\"moduleAttrStatus\\\\\\":1}],\\\\\\"duration\\\\\\":6,\\\\\\"free\\\\\\":false,\\\\\\"orderParams\\\\\\":{\\\\\\"aliyunProduceCode\\\\\\":\\\\\\"cms\\\\\\"},\\\\\\"orderType\\\\\\":\\\\\\"BUY\\\\\\",\\\\\\"prePayPostCharge\\\\\\":false,\\\\\\"pricingCycle\\\\\\":\\\\\\"Month\\\\\\",\\\\\\"quantity\\\\\\":1,\\\\\\"refundSpecCode\\\\\\":\\\\\\"\\\\\\",\\\\\\"renewChange\\\\\\":false,\\\\\\"specCode\\\\\\":\\\\\\"cms_call_num\\\\\\",\\\\\\"specUpdate\\\\\\":false,\\\\\\"syncToSubscription\\\\\\":false,\\\\\\"upgradeInquireFinancialValue\\\\\\":true}],\\\\\\"fromApp\\\\\\":\\\\\\"commonbuy\\\\\\",\\\\\\"orderParams\\\\\\":{\\\\\\"priceCheck\\\\\\":\\\\\\"true\\\\\\"},\\\\\\"payerId\\\\\\":118935342242****,\\\\\\"requestId\\\\\\":\\\\\\"ade3ad32-f58b-45d7-add4-ac542be3d8ec\\\\\\",\\\\\\"skipChannel\\\\\\":false,\\\\\\"userId\\\\\\":118935342242****}\\",\\n \\"Id\\": \\"123\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeCustomEventCount' => [
'summary' => 'Queries the number of times that a custom event occurred within a period of time.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => 'The event name.', 'type' => 'string', 'required' => false, 'example' => 'BABEL_BUY', 'title' => ''],
],
[
'name' => 'EventId',
'in' => 'query',
'schema' => ['description' => 'The event ID.', 'type' => 'string', 'required' => false, 'example' => '123', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => false, 'example' => '12345', 'title' => ''],
],
[
'name' => 'SearchKeywords',
'in' => 'query',
'schema' => ['description' => 'The keywords that are used to search for the event.'."\n"
."\n"
.'- If you need to query the custom event whose content contains a and b, set the value to a and b.'."\n"
."\n"
.'- If you need to query the custom event whose content contains a or b, set the value to a or b.', 'type' => 'string', 'required' => false, 'example' => 'cms', 'title' => ''],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => 'The beginning of the time range to query.'."\n"
."\n"
.'This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.', 'type' => 'string', 'required' => false, 'example' => '1552209685596', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => 'The end of the time range to query.'."\n"
."\n"
.'This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.', 'type' => 'string', 'required' => false, 'example' => '1552220485596', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message. If the request was successful, a success message is returned. If the request failed, an error message is returned.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '60912C8D-B340-4253-ADE7-61ACDFD25CFC', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values: true and false.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'CustomEventCounts' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'CustomEventCount' => [
'description' => 'The details of the custom event.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Time' => ['description' => 'The time when the event occurred.'."\n"
."\n"
.'This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.', 'type' => 'integer', 'format' => 'int64', 'example' => '1552267615000', 'title' => ''],
'Num' => ['description' => 'The number of times that the custom event occurred.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
'Name' => ['description' => 'The event name.', 'type' => 'string', 'example' => 'BABEL_BUY', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeCustomEventCount',
'description' => '> This operation queries the number of times that a custom event occurred for each service.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeCustomEventCount'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeCustomEventCount',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"60912C8D-B340-4253-ADE7-61ACDFD25CFC\\",\\n \\"Success\\": true,\\n \\"CustomEventCounts\\": {\\n \\"CustomEventCount\\": [\\n {\\n \\"Time\\": 1552267615000,\\n \\"Num\\": 20,\\n \\"Name\\": \\"BABEL_BUY\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeCustomEventHistogram' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => 'The event name.', 'type' => 'string', 'required' => false, 'example' => 'BucketIngressBandwidth', 'title' => ''],
],
[
'name' => 'Level',
'in' => 'query',
'schema' => ['description' => 'The severity level of the event. Valid values:'."\n"
."\n"
.'- CRITICAL'."\n"
."\n"
.'- WARN'."\n"
."\n"
.'- INFO', 'type' => 'string', 'required' => false, 'example' => 'CRITICAL', 'title' => ''],
],
[
'name' => 'EventId',
'in' => 'query',
'schema' => ['description' => 'The event ID.', 'type' => 'string', 'required' => false, 'example' => '123', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => false, 'example' => '12345', 'title' => ''],
],
[
'name' => 'SearchKeywords',
'in' => 'query',
'schema' => ['description' => 'The keywords that are used to search for the event.'."\n"
."\n"
.'- If you need to query the custom event whose content contains a and b, set the value to "a and b".'."\n"
."\n"
.'- If you need to query the custom event whose content contains a or b, set the value to "a or b".', 'type' => 'string', 'required' => false, 'example' => 'cms', 'title' => ''],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => 'The beginning of the time range to query.'."\n"
."\n"
.'This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.', 'type' => 'string', 'required' => false, 'example' => '1552209685596', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => 'The end of the time range to query.'."\n"
."\n"
.'This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.', 'type' => 'string', 'required' => false, 'example' => '1552220485596', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message. If the request was successful, a success message is returned. If the request failed, an error message is returned.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '486029C9-53E1-44B4-85A8-16A571A043FD', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values: true and false.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'EventHistograms' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'EventHistogram' => [
'description' => 'The information about the number of times that the custom event occurred during each interval of the specified time period.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'EndTime' => ['description' => 'The end time.'."\n"
."\n"
.'This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.', 'type' => 'integer', 'format' => 'int64', 'example' => '1552226750000', 'title' => ''],
'StartTime' => ['description' => 'The start time.'."\n"
."\n"
.'This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.', 'type' => 'integer', 'format' => 'int64', 'example' => '1552226740000', 'title' => ''],
'Count' => ['description' => 'The information about the number of times that the custom event occurred during an interval of the specified time period.', 'type' => 'integer', 'format' => 'int64', 'example' => '3', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeCustomEventHistogram',
'summary' => 'Queries the number of times that a custom event occurred during each interval within a period of time.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeCustomEventHistogram'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeCustomEventHistogram',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"486029C9-53E1-44B4-85A8-16A571A043FD\\",\\n \\"Success\\": \\"true\\",\\n \\"EventHistograms\\": {\\n \\"EventHistogram\\": [\\n {\\n \\"EndTime\\": 1552226750000,\\n \\"StartTime\\": 1552226740000,\\n \\"Count\\": 3\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeCustomMetricList' => [
'summary' => 'Queries the reported monitoring data.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.'."\n"
."\n"
.'For information about how to query the IDs of application groups, see [DescribeMonitorGroups](~~115032~~).', 'type' => 'string', 'required' => false, 'example' => '7378****', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The name of the custom metric.', 'type' => 'string', 'required' => false, 'example' => 'cpu_total', 'title' => ''],
],
[
'name' => 'Dimension',
'in' => 'query',
'schema' => ['description' => 'The dimensions based on which the resources are queried.', 'type' => 'string', 'required' => false, 'example' => '{sampleName1=value1&sampleName2=value2}', 'title' => ''],
],
[
'name' => 'Md5',
'in' => 'query',
'schema' => ['description' => 'The MD5 value of the HTTP request body. The MD5 value is a 128-bit hash value used to verify the uniqueness of the reported monitoring data.', 'type' => 'string', 'required' => false, 'example' => '97c25982d9745a231276bff27469****', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.'."\n"
."\n"
.'Pages start from page 1. Default value: 1.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.'."\n"
."\n"
.'Pages start from page 1. Default value: 10.', 'type' => 'string', 'required' => false, 'example' => '10', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The responses code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '1AF425E4-1DEA-54F2-910A-8117C9686140', 'title' => ''],
'Result' => ['description' => 'The reported custom metrics that are found in the query.', 'type' => 'string', 'example' => '{\\"all\\":0,\\"size\\":10,\\"param\\":{\\"metric\\":\\"{\\\\\\"metricName\\\\\\":\\\\\\"cpu_total\\\\\\",\\\\\\"groupId\\\\\\":7378****,\\\\\\"project\\\\\\":\\\\\\"acs_customMetric_120886317861****\\\\\\",\\\\\\"dimension\\\\\\":\\\\\\"sampleName1=value1&sampleName2=value2\\\\\\",\\\\\\"status\\\\\\":1}\\",\\"service\\":\\"metric-center.aliyun-inc.com\\"},\\"page\\":1,\\"list\\":[]}', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeCustomMetricList',
'description' => '> You can call the DescribeMetricList operation to query the metrics of cloud services. For more information, see [DescribeMetricList](~~51936~~).',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeCustomMetricList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeCustomMetricList',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"1AF425E4-1DEA-54F2-910A-8117C9686140\\",\\n \\"Result\\": \\"{\\\\\\\\\\\\\\"all\\\\\\\\\\\\\\":0,\\\\\\\\\\\\\\"size\\\\\\\\\\\\\\":10,\\\\\\\\\\\\\\"param\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"metric\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"metricName\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"cpu_total\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"groupId\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":7378****,\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"project\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"acs_customMetric_120886317861****\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"dimension\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"sampleName1=value1&sampleName2=value2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"status\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":1}\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"service\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"metric-center.aliyun-inc.com\\\\\\\\\\\\\\"},\\\\\\\\\\\\\\"page\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"list\\\\\\\\\\\\\\":[]}\\"\\n}","type":"json"}]',
],
'DescribeDynamicTagRuleList' => [
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'TagRegionId',
'in' => 'query',
'schema' => ['description' => 'The region ID of the tag.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
[
'name' => 'TagKey',
'in' => 'query',
'schema' => ['description' => 'The tag key.'."\n"
."\n"
.'For more information about how to obtain a tag key, see [DescribeTagKeyList](~~145558~~).', 'type' => 'string', 'required' => false, 'example' => 'tagkey1', 'title' => ''],
],
[
'name' => 'TagValue',
'in' => 'query',
'schema' => ['description' => 'The tag value.'."\n"
."\n"
.'For more information about how to obtain a tag value, see [DescribeTagValueList](~~145557~~).', 'type' => 'string', 'required' => false, 'example' => '*', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.'."\n"
."\n"
.'Start value: 1. Default value: 1.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page.'."\n"
."\n"
.'Start value: 1. Default value: 30.', 'type' => 'string', 'required' => false, 'example' => '30', 'title' => ''],
],
[
'name' => 'DynamicTagRuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the dynamic tag rule.', 'type' => 'string', 'required' => false, 'example' => '004155fa-15ba-466d-b61a-***********', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response that is returned.',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0D50523D-8D59-4A61-B58E-E2286ECFB3A9', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A status code of 200 indicates that the operation was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'PageSize' => ['description' => 'The number of entries returned per page.', 'type' => 'string', 'example' => '30', 'title' => ''],
'PageNumber' => ['description' => 'The page number.', 'type' => 'string', 'example' => '1', 'title' => ''],
'Total' => ['description' => 'The total number of entries in the tag list.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
'TagGroupList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'TagGroup' => [
'description' => 'The list of rules for the application groups.',
'type' => 'array',
'items' => [
'description' => 'The rule for the application group.',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The status of tag sync to the application group.'."\n"
."\n"
.'- `RUNNING`: The synchronization is in progress.'."\n"
."\n"
.'- `FINISH`: The synchronization is complete.', 'type' => 'string', 'example' => 'FINISH', 'title' => ''],
'MatchExpressFilterRelation' => ['description' => 'The relationship between conditional expressions. Valid values:'."\n"
."\n"
.'- `and`'."\n"
."\n"
.'- `or`'."\n"
."\n"
.'> Only one combination of conditions is supported.', 'type' => 'string', 'example' => 'or', 'title' => ''],
'RegionId' => ['description' => 'The region ID of the resource.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
'TagKey' => ['description' => 'The tag key.', 'type' => 'string', 'example' => 'tagkey1', 'title' => ''],
'DynamicTagRuleId' => ['description' => 'The ID of the tag rule.', 'type' => 'string', 'example' => '1536df65-a719-429d-8813-73cc40d7****', 'title' => ''],
'MatchExpress' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'MatchExpress' => [
'description' => 'The matching expression used to create an application group from a tag.',
'type' => 'array',
'items' => [
'description' => 'The matching expression used to create an application group from a tag.',
'type' => 'object',
'properties' => [
'TagValue' => ['description' => 'The tag value.'."\n"
."\n"
.'`TagValue` is used with `TagValueMatchFunction`.', 'type' => 'string', 'example' => '*', 'title' => ''],
'TagValueMatchFunction' => ['description' => 'The method used to match the tag value. Valid values:'."\n"
."\n"
.'- all'."\n"
."\n"
.'- startWith: prefix'."\n"
."\n"
.'- endWith: suffix'."\n"
."\n"
.'- contains'."\n"
."\n"
.'- notContains'."\n"
."\n"
.'- equals', 'type' => 'string', 'example' => 'all', 'title' => ''],
'TagKey' => ['description' => 'The tag key.', 'type' => 'string', 'example' => 'azone-version', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'TemplateIdList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'TemplateIdList' => [
'description' => 'A list of alert template IDs.',
'type' => 'array',
'items' => ['description' => 'The ID of the alert template.', 'type' => 'string', 'example' => '71****', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'ContactGroupList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ContactGroupList' => [
'description' => 'A list of alert contact groups.',
'type' => 'array',
'items' => ['description' => 'The alert contact group.', 'type' => 'string', 'example' => 'CloudMonitor', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'TagValueBlacklist' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'TagValueBlacklist' => [
'type' => 'array',
'items' => ['description' => 'The value of a tag.', 'type' => 'string', 'example' => 'test、offline', 'title' => ''],
'description' => 'The tag values that are not processed by the dynamic rule. When a user deletes a dynamic tag group, the tag values of the group are added to a blacklist. If a new resource is later added with a blacklisted tag value, a corresponding group is not created.',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameterValue', 'errorMessage' => 'Illegal parameters.', 'description' => 'Illegal parameters.'],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeDynamicTagRuleList',
'summary' => 'Call the DescribeDynamicTagRuleList operation to query the rules for dynamic tags.',
'description' => 'This topic provides an example of how to query the rules for the tag key `tagkey1`. The response shows that two rules are returned. The rule IDs are `1536df65-a719-429d-8813-73cc40d7****` and `56e8cebb-b3d7-4a91-9880-78a8c84f****`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-03-13T08:11:21.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2022-11-14T08:13:59.000Z', 'description' => 'Request parameters changed, Response parameters changed'],
['createdAt' => '2021-11-04T05:58:44.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDynamicTagRuleList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeDynamicTagRuleList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0D50523D-8D59-4A61-B58E-E2286ECFB3A9\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"PageSize\\": \\"30\\",\\n \\"PageNumber\\": \\"1\\",\\n \\"Total\\": 2,\\n \\"TagGroupList\\": {\\n \\"TagGroup\\": [\\n {\\n \\"Status\\": \\"FINISH\\",\\n \\"MatchExpressFilterRelation\\": \\"or\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"TagKey\\": \\"tagkey1\\",\\n \\"DynamicTagRuleId\\": \\"1536df65-a719-429d-8813-73cc40d7****\\",\\n \\"MatchExpress\\": {\\n \\"MatchExpress\\": [\\n {\\n \\"TagValue\\": \\"*\\",\\n \\"TagValueMatchFunction\\": \\"all\\",\\n \\"TagKey\\": \\"azone-version\\"\\n }\\n ]\\n },\\n \\"TemplateIdList\\": {\\n \\"TemplateIdList\\": [\\n \\"71****\\"\\n ]\\n },\\n \\"ContactGroupList\\": {\\n \\"ContactGroupList\\": [\\n \\"CloudMonitor\\"\\n ]\\n },\\n \\"TagValueBlacklist\\": {\\n \\"TagValueBlacklist\\": [\\n \\"test、offline\\"\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeEventRuleAttribute' => [
'summary' => 'Queries the details of a specified event-triggered alert rule by calling the DescribeEventRuleAttribute operation.',
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'RuleName',
'in' => 'query',
'schema' => ['description' => 'The name of the event-triggered alert rule.'."\n"
."\n"
.'For information about how to obtain the name of an event-triggered alert rule, see [DescribeEventRuleList](~~114996~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'testRule', 'title' => ''],
],
[
'name' => 'SilenceTime',
'in' => 'query',
'schema' => ['description' => 'The mute period.'."\n"
."\n"
.'Unit: seconds. Default value: 86400 (1 day).'."\n"
."\n"
.'> When monitoring data continuously exceeds the alert rule threshold, only one alert notification is sent within each mute period.', 'type' => 'string', 'required' => false, 'example' => '86400', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The alert does not exist.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '9AA3F210-C03D-4C86-8DB6-21C84FF692A1', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Result' => [
'description' => 'The details of the event-triggered alert rule.',
'type' => 'object',
'properties' => [
'EventType' => ['description' => 'The event type. Valid values:'."\n"
."\n"
.'- SYSTEM: system event.'."\n"
."\n"
.'- CUSTOM: custom event.', 'type' => 'string', 'example' => 'SYSTEM', 'title' => ''],
'GroupId' => ['description' => 'The application group ID.', 'type' => 'string', 'example' => '3607****', 'title' => ''],
'Name' => ['description' => 'The name of the event-triggered alert rule.', 'type' => 'string', 'example' => 'test_DefaultEventRule_7378****', 'title' => ''],
'Description' => ['description' => 'The description of the event-triggered alert rule.', 'type' => 'string', 'example' => 'Default group event rule.', 'title' => ''],
'State' => ['description' => 'The status of the event-triggered alert rule. Valid values:'."\n"
."\n"
.'- ENABLED: enabled.'."\n"
."\n"
.'- DISABLED: disabled.', 'type' => 'string', 'example' => 'ENABLED', 'title' => ''],
'EventPattern' => [
'description' => 'The event pattern. Describes the trigger conditions of the event.',
'type' => 'object',
'properties' => [
'Product' => ['description' => 'The name of the cloud service.', 'type' => 'string', 'example' => 'CloudMonitor', 'title' => ''],
'LevelList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'LevelList' => [
'description' => 'The list of levels for the event-triggered alert rule.',
'type' => 'array',
'items' => ['description' => 'The level of the event-triggered alert rule. Valid values:'."\n"
."\n"
.'- CRITICAL: critical.'."\n"
."\n"
.'- WARN: warning.'."\n"
."\n"
.'- INFO: information.', 'type' => 'string', 'example' => '["CRITICAL","WARN"] ', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'StatusList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'StatusList' => [
'description' => 'The list of statuses for the event-triggered alert rule.',
'type' => 'array',
'items' => ['description' => 'The event status.', 'type' => 'string', 'example' => 'Running', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'NameList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'NameList' => [
'description' => 'The list of names for the event-triggered alert rule.',
'type' => 'array',
'items' => ['description' => 'The event name.', 'type' => 'string', 'example' => 'Agent_Status_Running', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'EventTypeList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'EventTypeList' => [
'description' => 'The list of types for the event-triggered alert rule.',
'type' => 'array',
'items' => ['description' => 'The type of the event-triggered alert rule.'."\n"
."\n"
.'`*` indicates that the alert rule type is not restricted.', 'type' => 'string', 'example' => '*', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'SQLFilter' => ['description' => 'Filters logs by using SQL statements. An alert is triggered if the filter conditions are met.', 'type' => 'string', 'example' => 'ycccluster1 and (i-23ij0o82612 or Executed1) or Asimulated not 222', 'title' => ''],
'KeywordFilterObj' => [
'description' => 'The filter keyword.',
'type' => 'object',
'properties' => [
'Keywords' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'keyword' => [
'description' => 'The list of keywords that match the event.',
'type' => 'array',
'items' => ['description' => 'The keyword.', 'type' => 'string', 'example' => 'VMException', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'Relation' => ['description' => 'The condition for multiple keywords. Valid values:'."\n"
."\n"
.'- OR: The relationship between multiple keywords is OR.'."\n"
.'- NOT: Does not contain the keyword. Matches all events that are not in the keyword list.', 'type' => 'string', 'example' => 'OR', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameterValue', 'errorMessage' => 'Illegal parameters.', 'description' => 'Illegal parameters.'],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Query the details of a specified event-triggered alert rule',
'description' => 'This topic provides an example on how to query the details of the event-triggered alert rule `testRule`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-08-31T02:52:44.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-03-10T07:57:42.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2022-03-21T07:08:24.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeEventRuleAttribute'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeEventRuleAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The alert does not exist.\\",\\n \\"RequestId\\": \\"9AA3F210-C03D-4C86-8DB6-21C84FF692A1\\",\\n \\"Success\\": true,\\n \\"Result\\": {\\n \\"EventType\\": \\"SYSTEM\\",\\n \\"GroupId\\": \\"3607****\\",\\n \\"Name\\": \\"test_DefaultEventRule_7378****\\",\\n \\"Description\\": \\"Default group event rule.\\",\\n \\"State\\": \\"ENABLED\\",\\n \\"EventPattern\\": {\\n \\"Product\\": \\"CloudMonitor\\",\\n \\"LevelList\\": {\\n \\"LevelList\\": [\\n \\"[\\\\\\"CRITICAL\\\\\\",\\\\\\"WARN\\\\\\"] \\"\\n ]\\n },\\n \\"StatusList\\": {\\n \\"StatusList\\": [\\n \\"Running\\"\\n ]\\n },\\n \\"NameList\\": {\\n \\"NameList\\": [\\n \\"Agent_Status_Running\\"\\n ]\\n },\\n \\"EventTypeList\\": {\\n \\"EventTypeList\\": [\\n \\"*\\"\\n ]\\n },\\n \\"SQLFilter\\": \\"ycccluster1 and (i-23ij0o82612 or Executed1) or Asimulated not 222\\",\\n \\"KeywordFilterObj\\": {\\n \\"Keywords\\": {\\n \\"keyword\\": [\\n \\"VMException\\"\\n ]\\n },\\n \\"Relation\\": \\"OR\\"\\n }\\n }\\n }\\n}","type":"json"}]',
],
'DescribeEventRuleList' => [
'summary' => 'Queries event-triggered alert rules.',
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'NamePrefix',
'in' => 'query',
'schema' => ['description' => 'The prefix in the name of the event-triggered alert rule.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.'."\n"
."\n"
.'Pages start from page 1. Default value: 1.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.'."\n"
."\n"
.'Pages start from page 1. Default value: 10.', 'type' => 'string', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => false, 'example' => '7378****', 'title' => ''],
],
[
'name' => 'IsEnable',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to enable the event-triggered alert rule. Valid values:'."\n"
."\n"
.'- true (default)'."\n"
."\n"
.'- false', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The event-triggered alert rules.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message returned.', 'type' => 'string', 'example' => 'User not authorized to operate on the specified resource.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D0E6D82B-16B5-422A-8136-EE5BDC01E415', 'title' => ''],
'Total' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '21', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'EventRules' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'EventRule' => [
'description' => 'The event-triggered alert rule.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'EventType' => ['description' => 'The type of the event-triggered alert rule. Valid values:'."\n"
."\n"
.'- SYSTEM: system event-triggered alert rule'."\n"
."\n"
.'- CUSTOM: custom event-triggered alert rule', 'type' => 'string', 'example' => 'SYSTEM', 'title' => ''],
'Description' => ['description' => 'The description of the event-triggered alert rule.', 'type' => 'string', 'example' => 'Default group event rule.', 'title' => ''],
'GroupId' => ['description' => 'The ID of the application group.', 'type' => 'string', 'example' => '7378****', 'title' => ''],
'Name' => ['description' => 'The name of the event-triggered alert rule.', 'type' => 'string', 'example' => 'test_DefaultEventRule_7378****', 'title' => ''],
'State' => ['description' => 'The status of the event-triggered alert rule. Valid values:'."\n"
."\n"
.'- ENABLED'."\n"
."\n"
.'- DISABLED', 'type' => 'string', 'example' => 'ENABLED', 'title' => ''],
'EventPattern' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'EventPattern' => [
'description' => 'The mode of the event-triggered alert rule.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'Product' => ['description' => 'The abbreviation of the Alibaba Cloud service name.', 'type' => 'string', 'example' => 'CloudMonitor', 'title' => ''],
'LevelList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'LevelList' => [
'description' => 'The levels of the event-triggered alerts.',
'type' => 'array',
'items' => ['description' => 'The level of the event-triggered alert. Valid values:'."\n"
."\n"
.'- CRITICAL'."\n"
."\n"
.'- WARN'."\n"
."\n"
.'- INFO', 'type' => 'string', 'example' => 'CRITICAL', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'EventTypeList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'EventTypeList' => [
'description' => 'The types of the event-triggered alert rules.',
'type' => 'array',
'items' => ['description' => 'The type of the event-triggered alert rule.'."\n"
."\n"
.'`*` indicates all types of alert rules.', 'type' => 'string', 'example' => '*', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'NameList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'NameList' => [
'description' => 'The event names.',
'type' => 'array',
'items' => ['description' => 'The event name.', 'type' => 'string', 'example' => '["Agent_Status_Stopped"]', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'CustomFilters' => ['description' => 'The custom filter conditions.', 'type' => 'string', 'example' => 'ECS123', 'title' => ''],
'KeywordFilter' => [
'description' => 'The keyword for filtering.',
'type' => 'object',
'properties' => [
'Keywords' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Keywords' => [
'description' => 'The keywords that are used to match events.',
'type' => 'array',
'items' => ['description' => 'The keyword.', 'type' => 'string', 'example' => 'VMException', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'Relation' => ['description' => 'The relationship between multiple keywords in a condition. Valid values:'."\n"
."\n"
.'- OR: The relationship between keywords is OR.'."\n"
."\n"
.'- NOT: The keyword is excluded. The value NOT indicates that all events that do not contain the keywords are matched.', 'type' => 'string', 'example' => 'OR', 'title' => ''],
],
'title' => '',
'example' => '',
],
'SQLFilter' => ['description' => 'Indicates that logs are filtered based on the specified SQL statement. If the specified conditions are met, an alert is triggered.', 'type' => 'string', 'example' => 'ycccluster1 and (i-23ij0o82612 or Executed1) or Asimulated not 222', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'SilenceTime' => ['description' => 'The mute period during which new alert notifications are not sent even if the trigger conditions are met.', 'type' => 'integer', 'format' => 'int64', 'example' => '86400', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameterValue', 'errorMessage' => 'Illegal parameters.', 'description' => 'Illegal parameters.'],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeEventRuleList',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-09-19T07:37:30.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-12-03T08:46:17.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-12-03T08:46:17.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-12-03T08:46:17.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeEventRuleList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeEventRuleList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"User not authorized to operate on the specified resource.\\",\\n \\"RequestId\\": \\"D0E6D82B-16B5-422A-8136-EE5BDC01E415\\",\\n \\"Total\\": 21,\\n \\"Success\\": true,\\n \\"EventRules\\": {\\n \\"EventRule\\": [\\n {\\n \\"EventType\\": \\"SYSTEM\\",\\n \\"Description\\": \\"Default group event rule.\\",\\n \\"GroupId\\": \\"7378****\\",\\n \\"Name\\": \\"test_DefaultEventRule_7378****\\",\\n \\"State\\": \\"ENABLED\\",\\n \\"EventPattern\\": {\\n \\"EventPattern\\": [\\n {\\n \\"Product\\": \\"CloudMonitor\\",\\n \\"LevelList\\": {\\n \\"LevelList\\": [\\n \\"CRITICAL\\"\\n ]\\n },\\n \\"EventTypeList\\": {\\n \\"EventTypeList\\": [\\n \\"*\\"\\n ]\\n },\\n \\"NameList\\": {\\n \\"NameList\\": [\\n \\"[\\\\\\"Agent_Status_Stopped\\\\\\"]\\"\\n ]\\n },\\n \\"CustomFilters\\": \\"ECS123\\",\\n \\"KeywordFilter\\": {\\n \\"Keywords\\": {\\n \\"Keywords\\": [\\n \\"VMException\\"\\n ]\\n },\\n \\"Relation\\": \\"OR\\"\\n },\\n \\"SQLFilter\\": \\"ycccluster1 and (i-23ij0o82612 or Executed1) or Asimulated not 222\\"\\n }\\n ]\\n },\\n \\"SilenceTime\\": 86400\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeEventRuleTargetList' => [
'summary' => 'Queries the list of event-triggered alert rules.',
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'RuleName',
'in' => 'query',
'schema' => ['description' => 'The name of the event-triggered alert rule.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'testRule', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A value of 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '87170bc7-e28a-4c93-b9bf-90a1dbe84736', 'title' => ''],
'ContactParameters' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ContactParameter' => [
'description' => 'The notification method of the alert contact group.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ContactGroupName' => ['description' => 'The name of the alert contact group.', 'type' => 'string', 'example' => 'Default alert notification group', 'title' => ''],
'Level' => ['description' => 'The notification level. Valid values:'."\n"
."\n"
.'- 2: phone call, text message, DingTalk, and email.'."\n"
."\n"
.'- 3: text message, DingTalk, and email.'."\n"
."\n"
.'- 4: DingTalk and email.'."\n"
."\n"
.'4: DingTalk and email.'."\n"
."\n"
.'4: DingTalk and email..', 'type' => 'string', 'example' => '3', 'title' => ''],
'Id' => ['description' => 'The unique identifier of the alert contact group notification method.', 'type' => 'string', 'example' => '1', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'FcParameters' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'FCParameter' => [
'description' => 'The Function Compute notification method.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ServiceName' => ['description' => 'The service name of Function Compute.', 'type' => 'string', 'example' => 'service1', 'title' => ''],
'FunctionName' => ['description' => 'The function name.', 'type' => 'string', 'example' => 'fcTest1', 'title' => ''],
'Arn' => ['description' => 'The Alibaba Cloud Resource Name (ARN).'."\n"
."\n"
.'Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. The fields are described as follows:'."\n"
."\n"
.'- Service: the code of the Alibaba Cloud service.'."\n"
."\n"
.'- Region: the region ID.'."\n"
."\n"
.'- Account: the Alibaba Cloud account ID.'."\n"
."\n"
.'- ResourceType: the resource type.'."\n"
."\n"
.'- ResourceId: the resource ID.', 'type' => 'string', 'example' => 'acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***', 'title' => ''],
'Id' => ['description' => 'The unique identifier of the Function Compute notification method.', 'type' => 'string', 'example' => '3', 'title' => ''],
'Region' => ['description' => 'The region of the Function Compute service.', 'type' => 'string', 'example' => 'cn-qingdao', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'MnsParameters' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'MnsParameter' => [
'description' => 'The Simple Message Queue (formerly MNS) notification method.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Queue' => ['description' => 'The name of the Simple Message Queue (formerly MNS) queue.', 'type' => 'string', 'example' => 'testQueue', 'title' => ''],
'Arn' => ['description' => 'The Alibaba Cloud Resource Name (ARN).'."\n"
."\n"
.'Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. The fields are described as follows:'."\n"
."\n"
.'- Service: the code of the Alibaba Cloud service.'."\n"
."\n"
.'- Region: the region ID.'."\n"
."\n"
.'- Account: the Alibaba Cloud account ID.'."\n"
."\n"
.'- ResourceType: the resource type.'."\n"
."\n"
.'- ResourceId: the resource ID.', 'type' => 'string', 'example' => 'acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***', 'title' => ''],
'Region' => ['description' => 'The region of the Simple Message Queue (formerly MNS) service.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
'Id' => ['description' => 'The unique identifier of the Simple Message Queue (formerly MNS) notification method.', 'type' => 'string', 'example' => '2', 'title' => ''],
'Topic' => ['description' => 'The topic of the Simple Message Queue (formerly MNS) service.', 'type' => 'string', 'example' => 'topic_sample', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'WebhookParameters' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'WebhookParameter' => [
'description' => 'The URL callback notification method.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Url' => ['description' => 'The callback URL.', 'type' => 'string', 'example' => 'http://www.aliyun.com', 'title' => ''],
'Method' => ['description' => 'The HTTP request method for the callback. GET and POST methods are supported.', 'type' => 'string', 'example' => 'GET', 'title' => ''],
'Protocol' => ['description' => 'The protocol type.', 'type' => 'string', 'example' => 'HTTP', 'title' => ''],
'Id' => ['description' => 'The unique identifier of the URL callback notification method.', 'type' => 'string', 'example' => '5', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'SlsParameters' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'SlsParameter' => [
'description' => 'The Simple Log Service (SLS) notification method.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Project' => ['description' => 'The project name.', 'type' => 'string', 'example' => 'project_test', 'title' => ''],
'LogStore' => ['description' => 'The Logstore name.', 'type' => 'string', 'example' => 'logstore_test', 'title' => ''],
'Arn' => ['description' => 'The Alibaba Cloud Resource Name (ARN).'."\n"
."\n"
.'Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. The fields are described as follows:'."\n"
."\n"
.'- Service: the code of the Alibaba Cloud service.'."\n"
."\n"
.'- Region: the region ID.'."\n"
."\n"
.'- Account: the Alibaba Cloud account ID.'."\n"
."\n"
.'- ResourceType: the resource type.'."\n"
."\n"
.'- ResourceId: the resource ID.', 'type' => 'string', 'example' => 'acs:log:cn-hangzhou::project/cms-log-mo****/logstore/c***', 'title' => ''],
'Region' => ['description' => 'The region of the project.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
'Id' => ['description' => 'The unique identifier of the Simple Log Service notification method.', 'type' => 'string', 'example' => '4', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'OpenApiParameters' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'OpenApiParameters' => [
'description' => 'The parameters of the callback API.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Action' => ['description' => 'The API name.', 'type' => 'string', 'example' => 'PutLogs', 'title' => ''],
'Arn' => ['description' => 'The Alibaba Cloud Resource Name (ARN).'."\n"
.'Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. The fields are described as follows:'."\n"
.' - Service: the Alibaba Cloud service.'."\n"
.' - Region: the region ID.'."\n"
.' - Account: the Alibaba Cloud account ID.'."\n"
.' - ResourceType: the resource type.'."\n"
.' - ResourceId: the resource ID.', 'type' => 'string', 'example' => 'acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***', 'title' => ''],
'Id' => ['description' => 'The unique identifier of the API callback notification method.', 'type' => 'string', 'example' => '3', 'title' => ''],
'Product' => ['description' => 'The ID of the Alibaba Cloud service to which the API belongs.', 'type' => 'string', 'example' => 'log', 'title' => ''],
'Region' => ['description' => 'The region of the resource.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
'Role' => ['description' => 'The role name.', 'type' => 'string', 'example' => 'MyRole', 'title' => ''],
'Version' => ['description' => 'The API version.', 'type' => 'string', 'example' => '2019-01-01', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameterValue', 'errorMessage' => 'Illegal parameters.', 'description' => 'Illegal parameters.'],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Query the notification channels of a specified event-triggered alert rule',
'description' => 'This topic provides an example to query the details of the event-triggered alert rule `testRule`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2021-12-22T08:42:04.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-12-22T08:42:04.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeEventRuleTargetList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeEventRuleTargetList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"87170bc7-e28a-4c93-b9bf-90a1dbe84736\\",\\n \\"ContactParameters\\": {\\n \\"ContactParameter\\": [\\n {\\n \\"ContactGroupName\\": \\"Default alert notification group\\",\\n \\"Level\\": \\"3\\",\\n \\"Id\\": \\"1\\"\\n }\\n ]\\n },\\n \\"FcParameters\\": {\\n \\"FCParameter\\": [\\n {\\n \\"ServiceName\\": \\"service1\\",\\n \\"FunctionName\\": \\"fcTest1\\",\\n \\"Arn\\": \\"acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***\\",\\n \\"Id\\": \\"3\\",\\n \\"Region\\": \\"cn-qingdao\\"\\n }\\n ]\\n },\\n \\"MnsParameters\\": {\\n \\"MnsParameter\\": [\\n {\\n \\"Queue\\": \\"testQueue\\",\\n \\"Arn\\": \\"acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"Id\\": \\"2\\",\\n \\"Topic\\": \\"topic_sample\\"\\n }\\n ]\\n },\\n \\"WebhookParameters\\": {\\n \\"WebhookParameter\\": [\\n {\\n \\"Url\\": \\"http://www.aliyun.com\\",\\n \\"Method\\": \\"GET\\",\\n \\"Protocol\\": \\"HTTP\\",\\n \\"Id\\": \\"5\\"\\n }\\n ]\\n },\\n \\"SlsParameters\\": {\\n \\"SlsParameter\\": [\\n {\\n \\"Project\\": \\"project_test\\",\\n \\"LogStore\\": \\"logstore_test\\",\\n \\"Arn\\": \\"acs:log:cn-hangzhou::project/cms-log-mo****/logstore/c***\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"Id\\": \\"4\\"\\n }\\n ]\\n },\\n \\"OpenApiParameters\\": {\\n \\"OpenApiParameters\\": [\\n {\\n \\"Action\\": \\"PutLogs\\",\\n \\"Arn\\": \\"acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***\\",\\n \\"Id\\": \\"3\\",\\n \\"Product\\": \\"log\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"Role\\": \\"MyRole\\",\\n \\"Version\\": \\"2019-01-01\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeExporterOutputList' => [
'summary' => 'Queries the list of monitoring data exports by calling the DescribeExporterOutputList operation.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'default' => '1', 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of records per page. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'default' => '1000', 'example' => '10', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.'."\n"
."\n", 'type' => 'string', 'example' => '0E657631-CD6C-4C24-9637-98D000B9272C', 'title' => ''],
'Success' => ['description' => 'Indicates whether the call was successful. Valid values: '."\n"
.'- `true`: successful'."\n"
.'- `false`: failed', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the call was successful. Other status codes indicate that the call failed.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'sucess', 'title' => ''],
'PageNumber' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Total' => ['description' => 'The total number of records.', 'type' => 'integer', 'format' => 'int32', 'example' => '25', 'title' => ''],
'Datapoints' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Datapoint' => [
'description' => 'The list of exported configurations.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'DestType' => ['description' => 'The type of the data export.'."\n"
."\n"
.'> Only Log Service (SLS) is supported. More products will be supported in the future.', 'type' => 'string', 'example' => 'SLS', 'title' => ''],
'CreateTime' => ['description' => 'The Unix timestamp when the export configuration was created.', 'type' => 'integer', 'format' => 'int64', 'example' => '1584016495498', 'title' => ''],
'DestName' => ['description' => 'The name of the configuration.', 'type' => 'string', 'example' => 'exporterOut', 'title' => ''],
'ConfigJson' => [
'description' => 'The monitoring output configuration.',
'type' => 'object',
'properties' => [
'ak' => ['description' => 'The AccessKey ID.', 'type' => 'string', 'example' => 'LTAIpY33********', 'title' => ''],
'endpoint' => ['description' => 'The endpoint of the SLS data.', 'type' => 'string', 'example' => 'http://cn-qingdao-share.log.aliyuncs.com', 'title' => ''],
'logstore' => ['description' => 'The Logstore.', 'type' => 'string', 'example' => 'monitorlogstore', 'title' => ''],
'project' => ['description' => 'The SLS project.', 'type' => 'string', 'example' => 'exporter', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeExporterOutputList',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-08-30T08:14:42.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeExporterOutputList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeExporterOutputList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0E657631-CD6C-4C24-9637-98D000B9272C\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"sucess\\",\\n \\"PageNumber\\": 1,\\n \\"Total\\": 25,\\n \\"Datapoints\\": {\\n \\"Datapoint\\": [\\n {\\n \\"DestType\\": \\"SLS\\",\\n \\"CreateTime\\": 1584016495498,\\n \\"DestName\\": \\"exporterOut\\",\\n \\"ConfigJson\\": {\\n \\"ak\\": \\"LTAIpY33********\\",\\n \\"endpoint\\": \\"http://cn-qingdao-share.log.aliyuncs.com\\",\\n \\"logstore\\": \\"monitorlogstore\\",\\n \\"project\\": \\"exporter\\"\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeExporterRuleList' => [
'summary' => 'Queries a list of data export rules.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'default' => '1', 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'default' => '1000', 'example' => '10', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '6BA047CA-8BC6-40BC-BC8F-FBECF35F1993', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values: '."\n"
.'- `true`: Successful.'."\n"
.'- `false`: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A value of 200 indicates success. Any other value indicates failure.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'PageNumber' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Total' => ['description' => 'The total number of records.', 'type' => 'integer', 'format' => 'int32', 'example' => '1000', 'title' => ''],
'Datapoints' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Datapoint' => [
'description' => 'The data point.',
'type' => 'array',
'items' => [
'description' => 'The data point.',
'type' => 'object',
'properties' => [
'MetricName' => ['description' => 'The metric name.', 'type' => 'string', 'example' => 'CPUUtilization', 'title' => ''],
'Describe' => ['description' => 'The description of the export rules.', 'type' => 'string', 'example' => 'export test', 'title' => ''],
'TargetWindows' => ['description' => 'The time window for data export. Unit: seconds.'."\n"
."\n"
.'> - If you need to export data from multiple windows, separate them with commas (,).'."\n"
.'- Exporting data with a granularity of less than 60 seconds is not supported.', 'type' => 'string', 'example' => 'rule_test', 'title' => ''],
'CreateTime' => ['description' => 'The time when the rule was created.', 'type' => 'integer', 'format' => 'int64', 'example' => '1667526533000', 'title' => ''],
'Enabled' => ['description' => 'Indicates whether the rule is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Dimension' => ['description' => 'The dimension.', 'type' => 'string', 'example' => 'hotsName', 'title' => ''],
'Namespace' => ['description' => 'The namespace of the cloud service.', 'type' => 'string', 'example' => 'acs_ecs_dashboard', 'title' => ''],
'RuleName' => ['description' => 'The rule name.', 'type' => 'string', 'example' => 'L121-寿险-全能保建议书系统_DefaultEventRule_10842827', 'title' => ''],
'DstName' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'DstName' => [
'description' => 'The destination name.',
'type' => 'array',
'items' => ['description' => 'The destination name.', 'type' => 'string', 'example' => '[]', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6BA047CA-8BC6-40BC-BC8F-FBECF35F1993\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"PageNumber\\": 1,\\n \\"Total\\": 1000,\\n \\"Datapoints\\": {\\n \\"Datapoint\\": [\\n {\\n \\"MetricName\\": \\"CPUUtilization\\",\\n \\"Describe\\": \\"export test\\",\\n \\"TargetWindows\\": \\"rule_test\\",\\n \\"CreateTime\\": 1667526533000,\\n \\"Enabled\\": true,\\n \\"Dimension\\": \\"hotsName\\",\\n \\"Namespace\\": \\"acs_ecs_dashboard\\",\\n \\"RuleName\\": \\"L121-寿险-全能保建议书系统_DefaultEventRule_10842827\\",\\n \\"DstName\\": {\\n \\"DstName\\": [\\n \\"[]\\"\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'Query data export rules',
'changeSet' => [
['createdAt' => '2023-08-30T08:14:42.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeExporterRuleList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeExporterRuleList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeGroupMonitoringAgentProcess' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => true, 'example' => '12345', 'title' => ''],
],
[
'name' => 'ProcessName',
'in' => 'query',
'schema' => ['description' => 'The process name.', 'type' => 'string', 'required' => false, 'example' => 'sshd', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. Default value: 1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '30', 'example' => '10', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '7985D471-3FA8-4EE9-8F4B-45C19DF3D36F', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values: Valid values: true and false.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Code' => ['description' => 'The HTTP status codes.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'PageNumber' => ['description' => 'The page number. Default value: 1', 'type' => 'string', 'example' => '1', 'title' => ''],
'PageSize' => ['description' => 'The number of entries per page. Default value: 10.', 'type' => 'string', 'example' => '10', 'title' => ''],
'Total' => ['description' => 'The total number of returned entries.', 'type' => 'string', 'example' => '28', 'title' => ''],
'Processes' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Process' => [
'description' => 'The process monitoring tasks.',
'type' => 'array',
'items' => [
'description' => 'The process monitoring task.',
'type' => 'object',
'properties' => [
'ProcessName' => ['description' => 'The process name.', 'type' => 'string', 'example' => 'sshd', 'title' => ''],
'MatchExpressFilterRelation' => ['description' => 'The logical operator used between conditional expressions that are used to match instances. Valid values:'."\n"
."\n"
.'- all'."\n"
."\n"
.'- and'."\n"
."\n"
.'- or', 'type' => 'string', 'example' => 'and', 'title' => ''],
'GroupId' => ['description' => 'The ID of the application group.', 'type' => 'string', 'example' => '12345', 'title' => ''],
'Id' => ['description' => 'The ID of the process monitoring task.', 'type' => 'string', 'example' => '3F6150F9-45C7-43F9-9578-A58B2E72****', 'title' => ''],
'MatchExpress' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'MatchExpress' => [
'description' => 'The matching conditions.'."\n"
."\n"
.'> Only the instances that meet the conditional expressions are monitored by the process monitoring task.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'Value' => ['description' => 'The keyword used to match the instance name.', 'type' => 'string', 'example' => 'portalHost', 'title' => ''],
'Name' => ['description' => 'The criteria based on which the instances are matched.'."\n"
."\n"
.'> Set the value to `name`. The value name indicates that the instances are matched based on the instance name.', 'type' => 'string', 'example' => 'name', 'title' => ''],
'Function' => ['description' => 'The matching condition. Valid values:'."\n"
."\n"
.'- all (default): matches all'."\n"
."\n"
.'- startWith: starts with a prefix'."\n"
."\n"
.'- endWith: ends with a suffix'."\n"
."\n"
.'- contains: contains'."\n"
."\n"
.'- notContains: excludes'."\n"
."\n"
.'- equals: equals'."\n"
."\n"
.'> The matched instances are monitored by the process monitoring task.', 'type' => 'string', 'example' => 'all', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'AlertConfig' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'AlertConfig' => [
'description' => 'The alert rule configurations.',
'type' => 'array',
'items' => [
'description' => 'The alert rule configuration.',
'type' => 'object',
'properties' => [
'ComparisonOperator' => ['description' => 'The comparison operator that is used to compare the metric value with the threshold. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold'."\n"
."\n"
.'- GreaterThanThreshold: greater than the threshold'."\n"
."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold'."\n"
."\n"
.'- LessThanThreshold: less than the threshold'."\n"
."\n"
.'- NotEqualToThreshold: not equal to the threshold'."\n"
."\n"
.'- GreaterThanYesterday: greater than the metric value at the same time yesterday.'."\n"
."\n"
.'- LessThanYesterday: less than the metric value at the same time yesterday'."\n"
."\n"
.'- GreaterThanLastWeek: greater than the metric value at the same time last week'."\n"
."\n"
.'- LessThanLastWeek: less than the metric value at the same time last week'."\n"
."\n"
.'- GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle'."\n"
."\n"
.'- LessThanLastPeriod: less than the metric value in the last monitoring cycle', 'type' => 'string', 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'SilenceTime' => ['description' => 'The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds. Minimum value: 3600, which is equivalent to one hour. Default value: 86400, which is equivalent to one day.'."\n"
."\n"
.'> Only one alert notification is sent during each mute period even if the metric value exceeds the alert threshold several times.', 'type' => 'string', 'example' => '86400', 'title' => ''],
'Webhook' => ['description' => 'The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.', 'type' => 'string', 'example' => 'http://www.aliyun.com', 'title' => ''],
'Times' => ['description' => 'The number of times for which the threshold can be consecutively exceeded.'."\n"
."\n"
.'> A metric triggers an alert only after the metric value reaches the threshold consecutively for the specified times.', 'type' => 'string', 'example' => '3', 'title' => ''],
'EscalationsLevel' => ['description' => 'The level of the alert. Valid values:'."\n"
."\n"
.'- critical'."\n"
."\n"
.'- warn'."\n"
."\n"
.'- Info', 'type' => 'string', 'example' => 'warn', 'title' => ''],
'NoEffectiveInterval' => ['description' => 'The time period during which the alert rule is ineffective.', 'type' => 'string', 'example' => '00:00-23:59', 'title' => ''],
'EffectiveInterval' => ['description' => 'The time period during which the alert rule is effective.', 'type' => 'string', 'example' => '00:00-23:59', 'title' => ''],
'Threshold' => ['description' => 'The alert threshold.', 'type' => 'string', 'example' => '5', 'title' => ''],
'Statistics' => ['description' => 'The method used to calculate metric values that trigger alerts.', 'type' => 'string', 'example' => 'Average', 'title' => ''],
'TargetList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Target' => [
'description' => 'The resources for which alerts are triggered.',
'type' => 'array',
'items' => [
'description' => 'The resource for which alerts are triggered.',
'type' => 'object',
'properties' => [
'Id' => ['description' => 'The ID of the resource for which alerts are triggered.', 'type' => 'string', 'example' => '123', 'title' => ''],
'Arn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the resource. Format: acs:{Service name abbreviation}:{regionId}:{userId}:/{Resource type}/{Resource name}/message. Example: acs:mns:cn-hangzhou:120886317861\\*\\*\\*\\*:/queues/test123/message. Fields:'."\n"
."\n"
.'- {Service name abbreviation}: the abbreviation of the service name. Set the value to Simple Message Queue (formerly MNS) (SMQ).'."\n"
."\n"
.'- {userId}: the ID of the Alibaba Cloud account.'."\n"
."\n"
.'- {regionId}: the region ID of the SMQ queue or topic.'."\n"
."\n"
.'- {Resource type}: the type of the resource for which alerts are triggered. Valid values:'."\n"
."\n"
.' - **queues**'."\n"
."\n"
.' - **topics**'."\n"
."\n"
.'- {Resource name}: the resource name.'."\n"
."\n"
.' - If the resource type is **queues**, the resource name is the queue name.'."\n"
."\n"
.' - If the resource type is **topics**, the resource name is the topic name.', 'type' => 'string', 'example' => 'acs:mns:cn-hangzhou:120886317861****:/queues/test/message', 'title' => ''],
'Level' => ['description' => 'The alert level. Valid values:'."\n"
."\n"
.'- INFO'."\n"
."\n"
.'- WARN'."\n"
."\n"
.'- CRITICAL', 'type' => 'string', 'example' => 'CRITICAL', 'title' => ''],
'JsonParmas' => ['description' => 'The parameters of the alert callback. The parameters are in the JSON format.', 'type' => 'string', 'example' => '{"customField1":"value1","customField2":"$.name"}', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeGroupMonitoringAgentProcess',
'summary' => 'Queries the process monitoring tasks for an application group.',
'description' => 'You can create a process monitoring task to monitor all or the specified Elastic Compute Service (ECS) instances in an application group and configure alert rules for the process monitoring task.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeGroupMonitoringAgentProcess'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeGroupMonitoringAgentProcess',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7985D471-3FA8-4EE9-8F4B-45C19DF3D36F\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"PageNumber\\": \\"1\\",\\n \\"PageSize\\": \\"10\\",\\n \\"Total\\": \\"28\\",\\n \\"Processes\\": {\\n \\"Process\\": [\\n {\\n \\"ProcessName\\": \\"sshd\\",\\n \\"MatchExpressFilterRelation\\": \\"and\\",\\n \\"GroupId\\": \\"12345\\",\\n \\"Id\\": \\"3F6150F9-45C7-43F9-9578-A58B2E72****\\",\\n \\"MatchExpress\\": {\\n \\"MatchExpress\\": [\\n {\\n \\"Value\\": \\"portalHost\\",\\n \\"Name\\": \\"name\\",\\n \\"Function\\": \\"all\\"\\n }\\n ]\\n },\\n \\"AlertConfig\\": {\\n \\"AlertConfig\\": [\\n {\\n \\"ComparisonOperator\\": \\"GreaterThanOrEqualToThreshold\\",\\n \\"SilenceTime\\": \\"86400\\",\\n \\"Webhook\\": \\"http://www.aliyun.com\\",\\n \\"Times\\": \\"3\\",\\n \\"EscalationsLevel\\": \\"warn\\",\\n \\"NoEffectiveInterval\\": \\"00:00-23:59\\",\\n \\"EffectiveInterval\\": \\"00:00-23:59\\",\\n \\"Threshold\\": \\"5\\",\\n \\"Statistics\\": \\"Average\\",\\n \\"TargetList\\": {\\n \\"Target\\": [\\n {\\n \\"Id\\": \\"123\\",\\n \\"Arn\\": \\"acs:mns:cn-hangzhou:120886317861****:/queues/test/message\\",\\n \\"Level\\": \\"CRITICAL\\",\\n \\"JsonParmas\\": \\"{\\\\\\"customField1\\\\\\":\\\\\\"value1\\\\\\",\\\\\\"customField2\\\\\\":\\\\\\"$.name\\\\\\"}\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeHostAvailabilityList' => [
'summary' => 'Queries the list of availability monitoring tasks.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Id',
'in' => 'query',
'schema' => ['description' => 'The ID of the availability monitoring task.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123456', 'title' => ''],
],
[
'name' => 'Ids',
'in' => 'query',
'schema' => ['description' => 'The IDs of multiple availability monitoring tasks. Separate multiple IDs with commas (,).', 'type' => 'string', 'required' => false, 'example' => '123456,345678', 'title' => ''],
],
[
'name' => 'TaskName',
'in' => 'query',
'schema' => ['description' => 'The name of the availability monitoring task.', 'type' => 'string', 'required' => false, 'example' => 'ecs_instance', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.'."\n"
."\n"
.'Minimum value: 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.'."\n"
."\n"
.'Minimum value: 1. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '12345', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'>The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '4A288E86-45C3-4858-9DB0-6D85B10BD92A', 'title' => ''],
'Total' => ['description' => 'The total number of records.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'TaskList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'NodeTaskConfig' => [
'description' => 'The list of availability monitoring tasks.',
'type' => 'array',
'items' => [
'description' => 'The list of availability monitoring tasks.',
'type' => 'object',
'properties' => [
'TaskType' => ['description' => 'The type of the task. Valid values:'."\n"
."\n"
.'- PING'."\n"
.'- TELNET'."\n"
.'- HTTP', 'type' => 'string', 'example' => 'HTTP', 'title' => ''],
'GroupName' => ['description' => 'The name of the application group.', 'type' => 'string', 'example' => 'Group_ECS', 'title' => ''],
'GroupId' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'example' => '12345', 'title' => ''],
'TaskName' => ['description' => 'The name of the availability monitoring task.', 'type' => 'string', 'example' => 'ecs_instance', 'title' => ''],
'Disabled' => ['description' => 'Indicates whether the availability monitoring task is disabled. Valid values:'."\n"
."\n"
.'- true: The task is disabled.'."\n"
."\n"
.'- false: The task is enabled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'TaskScope' => ['description' => 'The scope of the availability monitoring task. Valid values:'."\n"
."\n"
.'- GROUP: All ECS instances in the current application group are used as detection points.'."\n"
.'- GROUP_SPEC_INSTANCE: Specified ECS instances in the current application group are used as detection points.', 'type' => 'string', 'example' => 'GROUP', 'title' => ''],
'Id' => ['description' => 'The ID of the availability monitoring task.', 'type' => 'integer', 'format' => 'int64', 'example' => '123456', 'title' => ''],
'Instances' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Instance' => [
'description' => 'The list of ECS instances that initiate detection.',
'type' => 'array',
'items' => ['description' => 'The list of ECS instances that initiate detection.', 'type' => 'string', 'example' => 'i-abcdefgh12****', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'TaskOption' => [
'description' => 'The parameter options of the availability monitoring task.',
'type' => 'object',
'properties' => [
'HttpMethod' => ['description' => 'The HTTP method of the detection type. Valid values:'."\n"
."\n"
.'- GET'."\n"
.'- POST'."\n"
.'- HEAD', 'type' => 'string', 'example' => 'GET', 'title' => ''],
'Interval' => ['description' => 'The detection frequency. Unit: seconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '60', 'title' => ''],
'HttpURI' => ['description' => 'The URI for HTTP detection.', 'type' => 'string', 'example' => 'https://www.aliyun.com', 'title' => ''],
'TelnetOrPingHost' => ['description' => 'The domain name or address to detect.', 'type' => 'string', 'example' => 'ssh.aliyun.com', 'title' => ''],
'HttpResponseCharset' => ['description' => 'The response character set for HTTP detection.', 'type' => 'string', 'example' => 'UTF-8', 'title' => ''],
'HttpPostContent' => ['description' => 'The POST content of the HTTP detection request.', 'type' => 'string', 'example' => 'params1=paramsValue1', 'title' => ''],
'HttpNegative' => ['description' => 'The alert rule for matching HTTP response content. Valid values:'."\n"
.'- true: An alert is triggered if the HTTP response content contains the specified alert rule.'."\n"
.'- false: An alert is triggered if the HTTP response content does not contain the specified alert rule.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'HttpKeyword' => ['description' => 'The keyword to match in the HTTP detection response content.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
],
'title' => '',
'example' => '',
],
'AlertConfig' => [
'description' => 'The alert rule configuration.',
'type' => 'object',
'properties' => [
'SilenceTime' => ['description' => 'The mute period. Unit: seconds. Default value: 86400.', 'type' => 'integer', 'format' => 'int32', 'example' => '86400', 'title' => ''],
'EndTime' => ['description' => 'The end time of the alert effective period. Valid values: 0 to 23.'."\n"
."\n"
.'For example, if AlertConfig.StartTime is set to 0 and AlertConfig.EndTime is set to 22, the alert effective period is 00:00:00 to 22:00:00.'."\n"
."\n"
.'>If the alert is not within the effective period, no alert notification is sent even if the threshold is exceeded.', 'type' => 'integer', 'format' => 'int32', 'example' => '22', 'title' => ''],
'StartTime' => ['description' => 'The start time of the alert effective period. Valid values: 0 to 23.'."\n"
."\n"
.'For example, if AlertConfig.StartTime is set to 0 and AlertConfig.EndTime is set to 22, the alert effective period is 00:00:00 to 22:00:00.'."\n"
."\n"
.'>If the alert is not within the effective period, no alert notification is sent even if the threshold is exceeded.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'WebHook' => ['description' => 'The callback URL when an alert is triggered.'."\n"
."\n"
.'CloudMonitor pushes alert information to this URL by using POST requests. Only the HTTP protocol is supported.', 'type' => 'string', 'example' => 'https://www.aliyun.com', 'title' => ''],
'NotifyType' => ['description' => 'The alert notification method. Valid values:'."\n"
."\n"
.'- 2: Phone call + text message + email + DingTalk chatbot.'."\n"
."\n"
.'- 1: Text message + email + DingTalk chatbot.'."\n"
."\n"
.'- 0: Email + DingTalk chatbot.'."\n"
."\n"
.'- 2: Email + DingTalk chatbot.'."\n"
."\n"
.'- 1: Email + DingTalk chatbot.'."\n"
."\n"
.'- 0: Email + DingTalk chatbot.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'EscalationList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'escalationList' => [
'description' => 'The conditions that trigger the alert.',
'type' => 'array',
'items' => [
'description' => 'The conditions that trigger the alert.',
'type' => 'object',
'properties' => [
'Value' => ['description' => 'The alert threshold.', 'type' => 'string', 'example' => '400', 'title' => ''],
'MetricName' => ['description' => 'The metric for the alert. Valid values:'."\n"
."\n"
.'- HttpStatus: HTTP status code.'."\n"
.'- HttpLatency: HTTP response time.'."\n"
.'- TelnetStatus: TELNET status code.'."\n"
.'- TelnetLatency: TELNET response time.'."\n"
.'- PingLostRate: PING packet loss rate.', 'type' => 'string', 'example' => 'HttpStatus', 'title' => ''],
'Operator' => ['description' => 'The comparison operator for the alert rule. Valid values:'."\n"
."\n"
.'- `>`'."\n"
.'- `>=`'."\n"
.'- `<`'."\n"
.'- `<=`'."\n"
.'- `=`', 'type' => 'string', 'example' => '=', 'title' => ''],
'Times' => ['description' => 'The number of consecutive periods during which the threshold is exceeded before an alert is triggered.', 'type' => 'string', 'example' => '3', 'title' => ''],
'Aggregate' => ['description' => 'The statistical method for the alert. The valid values vary based on the metric:'."\n"
."\n"
.'- Value: The value of the HTTP status code.'."\n"
.'- Average: The average HTTP response time.'."\n"
.'- Value: The value of the TELNET status code.'."\n"
.'- TelnetLatency: The average TELNET response time.'."\n"
.'- Average: The average PING packet loss rate.', 'type' => 'string', 'example' => 'Value', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'TargetList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Target' => [
'description' => 'The list of alert targets.',
'type' => 'array',
'items' => [
'description' => 'The list of alert targets.',
'type' => 'object',
'properties' => [
'Id' => ['description' => 'The ID of the alert target.', 'type' => 'string', 'example' => '1', 'title' => ''],
'Arn' => ['description' => 'The Alibaba Cloud Resource Name (ARN).'."\n"
."\n"
.'Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. The fields are described as follows:'."\n"
."\n"
.'- Service: The code of the Alibaba Cloud service.'."\n"
."\n"
.'- Region: The region ID.'."\n"
."\n"
.'- Account: The Alibaba Cloud account ID.'."\n"
."\n"
.'- ResourceType: The resource type.'."\n"
."\n"
.'- ResourceId: The resource ID.', 'type' => 'string', 'example' => 'acs:mns:cn-hangzhou:17754132319*****:/queues/test/messages', 'title' => ''],
'Level' => ['description' => 'The alert level. Valid values:'."\n"
."\n"
.'- INFO: Information.'."\n"
.'- WARN: Warning.'."\n"
.'- CRITICAL: Critical.', 'type' => 'string', 'example' => 'INFO', 'title' => ''],
'JsonParams' => ['description' => 'The JSON-formatted parameters of the alert callback.', 'type' => 'string', 'example' => '{"key1":"value1"}', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Query availability monitoring tasks',
'description' => 'This topic provides an example on how to query the list of availability monitoring tasks for the current account. The response shows that the current account has one availability monitoring task record `ecs_instance`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeHostAvailabilityList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeHostAvailabilityList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"4A288E86-45C3-4858-9DB0-6D85B10BD92A\\",\\n \\"Total\\": 1,\\n \\"Success\\": true,\\n \\"TaskList\\": {\\n \\"NodeTaskConfig\\": [\\n {\\n \\"TaskType\\": \\"HTTP\\",\\n \\"GroupName\\": \\"Group_ECS\\",\\n \\"GroupId\\": 12345,\\n \\"TaskName\\": \\"ecs_instance\\",\\n \\"Disabled\\": false,\\n \\"TaskScope\\": \\"GROUP\\",\\n \\"Id\\": 123456,\\n \\"Instances\\": {\\n \\"Instance\\": [\\n \\"i-abcdefgh12****\\"\\n ]\\n },\\n \\"TaskOption\\": {\\n \\"HttpMethod\\": \\"GET\\",\\n \\"Interval\\": 60,\\n \\"HttpURI\\": \\"https://www.aliyun.com\\",\\n \\"TelnetOrPingHost\\": \\"ssh.aliyun.com\\",\\n \\"HttpResponseCharset\\": \\"UTF-8\\",\\n \\"HttpPostContent\\": \\"params1=paramsValue1\\",\\n \\"HttpNegative\\": true,\\n \\"HttpKeyword\\": \\"OK\\"\\n },\\n \\"AlertConfig\\": {\\n \\"SilenceTime\\": 86400,\\n \\"EndTime\\": 22,\\n \\"StartTime\\": 0,\\n \\"WebHook\\": \\"https://www.aliyun.com\\",\\n \\"NotifyType\\": 1,\\n \\"EscalationList\\": {\\n \\"escalationList\\": [\\n {\\n \\"Value\\": \\"400\\",\\n \\"MetricName\\": \\"HttpStatus\\",\\n \\"Operator\\": \\"=\\",\\n \\"Times\\": \\"3\\",\\n \\"Aggregate\\": \\"Value\\"\\n }\\n ]\\n },\\n \\"TargetList\\": {\\n \\"Target\\": [\\n {\\n \\"Id\\": \\"1\\",\\n \\"Arn\\": \\"acs:mns:cn-hangzhou:17754132319*****:/queues/test/messages\\",\\n \\"Level\\": \\"INFO\\",\\n \\"JsonParams\\": \\"{\\\\\\"key1\\\\\\":\\\\\\"value1\\\\\\"}\\"\\n }\\n ]\\n }\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
'translator' => 'machine',
],
'DescribeHybridMonitorDataList' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The name of the namespace.'."\n"
."\n"
.'For more information about how to query the names of namespaces, see [DescribeHybridMonitorNamespaceList](~~428880~~).', 'type' => 'string', 'required' => true, 'docRequired' => false, 'example' => 'default-aliyun', 'title' => ''],
],
[
'name' => 'PromSQL',
'in' => 'query',
'schema' => ['description' => 'The metric name.'."\n"
."\n"
.'> PromQL statements are supported.', 'type' => 'string', 'required' => true, 'docRequired' => false, 'example' => 'AliyunEcs_cpu_total', 'title' => ''],
],
[
'name' => 'Start',
'in' => 'query',
'schema' => ['description' => 'The start of the time range to query.'."\n"
."\n"
.'Unit: seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => false, 'example' => '1653804865', 'title' => ''],
],
[
'name' => 'End',
'in' => 'query',
'schema' => ['description' => 'The end of the time range to query.'."\n"
."\n"
.'Unit: seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => false, 'example' => '1653805225', 'title' => ''],
],
[
'name' => 'Period',
'in' => 'query',
'schema' => ['description' => 'The statistical period of the monitoring data.'."\n"
."\n"
.'Unit: seconds.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '60', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The response code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'end timestamp must not be before start time.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'C240412F-3F5F-50E2-ACEC-DE808EF9C4BE', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'string', 'example' => 'true', 'title' => ''],
'TimeSeries' => [
'description' => 'The returned monitoring data.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'MetricName' => ['description' => 'The metric name.', 'type' => 'string', 'example' => 'AliyunEcs_cpu_total', 'title' => ''],
'Labels' => [
'description' => 'The tags of the time dimension.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'K' => ['description' => 'The tag key.', 'type' => 'string', 'example' => 'instanceId', 'title' => ''],
'V' => ['description' => 'The tag value.', 'type' => 'string', 'example' => 'i-rj99xc6cptkk64ml****', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Values' => [
'description' => 'The metric values that are collected at different timestamps.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'V' => ['description' => 'The metric value.', 'type' => 'string', 'example' => '0.13', 'title' => ''],
'Ts' => ['description' => 'The timestamp that indicates the time when the metric value is collected.'."\n"
."\n"
.'Unit: seconds.', 'type' => 'string', 'example' => '1653804865', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'BadRequest', 'errorMessage' => 'Bad request.', 'description' => 'Error Parameter Request'],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => 'Resources already exist.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'DescribeHybridMonitorDataList',
'summary' => 'Queries the monitoring data in a namespace.',
'description' => '## [](#)Prerequisites'."\n"
."\n"
.'Hybrid Cloud Monitoring is activated. For more information, see [Activate Hybrid Cloud Monitoring](~~250773~~).'."\n"
."\n"
.'## [](#)Limits'."\n"
."\n"
.'The size of monitoring data that is returned in each call cannot exceed 1.5 MB. If the returned data reaches the upper limit, the query fails. You must reset the query conditions.'."\n"
."\n"
.'## [](#)Operation description'."\n"
."\n"
.'This topic provides an example to show how to query the monitoring data of the `AliyunEcs_cpu_total` metric in the `default-aliyun` namespace from `1653804865` (14:14:25 on May 29, 2022) to `1653805225` (14:20:25 on May 29, 2022).',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [
['createdAt' => '2025-02-13T11:47:48.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2022-05-30T06:45:26.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeHybridMonitorDataList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'cms:DescribeCustomMetricDataPoint',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"end timestamp must not be before start time.\\",\\n \\"RequestId\\": \\"C240412F-3F5F-50E2-ACEC-DE808EF9C4BE\\",\\n \\"Success\\": \\"true\\",\\n \\"TimeSeries\\": [\\n {\\n \\"MetricName\\": \\"AliyunEcs_cpu_total\\",\\n \\"Labels\\": [\\n {\\n \\"K\\": \\"instanceId\\",\\n \\"V\\": \\"i-rj99xc6cptkk64ml****\\"\\n }\\n ],\\n \\"Values\\": [\\n {\\n \\"V\\": \\"0.13\\",\\n \\"Ts\\": \\"1653804865\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
],
'DescribeHybridMonitorNamespaceList' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page.'."\n"
."\n"
.'Minimum value: 1. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.'."\n"
."\n"
.'Minimum value: 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'Keyword',
'in' => 'query',
'schema' => ['description' => 'The keyword for the search.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'aliyun', 'title' => ''],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The name of the namespace.'."\n"
."\n"
.'The name can contain uppercase letters, lowercase letters, digits, and hyphens (-).', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'aliyun-test', 'title' => ''],
],
[
'name' => 'ShowTaskStatistic',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to display the configuration details of data import tasks for Alibaba Cloud services and the number of data import tasks for non-Alibaba Cloud services. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false (default)', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'No description is available.',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '1EC450A4-3221-5148-B77E-2827576CFE48', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'Code' => ['description' => 'The status code.', 'type' => 'string', 'example' => 'Success', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Specified parameter PageSize is not valid.', 'title' => ''],
'PageSize' => ['description' => 'The number of entries returned per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Total' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'DescribeHybridMonitorNamespace' => [
'description' => 'The details of the namespaces.',
'type' => 'array',
'items' => [
'description' => 'No description is available.',
'type' => 'object',
'properties' => [
'Description' => ['description' => 'The description of the namespace.', 'type' => 'string', 'example' => 'aliyun-test', 'title' => ''],
'CreateTime' => ['description' => 'The timestamp when the namespace was created.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'string', 'example' => '1652682744000', 'title' => ''],
'Namespace' => ['description' => 'The name of the namespace.', 'type' => 'string', 'example' => 'aliyun-test', 'title' => ''],
'IsDelete' => ['description' => 'Indicates whether the namespace is deleted. Valid values:'."\n"
."\n"
.'- 0: The namespace is not deleted.'."\n"
."\n"
.'- 1: The namespace is deleted.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'Id' => ['description' => 'The namespace ID.', 'type' => 'string', 'example' => '3****', 'title' => ''],
'ModifyTime' => ['description' => 'The timestamp when the namespace was last modified. Unit: milliseconds.', 'type' => 'string', 'example' => '1652682744000', 'title' => ''],
'Detail' => [
'description' => 'The details of the data storage duration.',
'type' => 'object',
'properties' => [
'Spec' => ['description' => 'The data storage duration. Valid values:'."\n"
."\n"
.'- cms.s1.large: 15 days.'."\n"
."\n"
.'- cms.s1.xlarge: 32 days.'."\n"
."\n"
.'- cms.s1.2xlarge: 63 days.'."\n"
."\n"
.'- cms.s1.3xlarge: 93 days.'."\n"
."\n"
.'- cms.s1.6xlarge: 185 days.'."\n"
."\n"
.'- cms.s1.12xlarge: 376 days.', 'type' => 'string', 'example' => 'cms.s1.3xlarge', 'title' => ''],
'NamespaceRegion' => ['description' => 'The region where the monitoring data is stored.'."\n"
."\n"
.'> This parameter is returned if you set `NamespaceType` to `m_prom_user` when you create the namespace.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
'SLSProject' => ['description' => 'The Simple Log Service (SLS) project where the monitoring data is stored.'."\n"
."\n"
.'> This parameter is returned if you set `NamespaceType` to `m_prom_user` when you create the namespace.', 'type' => 'string', 'example' => 'cms-hybrid-120886317861****-cn-hangzhou-a83d', 'title' => ''],
'PrometheusInstanceId' => ['description' => 'The Prometheus instance where the monitoring data is stored.'."\n"
."\n"
.'> This parameter is returned if you set `NamespaceType` to `aliyun_prometheus` when you create the namespace.', 'type' => 'string', 'example' => 'rw-57******************7f', 'title' => ''],
],
'title' => '',
'example' => '',
],
'NotAliyunTaskNumber' => ['description' => 'The number of data import tasks for non-Alibaba Cloud services.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''],
'AliyunProductMetricList' => [
'description' => 'The configuration details of data import tasks for Alibaba Cloud services.',
'type' => 'array',
'items' => [
'description' => 'No description is available.',
'type' => 'object',
'properties' => [
'UserId' => ['description' => 'The account that is used to create the namespace.', 'type' => 'integer', 'format' => 'int64', 'example' => '120886317861****', 'title' => ''],
'NamespaceList' => [
'description' => 'The list of namespaces.',
'type' => 'array',
'items' => [
'description' => 'No description is available.',
'type' => 'object',
'properties' => [
'Namespace' => ['description' => 'The data namespace of the Alibaba Cloud service.', 'type' => 'string', 'example' => 'acs_ecs_dashboard', 'title' => ''],
'MetricList' => [
'description' => 'The list of metrics for the Alibaba Cloud service.',
'type' => 'array',
'items' => [
'description' => 'No description is available.',
'type' => 'object',
'properties' => [
'Period' => ['description' => 'The collection period of the metric.'."\n"
."\n"
.'Unit: seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '60', 'title' => ''],
'List' => [
'description' => 'The list of metrics.',
'type' => 'array',
'items' => ['description' => 'The metric.', 'type' => 'string', 'example' => '["cpu_total"]', 'title' => ''],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'YAMLConfig' => ['description' => 'The configuration file for the Alibaba Cloud service that is connected to Hybrid Cloud Monitoring.'."\n"
."\n"
.'- namespace: the namespace of the Alibaba Cloud service.'."\n"
."\n"
.'- metric\\_list: the metrics of the Alibaba Cloud service.'."\n"
."\n"
.'- dimension: the resources of the Alibaba Cloud service that can be queried in Hybrid Cloud Monitoring. If this parameter is empty, all resources are monitored.', 'type' => 'string', 'example' => 'products:- namespace: acs_ecs_dashboard metric_info: - metric_list: - cpu_total dimension: \'\'', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'NamespaceType' => ['description' => 'The storage solution for monitoring data. Valid values:'."\n"
."\n"
.'- m\\_prom\\_user: The monitoring data is stored in SLS.'."\n"
."\n"
.'- m\\_prom\\_pool: The monitoring data is stored in the storage space provided by Cloud Monitor.'."\n"
."\n"
.'- aliyun\\_prometheus: The monitoring data is stored in a Prometheus instance.', 'type' => 'string', 'example' => 'aliyun_prometheus', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => 'Resources already exist.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'DescribeHybridMonitorNamespaceList',
'summary' => 'Queries a list of namespaces and the details of their data sources.',
'description' => 'This example shows how to query all namespaces that belong to the current account. The response indicates that only one namespace, `aliyun-test`, exists.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [
['createdAt' => '2025-05-27T06:45:50.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-11-21T10:00:14.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-10-25T07:24:00.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeHybridMonitorNamespaceList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeCustomNamespace',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1EC450A4-3221-5148-B77E-2827576CFE48\\",\\n \\"Success\\": \\"true\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"Specified parameter PageSize is not valid.\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"Total\\": 1,\\n \\"DescribeHybridMonitorNamespace\\": [\\n {\\n \\"Description\\": \\"aliyun-test\\",\\n \\"CreateTime\\": \\"1652682744000\\",\\n \\"Namespace\\": \\"aliyun-test\\",\\n \\"IsDelete\\": 0,\\n \\"Id\\": \\"3****\\",\\n \\"ModifyTime\\": \\"1652682744000\\",\\n \\"Detail\\": {\\n \\"Spec\\": \\"cms.s1.3xlarge\\",\\n \\"NamespaceRegion\\": \\"cn-hangzhou\\",\\n \\"SLSProject\\": \\"cms-hybrid-120886317861****-cn-hangzhou-a83d\\",\\n \\"PrometheusInstanceId\\": \\"rw-57******************7f\\"\\n },\\n \\"NotAliyunTaskNumber\\": 0,\\n \\"AliyunProductMetricList\\": [\\n {\\n \\"UserId\\": 0,\\n \\"NamespaceList\\": [\\n {\\n \\"Namespace\\": \\"acs_ecs_dashboard\\",\\n \\"MetricList\\": [\\n {\\n \\"Period\\": 60,\\n \\"List\\": [\\n \\"[\\\\\\"cpu_total\\\\\\"]\\"\\n ]\\n }\\n ]\\n }\\n ],\\n \\"YAMLConfig\\": \\"products:- namespace: acs_ecs_dashboard metric_info: - metric_list: - cpu_total dimension: \'\'\\"\\n }\\n ],\\n \\"NamespaceType\\": \\"aliyun_prometheus\\"\\n }\\n ]\\n}","type":"json"}]',
],
'DescribeHybridMonitorSLSGroup' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Keyword',
'in' => 'query',
'schema' => ['description' => 'The search keyword.', 'type' => 'string', 'required' => false, 'example' => 'Logstore', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.'."\n"
."\n"
.'Minimum value: 1. Default value: 10.', 'type' => 'string', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.'."\n"
."\n"
.'Minimum value: 1. Default value: 1.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'SLSGroupName',
'in' => 'query',
'schema' => ['description' => 'The name of the Logstore group.', 'type' => 'string', 'required' => false, 'example' => 'Logstore_test', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A value of 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'NotFound.SLSGroup', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '66683237-7126-50F8-BBF8-D67ACC919A17', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: Successful.'."\n"
.'- false: Failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'List' => [
'description' => 'The list of Logstore groups.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'SLSGroupName' => ['description' => 'The name of the Logstore group.', 'type' => 'string', 'format' => 'int64', 'example' => 'Logstore_test', 'title' => ''],
'SLSGroupDescription' => ['description' => 'The description of the Logstore group.', 'type' => 'string', 'example' => 'Logstore group of Alibaba Cloud products.', 'title' => ''],
'SLSGroupConfig' => [
'description' => 'The configuration information of the Logstore group.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'SLSRegion' => ['description' => 'The region.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
'SLSProject' => ['description' => 'The Simple Log Service project.', 'type' => 'string', 'example' => 'aliyun-project', 'title' => ''],
'SLSLogstore' => ['description' => 'The Logstore.', 'type' => 'string', 'example' => 'Logstore-aliyun-all', 'title' => ''],
'SLSUserId' => ['description' => 'The member ID.'."\n"
."\n"
.'> This parameter is returned only when you call this operation by using a management account.', 'type' => 'string', 'example' => '120886317861****', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'CreateTime' => ['description' => 'The timestamp when the Logstore group was created.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'string', 'example' => '1652845630000', 'title' => ''],
'UpdateTime' => ['description' => 'The timestamp when the Logstore group was last modified.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'string', 'example' => '1652845630000', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int64', 'example' => '10', 'title' => ''],
'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
'Total' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int64', 'example' => '2', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
412 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Query logstore group list',
'summary' => 'Queries the list of Logstore groups by calling the DescribeHybridMonitorSLSGroup operation.',
'description' => 'This topic provides an example of how to query all Logstore groups in the current account. The response shows that the current account has two Logstore groups: `Logstore_test` and `Logstore_aliyun`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [
['createdAt' => '2022-06-20T02:41:49.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeHybridMonitorSLSGroup'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeHybridMonitorSLSGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"NotFound.SLSGroup\\",\\n \\"RequestId\\": \\"66683237-7126-50F8-BBF8-D67ACC919A17\\",\\n \\"Success\\": \\"true\\",\\n \\"List\\": [\\n {\\n \\"SLSGroupName\\": \\"Logstore_test\\",\\n \\"SLSGroupDescription\\": \\"Logstore group of Alibaba Cloud products.\\",\\n \\"SLSGroupConfig\\": [\\n {\\n \\"SLSRegion\\": \\"cn-hangzhou\\",\\n \\"SLSProject\\": \\"aliyun-project\\",\\n \\"SLSLogstore\\": \\"Logstore-aliyun-all\\",\\n \\"SLSUserId\\": \\"120886317861****\\"\\n }\\n ],\\n \\"CreateTime\\": \\"1652845630000\\",\\n \\"UpdateTime\\": \\"1652845630000\\"\\n }\\n ],\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"Total\\": 2\\n}","type":"json"}]',
],
'DescribeHybridMonitorTaskList' => [
'summary' => 'Queries metric import tasks.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Keyword',
'in' => 'query',
'schema' => ['description' => 'The keyword that is used for the search.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'task', 'title' => ''],
],
[
'name' => 'TaskId',
'in' => 'query',
'schema' => ['description' => 'The ID of the metric import task.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '36****', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.'."\n"
."\n"
.'For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](~~115032~~).', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '3607****', 'title' => ''],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The name of the namespace.'."\n"
."\n"
.'For information about how to obtain the name of a namespace, see [DescribeHybridMonitorNamespaceList](~~428880~~).', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'aliyun', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.'."\n"
."\n"
.'Pages start from page 1. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.'."\n"
."\n"
.'Pages start from page 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'IncludeAliyunTask',
'in' => 'query',
'schema' => ['description' => 'Specifies whether the returned result includes metric import tasks for Alibaba Cloud services. Valid values:'."\n"
."\n"
.'- true (default): The returned result includes metric import tasks for Alibaba Cloud services.'."\n"
."\n"
.'- false: The returned result excludes metric import tasks for Alibaba Cloud services.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'TaskType',
'in' => 'query',
'schema' => [
'description' => 'The type of the metric import task. Valid values:'."\n"
."\n"
.'- aliyun\\_fc: metric import tasks for Alibaba Cloud services'."\n"
."\n"
.'- aliyun\\_sls: metrics for logs imported from Log Service',
'enumValueTitles' => ['aliyun_sls' => 'aliyun\\_sls'],
'type' => 'string',
'required' => false,
'example' => 'aliyun_fc',
'title' => '',
],
],
[
'name' => 'TargetUserId',
'in' => 'query',
'schema' => ['description' => 'The ID of the member account.'."\n"
."\n"
.'> This parameter is required only if you use a management account to call this operation to delete the metric import tasks that belong to a member in a resource directory. In this case, the `TaskType` parameter is set to `aliyun_fc`.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '120886317861****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '11145B76-566A-5D80-A8A3-FAD98D310079', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'string', 'example' => 'true', 'title' => ''],
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.'."\n"
."\n"
.'- If the request was successful, the value `successful` is returned.'."\n"
."\n"
.'- If the request failed, an error message is returned.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Total' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'TaskList' => [
'description' => 'The metric import tasks.',
'type' => 'array',
'items' => [
'description' => 'None',
'type' => 'object',
'properties' => [
'YARMConfig' => ['description' => 'The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring.'."\n"
."\n"
.'- namespace: the namespace of the Alibaba Cloud service.'."\n"
."\n"
.'- metric\\_list: the metrics of the Alibaba Cloud service.', 'type' => 'string', 'example' => 'products:- namespace: acs_ecs_dashboard metric_info: - metric_list: - cpu_total', 'title' => ''],
'CreateTime' => ['description' => 'The timestamp when the metric import task was created.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'string', 'example' => '1639382496000', 'title' => ''],
'TaskName' => ['description' => 'The name of the metric import task.', 'type' => 'string', 'example' => 'aliyun_task', 'title' => ''],
'Namespace' => ['description' => 'The namespace to which the host belongs.', 'type' => 'string', 'example' => 'aliyun', 'title' => ''],
'UploadRegion' => ['description' => 'The region where the host resides.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
'NetworkType' => ['description' => 'The network type of the host. Valid values:'."\n"
."\n"
.'- `vpc`'."\n"
."\n"
.'- `Internet`', 'type' => 'string', 'example' => 'vpc', 'title' => ''],
'CollectTimout' => ['description' => 'The timeout period during which the CloudMonitor agent collects host monitoring data. Valid values:'."\n"
."\n"
.'- 0'."\n"
."\n"
.'- 15'."\n"
."\n"
.'- 30'."\n"
."\n"
.'- 60'."\n"
."\n"
.'Unit: seconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '15', 'title' => ''],
'CollectTargetEndpoint' => ['description' => 'The URL of the destination from which the CloudMonitor agent collects host monitoring data.', 'type' => 'string', 'example' => 'http://localhost', 'title' => ''],
'TaskType' => ['description' => 'The type of the metric import task. Valid values:'."\n"
."\n"
.'- aliyun\\_fc: metric import tasks for Alibaba Cloud services'."\n"
."\n"
.'- aliyun\\_sls: metrics for logs imported from Log Service', 'type' => 'string', 'example' => 'aliyun_sls', 'title' => ''],
'MatchExpressRelation' => ['description' => 'The relationship between the conditions that are used to filter metric import tasks. Valid values:'."\n"
."\n"
.'- or'."\n"
."\n"
.'- and', 'type' => 'string', 'example' => 'or', 'title' => ''],
'Description' => ['description' => 'The description of the metric import task.', 'type' => 'string', 'example' => 'aliyun', 'title' => ''],
'GroupId' => ['description' => 'The ID of the application group.', 'type' => 'string', 'example' => '3607****', 'title' => ''],
'CollectInterval' => ['description' => 'The interval at which the CloudMonitor agent collects host monitoring data. Valid values:'."\n"
."\n"
.'- 15'."\n"
."\n"
.'- 30'."\n"
."\n"
.'- 60'."\n"
."\n"
.'Unit: seconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '60', 'title' => ''],
'TargetUserId' => ['description' => 'The ID of the member account.'."\n"
."\n"
.'> This parameter is displayed only when you call this operation by using a management account.', 'type' => 'string', 'example' => '120886317861****', 'title' => ''],
'CollectTargetPath' => ['description' => 'The relative path from which the CloudMonitor agent collects monitoring data.', 'type' => 'string', 'example' => '/metrics', 'title' => ''],
'CollectTargetType' => ['description' => 'The type of the monitoring data. Valid values: Spring, Tomcat, Nginx, Tengine, JVM, Redis, and MySQL.', 'type' => 'string', 'example' => 'nginx', 'title' => ''],
'TaskId' => ['description' => 'The ID of the metric import task.', 'type' => 'string', 'example' => '36****', 'title' => ''],
'AttachLabels' => [
'description' => 'The tags of the metric import task.',
'type' => 'array',
'items' => [
'description' => 'None',
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The tag key.', 'type' => 'string', 'example' => 'key1', 'title' => ''],
'Value' => ['description' => 'The tag value.', 'type' => 'string', 'example' => 'value1', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'MatchExpress' => [
'description' => 'The conditions that are used to match the instances in the application group.',
'type' => 'array',
'items' => [
'description' => 'None',
'type' => 'object',
'properties' => [
'Value' => ['description' => 'The keyword that corresponds to the instance name.', 'type' => 'string', 'example' => 'ECS_instance1', 'title' => ''],
'Name' => ['description' => 'The instance name.', 'type' => 'string', 'example' => 'name', 'title' => ''],
'Function' => ['description' => 'The method that is used to match the instance name. Valid values:'."\n"
."\n"
.'- startWith: starts with a prefix'."\n"
."\n"
.'- endWith: ends with a suffix'."\n"
."\n"
.'- all: matches all'."\n"
."\n"
.'- equals: equals'."\n"
."\n"
.'- contains: contains'."\n"
."\n"
.'- notContains: does not contain', 'type' => 'string', 'example' => 'all', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Instances' => [
'description' => 'The instances where monitoring data is collected in batches.',
'type' => 'array',
'items' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'i-hp368focau7dp0hw****', 'title' => ''],
'title' => '',
'example' => '',
],
'ExtraInfo' => ['description' => 'The additional information of the instance.', 'type' => 'string', 'example' => 'test', 'title' => ''],
'LogFilePath' => ['description' => 'The path where on-premises log data is stored. On-premises log data is stored in the specified path of the host where CloudMonitor is deployed.'."\n"
."\n"
.'- Windows: The log path must start with a drive letter. Example: `C:\\UserData\\log\\*.Log`. You cannot specify wildcard characters in a log path.'."\n"
."\n"
.'- Linux: The log path must start with a forward slash (/). Example: `/home/appdata/log/**/*.log`. In this example, `/**/` is used to match all files in the appdata directory.', 'type' => 'string', 'example' => 'C:\\UserData\\log\\*.Log', 'title' => ''],
'LogSplit' => ['description' => 'The result that is returned after on-premises log data is split based on the specified matching mode.'."\n"
."\n"
.'> The matching modes of on-premises log data include full regex mode, delimiter mode, and JSON mode.', 'type' => 'string', 'example' => '{"type": "regex","regex": "\\\\d+\\\\.\\\\d+\\\\.\\\\d+\\\\.\\\\d+\\\\s+(\\\\d+)\\\\s+\\\\S+\\\\s+\\\\[\\\\d+/\\\\S+/\\\\d+:\\\\d+:\\\\d+:\\\\d+\\\\s+\\\\+\\\\d+\\\\]\\\\s+(\\\\S+)\\\\s+\\\\S+\\\\s+/\\\\S+/\\\\S+/\\\\S+\\\\s+(\\\\d+)","columns": [{"name": "field1"},{"name": "filed2","translate": {"default": "-","mappings": [{"from": "(\\\\w+)","to": "$1x","type": "regex"}]}},{"name": "filed3","translate": {"default": "-","mappings": [{"from": "NumberRange(100,300)","to": "true","type": "function"}]}}]}', 'title' => ''],
'LogProcess' => ['description' => 'The method that is used to aggregate on-premises log data.', 'type' => 'string', 'example' => '[{"metric": "metric1","filters": [{"column": "filed2","type": "include","values": ["222222"]}],"groupBys": [{"column": "filed3","name": "filed3"}],"calculates": [{"column": "field1","name": "avg","type": "avg"}]},{"metric": "metric2","filters": [{"column": "field1","type": "include","values": ["11111"]}],"groupBys": [{"column": "filed2","name": "filed2"}],"calculates": [{"column": "field1","name": "avg","type": "avg"}]}]', 'title' => ''],
'LogSample' => ['description' => 'The sample on-premises log.', 'type' => 'string', 'example' => '{"logContent":"100.116.134.26 1119 - [13/Aug/2019:16:55:46 +0800] POST metrichub-cn-hongkong.aliyun.com /agent/metrics/putLines 200 0 \\"-\\" \\"127.0.0.1:7001\\" \\"Go-http-client/1.1\\" \\"-\\" \\"-\\" \\"0a98a21a15656865460656276e\\"","addData":{"field1":["1119","1119"],"filed2":["POSTx","POST"],"filed3":["true","200"]}}', 'title' => ''],
'SLSProcess' => ['description' => 'The configurations of the logs that are imported from Log Service.', 'type' => 'string', 'example' => '{"express": [],"filter": {"filters": [{"key": "task_type","operator": "=","value": "1"}]},"groupby": [{"alias": "isp","key": "isp","sqlKey": "t.`isp`","valueKey": "isp"}],"interval": 60,"labels": [{"name": "__cms_app__","type": 0,"value": "sitemonitor"}],"statistics": [{"alias": "http_dns_time_avg","function": "avg","key": "http_dns_time"}]}', 'title' => ''],
'SLSProcessConfig' => [
'description' => 'The configurations of the logs that are imported from Log Service.'."\n"
."\n"
.'> This parameter is returned only if the `TaskType` parameter is set to `aliyun_sls`.',
'type' => 'object',
'properties' => [
'Filter' => [
'description' => 'The conditions that are used to filter logs imported from Log Service.',
'type' => 'object',
'properties' => [
'Relation' => ['description' => 'The relationship between multiple filter conditions. Valid values:'."\n"
."\n"
.'- and (default): Logs are processed only if all filter conditions are met.'."\n"
."\n"
.'- or: Logs are processed if one of the filter conditions is met.', 'type' => 'string', 'example' => 'and', 'title' => ''],
'Filters' => [
'description' => 'The conditions that are used to filter logs imported from Log Service.',
'type' => 'array',
'items' => [
'description' => 'The conditions that are used to filter logs imported from Log Service.',
'type' => 'object',
'properties' => [
'SLSKeyName' => ['description' => 'The name of the key that is used to filter logs imported from Log Service.', 'type' => 'string', 'example' => 'host', 'title' => ''],
'Operator' => ['description' => 'The method that is used to filter logs imported from Log Service. Valid values:'."\n"
."\n"
.'- `contain`: contains'."\n"
."\n"
.'- `notContain`: does not contain'."\n"
."\n"
.'- `>`: greater than'."\n"
."\n"
.'- `<`: less than'."\n"
."\n"
.'- `=`: equal to'."\n"
."\n"
.'- `! =`: not equal to'."\n"
."\n"
.'- `>=`: greater than or equal to'."\n"
."\n"
.'- `<=`: less than or equal to', 'type' => 'string', 'example' => '=', 'title' => ''],
'Value' => ['description' => 'The value of the key that is used to filter logs imported from Log Service.', 'type' => 'string', 'example' => '200', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'Statistics' => [
'description' => 'The methods that are used to aggregate logs imported from Log Service.',
'type' => 'array',
'items' => [
'description' => 'The method that is used to aggregate logs imported from Log Service.',
'type' => 'object',
'properties' => [
'SLSKeyName' => ['description' => 'The name of the key that is used to aggregate logs imported from Log Service.', 'type' => 'string', 'example' => 'name', 'title' => ''],
'Function' => ['description' => 'The function that is used to aggregate log data within a statistical period. Valid values:'."\n"
."\n"
.'- count: counts the number.'."\n"
."\n"
.'- sum: calculates the total value.'."\n"
."\n"
.'- avg: calculates the average value.'."\n"
."\n"
.'- max: calculates the maximum value.'."\n"
."\n"
.'- min: calculates the minimum value.'."\n"
."\n"
.'- value: collects samples within the statistical period.'."\n"
."\n"
.'- countps: calculates the average number of the specified field per second by using the following formula: Counted number of the specified field/Total number of seconds within the statistical period.'."\n"
."\n"
.'- sumps: calculates the average number of the specified field per second by using the following formula: Total value of the specified field/Total number of seconds within the statistical period.'."\n"
."\n"
.'- distinct: counts the number of logs where the specified field appears within the statistical period.'."\n"
."\n"
.'- distribution: counts the number of logs that meet a specified condition within the statistical period.'."\n"
."\n"
.'- percentile: sorts the values of the specified field in ascending order, and then returns the value that is at the specified percentile within the statistical period. Example: P50.', 'type' => 'string', 'example' => 'count', 'title' => ''],
'Alias' => ['description' => 'The alias of the aggregation result.', 'type' => 'string', 'example' => 'level_count', 'title' => ''],
'Parameter1' => ['description' => 'The value of the function that is used to aggregate logs imported from Log Service.'."\n"
."\n"
.'- If the `Function` parameter is set to `distribution`, this parameter indicates the lower limit of the statistical interval. For example, 200 indicates that the number of HTTP requests whose status code is 2XX is calculated.'."\n"
."\n"
.'- If the `Function` parameter is set to `percentile`, this parameter specifies the percentile at which the expected value is. For example, 0.5 specifies P50.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Parameter2' => ['description' => 'The value of the function that is used to aggregate logs imported from Log Service.'."\n"
."\n"
.'> This parameter is returned only if the `Function` parameter is set to `distribution`. This parameter indicates the upper limit of the statistical interval. For example, 299 indicates that the number of HTTP requests whose status code is 2XX is calculated.', 'type' => 'string', 'example' => '299', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'GroupBy' => [
'description' => 'The dimensions based on which data is aggregated. This parameter is equivalent to the GROUP BY clause in SQL.',
'type' => 'array',
'items' => [
'description' => 'The dimension based on which data is aggregated. This parameter is equivalent to the GROUP BY clause in SQL.',
'type' => 'object',
'properties' => [
'SLSKeyName' => ['description' => 'The name of the key that is used to aggregate logs imported from Log Service.', 'type' => 'string', 'example' => 'code', 'title' => ''],
'Alias' => ['description' => 'The alias of the aggregation result.', 'type' => 'string', 'example' => 'ApiResult', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Express' => [
'description' => 'The extended fields that indicate the results of basic operations that are performed on aggregation results.',
'type' => 'array',
'items' => [
'description' => 'The extended field that indicates the result of basic operations that are performed on aggregation results.',
'type' => 'object',
'properties' => [
'Express' => ['description' => 'The extended field that indicates the result of basic operations that are performed on aggregation results.', 'type' => 'string', 'example' => 'success_count', 'title' => ''],
'Alias' => ['description' => 'The alias of the extended field that indicates the result of basic operations that are performed on aggregation results.', 'type' => 'string', 'example' => 'SuccRate', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'DescribeHybridMonitorTaskList',
'description' => 'This topic provides an example on how to query all metric import tasks that belong to the current Alibaba Cloud account. The returned result indicates that the current account has only one metric import task. The metric import task is named `aliyun_task`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [
['createdAt' => '2022-07-20T10:29:34.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2022-06-09T09:38:01.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeHybridMonitorTaskList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'cms:DescribeHybridMonitorTaskList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"11145B76-566A-5D80-A8A3-FAD98D310079\\",\\n \\"Success\\": \\"true\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"Total\\": 1,\\n \\"TaskList\\": [\\n {\\n \\"YARMConfig\\": \\"products:- namespace: acs_ecs_dashboard metric_info: - metric_list: - cpu_total\\",\\n \\"CreateTime\\": \\"1639382496000\\",\\n \\"TaskName\\": \\"aliyun_task\\",\\n \\"Namespace\\": \\"aliyun\\",\\n \\"UploadRegion\\": \\"cn-hangzhou\\",\\n \\"NetworkType\\": \\"vpc\\",\\n \\"CollectTimout\\": 15,\\n \\"CollectTargetEndpoint\\": \\"http://localhost\\",\\n \\"TaskType\\": \\"aliyun_sls\\",\\n \\"MatchExpressRelation\\": \\"or\\",\\n \\"Description\\": \\"aliyun\\",\\n \\"GroupId\\": \\"3607****\\",\\n \\"CollectInterval\\": 60,\\n \\"TargetUserId\\": \\"120886317861****\\",\\n \\"CollectTargetPath\\": \\"/metrics\\",\\n \\"CollectTargetType\\": \\"nginx\\",\\n \\"TaskId\\": \\"36****\\",\\n \\"AttachLabels\\": [\\n {\\n \\"Name\\": \\"key1\\",\\n \\"Value\\": \\"value1\\"\\n }\\n ],\\n \\"MatchExpress\\": [\\n {\\n \\"Value\\": \\"ECS_instance1\\",\\n \\"Name\\": \\"name\\",\\n \\"Function\\": \\"all\\"\\n }\\n ],\\n \\"Instances\\": [\\n \\"i-hp368focau7dp0hw****\\"\\n ],\\n \\"ExtraInfo\\": \\"test\\",\\n \\"LogFilePath\\": \\"C:\\\\\\\\UserData\\\\\\\\log\\\\\\\\*.Log\\",\\n \\"LogSplit\\": \\"{\\\\\\"type\\\\\\": \\\\\\"regex\\\\\\",\\\\\\"regex\\\\\\": \\\\\\"\\\\\\\\\\\\\\\\d+\\\\\\\\\\\\\\\\.\\\\\\\\\\\\\\\\d+\\\\\\\\\\\\\\\\.\\\\\\\\\\\\\\\\d+\\\\\\\\\\\\\\\\.\\\\\\\\\\\\\\\\d+\\\\\\\\\\\\\\\\s+(\\\\\\\\\\\\\\\\d+)\\\\\\\\\\\\\\\\s+\\\\\\\\\\\\\\\\S+\\\\\\\\\\\\\\\\s+\\\\\\\\\\\\\\\\[\\\\\\\\\\\\\\\\d+/\\\\\\\\\\\\\\\\S+/\\\\\\\\\\\\\\\\d+:\\\\\\\\\\\\\\\\d+:\\\\\\\\\\\\\\\\d+:\\\\\\\\\\\\\\\\d+\\\\\\\\\\\\\\\\s+\\\\\\\\\\\\\\\\+\\\\\\\\\\\\\\\\d+\\\\\\\\\\\\\\\\]\\\\\\\\\\\\\\\\s+(\\\\\\\\\\\\\\\\S+)\\\\\\\\\\\\\\\\s+\\\\\\\\\\\\\\\\S+\\\\\\\\\\\\\\\\s+/\\\\\\\\\\\\\\\\S+/\\\\\\\\\\\\\\\\S+/\\\\\\\\\\\\\\\\S+\\\\\\\\\\\\\\\\s+(\\\\\\\\\\\\\\\\d+)\\\\\\",\\\\\\"columns\\\\\\": [{\\\\\\"name\\\\\\": \\\\\\"field1\\\\\\"},{\\\\\\"name\\\\\\": \\\\\\"filed2\\\\\\",\\\\\\"translate\\\\\\": {\\\\\\"default\\\\\\": \\\\\\"-\\\\\\",\\\\\\"mappings\\\\\\": [{\\\\\\"from\\\\\\": \\\\\\"(\\\\\\\\\\\\\\\\w+)\\\\\\",\\\\\\"to\\\\\\": \\\\\\"$1x\\\\\\",\\\\\\"type\\\\\\": \\\\\\"regex\\\\\\"}]}},{\\\\\\"name\\\\\\": \\\\\\"filed3\\\\\\",\\\\\\"translate\\\\\\": {\\\\\\"default\\\\\\": \\\\\\"-\\\\\\",\\\\\\"mappings\\\\\\": [{\\\\\\"from\\\\\\": \\\\\\"NumberRange(100,300)\\\\\\",\\\\\\"to\\\\\\": \\\\\\"true\\\\\\",\\\\\\"type\\\\\\": \\\\\\"function\\\\\\"}]}}]}\\",\\n \\"LogProcess\\": \\"[{\\\\\\"metric\\\\\\": \\\\\\"metric1\\\\\\",\\\\\\"filters\\\\\\": [{\\\\\\"column\\\\\\": \\\\\\"filed2\\\\\\",\\\\\\"type\\\\\\": \\\\\\"include\\\\\\",\\\\\\"values\\\\\\": [\\\\\\"222222\\\\\\"]}],\\\\\\"groupBys\\\\\\": [{\\\\\\"column\\\\\\": \\\\\\"filed3\\\\\\",\\\\\\"name\\\\\\": \\\\\\"filed3\\\\\\"}],\\\\\\"calculates\\\\\\": [{\\\\\\"column\\\\\\": \\\\\\"field1\\\\\\",\\\\\\"name\\\\\\": \\\\\\"avg\\\\\\",\\\\\\"type\\\\\\": \\\\\\"avg\\\\\\"}]},{\\\\\\"metric\\\\\\": \\\\\\"metric2\\\\\\",\\\\\\"filters\\\\\\": [{\\\\\\"column\\\\\\": \\\\\\"field1\\\\\\",\\\\\\"type\\\\\\": \\\\\\"include\\\\\\",\\\\\\"values\\\\\\": [\\\\\\"11111\\\\\\"]}],\\\\\\"groupBys\\\\\\": [{\\\\\\"column\\\\\\": \\\\\\"filed2\\\\\\",\\\\\\"name\\\\\\": \\\\\\"filed2\\\\\\"}],\\\\\\"calculates\\\\\\": [{\\\\\\"column\\\\\\": \\\\\\"field1\\\\\\",\\\\\\"name\\\\\\": \\\\\\"avg\\\\\\",\\\\\\"type\\\\\\": \\\\\\"avg\\\\\\"}]}]\\",\\n \\"LogSample\\": \\"{\\\\\\"logContent\\\\\\":\\\\\\"100.116.134.26 1119 - [13/Aug/2019:16:55:46 +0800] POST metrichub-cn-hongkong.aliyun.com /agent/metrics/putLines 200 0 \\\\\\\\\\\\\\"-\\\\\\\\\\\\\\" \\\\\\\\\\\\\\"127.0.0.1:7001\\\\\\\\\\\\\\" \\\\\\\\\\\\\\"Go-http-client/1.1\\\\\\\\\\\\\\" \\\\\\\\\\\\\\"-\\\\\\\\\\\\\\" \\\\\\\\\\\\\\"-\\\\\\\\\\\\\\" \\\\\\\\\\\\\\"0a98a21a15656865460656276e\\\\\\\\\\\\\\"\\\\\\",\\\\\\"addData\\\\\\":{\\\\\\"field1\\\\\\":[\\\\\\"1119\\\\\\",\\\\\\"1119\\\\\\"],\\\\\\"filed2\\\\\\":[\\\\\\"POSTx\\\\\\",\\\\\\"POST\\\\\\"],\\\\\\"filed3\\\\\\":[\\\\\\"true\\\\\\",\\\\\\"200\\\\\\"]}}\\",\\n \\"SLSProcess\\": \\"{\\\\\\"express\\\\\\": [],\\\\\\"filter\\\\\\": {\\\\\\"filters\\\\\\": [{\\\\\\"key\\\\\\": \\\\\\"task_type\\\\\\",\\\\\\"operator\\\\\\": \\\\\\"=\\\\\\",\\\\\\"value\\\\\\": \\\\\\"1\\\\\\"}]},\\\\\\"groupby\\\\\\": [{\\\\\\"alias\\\\\\": \\\\\\"isp\\\\\\",\\\\\\"key\\\\\\": \\\\\\"isp\\\\\\",\\\\\\"sqlKey\\\\\\": \\\\\\"t.`isp`\\\\\\",\\\\\\"valueKey\\\\\\": \\\\\\"isp\\\\\\"}],\\\\\\"interval\\\\\\": 60,\\\\\\"labels\\\\\\": [{\\\\\\"name\\\\\\": \\\\\\"__cms_app__\\\\\\",\\\\\\"type\\\\\\": 0,\\\\\\"value\\\\\\": \\\\\\"sitemonitor\\\\\\"}],\\\\\\"statistics\\\\\\": [{\\\\\\"alias\\\\\\": \\\\\\"http_dns_time_avg\\\\\\",\\\\\\"function\\\\\\": \\\\\\"avg\\\\\\",\\\\\\"key\\\\\\": \\\\\\"http_dns_time\\\\\\"}]}\\",\\n \\"SLSProcessConfig\\": {\\n \\"Filter\\": {\\n \\"Relation\\": \\"and\\",\\n \\"Filters\\": [\\n {\\n \\"SLSKeyName\\": \\"host\\",\\n \\"Operator\\": \\"=\\",\\n \\"Value\\": \\"200\\"\\n }\\n ]\\n },\\n \\"Statistics\\": [\\n {\\n \\"SLSKeyName\\": \\"name\\",\\n \\"Function\\": \\"count\\",\\n \\"Alias\\": \\"level_count\\",\\n \\"Parameter1\\": \\"200\\",\\n \\"Parameter2\\": \\"299\\"\\n }\\n ],\\n \\"GroupBy\\": [\\n {\\n \\"SLSKeyName\\": \\"code\\",\\n \\"Alias\\": \\"ApiResult\\"\\n }\\n ],\\n \\"Express\\": [\\n {\\n \\"Express\\": \\"success_count\\",\\n \\"Alias\\": \\"SuccRate\\"\\n }\\n ]\\n }\\n }\\n ]\\n}","type":"json"}]',
],
'DescribeLogMonitorAttribute' => [
'summary' => 'Queries a Log Monitoring task.',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The name of the metric.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cpu_total_******', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A status code of 200 indicates a successful request.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'C6718537-E673-4A58-8EE1-24B8B38C7AAE', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'LogMonitor' => [
'description' => 'The details of the Log Monitoring task.',
'type' => 'object',
'properties' => [
'ValueFilterRelation' => ['description' => 'The logical operator for the filter conditions. This parameter is used with \\`ValueFilter\\`. Valid values:'."\n"
."\n"
.'- and: The logical AND operator.'."\n"
."\n"
.'- or: The logical OR operator.', 'type' => 'string', 'example' => 'and', 'title' => ''],
'SlsLogstore' => ['description' => 'The name of the Simple Log Service Logstore.', 'type' => 'string', 'example' => 'logstore_******', 'title' => ''],
'MetricName' => ['description' => 'The name of the metric.', 'type' => 'string', 'example' => 'cpu_total_******', 'title' => ''],
'GroupId' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'example' => '123******', 'title' => ''],
'LogId' => ['description' => 'The ID of the Log Monitoring task.', 'type' => 'integer', 'format' => 'int64', 'example' => '123******', 'title' => ''],
'MetricExpress' => ['description' => 'The metric expression.', 'type' => 'string', 'example' => '{}', 'title' => ''],
'SlsRegionId' => ['description' => 'The ID of the region where Simple Log Service resides.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
'GmtCreate' => ['description' => 'The time when the task was created.'."\n"
."\n"
.'This value is a UNIX timestamp that represents the number of milliseconds that have elapsed since January 1, 1970.', 'type' => 'integer', 'format' => 'int64', 'example' => '1678440033000', 'title' => ''],
'SlsProject' => ['description' => 'The name of the Simple Log Service project.', 'type' => 'string', 'example' => 'project_******', 'title' => ''],
'Aggregates' => [
'description' => 'The definitions of aggregations.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Max' => ['description' => 'The maximum value.', 'type' => 'string', 'example' => '0', 'title' => ''],
'Min' => ['description' => 'The minimum value.', 'type' => 'string', 'example' => '0', 'title' => ''],
'Function' => ['description' => 'The function that is used to aggregate log data in a statistical period. Valid values:'."\n"
."\n"
.'- count: Counts the number of logs.'."\n"
."\n"
.'- sum: Calculates the sum of values in a field.'."\n"
."\n"
.'- avg: Calculates the average of values in a field.'."\n"
."\n"
.'- max: Selects the maximum value in a field.'."\n"
."\n"
.'- min: Selects the minimum value in a field.'."\n"
."\n"
.'- countps: Calculates the average number of logs that are generated per second in a statistical period.'."\n"
."\n"
.'- sumps: Calculates the average sum of values in a field per second in a statistical period.'."\n"
."\n"
.'- distinct: Counts the number of unique values in a field in a statistical period.', 'type' => 'string', 'example' => 'count', 'title' => ''],
'Alias' => ['description' => 'The alias of the field.', 'type' => 'string', 'example' => 'alias_******', 'title' => ''],
'FieldName' => ['description' => 'The original name of the field in the log.', 'type' => 'string', 'example' => 'field_******', 'title' => ''],
],
'description' => 'The definition of an aggregation.',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'ValueFilter' => [
'description' => 'The filter conditions. This parameter is used with \\`ValueFilterRelation\\`. This parameter is equivalent to the \\`WHERE\\` clause in an SQL statement.'."\n"
."\n"
.'If you do not specify this parameter, all data is processed. For example, if a log contains a \\`Level\\` field and you want to count the number of logs where the value of \\`Level\\` is \\`Error\\`, you can set the aggregation function to \\`count\\` and specify a filter condition where \\`Level\\` equals \\`Error\\`.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The key.', 'type' => 'string', 'example' => 'key_******', 'title' => ''],
'Value' => ['description' => 'The value.', 'type' => 'string', 'example' => 'value_******', 'title' => ''],
'Operator' => ['description' => 'The operator that is used to match the field value. Valid values:'."\n"
."\n"
.'- `contain`: contains.'."\n"
."\n"
.'- `notContain`: does not contain.'."\n"
."\n"
.'- `>`: greater than.'."\n"
."\n"
.'- `<`: less than.'."\n"
."\n"
.'- `>=`: greater than or equal to.'."\n"
."\n"
.'- `<=`: less than or equal to.', 'type' => 'string', 'example' => 'contain', 'title' => ''],
],
'description' => 'The filter condition.',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Tumblingwindows' => [
'type' => 'array',
'items' => ['description' => 'The pre-aggregation window. Unit: seconds. Cloud Monitor aggregates data in the specified pre-aggregation window.', 'type' => 'string', 'example' => '60', 'title' => ''],
'description' => 'The pre-aggregation window. Unit: seconds. Cloud Monitor aggregates data in the specified pre-aggregation window.',
'title' => '',
'example' => '',
],
'Groupbys' => [
'type' => 'array',
'items' => ['description' => 'The \\`group by\\` definition', 'type' => 'string', 'example' => 'userId', 'title' => ''],
'description' => 'The dimension based on which log data is aggregated. This parameter is equivalent to the \\`GROUP BY\\` clause in an SQL statement. You can specify a dimension to group monitoring data. If you do not specify this parameter, all monitoring data is aggregated based on the aggregation method.',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeLogMonitorAttribute',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeLogMonitorAttribute'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeLogMonitorAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"C6718537-E673-4A58-8EE1-24B8B38C7AAE\\",\\n \\"Success\\": true,\\n \\"LogMonitor\\": {\\n \\"ValueFilterRelation\\": \\"and\\",\\n \\"SlsLogstore\\": \\"logstore_******\\",\\n \\"MetricName\\": \\"cpu_total_******\\",\\n \\"GroupId\\": 0,\\n \\"LogId\\": 0,\\n \\"MetricExpress\\": \\"{}\\",\\n \\"SlsRegionId\\": \\"cn-hangzhou\\",\\n \\"GmtCreate\\": 1678440033000,\\n \\"SlsProject\\": \\"project_******\\",\\n \\"Aggregates\\": [\\n {\\n \\"Max\\": \\"0\\",\\n \\"Min\\": \\"0\\",\\n \\"Function\\": \\"count\\",\\n \\"Alias\\": \\"alias_******\\",\\n \\"FieldName\\": \\"field_******\\"\\n }\\n ],\\n \\"ValueFilter\\": [\\n {\\n \\"Key\\": \\"key_******\\",\\n \\"Value\\": \\"value_******\\",\\n \\"Operator\\": \\"contain\\"\\n }\\n ],\\n \\"Tumblingwindows\\": [\\n \\"60\\"\\n ],\\n \\"Groupbys\\": [\\n \\"userId\\"\\n ]\\n }\\n}","type":"json"}]',
'extraInfo' => ' ',
],
'DescribeLogMonitorList' => [
'summary' => 'Queries log monitoring metrics.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'SearchValue',
'in' => 'query',
'schema' => ['description' => 'The keyword that is used to search for log monitoring metrics. Fuzzy match is supported.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'test', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'docRequired' => false, 'example' => '123456', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '01E90080-4300-4FAA-B9AE-161956BC350D', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'successful', 'title' => ''],
'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Total' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int64', 'example' => '15', 'title' => ''],
'LogMonitorList' => [
'description' => 'The log monitoring metrics.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ValueFilterRelation' => ['description' => 'The logical operator that is used between log filter conditions. The ValueFilter and ValueFilterRelation parameters are used in pair. Valid values:'."\n"
."\n"
.'- and'."\n"
."\n"
.'- or', 'type' => 'string', 'example' => 'and', 'title' => ''],
'SlsLogstore' => ['description' => 'The name of the Simple Log Service (SLS) Logstore.', 'type' => 'string', 'example' => 'testSlS****', 'title' => ''],
'MetricName' => ['description' => 'The metric name. For more information, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'example' => 'cpu_total', 'title' => ''],
'GroupId' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'example' => '12345', 'title' => ''],
'LogId' => ['description' => 'The ID of the log monitoring metric.', 'type' => 'integer', 'format' => 'int64', 'example' => '12345', 'title' => ''],
'SlsRegionId' => ['description' => 'The ID of the region where the SLS Logstore resides.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
'GmtCreate' => ['description' => 'The time when the log monitoring metric was created.'."\n"
."\n"
.'This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.', 'type' => 'integer', 'format' => 'int64', 'example' => '1577766395000', 'title' => ''],
'SlsProject' => ['description' => 'The name of the SLS project.', 'type' => 'string', 'example' => 'sls-project-test****', 'title' => ''],
'ValueFilter' => [
'description' => 'The condition that is used to filter logs. The ValueFilter and ValueFilterRelation parameters are used in pair. The filter condition is equivalent to the WHERE clause in SQL statements. If no filter condition is specified, all logs are processed. For example, logs contain the Level and Error fields. If you need to calculate the number of times that logs of the Error level appear every minute, you can set the filter condition to Level=Error and count the number of logs that meet this condition.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The name of the log field used for matching in the filter condition.', 'type' => 'string', 'example' => 'hostName', 'title' => ''],
'Value' => ['description' => 'The field value to be matched in the filter condition.', 'type' => 'string', 'example' => 'portal', 'title' => ''],
'Operator' => ['description' => 'The method that is used to match the field value. Valid values:'."\n"
."\n"
.'- contain: contains'."\n"
."\n"
.'- notContain: does not contain'."\n"
."\n"
.'- `>`: greater than'."\n"
."\n"
.'- `<`: less than'."\n"
."\n"
.'- `>=`: greater than or equal to'."\n"
."\n"
.'- `<=`: less than or equal to', 'type' => 'string', 'example' => 'contain', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeLogMonitorList',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeLogMonitorList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeLogMonitorList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"01E90080-4300-4FAA-B9AE-161956BC350D\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageSize\\": 10,\\n \\"PageNumber\\": 1,\\n \\"Total\\": 15,\\n \\"LogMonitorList\\": [\\n {\\n \\"ValueFilterRelation\\": \\"and\\",\\n \\"SlsLogstore\\": \\"testSlS****\\",\\n \\"MetricName\\": \\"cpu_total\\",\\n \\"GroupId\\": 12345,\\n \\"LogId\\": 12345,\\n \\"SlsRegionId\\": \\"cn-hangzhou\\",\\n \\"GmtCreate\\": 1577766395000,\\n \\"SlsProject\\": \\"sls-project-test****\\",\\n \\"ValueFilter\\": [\\n {\\n \\"Key\\": \\"hostName\\",\\n \\"Value\\": \\"portal\\",\\n \\"Operator\\": \\"contain\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
],
'DescribeMetricData' => [
'summary' => 'Queries the monitoring data of a metric for a cloud service.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The namespace of the cloud service.'."\n"
."\n"
.'For more information about the namespaces of cloud services, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'acs_ecs_dashboard', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The metric that is used to monitor the cloud service.'."\n"
."\n"
.'For more information about the metrics of cloud services, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cpu_idle', 'title' => ''],
],
[
'name' => 'Period',
'in' => 'query',
'schema' => ['description' => 'The statistical period of the metric.'."\n"
."\n"
.'Valid values: 15, 60, 900, and 3600.'."\n"
."\n"
.'Unit: seconds.'."\n"
."\n"
.'>'."\n"
."\n"
.'- If this parameter is not specified, monitoring data is queried based on the period in which metric values are reported.'."\n"
."\n"
.'- For more information about the statistical period of a metric that is specified by the `MetricName` parameter, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => '60', 'title' => ''],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => 'The start of the time range to query monitoring data.'."\n"
."\n"
.'- If the `StartTime` and `EndTime` parameters are not specified, the monitoring data of the last statistical period is queried.\\`\\`'."\n"
."\n"
.'- If the `StartTime` and `EndTime` parameters are specified, the monitoring data of the last statistical period in the specified time range is queried.\\`\\`\\`\\` The following examples demonstrate how to determine the period in which monitoring data is queried:'."\n"
."\n"
.' - If you set the `Period` parameter to 15, the specified time range must be less than or equal to 20 minutes. For example, if you set the StartTime parameter to 2021-05-08 08:10:00 and the EndTime parameter to 2021-05-08 08:30:00, the monitoring data of the last 15 seconds in the time range is queried.'."\n"
."\n"
.' - If you set the `Period` to 60 or 900, the specified time range must be less than or equal to 2 hours. For example, if you set the Period parameter to 60, the StartTime parameter to 2021-05-08 08:00:00, and the EndTime parameter to 2021-05-08 10:00:00, the monitoring data of the last 60 seconds in the time range is queried.'."\n"
."\n"
.' - If you set the `Period` parameter to 3600, the specified time range must be less than or equal to 2 days. For example, if you set the StartTime parameter to 2021-05-08 08:00:00 and the EndTime parameter to 2021-05-10 08:00:00, the monitoring data of the last 3,600 seconds in the time range is queried.'."\n"
."\n"
.'The following formats are supported:'."\n"
."\n"
.'- UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 UTC on Thursday, January 1, 1970.'."\n"
."\n"
.'- UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format.'."\n"
."\n"
.'>'."\n"
."\n"
.'- You must set the `StartTime` parameter to a point in time that is later than 00:00:00 UTC on Thursday, January 1, 1970. Otherwise, this parameter is invalid.'."\n"
."\n"
.'- We recommend that you use UNIX timestamps to prevent time zone-related issues.', 'type' => 'string', 'required' => false, 'example' => '1618368900000', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => 'The end of the time range to query monitoring data.'."\n"
."\n"
.'- If the `StartTime` and `EndTime` parameters are not specified, the monitoring data of the last statistical period is queried.\\`\\`'."\n"
."\n"
.'- If the `StartTime` and `EndTime` parameters are specified, the monitoring data of the last statistical period in the specified time range is queried.\\`\\`\\`\\` The following examples demonstrate how to determine the period in which monitoring data is queried:'."\n"
."\n"
.' - If you set the `Period` parameter to 15, the specified time range must be less than or equal to 20 minutes. For example, if you set the StartTime parameter to 2021-05-08 08:10:00 and the EndTime parameter to 2021-05-08 08:30:00, the monitoring data of the last 15 seconds in the time range is queried.'."\n"
."\n"
.' - If you set the `Period` to 60 or 900, the specified time range must be less than or equal to 2 hours. For example, if you set the Period parameter to 60, the StartTime parameter to 2021-05-08 08:00:00, and the EndTime parameter to 2021-05-08 10:00:00, the monitoring data of the last 60 seconds in the time range is queried.'."\n"
."\n"
.' - If you set the `Period` parameter to 3600, the specified time range must be less than or equal to 2 days. For example, if you set the StartTime parameter to 2021-05-08 08:00:00 and the EndTime parameter to 2021-05-10 08:00:00, the monitoring data of the last 3,600 seconds in the time range is queried.'."\n"
."\n"
.'The following formats are supported:'."\n"
."\n"
.'- UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 UTC on Thursday, January 1, 1970.'."\n"
."\n"
.'- UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format.'."\n"
."\n"
.'> We recommend that you use UNIX timestamps to prevent time zone-related issues.', 'type' => 'string', 'required' => false, 'example' => '1618368960000', 'title' => ''],
],
[
'name' => 'Dimensions',
'in' => 'query',
'schema' => ['description' => 'The dimensions based on which the resources are queried.'."\n"
."\n"
.'Set the value to a collection of key-value pairs. A typical key-value pair is `instanceId:i-2ze2d6j5uhg20x47****`.'."\n"
."\n"
.'> You can query a maximum of 50 instances in a single request.', 'type' => 'string', 'required' => false, 'example' => '[{"instanceId": "i-abcdefgh12****"}]', 'title' => ''],
],
[
'name' => 'Express',
'in' => 'query',
'schema' => ['description' => 'The expression that is used to compute the query results in real time.'."\n"
."\n"
.'> Only the `groupby` expression is supported. This expression is similar to the `GROUP BY` statement that is used in databases.', 'type' => 'string', 'required' => false, 'example' => '{"groupby":["userId","instanceId"]}', 'title' => ''],
],
[
'name' => 'Length',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.'."\n"
."\n"
.'Default value: 1000.'."\n"
."\n"
.'> The maximum value of the Length parameter in a request is 1440.', 'type' => 'string', 'required' => false, 'example' => '1000', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '6A5F022D-AC7C-460E-94AE-B9E75083D027', 'title' => ''],
'Datapoints' => ['description' => 'The monitoring data. The value includes the following fields:'."\n"
."\n"
.'- `timestamp`: the time when the alert was triggered.'."\n"
."\n"
.'- `userId`: the ID of the user for which the alert was triggered.'."\n"
."\n"
.'- `instanceId`: the ID of the instance for which the alert was triggered.'."\n"
."\n"
.'- `Minimum`, `Average`, and `Maximum`: the aggregation methods.', 'type' => 'string', 'example' => '[{\\"timestamp\\":1618368900000,\\"Average\\":95.8291666666667,\\"Minimum\\":65.48,\\"Maximum\\":100.0},{\\"timestamp\\":1618368960000,\\"Average\\":95.8683333333333,\\"Minimum\\":67.84,\\"Maximum\\":100.0}]', 'title' => ''],
'Period' => ['description' => 'The statistical period of the monitoring data.'."\n"
."\n"
.'Valid values: 15, 60, 900, and 3600.'."\n"
."\n"
.'Unit: seconds.', 'type' => 'string', 'example' => '60', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeMetricData',
'description' => '### [](#)Limits'."\n"
."\n"
.'- The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. If the free quota is used up, you are automatically charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill).'."\n"
."\n"
.'- Each API operation can be called up to 10 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota.'."\n"
."\n"
.'### [](#)Description'."\n"
."\n"
.'> 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.'."\n"
."\n"
.'This topic provides an example on how to query the monitoring data of the `cpu_idle` metric for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [
['createdAt' => '2024-01-23T02:42:11.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-01-10T11:06:15.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricData'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:QueryMetricData',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"6A5F022D-AC7C-460E-94AE-B9E75083D027\\",\\n \\"Datapoints\\": \\"[{\\\\\\\\\\\\\\"timestamp\\\\\\\\\\\\\\":1618368900000,\\\\\\\\\\\\\\"Average\\\\\\\\\\\\\\":95.8291666666667,\\\\\\\\\\\\\\"Minimum\\\\\\\\\\\\\\":65.48,\\\\\\\\\\\\\\"Maximum\\\\\\\\\\\\\\":100.0},{\\\\\\\\\\\\\\"timestamp\\\\\\\\\\\\\\":1618368960000,\\\\\\\\\\\\\\"Average\\\\\\\\\\\\\\":95.8683333333333,\\\\\\\\\\\\\\"Minimum\\\\\\\\\\\\\\":67.84,\\\\\\\\\\\\\\"Maximum\\\\\\\\\\\\\\":100.0}]\\",\\n \\"Period\\": \\"60\\"\\n}","type":"json"}]',
'extraInfo' => ' ',
],
'DescribeMetricLast' => [
'summary' => 'Queries the latest monitoring data of a specified metric.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The namespace of the cloud service.'."\n"
."\n"
.'For information about the namespaces of cloud services, see [Cloud service monitoring](~~163515~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'acs_ecs_dashboard', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The metric name of the cloud service.'."\n"
."\n"
.'For information about metric names, see [Cloud service monitoring](~~163515~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'CPUUtilization', 'title' => ''],
],
[
'name' => 'Period',
'in' => 'query',
'schema' => ['description' => 'The statistical period of the monitoring data.'."\n"
."\n"
.'Valid values: 15, 60, 900, and 3600.'."\n"
."\n"
.'Unit: seconds.'."\n"
."\n"
.'> - If you do not specify a statistical period, the monitoring data is queried based on the reporting period that was specified when the metric was registered.'."\n"
.' - The statistical period varies by metric (`MetricName`) for each cloud service. For more information, see the `Min Periods` column on the **Metrics** page of the target cloud service in [Cloud service monitoring](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => '60', 'title' => ''],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => 'The start time of the query.', 'type' => 'string', 'required' => false, 'example' => '2019-01-31 10:00:00', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => 'The end time of the query.'."\n"
."\n"
.'- For second-level data, the actual start time of the query is the greater value between the time that is 20 minutes before EndTime and the specified startTime.'."\n"
."\n"
.'- For minute-level data, the actual start time of the query is the greater value between the time that is 2 hours before EndTime and the specified startTime.'."\n"
."\n"
.'- For hour-level data, the actual start time of the query is the greater value between the time that is 2 days before EndTime and the specified startTime.', 'type' => 'string', 'required' => false, 'example' => '2019-01-31 10:10:00', 'title' => ''],
],
[
'name' => 'Dimensions',
'in' => 'query',
'schema' => ['description' => 'The monitoring dimensions of the specified resource.'."\n"
."\n"
.'Format: a collection of `key:value` pairs. Example: `{"userId":"120886317861****"}` and `{"instanceId":"i-2ze2d6j5uhg20x47****"}`.'."\n"
."\n"
.'> A maximum of 50 instances can be queried in a single request.', 'type' => 'string', 'required' => false, 'example' => '[{"instanceId":"i-2ze2d6j5uhg20x47****"}]', 'title' => ''],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['description' => 'The pagination cursor.'."\n"
."\n"
.'- If the number of results that match the query conditions exceeds the page size, a pagination cursor is returned.'."\n"
.'- To retrieve the next page of data, use the returned cursor value as the request parameter until no cursor value is returned, which indicates that all data has been retrieved.', 'type' => 'string', 'required' => false, 'example' => '15761432850009dd70bb64cff1f0fff6c0b08ffff073be5fb1e785e2b020f7fed9b5e137bd810a6d6cff5ae****', 'title' => ''],
],
[
'name' => 'Length',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page for the monitoring data. This parameter is used for paging.'."\n"
."\n"
.'Default value: 1000, which indicates 1,000 entries of monitoring data per page.'."\n"
."\n"
.'> The maximum value of Length in a single request is 1440.', 'type' => 'string', 'required' => false, 'example' => '1000', 'title' => ''],
],
[
'name' => 'Express',
'in' => 'query',
'schema' => ['description' => 'The expression for real-time computation on existing query results.', 'type' => 'string', 'required' => false, 'example' => '{"groupby":["userId","instanceId"]}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'NextToken' => ['description' => 'The pagination cursor.', 'type' => 'string', 'example' => 'xxxxxx', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '021472A6-25E3-4094-8D00-BA4B6A5486C3', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Datapoints' => ['description' => 'The monitoring data list.', 'type' => 'string', 'example' => '[{"timestamp":1548777660000,"userId":"123456789876****","instanceId":"i-abcdefgh12****","Minimum":93.1,"Average":99.52,"Maximum":100}]', 'title' => ''],
'Code' => ['description' => 'The status code.'."\n"
.'>A value of 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'Period' => ['description' => 'The time interval.'."\n"
."\n"
.'Unit: seconds.', 'type' => 'string', 'example' => '60', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Query the latest monitoring data of a specified metric',
'description' => '### Limits'."\n"
.'- The DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations share a free quota of 1,000,000 invocations per month in total. After the free quota is exhausted and you have not activated CloudMonitor Basic pay-as-you-go billing method, you cannot use this API operation normally. If you have activated CloudMonitor Basic pay-as-you-go billing method, this API operation remains available after the free quota is exhausted, and the excess usage is automatically billed. For more information about how to activate the pay-as-you-go billing method, see [Activate pay-as-you-go billing](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG&commodityCode=cms_basic_public_cn&from_biz_channel=help_bill).'."\n"
.'- A single API operation is limited to 50 invocations per second. This limit is shared by an Alibaba Cloud account and all Resource Access Management (RAM) users under the account.'."\n"
."\n"
.'> If the response contains `Throttling.User` or `Request was denied due to user flow control` when you invoke this API operation, the request is throttled. For the method to handle this issue, see [How do I handle query API throttling](~~2615031~~).'."\n"
.'### Before you begin'."\n"
.'The storage duration of cloud service monitoring data depends on the `Period` (statistical period). A larger `Period` value results in sparser monitoring data and a longer storage duration. The following list describes the relationship:'."\n"
.'- If `Period` is less than 60 seconds, the storage duration is 7 days.'."\n"
.'- If `Period` is equal to 60 seconds, the storage duration is 31 days.'."\n"
.'- If `Period` is greater than or equal to 300 seconds, the storage duration is 91 days.'."\n"
.'### Operation description'."\n"
.'This topic provides an example of how to query the latest monitoring data of the `CPUUtilization` metric for the cloud service `acs_ecs_dashboard`. The response shows that the maximum value is 100, the minimum value is 93.1, and the average value is 99.52 at 60-second intervals for instance `i-abcdefgh12****` under account `123456789876****`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricLast'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:QueryMetricLast',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"xxxxxx\\",\\n \\"RequestId\\": \\"021472A6-25E3-4094-8D00-BA4B6A5486C3\\",\\n \\"Success\\": true,\\n \\"Datapoints\\": \\"[{\\\\\\"timestamp\\\\\\":1548777660000,\\\\\\"userId\\\\\\":\\\\\\"123456789876****\\\\\\",\\\\\\"instanceId\\\\\\":\\\\\\"i-abcdefgh12****\\\\\\",\\\\\\"Minimum\\\\\\":93.1,\\\\\\"Average\\\\\\":99.52,\\\\\\"Maximum\\\\\\":100}]\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"Period\\": \\"60\\"\\n}","type":"json"}]',
'translator' => 'machine',
],
'DescribeMetricList' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The namespace of the cloud service.'."\n"
."\n"
.'For more information, see [Metrics](~~163515~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'acs_ecs_dashboard', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The name of the metric.'."\n"
."\n"
.'For more information, see [Metrics](~~163515~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cpu_idle', 'title' => ''],
],
[
'name' => 'Period',
'in' => 'query',
'schema' => ['description' => 'The statistical period of the monitoring data.'."\n"
."\n"
.'Valid values: 15, 60, 900, and 3600.'."\n"
."\n"
.'Unit: seconds.'."\n"
."\n"
.'> - If you do not set this parameter, the reporting period that was specified when the metric was registered is used.'."\n"
."\n"
.'- The statistical period of each metric (`MetricName`) of a cloud service is different. For more information, see [Metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => '60', 'title' => ''],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => 'The beginning of the time range to query. The following formats are supported:'."\n"
."\n"
.'- UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 UTC on January 1, 1970.'."\n"
."\n"
.'- Format: YYYY-MM-DD hh:mm:ss.'."\n"
."\n"
.'> * The time range is a left-open and right-closed interval. The value of \\`StartTime\\` must be earlier than the value of \\`EndTime\\`.'."\n"
."\n"
.'- The interval between \\`StartTime\\` and \\`EndTime\\` must be less than or equal to 31 days.', 'type' => 'string', 'required' => false, 'example' => '2019-01-30 00:00:00', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => 'The end of the time range to query. The following formats are supported:'."\n"
."\n"
.'- UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 UTC on January 1, 1970.'."\n"
."\n"
.'- Format: YYYY-MM-DD hh:mm:ss.'."\n"
."\n"
.'> The interval between \\`StartTime\\` and \\`EndTime\\` must be less than or equal to 31 days.', 'type' => 'string', 'required' => false, 'example' => '2019-01-30 00:10:00', 'title' => ''],
],
[
'name' => 'Dimensions',
'in' => 'query',
'schema' => ['description' => 'The dimensions that specify the resources to be monitored.'."\n"
."\n"
.'Format: a collection of key-value pairs, such as `{"userId":"120886317861****"}` and `{"instanceId":"i-2ze2d6j5uhg20x47****"}`.'."\n"
."\n"
.'> A single request can be used to query a maximum of 50 instances.', 'type' => 'string', 'required' => false, 'example' => '[{"instanceId":"i-2ze2d6j5uhg20x47****"}]', 'title' => ''],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['description' => 'The pagination cursor.'."\n"
."\n"
.'> If you do not set this parameter, the first page of data is returned. If a value is returned for this parameter, it indicates that more data is available. To retrieve the next page, use the returned value as the \\`NextToken\\` in your next request. A null value indicates that all data has been retrieved.', 'type' => 'string', 'required' => false, 'example' => '15761485350009dd70bb64cff1f0fff750b08ffff073be5fb1e785e2b020f1a949d5ea14aea7fed82f01dd8****', 'title' => ''],
],
[
'name' => 'Length',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page for a paged query.'."\n"
."\n"
.'> The maximum value of \\`Length\\` in a single request is 1440.', 'type' => 'string', 'required' => false, 'example' => '1000', 'title' => ''],
],
[
'name' => 'Express',
'in' => 'query',
'schema' => ['description' => 'The expression that is used for real-time computing based on the query results.'."\n"
."\n"
.'> Only the groupby expression is supported. This expression is similar to the GROUP BY statement in databases.', 'type' => 'string', 'required' => false, 'example' => '{"groupby":["userId","instanceId"]}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'NextToken' => ['description' => 'The pagination cursor.', 'type' => 'string', 'example' => '15761441850009dd70bb64cff1f0fff6d0b08ffff073be5fb1e785e2b020f7fed9b5e137bd810a6d6cff5ae****', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3121AE7D-4AFF-4C25-8F1D-C8226EBB1F42', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Datapoints' => ['description' => 'The list of monitoring data.', 'type' => 'string', 'example' => '[{"timestamp":1548777660000,"userId":"120886317861****","instanceId":"i-abc","Minimum":9.92,"Average":9.92,"Maximum":9.92}]', 'title' => ''],
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A value of 200 indicates that the call was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'Period' => ['description' => 'The statistical period. Unit: seconds. Valid values: 60, 300, and 900.', 'type' => 'string', 'example' => '60', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeMetricList',
'summary' => 'The DescribeMetricList operation queries the monitoring data of a specific metric for a cloud service.',
'description' => '### Limits'."\n"
."\n"
.'- You have a free quota of 1 million total API calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If you use up the free quota and have not enabled the pay-as-you-go billing method for CloudMonitor Basic, you can no longer use these API operations. If you have enabled the pay-as-you-go billing method, you can continue to use the API operations after the free quota is used up. API calls that exceed the free quota are automatically charged on a pay-as-you-go basis. For more information, see [Enable pay-as-you-go](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill).'."\n"
."\n"
.'- You can call each API operation up to 50 times per second. This limit is shared between an Alibaba Cloud account and its RAM users.'."\n"
."\n"
.'> If you receive the `Throttling.User` or `Request was denied due to user flow control` error message when you call an API operation, the API call is throttled. For more information, see [How do I resolve an API call throttling issue?](~~2615031~~).'."\n"
."\n"
.'### Notes'."\n"
."\n"
.'The storage duration of monitoring data for a cloud service depends on the `Period` (statistical period). A larger `Period` value indicates that the monitoring data is less granular and is stored for a longer period. The relationship is as follows:'."\n"
."\n"
.'- If the value of `Period` is less than 60 seconds, the storage duration is 7 days.'."\n"
."\n"
.'- If the value of `Period` is 60 seconds, the storage duration is 31 days.'."\n"
."\n"
.'- If the value of `Period` is 300 seconds or greater, the storage duration is 91 days.'."\n"
."\n"
.'### Usage notes'."\n"
."\n"
.'This topic provides an example of how to query the monitoring data of the `cpu_idle` metric for the `acs_ecs_dashboard` cloud service. The response shows the data for the instance `i-abcdefgh12****`, which belongs to the Alibaba Cloud account `120886317861****`. At a 60 second interval, the maximum, minimum, and average values of the metric are 100, 93.1, and 99.52, respectively.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-03-10T06:01:25.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-01-10T11:06:16.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:QueryMetricList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"15761441850009dd70bb64cff1f0fff6d0b08ffff073be5fb1e785e2b020f7fed9b5e137bd810a6d6cff5ae****\\",\\n \\"RequestId\\": \\"3121AE7D-4AFF-4C25-8F1D-C8226EBB1F42\\",\\n \\"Success\\": true,\\n \\"Datapoints\\": \\"[{\\\\\\"timestamp\\\\\\":1548777660000,\\\\\\"userId\\\\\\":\\\\\\"120886317861****\\\\\\",\\\\\\"instanceId\\\\\\":\\\\\\"i-abc\\\\\\",\\\\\\"Minimum\\\\\\":9.92,\\\\\\"Average\\\\\\":9.92,\\\\\\"Maximum\\\\\\":9.92}]\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"Period\\": \\"60\\"\\n}","type":"json"}]',
],
'DescribeMetricMetaList' => [
'summary' => 'Queries metrics that are supported in CloudMonitor.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The namespace of the cloud service.'."\n"
."\n"
.'For more information about the namespaces of cloud services, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'acs_kvstore', 'title' => ''],
],
[
'name' => 'Labels',
'in' => 'query',
'schema' => ['description' => 'The tags for filtering metrics. Specify a JSON string.'."\n"
."\n"
.'Format: `[{"name":"tag key","value":"tag value"},{"name":"tag key","value":"tag value"}] `. The following tags are available:'."\n"
."\n"
.'- metricCategory: the category of the metric.'."\n"
."\n"
.'- alertEnable: specifies whether to report alerts for the metric.'."\n"
."\n"
.'- alertUnit: the unit of the metric in the alerts.'."\n"
."\n"
.'- unitFactor: the factor for metric unit conversion.'."\n"
."\n"
.'- minAlertPeriod: the minimum interval at which the alert is reported.'."\n"
."\n"
.'- productCategory: the category of the service.', 'type' => 'string', 'required' => false, 'example' => '[{"name":"productCategory","value":"kvstore_old"}]', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The metric name. For more information, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'CPUUtilization', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page. Default value: 30.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The response code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'CDE9EAFF-D54E-4024-BBFC-B0AAC883143B', 'title' => ''],
'TotalCount' => ['description' => 'The total number of entries returned.', 'type' => 'string', 'example' => '10', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Resources' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Resource' => [
'description' => 'The configuration of the metrics in the resources.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'MetricName' => ['description' => 'The metric name.', 'type' => 'string', 'example' => 'ads.diskSize', 'title' => ''],
'Description' => ['description' => 'The metric description.', 'type' => 'string', 'example' => 'The rated disk capacity', 'title' => ''],
'Labels' => ['description' => 'The tags of the metric, including one or more JSON strings.'."\n"
."\n"
.'Format: `[{"name":"tag key","value":"tag value"}]`. The `name` can be repeated. The following tags are available:'."\n"
."\n"
.'- metricCategory: the category of the metric.'."\n"
."\n"
.'- alertEnable: indicates whether to report alerts for the metric.'."\n"
."\n"
.'- alertUnit: the unit of the metric in the alerts.'."\n"
."\n"
.'- unitFactor: the factor for metric unit conversion.'."\n"
."\n"
.'- minAlertPeriod: the minimum interval at which the alert is reported.'."\n"
."\n"
.'- productCategory: the category of the service.', 'type' => 'string', 'example' => '[{\\"name\\":\\"minAlertPeriod\\",\\"value\\":\\"300\\"},{\\"name\\":\\"alertDefault\\",\\"value\\":\\"\\"},{\\"name\\":\\"unitFactor\\",\\"value\\":\\"1\\"},{\\"name\\":\\"alertUnit\\",\\"value\\":\\"Mbytes\\"},{\\"name\\":\\"productCategory\\",\\"value\\":\\"ads\\"},{\\"name\\":\\"is_alarm\\",\\"value\\":\\"true\\"},{\\"name\\":\\"metricCategory\\",\\"value\\":\\"workerId\\"}]', 'title' => ''],
'Unit' => ['description' => 'The unit of the metric.', 'type' => 'string', 'example' => 'MB', 'title' => ''],
'Dimensions' => ['description' => 'The monitoring dimensions of the resource. Multiple monitoring dimensions are separated with commas (,).', 'type' => 'string', 'example' => 'userId,instanceId,tableSchema,workerId', 'title' => ''],
'Namespace' => ['description' => 'The namespace of the cloud service.', 'type' => 'string', 'example' => 'acs_ads', 'title' => ''],
'Periods' => ['description' => 'The statistical periods of the metric. Multiple statistical periods are separated with commas (,).'."\n"
."\n"
.'Unit: seconds.', 'type' => 'string', 'example' => '300', 'title' => ''],
'Statistics' => ['description' => 'The statistical method. Multiple statistical methods are separated with commas (,).', 'type' => 'string', 'example' => 'Average,Minimum,Maximum', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Parameter invalid.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeMetricMetaList',
'description' => 'Use this operation together with DescribeMetricList and DescribeMetricLast. For more information, see [DescribeMetricList](~~51936~~) and [DescribeMetricLast](~~51939~~).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-02-13T11:47:48.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricMetaList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"CDE9EAFF-D54E-4024-BBFC-B0AAC883143B\\",\\n \\"TotalCount\\": \\"10\\",\\n \\"Success\\": true,\\n \\"Resources\\": {\\n \\"Resource\\": [\\n {\\n \\"MetricName\\": \\"ads.diskSize\\",\\n \\"Description\\": \\"The rated disk capacity\\",\\n \\"Labels\\": \\"[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"minAlertPeriod\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"300\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"alertDefault\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"unitFactor\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"alertUnit\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Mbytes\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"productCategory\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"ads\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"is_alarm\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"true\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"metricCategory\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"workerId\\\\\\\\\\\\\\"}]\\",\\n \\"Unit\\": \\"MB\\",\\n \\"Dimensions\\": \\"userId,instanceId,tableSchema,workerId\\",\\n \\"Namespace\\": \\"acs_ads\\",\\n \\"Periods\\": \\"300\\",\\n \\"Statistics\\": \\"Average,Minimum,Maximum\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeMetricRuleBlackList' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'list', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The namespace of the Alibaba Cloud service.'."\n"
."\n"
.'For information about the namespaces of Alibaba Cloud services, see [Cloud service metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'acs_ecs_dashboard', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The current page number.'."\n"
."\n"
.'Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.'."\n"
."\n"
.'Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100', 'title' => ''],
],
[
'name' => 'Order',
'in' => 'query',
'schema' => ['description' => 'The order in which the query results are sorted by time. Valid values:'."\n"
."\n"
.'- DESC (default): descending order.'."\n"
."\n"
.'- ASC: ascending order.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => 'DESC', 'title' => ''],
],
[
'name' => 'Category',
'in' => 'query',
'schema' => ['description' => 'The category of the Alibaba Cloud service. For example, Redis has `kvstore_standard` (Standard Edition), `kvstore_sharding` (Cluster Edition), and `kvstore_splitrw` (read/write splitting Edition).', 'type' => 'string', 'required' => false, 'example' => 'ecs', 'title' => ''],
],
[
'name' => 'Ids',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The IDs of the alert blacklist policies.',
'type' => 'array',
'items' => ['description' => 'The ID of the alert blacklist policy.', 'type' => 'string', 'required' => false, 'example' => 'a9ad2ac2-3ed9-11ed-b878-0242ac12****', 'title' => ''],
'required' => false,
'maxItems' => 20,
'title' => '',
'example' => '',
],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => 'The name of the alert blacklist policy.'."\n"
."\n"
.'This parameter supports fuzzy match.', 'type' => 'string', 'required' => false, 'example' => 'Blacklist-01', 'title' => ''],
],
[
'name' => 'ScopeType',
'in' => 'query',
'schema' => ['description' => 'The effective scope of the alert blacklist policy. Valid values:'."\n"
."\n"
.'- USER: The alert blacklist policy takes effect only within the current Alibaba Cloud account.'."\n"
."\n"
.'- GROUP: The alert blacklist policy takes effect within the specified application groups.', 'type' => 'string', 'required' => false, 'example' => 'USER', 'title' => ''],
],
[
'name' => 'IsEnable',
'in' => 'query',
'schema' => ['description' => 'The status of the alert blacklist policy. Valid values:'."\n"
."\n"
.'- true: enabled.'."\n"
.'- false: disabled.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'InstanceIds',
'in' => 'query',
'allowEmptyValue' => false,
'style' => 'flat',
'schema' => [
'description' => 'The instance IDs in the alert blacklist policy.'."\n"
."\n"
.'Valid values of N: 0 to 10.',
'type' => 'array',
'items' => ['description' => 'The instance ID in the alert blacklist policy.', 'type' => 'string', 'required' => false, 'example' => 'i-2ze2d6j5uhg20x47****', 'title' => ''],
'required' => false,
'maxItems' => 10,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D63E76CB-29AA-5B9F-88CE-400A6F28D428', 'title' => ''],
'Total' => ['description' => 'The total number of alert blacklist policies.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: successful.'."\n"
."\n"
.'- false: failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'DescribeMetricRuleBlackList' => [
'description' => 'The alert blacklist policies.',
'type' => 'array',
'items' => [
'description' => 'The alert blacklist policies.',
'type' => 'object',
'properties' => [
'EffectiveTime' => ['description' => 'The effective period of the alert blacklist policy.', 'type' => 'string', 'example' => '00:00-23:59', 'title' => ''],
'UpdateTime' => ['description' => 'The timestamp when the alert blacklist policy was last modified.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'string', 'example' => '1665718373000', 'title' => ''],
'CreateTime' => ['description' => 'The timestamp when the alert blacklist policy was created.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'string', 'example' => '1665714561000', 'title' => ''],
'ScopeType' => ['description' => 'The effective scope of the alert blacklist policy. Valid values:'."\n"
."\n"
.'- USER: The alert blacklist policy takes effect only within the current Alibaba Cloud account.'."\n"
."\n"
.'- GROUP: The alert blacklist policy takes effect within the specified application groups.', 'type' => 'string', 'example' => 'USER', 'title' => ''],
'IsEnable' => ['description' => 'The status of the alert blacklist policy. Valid values:'."\n"
."\n"
.'- true: enabled.'."\n"
."\n"
.'- false: disabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Namespace' => ['description' => 'The namespace of the Alibaba Cloud service.', 'type' => 'string', 'example' => 'acs_ecs_dashboard', 'title' => ''],
'Category' => ['description' => 'The category of the Alibaba Cloud service. For example, Redis has `kvstore_standard` (Standard Edition), `kvstore_sharding` (Cluster Edition), and `kvstore_splitrw` (read/write splitting Edition).', 'type' => 'string', 'example' => 'ecs', 'title' => ''],
'EnableEndTime' => ['description' => 'The start timestamp of the alert blacklist policy.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1640608200000', 'title' => ''],
'Name' => ['description' => 'The name of the alert blacklist policy.', 'type' => 'string', 'example' => 'Blacklist-01', 'title' => ''],
'EnableStartTime' => ['description' => 'The end timestamp of the alert blacklist policy.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1640237400000', 'title' => ''],
'Id' => ['description' => 'The ID of the alert blacklist policy.', 'type' => 'string', 'example' => '93514c96-ceb8-47d8-8ee3-93b6d98b****', 'title' => ''],
'Metrics' => [
'description' => 'The monitoring metrics of the instance.',
'type' => 'array',
'items' => [
'description' => 'The monitoring metrics of the instance.',
'type' => 'object',
'properties' => [
'Resource' => ['description' => 'The extension dimension information of the instance. For example, `{"device":"C:"}` indicates that the alert blacklist policy is applied to all C drives of the ECS instance under the Alibaba Cloud service.', 'type' => 'string', 'example' => '[{"device":"C:"}]', 'title' => ''],
'MetricName' => ['description' => 'The monitoring metrics name.', 'type' => 'string', 'example' => 'disk_utilization', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Instances' => [
'description' => 'The instances of the specified Alibaba Cloud service in the alert blacklist policy.',
'type' => 'array',
'items' => ['description' => 'The instances of the specified Alibaba Cloud service in the alert blacklist policy.', 'type' => 'string', 'example' => 'i-rj99xc6cptkk64ml****', 'title' => ''],
'title' => '',
'example' => '',
],
'ScopeValue' => [
'description' => 'The application group IDs.',
'type' => 'array',
'items' => ['description' => 'The application group IDs. The value is in the JSON Array format.'."\n"
."\n"
.'> This parameter is returned only when `ScopeType` is set to `GROUP`.', 'type' => 'string', 'example' => '["67****","78****"]', 'title' => ''],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
409 => [
['errorCode' => 'ResourceConflict', 'errorMessage' => 'Concurrent modification of resources.', 'description' => ''],
['errorCode' => 'ResourceExist', 'errorMessage' => 'Resources already exist.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Query alert blacklist policies',
'summary' => 'Queries a list of alert blacklist policies.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [
['createdAt' => '2023-07-11T01:53:40.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricRuleBlackList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'cms:DescribeMetricRuleBlackList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"D63E76CB-29AA-5B9F-88CE-400A6F28D428\\",\\n \\"Total\\": 1,\\n \\"Success\\": true,\\n \\"DescribeMetricRuleBlackList\\": [\\n {\\n \\"EffectiveTime\\": \\"00:00-23:59\\",\\n \\"UpdateTime\\": \\"1665718373000\\",\\n \\"CreateTime\\": \\"1665714561000\\",\\n \\"ScopeType\\": \\"USER\\",\\n \\"IsEnable\\": true,\\n \\"Namespace\\": \\"acs_ecs_dashboard\\",\\n \\"Category\\": \\"ecs\\",\\n \\"EnableEndTime\\": 1640608200000,\\n \\"Name\\": \\"Blacklist-01\\",\\n \\"EnableStartTime\\": 1640237400000,\\n \\"Id\\": \\"93514c96-ceb8-47d8-8ee3-93b6d98b****\\",\\n \\"Metrics\\": [\\n {\\n \\"Resource\\": \\"[{\\\\\\"device\\\\\\":\\\\\\"C:\\\\\\"}]\\",\\n \\"MetricName\\": \\"disk_utilization\\"\\n }\\n ],\\n \\"Instances\\": [\\n \\"i-rj99xc6cptkk64ml****\\"\\n ],\\n \\"ScopeValue\\": [\\n \\"[\\\\\\"67****\\\\\\",\\\\\\"78****\\\\\\"]\\"\\n ]\\n }\\n ]\\n}","type":"json"}]',
'translator' => 'machine',
],
'DescribeMetricRuleCount' => [
'summary' => 'Queries the number of alert rules in each state.',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The namespace of the cloud service. For more information, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'acs_ecs_dashboard', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The metric name. For more information, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'cpu_total', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The responses code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'FF38D33A-67C1-40EB-AB65-FAEE51EDB644', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'MetricRuleCount' => [
'description' => 'The number of alert rules in each state.',
'type' => 'object',
'properties' => [
'Ok' => ['description' => 'The number of alert rules without active alerts.', 'type' => 'integer', 'format' => 'int32', 'example' => '40', 'title' => ''],
'Nodata' => ['description' => 'The number of alert rules without data.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'Disable' => ['description' => 'The number of disabled alert rules.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'Total' => ['description' => 'The total number of alert rules.', 'type' => 'integer', 'format' => 'int32', 'example' => '45', 'title' => ''],
'Alarm' => ['description' => 'The number of alert rules with active alerts.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
402 => [
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'Throttli∂ngException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'DescribeMetricRuleCount',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricRuleCount'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeMetricRuleCount',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"FF38D33A-67C1-40EB-AB65-FAEE51EDB644\\",\\n \\"Success\\": true,\\n \\"MetricRuleCount\\": {\\n \\"Ok\\": 40,\\n \\"Nodata\\": 0,\\n \\"Disable\\": 0,\\n \\"Total\\": 45,\\n \\"Alarm\\": 5\\n }\\n}","type":"json"}]',
],
'DescribeMetricRuleList' => [
'summary' => 'Query all rules in the alert rule list.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The metric name.'."\n"
."\n"
.'For information about how to obtain metric names, see [DescribeMetricMetaList](~~98846~~) or [Cloud service metrics](~~163515~~).'."\n"
."\n"
.'Note: For composite metrics, you can only search by the first metric.', 'type' => 'string', 'required' => false, 'example' => 'cpu_total', 'title' => ''],
],
[
'name' => 'EnableState',
'in' => 'query',
'schema' => ['description' => 'The enabled state of the alert rule. Valid values:'."\n"
.'- true: Enabled.'."\n"
.'- false: Disabled.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The namespace of the cloud service.'."\n"
."\n"
.'For information about how to obtain the namespace of a cloud service, see [DescribeMetricMetaList](~~98846~~) or [Cloud service metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'acs_ecs_dashboard', 'title' => ''],
],
[
'name' => 'Page',
'in' => 'query',
'schema' => ['description' => 'The page number.'."\n"
."\n"
.'Minimum value: 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.'."\n"
."\n"
.'Minimum value: 1. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'AlertState',
'in' => 'query',
'schema' => ['description' => 'The status of the alert rule. Valid values:'."\n"
.'- OK: Normal.'."\n"
.'- ALARM: Alert.'."\n"
.'- INSUFFICIENT_DATA: No data.', 'type' => 'string', 'required' => false, 'example' => 'OK', 'title' => ''],
],
[
'name' => 'Dimensions',
'in' => 'query',
'schema' => ['description' => 'The monitoring dimensions of the specified resource.'."\n"
."\n"
.'Format: A collection of `key:value` pairs, for example, `{"userId":"120886317861****"}` and `{"instanceId":"i-2ze2d6j5uhg20x47****"}`.', 'type' => 'string', 'required' => false, 'example' => '{"instanceId":"i-2ze2d6j5uhg20x47****"}', 'title' => ''],
],
[
'name' => 'RuleName',
'in' => 'query',
'schema' => ['description' => 'The name of the alert rule.'."\n"
."\n"
.'This parameter supports fuzzy search.', 'type' => 'string', 'required' => false, 'example' => 'Rule_01', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.'."\n"
."\n"
.'For information about how to obtain the application group ID, see [DescribeMonitorGroups](~~115032~~).', 'type' => 'string', 'required' => false, 'example' => '7301****', 'title' => ''],
],
[
'name' => 'RuleIds',
'in' => 'query',
'schema' => ['description' => 'The IDs of alert rules. Separate multiple IDs with commas (,). You can query up to 20 alert rules at a time.', 'type' => 'string', 'required' => false, 'example' => 'applyTemplate344cfd42-0f32-4fd6-805a-88d7908a****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'>200 indicates success.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '386C6712-335F-5054-930A-CC92B851ECBA', 'title' => ''],
'Total' => ['description' => 'The total number of records.', 'type' => 'string', 'example' => '1', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: Successful.'."\n"
."\n"
.'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Alarms' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Alarm' => [
'description' => 'The list of alert rules.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'SilenceTime' => ['description' => 'The mute period. Unit: seconds. Default value: 86400. Minimum value: 3600.'."\n"
."\n"
.'If the monitoring data continuously exceeds the alert rule threshold, only one alert notification is sent within each mute period.', 'type' => 'integer', 'format' => 'int32', 'example' => '86400', 'title' => ''],
'MetricName' => ['description' => 'The metric name.', 'type' => 'string', 'example' => 'cpu_total', 'title' => ''],
'Webhook' => ['description' => 'The callback URL when an alert is triggered. CloudMonitor pushes alert information to this URL through a POST request. Currently, only the HTTP protocol is supported.', 'type' => 'string', 'example' => 'https://www.aliyun.com', 'title' => ''],
'ContactGroups' => ['description' => 'The alert contact group.', 'type' => 'string', 'example' => 'ECS_Alarm', 'title' => ''],
'SourceType' => ['description' => 'The type of the alert rule. Valid value: METRIC, indicating a time series metric alert rule.', 'type' => 'string', 'example' => 'METRIC', 'title' => ''],
'Namespace' => ['description' => 'The namespace of the cloud service.', 'type' => 'string', 'example' => 'acs_ecs_dashboard', 'title' => ''],
'MailSubject' => ['description' => 'The subject of the alert email.', 'type' => 'string', 'example' => '"${serviceType}-${metricName}-${levelDescription} notification(${dimensions})"', 'title' => ''],
'NoEffectiveInterval' => ['description' => 'The time range during which the alert rule is ineffective.', 'type' => 'string', 'example' => '00:00-05:30', 'title' => ''],
'EffectiveInterval' => ['description' => 'The time range during which the alert rule is effective.', 'type' => 'string', 'example' => '05:31-23:59', 'title' => ''],
'RuleName' => ['description' => 'The name of the alert rule.', 'type' => 'string', 'example' => 'Rule_01', 'title' => ''],
'AlertState' => ['description' => 'The status of the alert rule. Valid values:'."\n"
."\n"
.'- OK: Normal.'."\n"
."\n"
.'- ALARM: Alert.'."\n"
."\n"
.'- INSUFFICIENT_DATA: No data.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'Period' => ['description' => 'The aggregation period.', 'type' => 'string', 'example' => '60', 'title' => ''],
'RuleId' => ['description' => 'The ID of the alert rule.', 'type' => 'string', 'example' => 'applyTemplate344cfd42-0f32-4fd6-805a-88d7908a****', 'title' => ''],
'GroupName' => ['description' => 'The name of the application group.'."\n"
.'> This parameter is displayed if the alert rule is associated with an application group.', 'type' => 'string', 'example' => 'ECS_Group', 'title' => ''],
'GroupId' => ['description' => 'The ID of the application group.', 'type' => 'string', 'example' => '7301****', 'title' => ''],
'Dimensions' => ['description' => 'The dimensions of the alert rule.', 'type' => 'string', 'example' => '[{"instanceId":"i-2ze2d6j5uhg20x47****"}]', 'title' => ''],
'EnableState' => ['description' => 'The enabled state. Valid values:'."\n"
."\n"
.'- true: Enabled.'."\n"
."\n"
.'- false: Disabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Resources' => ['description' => 'The resources associated with the alert rule.', 'type' => 'string', 'example' => '[{\\"instanceId\\":\\"i-2ze2d6j5uhg20x47****\\"}]', 'title' => ''],
'Escalations' => [
'description' => 'The trigger conditions for alerts by severity level.',
'type' => 'object',
'properties' => [
'Info' => [
'description' => 'The trigger conditions of Info-level alerts.',
'type' => 'object',
'properties' => [
'ComparisonOperator' => ['description' => 'The comparison operator for Info-level thresholds. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to.'."\n"
.'- GreaterThanThreshold: greater than.'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to.'."\n"
.'- LessThanThreshold: less than.'."\n"
.'- NotEqualToThreshold: not equal to.'."\n"
.'- GreaterThanYesterday: year-over-year increase compared to the same time yesterday.'."\n"
.'- LessThanYesterday: year-over-year decrease compared to the same time yesterday.'."\n"
.'- GreaterThanLastWeek: year-over-year increase compared to the same time last week.'."\n"
.'- LessThanLastWeek: year-over-year decrease compared to the same time last week.'."\n"
.'- GreaterThanLastPeriod: period-over-period increase compared to the previous period.'."\n"
.'- LessThanLastPeriod: period-over-period decrease compared to the previous period.', 'type' => 'string', 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'PreCondition' => ['description' => 'The precondition for Info-level alerts. When the ComparisonOperator parameter is set to year-over-year or period-over-period comparison, this parameter works together with it.'."\n"
."\n"
.'For example, if this parameter is set to $Average>80, ComparisonOperator is set to GreaterThanYesterday, and Threshold is set to 10, an alert is triggered when the average value is greater than 80 and the value has increased by 10% compared to yesterday.'."\n"
."\n"
.'>$Average in $Average>0 is a placeholder in the format of $monitoring_result_field_value. CloudMonitor replaces it with the corresponding statistical value or original monitoring value.', 'type' => 'string', 'example' => '$Average>80', 'title' => ''],
'Times' => ['description' => 'The consecutive number of times for which the Info-level alert condition is met. An alert is triggered only when the condition is met for the specified consecutive times and the threshold is exceeded.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''],
'Threshold' => ['description' => 'The threshold for Info-level alerts.', 'type' => 'string', 'example' => '90', 'title' => ''],
'Statistics' => ['description' => 'The statistical method for Info-level alerts.', 'type' => 'string', 'example' => 'Average', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Warn' => [
'description' => 'The trigger conditions of Warn-level alerts.',
'type' => 'object',
'properties' => [
'ComparisonOperator' => ['description' => 'The comparison operator for Warn-level thresholds. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to.'."\n"
.'- GreaterThanThreshold: greater than.'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to.'."\n"
.'- LessThanThreshold: less than.'."\n"
.'- NotEqualToThreshold: not equal to.'."\n"
.'- GreaterThanYesterday: year-over-year increase compared to the same time yesterday.'."\n"
.'- LessThanYesterday: year-over-year decrease compared to the same time yesterday.'."\n"
.'- GreaterThanLastWeek: year-over-year increase compared to the same time last week.'."\n"
.'- LessThanLastWeek: year-over-year decrease compared to the same time last week.'."\n"
.'- GreaterThanLastPeriod: period-over-period increase compared to the previous period.'."\n"
.'- LessThanLastPeriod: period-over-period decrease compared to the previous period.', 'type' => 'string', 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'PreCondition' => ['description' => 'The precondition for Warn-level alerts. When the ComparisonOperator parameter is set to year-over-year or period-over-period comparison, this parameter works together with it.'."\n"
."\n"
.'For example, if this parameter is set to $Average>80, ComparisonOperator is set to GreaterThanYesterday, and Threshold is set to 10, an alert is triggered when the average value is greater than 80 and the value has increased by 10% compared to yesterday.'."\n"
.'> $Average in $Average>0 is a placeholder in the format of $monitoring_result_field_value. CloudMonitor replaces it with the corresponding statistical value or original monitoring value.', 'type' => 'string', 'example' => '$Average>80', 'title' => ''],
'Times' => ['description' => 'The consecutive number of times for which the Warn-level alert condition is met. An alert is triggered only when the condition is met for the specified consecutive times and the threshold is exceeded.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''],
'Threshold' => ['description' => 'The threshold for Warn-level alerts.', 'type' => 'string', 'example' => '90', 'title' => ''],
'Statistics' => ['description' => 'The statistical method for Warn-level alerts.', 'type' => 'string', 'example' => 'Average', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Critical' => [
'description' => 'The trigger conditions of Critical-level alerts.',
'type' => 'object',
'properties' => [
'ComparisonOperator' => ['description' => 'The comparison operator for Critical-level thresholds. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to.'."\n"
.'- GreaterThanThreshold: greater than.'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to.'."\n"
.'- LessThanThreshold: less than.'."\n"
.'- NotEqualToThreshold: not equal to.'."\n"
.'- GreaterThanYesterday: year-over-year increase compared to the same time yesterday.'."\n"
.'- LessThanYesterday: year-over-year decrease compared to the same time yesterday.'."\n"
.'- GreaterThanLastWeek: year-over-year increase compared to the same time last week.'."\n"
.'- LessThanLastWeek: year-over-year decrease compared to the same time last week.'."\n"
.'- GreaterThanLastPeriod: period-over-period increase compared to the previous period.'."\n"
.'- LessThanLastPeriod: period-over-period decrease compared to the previous period.', 'type' => 'string', 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'PreCondition' => ['description' => 'The precondition for Critical-level alerts. When the ComparisonOperator parameter is set to year-over-year or period-over-period comparison, this parameter works together with it.'."\n"
."\n"
.'For example, if this parameter is set to $Average>80, ComparisonOperator is set to GreaterThanYesterday, and Threshold is set to 10, an alert is triggered when the average value is greater than 80 and the value has increased by 10% compared to yesterday.'."\n"
.'>$Average in $Average>0 is a placeholder in the format of `$monitoring_result_field_value`. CloudMonitor replaces it with the corresponding statistical value or original monitoring value.', 'type' => 'string', 'example' => '$Average>80', 'title' => ''],
'Times' => ['description' => 'The consecutive number of times for which the Critical-level alert condition is met. An alert is triggered only when the condition is met for the specified consecutive times and the threshold is exceeded.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''],
'Threshold' => ['description' => 'The threshold for Critical-level alerts.', 'type' => 'string', 'example' => '90', 'title' => ''],
'Statistics' => ['description' => 'The statistical method for Critical-level alerts.', 'type' => 'string', 'example' => 'Average', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'NoDataPolicy' => ['description' => 'The method to handle alerts when no monitoring data is found. Valid values:'."\n"
.'- KEEP_LAST_STATE (default): No action is taken.'."\n"
.'- INSUFFICIENT_DATA: The alert content indicates no data.'."\n"
.'- OK: Normal.', 'type' => 'string', 'example' => 'KEEP_LAST_STATE', 'title' => ''],
'CompositeExpression' => [
'description' => 'The alert conditions for multiple metrics.'."\n"
.'> Single-metric and multi-metric conditions are mutually exclusive and cannot be set at the same time.',
'type' => 'object',
'properties' => [
'Level' => ['description' => 'The alert level. Valid values:'."\n"
.'- CRITICAL: Critical.'."\n"
.'- WARN: Warning.'."\n"
.'- INFO: Information.', 'type' => 'string', 'example' => 'CRITICAL', 'title' => ''],
'ExpressionList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ExpressionList' => [
'description' => 'The list of alert conditions created in standard mode.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'MetricName' => ['description' => 'The metric name of the cloud service.', 'type' => 'string', 'example' => 'cpu_total', 'title' => ''],
'Period' => ['description' => 'The aggregation period of the metric.'."\n"
."\n"
.'Unit: seconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '60', 'title' => ''],
'Statistics' => ['description' => 'The statistical method of the metric. Valid values:'."\n"
.'- $Maximum: Maximum value.'."\n"
.'- $Minimum: Minimum value.'."\n"
.'- $Average: Average value.'."\n"
.'- $Availability: Availability (typically used for site monitoring).'."\n"
."\n"
.'> `$` is the unified prefix for metrics. For supported cloud services, see [Cloud service metrics](~~163515~~).', 'type' => 'string', 'example' => '$Maximum', 'title' => ''],
'ComparisonOperator' => ['description' => 'The comparison operator for the threshold. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to.'."\n"
.'- GreaterThanThreshold: greater than.'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to.'."\n"
.'- LessThanThreshold: less than.'."\n"
.'- NotEqualToThreshold: not equal to.'."\n"
.'- GreaterThanYesterday: year-over-year increase compared to the same time yesterday.'."\n"
.'- LessThanYesterday: year-over-year decrease compared to the same time yesterday.'."\n"
.'- GreaterThanLastWeek: year-over-year increase compared to the same time last week.'."\n"
.'- LessThanLastWeek: year-over-year decrease compared to the same time last week.'."\n"
.'- GreaterThanLastPeriod: period-over-period increase compared to the previous period.'."\n"
.'- LessThanLastPeriod: period-over-period decrease compared to the previous period.', 'type' => 'string', 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Threshold' => ['description' => 'The alert threshold.', 'type' => 'string', 'example' => '90', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'ExpressionListJoin' => ['description' => 'The relationship between multi-metric alert conditions. Valid values:'."\n"
."\n"
.'- `&&`: An alert is triggered only when all metrics meet the alert conditions. An alert is triggered only when all expressions in ExpressionList are `true`.'."\n"
."\n"
.'- `||`: An alert is triggered when any one of the metrics meets the alert condition.', 'type' => 'string', 'example' => '||', 'title' => ''],
'ExpressionRaw' => ['description' => 'The alert conditions created by using expressions. The following scenarios are included but not limited to:'."\n"
."\n"
.'- Set an alert blocklist for some resources. For example, `$instanceId != \'i-io8kfvcpp7x5****\'` `&&` `$Average > 50` indicates that no alert is triggered even if the `Average` value of the instance `i-io8kfvcpp7x5****` in the alert rule exceeds 50.'."\n"
.'- Set a special alert threshold for a specified instance in the rule. For example, `$Average > ($instanceId == \'i-io8kfvcpp7x5****\'? 80: 50)` indicates that an alert is triggered only when the `Average` value of the instance `i-io8kfvcpp7x5****` exceeds 80, and an alert is triggered when the `Average` value of other instances exceeds 50.'."\n"
.'- Limit the number of instances that exceed the threshold in the rule. For example, `count($Average > 20) > 3` indicates that an alert is triggered only when the number of instances whose `Average` value exceeds 20 is greater than 3.'."\n", 'type' => 'string', 'example' => '$Average > ($instanceId == \'i-io8kfvcpp7x5****\'? 80: 50)', 'title' => ''],
'Times' => ['description' => 'The number of times that the alert condition must be met before an alert notification is sent.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Labels' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Labels' => [
'description' => 'The tags of the alert rule.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The tag key of the alert rule.', 'type' => 'string', 'example' => 'cmsRuleKey', 'title' => ''],
'Value' => ['description' => 'The tag value of the alert rule.', 'type' => 'string', 'example' => 'cmsRuleValue', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'Prometheus' => [
'description' => 'Prometheus alerts.'."\n"
."\n"
.'> This parameter is required only when you create Prometheus alert rules for Enterprise Cloud Monitor.',
'type' => 'object',
'properties' => [
'PromQL' => ['description' => 'The PromQL query statement.'."\n"
."\n"
.'> The data obtained by the PromQL query statement is the alert data. Include the alert threshold in the statement.', 'type' => 'string', 'example' => 'CpuUsage{instanceId="xxxx"}[1m]>90', 'title' => ''],
'Level' => ['description' => 'The alert level. Valid values:'."\n"
.'- CRITICAL: Critical.'."\n"
.'- WARN: Warning.'."\n"
.'- INFO: Information.', 'type' => 'string', 'example' => 'CRITICAL', 'title' => ''],
'Times' => ['description' => 'The number of times that the alert condition must be met before an alert notification is sent.', 'type' => 'integer', 'format' => 'int64', 'example' => '3', 'title' => ''],
'Annotations' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Annotations' => [
'description' => 'When Prometheus alerts are triggered, the annotation keys and values are rendered to make it easier for you to understand the metrics or alert rules.'."\n"
.'> This feature is equivalent to Prometheus Annotations.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The annotation key.', 'type' => 'string', 'example' => 'summary', 'title' => ''],
'Value' => ['description' => 'The annotation value.', 'type' => 'string', 'example' => '{{ $labels.instance }} CPU usage above 10% {current value: {{ humanizePercentage $value }} }', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'SendOK' => ['title' => '', 'description' => 'Specifies whether to disable recovery alerts. Valid values: true (yes) and false (no).', 'type' => 'boolean', 'example' => 'true'],
'ProductCategory' => ['description' => 'The type of the cloud service.', 'type' => 'string', 'example' => 'slb', 'title' => ''],
'GmtCreate' => ['description' => 'The time when the rule was created. The value is a Unix timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1760432061000', 'title' => ''],
'GmtUpdate' => ['description' => 'The time when the rule was last updated. The value is a Unix timestamp.', 'type' => 'string', 'example' => '1760432061000', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Invalid parameter.', 'description' => 'Parameter error'],
],
403 => [
['errorCode' => 'InvalidAuthorization', 'errorMessage' => 'The Request is not authorization.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"386C6712-335F-5054-930A-CC92B851ECBA\\",\\n \\"Total\\": \\"1\\",\\n \\"Success\\": true,\\n \\"Alarms\\": {\\n \\"Alarm\\": [\\n {\\n \\"SilenceTime\\": 86400,\\n \\"MetricName\\": \\"cpu_total\\",\\n \\"Webhook\\": \\"https://www.aliyun.com\\",\\n \\"ContactGroups\\": \\"ECS_Alarm\\",\\n \\"SourceType\\": \\"METRIC\\",\\n \\"Namespace\\": \\"acs_ecs_dashboard\\",\\n \\"MailSubject\\": \\"\\\\\\"${serviceType}-${metricName}-${levelDescription} notification(${dimensions})\\\\\\"\\",\\n \\"NoEffectiveInterval\\": \\"00:00-05:30\\",\\n \\"EffectiveInterval\\": \\"05:31-23:59\\",\\n \\"RuleName\\": \\"Rule_01\\",\\n \\"AlertState\\": \\"OK\\",\\n \\"Period\\": \\"60\\",\\n \\"RuleId\\": \\"applyTemplate344cfd42-0f32-4fd6-805a-88d7908a****\\",\\n \\"GroupName\\": \\"ECS_Group\\",\\n \\"GroupId\\": \\"7301****\\",\\n \\"Dimensions\\": \\"[{\\\\\\"instanceId\\\\\\":\\\\\\"i-2ze2d6j5uhg20x47****\\\\\\"}]\\",\\n \\"EnableState\\": true,\\n \\"Resources\\": \\"[{\\\\\\\\\\\\\\"instanceId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"i-2ze2d6j5uhg20x47****\\\\\\\\\\\\\\"}]\\",\\n \\"Escalations\\": {\\n \\"Info\\": {\\n \\"ComparisonOperator\\": \\"GreaterThanOrEqualToThreshold\\",\\n \\"PreCondition\\": \\"$Average>80\\",\\n \\"Times\\": 3,\\n \\"Threshold\\": \\"90\\",\\n \\"Statistics\\": \\"Average\\"\\n },\\n \\"Warn\\": {\\n \\"ComparisonOperator\\": \\"GreaterThanOrEqualToThreshold\\",\\n \\"PreCondition\\": \\"$Average>80\\",\\n \\"Times\\": 3,\\n \\"Threshold\\": \\"90\\",\\n \\"Statistics\\": \\"Average\\"\\n },\\n \\"Critical\\": {\\n \\"ComparisonOperator\\": \\"GreaterThanOrEqualToThreshold\\",\\n \\"PreCondition\\": \\"$Average>80\\",\\n \\"Times\\": 3,\\n \\"Threshold\\": \\"90\\",\\n \\"Statistics\\": \\"Average\\"\\n }\\n },\\n \\"NoDataPolicy\\": \\"KEEP_LAST_STATE\\",\\n \\"CompositeExpression\\": {\\n \\"Level\\": \\"CRITICAL\\",\\n \\"ExpressionList\\": {\\n \\"ExpressionList\\": [\\n {\\n \\"MetricName\\": \\"cpu_total\\",\\n \\"Period\\": 60,\\n \\"Statistics\\": \\"$Maximum\\",\\n \\"ComparisonOperator\\": \\"GreaterThanOrEqualToThreshold\\",\\n \\"Threshold\\": \\"90\\"\\n }\\n ]\\n },\\n \\"ExpressionListJoin\\": \\"||\\",\\n \\"ExpressionRaw\\": \\"$Average > ($instanceId == \'i-io8kfvcpp7x5****\'? 80: 50)\\",\\n \\"Times\\": 3\\n },\\n \\"Labels\\": {\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"cmsRuleKey\\",\\n \\"Value\\": \\"cmsRuleValue\\"\\n }\\n ]\\n },\\n \\"Prometheus\\": {\\n \\"PromQL\\": \\"CpuUsage{instanceId=\\\\\\"xxxx\\\\\\"}[1m]>90\\",\\n \\"Level\\": \\"CRITICAL\\",\\n \\"Times\\": 3,\\n \\"Annotations\\": {\\n \\"Annotations\\": [\\n {\\n \\"Key\\": \\"summary\\",\\n \\"Value\\": \\"{{ $labels.instance }} CPU usage above 10% {current value: {{ humanizePercentage $value }} }\\"\\n }\\n ]\\n }\\n },\\n \\"SendOK\\": true,\\n \\"ProductCategory\\": \\"slb\\",\\n \\"GmtCreate\\": 1760432061000,\\n \\"GmtUpdate\\": \\"1760432061000\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'Query all rules in the alert rule list',
'description' => 'This topic provides an example on how to query all alert rules in the alert rule list under the current Alibaba Cloud account. The response shows that the alert rule list contains only one alert rule. The name of the alert rule is `Rule_01` and the ID is `applyTemplate344cfd42-0f32-4fd6-805a-88d7908a****`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [
['createdAt' => '2025-08-05T09:36:25.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2025-03-18T05:44:49.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2025-02-13T11:47:48.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2023-08-29T09:45:51.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-10-28T09:43:37.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-10-28T09:43:37.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-10-28T09:43:37.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-10-28T09:43:37.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricRuleList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeMetricRuleList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeMetricRuleTargets' => [
'summary' => 'Queries the notification channels of a specified alert rule by calling the DescribeMetricRuleTargets operation.',
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert rule.'."\n"
."\n\n"
.'For information about how to obtain the alert rule ID, see [DescribeMetricRuleList](~~114941~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ae06917_75a8c43178ab66****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'User not authorized to operate on the specified resource.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '786E92D2-AC66-4250-B76F-F1E2FCDDBA1C', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Targets' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Target' => [
'description' => 'The alert trigger targets.',
'type' => 'array',
'items' => [
'description' => 'The alert trigger targets.',
'type' => 'object',
'properties' => [
'Id' => ['description' => 'The ID of the alert trigger target.', 'type' => 'string', 'example' => '1', 'title' => ''],
'Arn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the resource. Format: `acs:{AbbreviatedServiceName}:{regionId}:{userId}:/{ResourceType}/{ResourceName}/message`. The following services are supported: Simple Message Queue (formerly MNS), elastic scaling (ESS), Simple Log Service (SLS), and Function Compute (FC). Example: `acs:mns:ap-southeast-1:120886317861****:/queues/test123/message`. The parameter description for the ARN of Simple Message Queue (formerly MNS) is as follows:'."\n"
."\n"
.'- {AbbreviatedServiceName}: mns'."\n"
."\n"
.'- {userId}: the Alibaba Cloud account ID.'."\n"
."\n"
.'- {regionId}: the region where the Simple Message Queue (formerly MNS) queue or topic resides.'."\n"
."\n"
.'- {ResourceType}: the type of the resource that accepts alert notifications. Valid values:'."\n"
."\n"
.' - **queues**: queue.'."\n"
.' - **topics**: topic.'."\n"
."\n"
.'- {ResourceName}: the resource name.'."\n"
."\n"
.' - If the resource type is **queues**, the resource name is the queue name.'."\n"
.' - If the resource type is **topics**, the resource name is the topic name.', 'type' => 'string', 'example' => 'acs:mns:cn-hangzhou:120886317861****:/queues/test/message', 'title' => ''],
'Level' => ['description' => 'The alert level. Valid values:'."\n"
."\n"
.'- INFO: information.'."\n"
.'- WARN: warning.'."\n"
.'- CRITICAL: critical.', 'type' => 'string', 'example' => 'INFO', 'title' => ''],
'JsonParams' => ['description' => 'The JSON-formatted parameters of the alert callback.', 'type' => 'string', 'example' => '{"customField1":"value1","customField2":"$.name"}', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameterValue', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Query notification channels of a specified alert rule',
'description' => '## Usage notes'."\n"
.'This topic provides an example to query the target resources associated with the alert rule `ae06917_75a8c43178ab66****`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-03-21T06:36:40.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricRuleTargets'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'cms:DescribeMetricRuleTargets',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"User not authorized to operate on the specified resource.\\",\\n \\"RequestId\\": \\"786E92D2-AC66-4250-B76F-F1E2FCDDBA1C\\",\\n \\"Success\\": true,\\n \\"Targets\\": {\\n \\"Target\\": [\\n {\\n \\"Id\\": \\"1\\",\\n \\"Arn\\": \\"acs:mns:cn-hangzhou:120886317861****:/queues/test/message\\",\\n \\"Level\\": \\"INFO\\",\\n \\"JsonParams\\": \\"{\\\\\\"customField1\\\\\\":\\\\\\"value1\\\\\\",\\\\\\"customField2\\\\\\":\\\\\\"$.name\\\\\\"}\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeMetricRuleTemplateAttribute' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => 'The name of the alert template. You must set either `Name` or `TemplateId`.'."\n"
."\n"
.'For information about how to obtain the alert template name, see [DescribeMetricRuleTemplateList](~~114982~~).', 'type' => 'string', 'required' => false, 'example' => 'ECS_Template1', 'title' => ''],
],
[
'name' => 'TemplateId',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert template. You must set either `Name` or `TemplateId`.'."\n"
."\n"
.'For information about how to obtain the alert template ID, see [DescribeMetricRuleTemplateList](~~114982~~).', 'type' => 'string', 'required' => false, 'example' => '70****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The value 200 indicates success.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '8F3A82AD-DA92-52B0-8EC6-C059D1C3839F', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Resource' => [
'description' => 'The details of the alert template.',
'type' => 'object',
'properties' => [
'Description' => ['description' => 'The description of the alert template.', 'type' => 'string', 'example' => 'ECS template', 'title' => ''],
'Name' => ['description' => 'The name of the alert template.', 'type' => 'string', 'example' => 'ECS_Template1', 'title' => ''],
'RestVersion' => ['description' => 'The version of the alert template.', 'type' => 'string', 'example' => '1', 'title' => ''],
'TemplateId' => ['description' => 'The ID of the alert template.', 'type' => 'string', 'example' => '70****', 'title' => ''],
'AlertTemplates' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'AlertTemplate' => [
'description' => 'The alert templates.',
'type' => 'array',
'items' => [
'description' => 'The alert template.',
'type' => 'object',
'properties' => [
'MetricName' => ['description' => 'The metric name.', 'type' => 'string', 'example' => 'cpu_total', 'title' => ''],
'Selector' => ['description' => 'The extended options of the alert dimension.', 'type' => 'string', 'example' => '{"disk":"/"}', 'title' => ''],
'Webhook' => ['description' => 'The URL that triggers an alert callback.', 'type' => 'string', 'example' => 'https://www.aliyun.com', 'title' => ''],
'Namespace' => ['description' => 'The namespace of the Alibaba Cloud service.', 'type' => 'string', 'example' => 'acs_ecs_dashboard', 'title' => ''],
'Category' => ['description' => 'The abbreviation of the Alibaba Cloud service name.', 'type' => 'string', 'example' => 'ecs', 'title' => ''],
'RuleName' => ['description' => 'The name of the alert rule.', 'type' => 'string', 'example' => 'ECS_Rule', 'title' => ''],
'NoDataPolicy' => ['description' => 'The processing method when no monitoring data is found. Valid values:'."\n"
.'- KEEP_LAST_STATE (default): No action is performed.'."\n"
.'- INSUFFICIENT_DATA: An alert whose content is "Insufficient Data" is triggered.'."\n"
.'- OK: The status is considered normal.', 'type' => 'string', 'example' => 'KEEP_LAST_STATE', 'title' => ''],
'Escalations' => [
'description' => 'The threshold and alert level.',
'type' => 'object',
'properties' => [
'Info' => [
'description' => 'The conditions that trigger Info-level alerts.',
'type' => 'object',
'properties' => [
'ComparisonOperator' => ['description' => 'The comparison operator for Info-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to'."\n"
.'- GreaterThanThreshold: greater than'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to'."\n"
.'- LessThanThreshold: less than'."\n"
.'- NotEqualToThreshold: not equal to'."\n"
.'- GreaterThanYesterday: greater than the value at the same time yesterday'."\n"
.'- LessThanYesterday: less than the value at the same time yesterday'."\n"
.'- GreaterThanLastWeek: greater than the value at the same time last week'."\n"
.'- LessThanLastWeek: less than the value at the same time last week'."\n"
.'- GreaterThanLastPeriod: greater than the value in the last period'."\n"
.'- LessThanLastPeriod: less than the value in the last period.', 'type' => 'string', 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Times' => ['description' => 'The number of retries for Info-level alerts.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''],
'Threshold' => ['description' => 'The threshold for Info-level alerts.', 'type' => 'string', 'example' => '90', 'title' => ''],
'Statistics' => ['description' => 'The statistical method for Info-level alerts.'."\n"
."\n"
.'The valid values of `Statistics` vary based on the Alibaba Cloud service. For more information, see [Alibaba Cloud service metrics](~~163515~~).', 'type' => 'string', 'example' => 'Average', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Warn' => [
'description' => 'The conditions that trigger Warn-level alerts.',
'type' => 'object',
'properties' => [
'ComparisonOperator' => ['description' => 'The comparison operator for Warn-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to'."\n"
.'- GreaterThanThreshold: greater than'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to'."\n"
.'- LessThanThreshold: less than'."\n"
.'- NotEqualToThreshold: not equal to'."\n"
.'- GreaterThanYesterday: greater than the value at the same time yesterday'."\n"
.'- LessThanYesterday: less than the value at the same time yesterday'."\n"
.'- GreaterThanLastWeek: greater than the value at the same time last week'."\n"
.'- LessThanLastWeek: less than the value at the same time last week'."\n"
.'- GreaterThanLastPeriod: greater than the value in the last period'."\n"
.'- LessThanLastPeriod: less than the value in the last period.', 'type' => 'string', 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Times' => ['description' => 'The number of retries for Warn-level alerts.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''],
'Threshold' => ['description' => 'The threshold for Warn-level alerts.', 'type' => 'string', 'example' => '90', 'title' => ''],
'Statistics' => ['description' => 'The statistical method for Warn-level alerts.'."\n"
."\n"
.'The valid values of `Statistics` vary based on the Alibaba Cloud service. For more information, see [Alibaba Cloud service metrics](~~163515~~).', 'type' => 'string', 'example' => 'Average', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Critical' => [
'description' => 'The conditions that trigger Critical-level alerts.',
'type' => 'object',
'properties' => [
'ComparisonOperator' => ['description' => 'The comparison operator for Critical-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to'."\n"
.'- GreaterThanThreshold: greater than'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to'."\n"
.'- LessThanThreshold: less than'."\n"
.'- NotEqualToThreshold: not equal to'."\n"
.'- GreaterThanYesterday: greater than the value at the same time yesterday'."\n"
.'- LessThanYesterday: less than the value at the same time yesterday'."\n"
.'- GreaterThanLastWeek: greater than the value at the same time last week'."\n"
.'- LessThanLastWeek: less than the value at the same time last week'."\n"
.'- GreaterThanLastPeriod: greater than the value in the last period'."\n"
.'- LessThanLastPeriod: less than the value in the last period.', 'type' => 'string', 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Times' => ['description' => 'The number of retries for Critical-level alerts.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
'Threshold' => ['description' => 'The threshold for Critical-level alerts.', 'type' => 'string', 'example' => '90', 'title' => ''],
'Statistics' => ['description' => 'The statistical method for Critical-level alerts.'."\n"
."\n"
.'The valid values of `Statistics` vary based on the Alibaba Cloud service. For more information, see [Alibaba Cloud service metrics](~~163515~~).', 'type' => 'string', 'example' => 'Average', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'Labels' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Labels' => [
'description' => 'The labels of the alert template.',
'type' => 'array',
'items' => [
'description' => 'The label of the alert template.',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The key of the alert template label.', 'type' => 'string', 'example' => 'label1', 'title' => ''],
'Value' => ['description' => 'The value of the alert template label.', 'type' => 'string', 'example' => 'value1', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'SilenceTime' => ['description' => 'The mute period. Unit: seconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '3600', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
412 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Query alert template details',
'summary' => 'Queries the details of an alert template by calling the DescribeMetricRuleTemplateAttribute operation.',
'description' => 'This topic provides an example on how to query the details of the alert template `70****`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-04-23T06:00:37.000Z', 'description' => 'Request parameters changed, Response parameters changed'],
['createdAt' => '2025-04-23T03:08:00.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2022-12-27T11:46:48.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2022-12-26T09:11:22.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2022-12-22T02:14:37.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricRuleTemplateAttribute'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeMetricRuleTemplateAttribute',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"8F3A82AD-DA92-52B0-8EC6-C059D1C3839F\\",\\n \\"Success\\": true,\\n \\"Resource\\": {\\n \\"Description\\": \\"ECS template\\",\\n \\"Name\\": \\"ECS_Template1\\",\\n \\"RestVersion\\": \\"1\\",\\n \\"TemplateId\\": \\"70****\\",\\n \\"AlertTemplates\\": {\\n \\"AlertTemplate\\": [\\n {\\n \\"MetricName\\": \\"cpu_total\\",\\n \\"Selector\\": \\"{\\\\\\"disk\\\\\\":\\\\\\"/\\\\\\"}\\",\\n \\"Webhook\\": \\"https://www.aliyun.com\\",\\n \\"Namespace\\": \\"acs_ecs_dashboard\\",\\n \\"Category\\": \\"ecs\\",\\n \\"RuleName\\": \\"ECS_Rule\\",\\n \\"NoDataPolicy\\": \\"KEEP_LAST_STATE\\",\\n \\"Escalations\\": {\\n \\"Info\\": {\\n \\"ComparisonOperator\\": \\"GreaterThanOrEqualToThreshold\\",\\n \\"Times\\": 3,\\n \\"Threshold\\": \\"90\\",\\n \\"Statistics\\": \\"Average\\"\\n },\\n \\"Warn\\": {\\n \\"ComparisonOperator\\": \\"GreaterThanOrEqualToThreshold\\",\\n \\"Times\\": 3,\\n \\"Threshold\\": \\"90\\",\\n \\"Statistics\\": \\"Average\\"\\n },\\n \\"Critical\\": {\\n \\"ComparisonOperator\\": \\"GreaterThanOrEqualToThreshold\\",\\n \\"Times\\": 5,\\n \\"Threshold\\": \\"90\\",\\n \\"Statistics\\": \\"Average\\"\\n }\\n },\\n \\"Labels\\": {\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"label1\\",\\n \\"Value\\": \\"value1\\"\\n }\\n ]\\n },\\n \\"SilenceTime\\": 3600\\n }\\n ]\\n }\\n }\\n}","type":"json"}]',
],
'DescribeMetricRuleTemplateList' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => 'The name of the alert template.', 'type' => 'string', 'required' => false, 'example' => 'ECS_Template1', 'title' => ''],
],
[
'name' => 'Keyword',
'in' => 'query',
'schema' => ['description' => 'The keyword of the alert template name.', 'type' => 'string', 'required' => false, 'example' => 'ECS', 'title' => ''],
],
[
'name' => 'TemplateId',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert template.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '70****', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.'."\n"
."\n"
.'Default value: 1.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'History',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to display the history of applying the alert templates to application groups. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false (default)', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''],
],
[
'name' => 'Order',
'in' => 'query',
'schema' => ['description' => 'The sorting order. Valid values:'."\n"
."\n"
.'- true (default): ascending order'."\n"
."\n"
.'- false: descending order', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'OrderBy',
'in' => 'query',
'schema' => ['description' => 'The sorting basis. Valid values:'."\n"
."\n"
.'- gmtMotified: sorts alert templates by modification time'."\n"
."\n"
.'- gmtCreate (default): sorts alert templates by creation time', 'type' => 'string', 'required' => false, 'example' => 'gmtCreate', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '659401C0-6214-5C02-972A-CFA929D717B7', 'title' => ''],
'Total' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int64', 'example' => '2', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Templates' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Template' => [
'description' => 'The queried alert templates.',
'type' => 'array',
'items' => [
'description' => 'None',
'type' => 'object',
'properties' => [
'Description' => ['description' => 'The description of the alert template.', 'type' => 'string', 'example' => 'ECS的CPU使用率', 'title' => ''],
'GmtCreate' => ['description' => 'The timestamp when the alert template was created.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1646018798000', 'title' => ''],
'Name' => ['description' => 'The name of the alert template.', 'type' => 'string', 'example' => 'ECS_Template1', 'title' => ''],
'RestVersion' => ['description' => 'The version of the alert template.'."\n"
."\n"
.'Default value: 0.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''],
'GmtModified' => ['description' => 'The timestamp when the alert template was modified.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1646054798000', 'title' => ''],
'TemplateId' => ['description' => 'The ID of the alert template.', 'type' => 'integer', 'format' => 'int64', 'example' => '70****', 'title' => ''],
'ApplyHistories' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ApplyHistory' => [
'description' => 'The history of applying the alert templates to application groups.',
'type' => 'array',
'items' => [
'description' => 'None',
'type' => 'object',
'properties' => [
'GroupId' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'example' => '3607****', 'title' => ''],
'GroupName' => ['description' => 'The name of the application group.', 'type' => 'string', 'example' => 'ECS_Group', 'title' => ''],
'ApplyTime' => ['description' => 'The timestamp when the alert template was applied to the application group.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1646055898000', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeMetricRuleTemplateList',
'summary' => 'Queries alert templates.',
'description' => 'This topic provides an example on how to query alert templates. In this example, the following alert templates are returned in the response: `ECS_Template1` and `ECS_Template2`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-03-22T08:53:07.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricRuleTemplateList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeMetricRuleTemplateList',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"659401C0-6214-5C02-972A-CFA929D717B7\\",\\n \\"Total\\": 2,\\n \\"Success\\": true,\\n \\"Templates\\": {\\n \\"Template\\": [\\n {\\n \\"Description\\": \\"ECS的CPU使用率\\",\\n \\"GmtCreate\\": 1646018798000,\\n \\"Name\\": \\"ECS_Template1\\",\\n \\"RestVersion\\": 0,\\n \\"GmtModified\\": 1646054798000,\\n \\"TemplateId\\": 0,\\n \\"ApplyHistories\\": {\\n \\"ApplyHistory\\": [\\n {\\n \\"GroupId\\": 0,\\n \\"GroupName\\": \\"ECS_Group\\",\\n \\"ApplyTime\\": 1646055898000\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeMetricTop' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Period',
'in' => 'query',
'schema' => ['description' => 'The statistical period of the monitoring data.'."\n"
."\n"
.'Valid values: 15, 60, 900, and 3600.'."\n"
."\n"
.'Unit: seconds.'."\n"
."\n"
.'>'."\n"
."\n"
.'- If this parameter is not specified, monitoring data is queried based on the period in which metric values are reported.'."\n"
."\n"
.'- Statistical periods vary based on the metrics that are specified by `MetricName`. For more information, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => '60', 'title' => ''],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The namespace of the cloud service.'."\n"
."\n"
.'For more information about the namespaces of cloud services, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => true, 'example' => 'acs_ecs_dashboard', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The metric that is used to monitor the cloud service.'."\n"
."\n"
.'For more information about metric names, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cpu_idle', 'title' => ''],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => 'The start of the time range to query monitoring data.'."\n"
."\n"
.'- If the `StartTime` and `EndTime` parameters are not specified, the monitoring data of the last statistical period is queried.\\`\\`'."\n"
."\n"
.'- If the `StartTime` and `EndTime` parameters are specified, the monitoring data of the last statistical period in the specified time range is queried.\\`\\`\\`\\`'."\n"
."\n"
.' - If you set the `Period` parameter to 15, the specified time range must be less than or equal to 20 minutes. For example, if you set the StartTime parameter to 2021-05-08 08:10:00 and the EndTime parameter to 2021-05-08 08:30:00, the monitoring data of the last 15 seconds in the time range is queried.'."\n"
."\n"
.' - If you set the `Period` parameter to 60 or 900, the specified time range must be less than or equal to 2 hours. For example, if you set the Period parameter to 60, the StartTime parameter to 2021-05-08 08:00:00, and the EndTime parameter to 2021-05-08 10:00:00, the monitoring data of the last 60 seconds in the time range is queried.'."\n"
."\n"
.' - If you set the `Period` parameter to 3600, the specified time range must be less than or equal to two days. For example, if you set the StartTime parameter to 2021-05-08 08:00:00 and the EndTime parameter to 2021-05-10 08:00:00, the monitoring data of the last 3,600 seconds in the time range is queried.'."\n"
."\n"
.'The following formats are supported:'."\n"
."\n"
.'- UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 Thursday, January 1, 1970'."\n"
."\n"
.'- Time format: YYYY-MM-DDThh:mm:ssZ'."\n"
."\n"
.'>'."\n"
."\n"
.'- You must set the `StartTime` parameter to a point in time that is later than 00:00:00 Thursday, January 1, 1970. Otherwise, this parameter is invalid.'."\n"
."\n"
.'- We recommend that you use UNIX timestamps to prevent time zone-related issues.', 'type' => 'string', 'required' => false, 'example' => '2021-05-08 08:00:00', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => 'The end of the time range to query monitoring data.'."\n"
."\n"
.'- If the `StartTime` and `EndTime` parameters are not specified, the monitoring data of the last statistical period is queried.\\`\\`'."\n"
."\n"
.'- If the `StartTime` and `EndTime` parameters are specified, the monitoring data of the last statistical period in the specified time range is queried.\\`\\`\\`\\`'."\n"
."\n"
.' - If you set the `Period` parameter to 15, the specified time range must be less than or equal to 20 minutes. For example, if you set the StartTime parameter to 2021-05-08 08:10:00 and the EndTime parameter to 2021-05-08 08:30:00, the monitoring data of the last 15 seconds in the time range is queried.'."\n"
."\n"
.' - If you set the `Period` parameter to 60 or 900, the specified time range must be less than or equal to 2 hours. For example, if you set the Period parameter to 60, the StartTime parameter to 2021-05-08 08:00:00, and the EndTime parameter to 2021-05-08 10:00:00, the monitoring data of the last 60 seconds in the time range is queried.'."\n"
."\n"
.' - If you set the `Period` parameter to 3600, the specified time range must be less than or equal to two days. For example, if you set the StartTime parameter to 2021-05-08 08:00:00 and the EndTime parameter to 2021-05-10 08:00:00, the monitoring data of the last 3,600 seconds in the time range is queried.'."\n"
."\n"
.'The following formats are supported:'."\n"
."\n"
.'- UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 Thursday, January 1, 1970'."\n"
."\n"
.'- Time format: YYYY-MM-DDThh:mm:ssZ'."\n"
."\n"
.'> We recommend that you use UNIX timestamps to prevent time zone-related issues.', 'type' => 'string', 'required' => false, 'example' => '2021-05-08 10:00:00', 'title' => ''],
],
[
'name' => 'Dimensions',
'in' => 'query',
'schema' => ['description' => 'The monitoring dimensions of the specified resource.'."\n"
."\n"
.'Set the value to a collection of `key:value` pairs. Example: `{"userId":"120886317861****"}` or `{"instanceId":"i-2ze2d6j5uhg20x47****"}`.'."\n"
."\n"
.'> You can query a maximum of 50 instances in each request.', 'type' => 'string', 'required' => false, 'example' => '[{"instanceId": "i-2ze2d6j5uhg20x47****"}]', 'title' => ''],
],
[
'name' => 'Orderby',
'in' => 'query',
'schema' => ['description' => 'The field based on which data is sorted. Valid values:'."\n"
."\n"
.'- Average'."\n"
."\n"
.'- Minimum'."\n"
."\n"
.'- Maximum', 'type' => 'string', 'required' => true, 'example' => 'Average', 'title' => ''],
],
[
'name' => 'OrderDesc',
'in' => 'query',
'schema' => ['description' => 'The order in which data is sorted. Valid values:'."\n"
."\n"
.'- True: sorts data in ascending order.'."\n"
."\n"
.'- False (default): sorts data in descending order.', 'type' => 'string', 'required' => false, 'example' => 'false', 'title' => ''],
],
[
'name' => 'Length',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.'."\n"
."\n"
.'Default value: 10.'."\n"
."\n"
.'> The maximum value of the Length parameter in a request is 1440.', 'type' => 'string', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'Express',
'in' => 'query',
'schema' => ['description' => 'The expression that is used to compute the query results in real time.'."\n"
."\n"
.'> Only the `groupby` expression is supported. This expression is similar to the GROUP BY statement used in databases.', 'type' => 'string', 'required' => false, 'example' => '{"groupby":["userId","instanceId"]}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3121AE7D-4AFF-4C25-8F1D-C8226EBB1F42', 'title' => ''],
'Datapoints' => ['description' => 'The monitoring data.', 'type' => 'string', 'example' => '[{\\"order\\":1,\\"timestamp\\":1620287520000,\\"userId\\":\\"120886317861****\\",\\"instanceId\\":\\"i-j6ccf7d5fn335qpo****\\",\\"Average\\":99.92,\\"Minimum\\":99.5,\\"Maximum\\":100.0,\\"_count\\":1.0},{\\"order\\":2,\\"timestamp\\":1620287520000,\\"userId\\":\\"120886317861****\\",\\"instanceId\\":\\"i-0xii2bvf42iqvxbp****\\",\\"Average\\":99.91,\\"Minimum\\":99.0,\\"Maximum\\":100.0,\\"_count\\":1.0}]', 'title' => ''],
'Period' => ['description' => 'The statistical period of the monitoring data. Unit: seconds. Valid values: 15, 60, 900, and 3600.', 'type' => 'string', 'example' => '60', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeMetricTop',
'summary' => 'Queries the latest monitoring data of a metric for a cloud service. The data can be sorted by a specified order.',
'description' => '### [](#)Limits'."\n"
."\n"
.'- The total free quota is 1 million calls per month for the DescribeMetricLast, DescribeMetricList, DescribeMetricData, and DescribeMetricTop operations. If the free quota is used up and CloudMonitor Basic (pay-as-you-go) is not activated, these API operations can no longer be called as expected. If you have activated CloudMonitor Basic (pay-as-you-go), these API operations can still be called even if the free quota is used up. After the free quota is used up, you are charged for the excess usage based on the pay-as-you-go billing method. For more information about how to activate CloudMonitor Basic (pay-as-you-go), see [Enable the pay-as-you-go billing method](https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6c8f3481IbSHgG\\&commodityCode=cms_basic_public_cn\\&from_biz_channel=help_bill).'."\n"
."\n"
.'- Each API operation can be called up to 10 times per second. An Alibaba Cloud account and the Resource Access Management (RAM) users within the account share the quota.'."\n"
."\n"
.'### [](#)Precautions'."\n"
."\n"
.'The storage duration of the monitoring data of each cloud service is related to the `Period` parameter (statistical period). A larger value of the `Period` parameter indicates that the monitoring data is distributed in a larger time range and the storage duration of the monitoring data is longer. The following list describes the specific relationships:'."\n"
."\n"
.'- The storage duration is 7 days if the value of the `Period` parameter is less than 60 seconds.'."\n"
."\n"
.'- The storage duration is 31 days if the value of the `Period` parameter is 60 seconds.'."\n"
."\n"
.'- The storage duration is 91 days if the value of the `Period` is greater than or equal to 300 seconds.'."\n"
."\n"
.'### [](#)Operation description'."\n"
."\n"
.'This topic provides an example on how to query the monitoring data of the `cpu_idle` metric in the last 60 seconds for Elastic Compute Service (ECS). The namespace of ECS is `acs_ecs_dashboard`. The monitoring data is sorted in descending order based on the `Average` field.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricTop'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:QueryMetricTop',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"3121AE7D-4AFF-4C25-8F1D-C8226EBB1F42\\",\\n \\"Datapoints\\": \\"[{\\\\\\\\\\\\\\"order\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"timestamp\\\\\\\\\\\\\\":1620287520000,\\\\\\\\\\\\\\"userId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"120886317861****\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"instanceId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"i-j6ccf7d5fn335qpo****\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Average\\\\\\\\\\\\\\":99.92,\\\\\\\\\\\\\\"Minimum\\\\\\\\\\\\\\":99.5,\\\\\\\\\\\\\\"Maximum\\\\\\\\\\\\\\":100.0,\\\\\\\\\\\\\\"_count\\\\\\\\\\\\\\":1.0},{\\\\\\\\\\\\\\"order\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"timestamp\\\\\\\\\\\\\\":1620287520000,\\\\\\\\\\\\\\"userId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"120886317861****\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"instanceId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"i-0xii2bvf42iqvxbp****\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Average\\\\\\\\\\\\\\":99.91,\\\\\\\\\\\\\\"Minimum\\\\\\\\\\\\\\":99.0,\\\\\\\\\\\\\\"Maximum\\\\\\\\\\\\\\":100.0,\\\\\\\\\\\\\\"_count\\\\\\\\\\\\\\":1.0}]\\",\\n \\"Period\\": \\"60\\"\\n}","type":"json"}]',
],
'DescribeMonitorGroupCategories' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123456', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message returned.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '9E0347B0-EBC3-4769-A78D-D96F21C6BB52', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true: The request was successful.'."\n"
."\n"
.'- false: The request failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'MonitorGroupCategories' => [
'description' => 'The cloud services to which the resources in the application group belong and the number of resources that belong to the cloud service.',
'type' => 'object',
'properties' => [
'GroupId' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'example' => '123456', 'title' => ''],
'MonitorGroupCategory' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'CategoryItem' => [
'description' => 'The cloud services to which the resources in the application group belong and the number of resources that belong to the cloud service.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'Count' => ['description' => 'The number of resources that belong to the cloud service.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Category' => ['description' => 'The abbreviation of the cloud service name.'."\n"
."\n"
.'> For more information about how to obtain the abbreviation of a cloud service name, see `metricCategory` in the response parameter `Labels` of the [DescribeProjectMeta](~~114916~~) operation.', 'type' => 'string', 'example' => 'ecs', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeMonitorGroupCategories',
'summary' => 'Queries the cloud services to which the resources in an application group belong and the number of resources that belong to each cloud service in the application group.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitorGroupCategories'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeMonitorGroupCategories',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'MonitorGroup', 'arn' => 'acs:cms::{#accountId}:group/{#groupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"9E0347B0-EBC3-4769-A78D-D96F21C6BB52\\",\\n \\"Success\\": true,\\n \\"MonitorGroupCategories\\": {\\n \\"GroupId\\": 123456,\\n \\"MonitorGroupCategory\\": {\\n \\"CategoryItem\\": [\\n {\\n \\"Count\\": 1,\\n \\"Category\\": \\"ecs\\"\\n }\\n ]\\n }\\n }\\n}","type":"json"}]',
],
'DescribeMonitorGroupDynamicRules' => [
'summary' => 'Queries the dynamic rules of an application group.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123456', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The responses code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '2170B94A-1576-4D65-900E-2093037CDAF3', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Resource' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Resource' => [
'description' => 'The resources that are associated with the application group.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'Category' => ['description' => 'The type of the cloud service to which the dynamic rule belongs. Valid values:'."\n"
."\n"
.'- ecs: Elastic Compute Service (ECS)'."\n"
."\n"
.'- rds: ApsaraDB RDS'."\n"
."\n"
.'- slb: Server Load Balancer (SLB)', 'type' => 'string', 'example' => 'ecs', 'title' => ''],
'FilterRelation' => ['description' => 'The filter condition. Valid values:'."\n"
."\n"
.'- and: queries the instances that meet all alert rules.'."\n"
."\n"
.'- or: queries the instances that meet any alert rule.', 'type' => 'string', 'example' => 'and', 'title' => ''],
'Filters' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Filter' => [
'description' => 'The dynamic rules of the application group.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'Value' => ['description' => 'The value of the dynamic rule.', 'type' => 'string', 'example' => '1', 'title' => ''],
'Function' => ['description' => 'The method that is used to filter the instances. Valid values:'."\n"
."\n"
.'- contains: contains'."\n"
."\n"
.'- startWith: starts with a prefix'."\n"
."\n"
.'- endWith: ends with a suffix', 'type' => 'string', 'example' => 'contains', 'title' => ''],
'Name' => ['description' => 'The instance name.', 'type' => 'string', 'example' => 'hostName', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'AccessForbidden', 'errorMessage' => 'The X.509 certificate or cms access key ID provided does not exist in our records.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'Throttli∂ngException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'DescribeMonitorGroupDynamicRules',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitorGroupDynamicRules'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeMonitorGroupDynamicRules',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"2170B94A-1576-4D65-900E-2093037CDAF3\\",\\n \\"Success\\": true,\\n \\"Resource\\": {\\n \\"Resource\\": [\\n {\\n \\"Category\\": \\"ecs\\",\\n \\"FilterRelation\\": \\"and\\",\\n \\"Filters\\": {\\n \\"Filter\\": [\\n {\\n \\"Value\\": \\"1\\",\\n \\"Function\\": \\"contains\\",\\n \\"Name\\": \\"hostName\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeMonitorGroupInstanceAttribute' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123456', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.'."\n"
."\n"
.'Valid values: 1 to 1000000000.'."\n"
."\n"
.'Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.'."\n"
."\n"
.'Valid values: 1 to 1000000000.'."\n"
."\n"
.'Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'Total',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to return the total number of resources in the specified application group. Valid values:'."\n"
."\n"
.'- true (default)'."\n"
."\n"
.'- false', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'Category',
'in' => 'query',
'schema' => ['description' => 'The abbreviation of the cloud service name.'."\n"
."\n"
.'For more information about how to obtain the abbreviation of a cloud service name, see `metricCategory` in the response parameter `Labels` of the [DescribeProjectMeta](~~2513265~~) operation.', 'type' => 'string', 'required' => false, 'example' => 'ecs', 'title' => ''],
],
[
'name' => 'Keyword',
'in' => 'query',
'schema' => ['description' => 'The keyword that is used to search for resources.', 'type' => 'string', 'required' => false, 'example' => 'portal', 'title' => ''],
],
[
'name' => 'InstanceIds',
'in' => 'query',
'schema' => ['description' => 'The resource ID. Separate multiple resource IDs with commas (,). You can query the details about a maximum of 20 resources at a time.', 'type' => 'string', 'required' => false, 'example' => 'i-m5e0k0bexac8tykr****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '9FB8EA79-7279-4482-8D6D-3D28EEDD871A', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Code' => ['description' => 'The responses code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
'Total' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '12', 'title' => ''],
'Resources' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Resource' => [
'description' => 'The resources that are associated with the application group.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'InstanceName' => ['description' => 'The instance name.', 'type' => 'string', 'example' => 'hostName', 'title' => ''],
'Dimension' => ['description' => 'The dimensions of the resource that is associated with the application group.', 'type' => 'string', 'example' => '{"instanceId":"i-m5e0k0bexac8tykr****"}', 'title' => ''],
'Category' => ['description' => 'The name of the cloud service.', 'type' => 'string', 'example' => 'ecs', 'title' => ''],
'InstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'i-m5e0k0bexac8tykr****', 'title' => ''],
'NetworkType' => ['description' => 'The network type.', 'type' => 'string', 'example' => 'vpc', 'title' => ''],
'Desc' => ['description' => 'The resource description.', 'type' => 'string', 'example' => 'desc_test', 'title' => ''],
'Tags' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Tag' => [
'description' => 'The tag of the resource.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The tag key.', 'type' => 'string', 'example' => 'instanceNetworkType', 'title' => ''],
'Value' => ['description' => 'The tag value.', 'type' => 'string', 'example' => 'VPC', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'Region' => [
'description' => 'The region.',
'type' => 'object',
'properties' => [
'AvailabilityZone' => ['description' => 'The zone.', 'type' => 'string', 'example' => 'cn-hangzhou-f', 'title' => ''],
'RegionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Vpc' => [
'description' => 'The VPC description.',
'type' => 'object',
'properties' => [
'VswitchInstanceId' => ['description' => 'The vSwitch ID.', 'type' => 'string', 'example' => 'vsw-2ze36seq79n992****', 'title' => ''],
'VpcInstanceId' => ['description' => 'The VPC ID.', 'type' => 'string', 'example' => 'vpc-2zew7etgiceg21****', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'AccessForbidden', 'errorMessage' => 'The X.509 certificate or cms access key ID provided does not exist in our records.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'Throttli∂ngException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'DescribeMonitorGroupInstanceAttribute',
'summary' => 'Queries the resources in an application group.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitorGroupInstanceAttribute'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeMonitorGroupInstanceAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'MonitorGroupInstances', 'arn' => 'acs:cms::{#accountId}:group/{#groupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"9FB8EA79-7279-4482-8D6D-3D28EEDD871A\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 2,\\n \\"Total\\": 12,\\n \\"Resources\\": {\\n \\"Resource\\": [\\n {\\n \\"InstanceName\\": \\"hostName\\",\\n \\"Dimension\\": \\"{\\\\\\"instanceId\\\\\\":\\\\\\"i-m5e0k0bexac8tykr****\\\\\\"}\\",\\n \\"Category\\": \\"ecs\\",\\n \\"InstanceId\\": \\"i-m5e0k0bexac8tykr****\\",\\n \\"NetworkType\\": \\"vpc\\",\\n \\"Desc\\": \\"desc_test\\",\\n \\"Tags\\": {\\n \\"Tag\\": [\\n {\\n \\"Key\\": \\"instanceNetworkType\\",\\n \\"Value\\": \\"VPC\\"\\n }\\n ]\\n },\\n \\"Region\\": {\\n \\"AvailabilityZone\\": \\"cn-hangzhou-f\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n },\\n \\"Vpc\\": {\\n \\"VswitchInstanceId\\": \\"vsw-2ze36seq79n992****\\",\\n \\"VpcInstanceId\\": \\"vpc-2zew7etgiceg21****\\"\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeMonitorGroupInstances' => [
'summary' => 'Queries the resources in an application group.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123****', 'title' => ''],
],
[
'name' => 'Category',
'in' => 'query',
'schema' => ['description' => 'The abbreviation of the cloud service name. Valid values of N: 1 to 200.'."\n"
."\n"
.'> For more information about how to obtain the abbreviation of a cloud service name, see `metricCategory` in the response parameter `Labels` of the [DescribeProjectMeta](~~114916~~) operation.', 'type' => 'string', 'required' => false, 'example' => 'ecs', 'title' => ''],
],
[
'name' => 'Keyword',
'in' => 'query',
'schema' => ['description' => 'The keyword used to search for instances. Fuzzy search based on instance names is supported.', 'type' => 'string', 'required' => false, 'example' => 'test-s1', 'title' => ''],
],
[
'name' => 'InstanceIds',
'in' => 'query',
'schema' => ['description' => 'The instance ID. You can query multiple instances by specifying multiple IDs.', 'type' => 'string', 'required' => false, 'example' => 'i-bp12g4xbl4i0brkn****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '97F2A410-9412-499C-9AD1-76EF7EC02DF2', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Code' => ['description' => 'The responses code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
'Total' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '12', 'title' => ''],
'Resources' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Resource' => [
'description' => 'The information about the resources in the application group.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'Category' => ['description' => 'The abbreviation of the service name.', 'type' => 'string', 'example' => 'ecs', 'title' => ''],
'InstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'i-bp12g4xbl4i0brkn****', 'title' => ''],
'InstanceName' => ['description' => 'The instance name.', 'type' => 'string', 'example' => 'test-s1', 'title' => ''],
'Id' => ['description' => 'The resource ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123****', 'title' => ''],
'RegionId' => ['description' => 'The ID of the region where the instance resides.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'AccessForbidden', 'errorMessage' => 'The X.509 certificate or cms access key ID provided does not exist in our records.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'Throttli∂ngException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'DescribeMonitorGroupInstances',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitorGroupInstances'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeMonitorGroupInstances',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"97F2A410-9412-499C-9AD1-76EF7EC02DF2\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"Total\\": 12,\\n \\"Resources\\": {\\n \\"Resource\\": [\\n {\\n \\"Category\\": \\"ecs\\",\\n \\"InstanceId\\": \\"i-bp12g4xbl4i0brkn****\\",\\n \\"InstanceName\\": \\"test-s1\\",\\n \\"Id\\": 0,\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeMonitorGroupNotifyPolicyList' => [
'summary' => 'Queries the list of alert notification pause policies for an application group.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'PolicyType',
'in' => 'query',
'schema' => [
'description' => 'The type of the pause notification policy.'."\n"
."\n"
.'Currently, only PauseNotify is supported.',
'type' => 'string',
'required' => true,
'enum' => ['PauseNotify'],
'example' => 'PauseNotify',
'title' => '',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => false, 'example' => '6780****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A value of 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '6072F026-C441-41A6-B114-35A1E8F8FDD3', 'title' => ''],
'Total' => ['description' => 'The total number of records.', 'type' => 'integer', 'format' => 'int32', 'example' => '11', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: Successful.'."\n"
."\n"
.'- false: Failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'NotifyPolicyList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'NotifyPolicy' => [
'description' => 'The list of pause notification policies.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'EndTime' => ['description' => 'The end timestamp.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1551761781273', 'title' => ''],
'Type' => ['description' => 'The disable type.', 'type' => 'string', 'example' => 'PauseNotify', 'title' => ''],
'StartTime' => ['description' => 'The start timestamp.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1551761781273', 'title' => ''],
'GroupId' => ['description' => 'The ID of the application group.', 'type' => 'string', 'example' => '6780****', 'title' => ''],
'Id' => ['description' => 'The ID of the pause notification policy.', 'type' => 'string', 'example' => '123****', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
204 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error. ', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Query alert notification pause policies for an application group',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitorGroupNotifyPolicyList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeMonitorGroupNotifyPolicyList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"6072F026-C441-41A6-B114-35A1E8F8FDD3\\",\\n \\"Total\\": 11,\\n \\"Success\\": \\"true\\",\\n \\"NotifyPolicyList\\": {\\n \\"NotifyPolicy\\": [\\n {\\n \\"EndTime\\": 1551761781273,\\n \\"Type\\": \\"PauseNotify\\",\\n \\"StartTime\\": 1551761781273,\\n \\"GroupId\\": \\"6780****\\",\\n \\"Id\\": \\"123****\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'translator' => 'machine',
],
'DescribeMonitorGroups' => [
'summary' => 'You can call the DescribeMonitorGroups operation to query a list of application groups.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'SelectContactGroups',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to include alert contact groups in the response. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.'."\n"
."\n"
.'Pages start from page 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page.'."\n"
."\n"
.'Pages start from page 1. Default value: 30.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
],
[
'name' => 'Keyword',
'in' => 'query',
'schema' => ['description' => 'The keyword for the search.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the instance. This parameter is used to query the application group to which the specified instance belongs.', 'type' => 'string', 'required' => false, 'example' => 'i-abcdefgh12****', 'title' => ''],
],
[
'name' => 'GroupName',
'in' => 'query',
'schema' => ['description' => 'The name of the application group.', 'type' => 'string', 'required' => false, 'example' => 'testGroup124', 'title' => ''],
],
[
'name' => 'IncludeTemplateHistory',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to include the history of alert templates that are applied to the application group in the response. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'required' => false, 'default' => 'true', 'example' => 'true', 'title' => ''],
],
[
'name' => 'Type',
'in' => 'query',
'schema' => [
'description' => 'The type of the application group. Valid values:'."\n"
."\n"
.'- custom: a custom application group.'."\n"
."\n"
.'- ehpc\\_cluster: an application group that is synchronized from an E-HPC cluster.'."\n"
."\n"
.'- kubernetes: an application group that is synchronized from a Container Service for Kubernetes (ACK) cluster.',
'type' => 'string',
'required' => false,
'enum' => ['custom', 'ehpc_cluster', 'kubernetes', 'tag', 'aone_group', 'resMgr', 'ess'],
'example' => 'custom',
'title' => '',
],
],
[
'name' => 'DynamicTagRuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the dynamic tag rule.', 'type' => 'string', 'required' => false, 'example' => '6b882d9a-5117-42e2-9d0c-4749a0c6****', 'title' => ''],
],
[
'name' => 'GroupFounderTagKey',
'in' => 'query',
'schema' => ['description' => 'The tag key of the application group that is created using a dynamic tag rule.', 'type' => 'string', 'required' => false, 'example' => 'GroupKey1', 'title' => ''],
],
[
'name' => 'GroupFounderTagValue',
'in' => 'query',
'schema' => ['description' => 'The tag value of the application group that is created using a dynamic tag rule.', 'type' => 'string', 'required' => false, 'example' => 'GroupValue1', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The IDs of the application groups. Separate multiple IDs with commas (,).', 'type' => 'string', 'required' => false, 'example' => '92****', 'title' => ''],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The tags of the application group.',
'type' => 'array',
'items' => [
'description' => 'The tags of the application group.',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The key of tag N. Valid values of N: 1 to 5.', 'type' => 'string', 'required' => false, 'example' => 'tagKey1', 'title' => ''],
'Value' => ['description' => 'The value of tag N. Valid values of N: 1 to 5.', 'type' => 'string', 'required' => false, 'example' => 'tagValue1', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 5,
'title' => '',
'example' => '',
],
],
[
'name' => 'Types',
'in' => 'query',
'schema' => ['description' => 'The type of the application group. Valid values:'."\n"
."\n"
.'- custom: a custom application group.'."\n"
."\n"
.'- ehpc\\_cluster: an application group that is synchronized from an E-HPC cluster.'."\n"
."\n"
.'- kubernetes: an application group that is synchronized from a Container Service for Kubernetes (ACK) cluster.'."\n"
."\n"
.'- tag: an application group that is automatically created based on tags.'."\n"
."\n"
.'- resMgr: an application group that is created based on a resource group.'."\n"
."\n"
.'- ess: an application group that is synchronized from Auto Scaling (ESS).', 'type' => 'string', 'required' => false, 'example' => 'custom', 'title' => ''],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'description' => 'The response data.',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'F02B299A-D374-4595-9F55-7534D604F132', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A value of 200 indicates that the operation was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'PageSize' => ['description' => 'The number of entries returned per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
'Total' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
'Resources' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Resource' => [
'description' => 'The resources that are associated with the monitor group.',
'type' => 'array',
'items' => [
'description' => 'The details of the linked instance.',
'type' => 'object',
'properties' => [
'Type' => ['description' => 'The type of the application group. Valid values:'."\n"
."\n"
.'- custom: a custom application group.'."\n"
."\n"
.'- ehpc\\_cluster: an application group that is synchronized from an E-HPC cluster.'."\n"
."\n"
.'- kubernetes: an application group that is synchronized from a Container Service for Kubernetes (ACK) cluster.', 'type' => 'string', 'example' => 'custom', 'title' => ''],
'GroupFounderTagValue' => ['description' => 'The tag value of the application group that is created using a dynamic tag rule.', 'type' => 'string', 'example' => 'GroupValue1', 'title' => ''],
'BindUrl' => ['description' => 'The URL that is synchronized from the ACK cluster.', 'type' => 'string', 'example' => 'https://aliyun.com', 'title' => ''],
'GroupName' => ['description' => 'The name of the application group.', 'type' => 'string', 'example' => 'test123', 'title' => ''],
'GroupId' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'example' => '12345', 'title' => ''],
'ServiceId' => ['description' => 'The ID of the Alibaba Cloud service.', 'type' => 'string', 'example' => '49****', 'title' => ''],
'DynamicTagRuleId' => ['description' => 'The ID of the dynamic tag rule.', 'type' => 'string', 'example' => '6b882d9a-5117-42e2-9d0c-4749a0c6****', 'title' => ''],
'GmtCreate' => ['description' => 'The timestamp when the application group was created. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1603181891000', 'title' => ''],
'GroupFounderTagKey' => ['description' => 'The tag key of the application group that is created using a dynamic tag rule.', 'type' => 'string', 'example' => 'GroupKey1', 'title' => ''],
'GmtModified' => ['description' => 'The timestamp when the application group was modified. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1603181891000', 'title' => ''],
'ContactGroups' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ContactGroup' => [
'description' => 'The alert contact groups.',
'type' => 'array',
'items' => [
'description' => 'An alert contact group.',
'type' => 'object',
'properties' => [
'Name' => ['description' => 'The name of the alert contact group.', 'type' => 'string', 'example' => 'CloudMonitor', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'Tags' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Tag' => [
'description' => 'The tags that are attached to the application group.',
'type' => 'array',
'items' => [
'description' => 'A tag that is attached to the application group.',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The tag key of the application group.', 'type' => 'string', 'example' => 'tagKey1', 'title' => ''],
'Value' => ['description' => 'The tag value of the application group.', 'type' => 'string', 'example' => 'tagValue1', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'TemplateIds' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'TemplateId' => [
'description' => 'The IDs of the alert templates.',
'type' => 'array',
'items' => ['description' => 'The alert template applied to the application group.', 'type' => 'string', 'example' => '92****', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'ResourceGroupId' => ['description' => 'The ID of the resource group.', 'type' => 'string', 'example' => 'rg-aek2hopjh*******', 'title' => ''],
'TemplateInfos' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'TemplateInfo' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'EffectTime' => ['description' => 'The effective period.', 'type' => 'integer', 'format' => 'int64', 'example' => '1603181891000', 'title' => ''],
'TemplateId' => ['description' => 'The ID of the alert template.', 'type' => 'string', 'example' => '123***', 'title' => ''],
'Ver' => ['description' => 'The version of the alert template.', 'type' => 'string', 'example' => '0', 'title' => ''],
],
'description' => 'The information about an alert template.',
'title' => '',
'example' => '',
],
'description' => 'The information about the alert templates.',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'AccessForbidden', 'errorMessage' => 'The X.509 certificate or cms access key ID provided does not exist in our records.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'Throttli∂ngException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'DescribeMonitorGroups',
'description' => 'This topic provides an example of how to query a list of application groups. The response shows that two application groups are returned: `testGroup124` and `test123`.',
'requestParamsDescription' => 'For more information about common parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-01-10T03:06:44.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2022-11-14T08:13:59.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2022-04-21T09:50:30.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '60', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitorGroups'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeMonitorGroups',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F02B299A-D374-4595-9F55-7534D604F132\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 30,\\n \\"Total\\": 10,\\n \\"Resources\\": {\\n \\"Resource\\": [\\n {\\n \\"Type\\": \\"custom\\",\\n \\"GroupFounderTagValue\\": \\"GroupValue1\\",\\n \\"BindUrl\\": \\"https://aliyun.com\\",\\n \\"GroupName\\": \\"test123\\",\\n \\"GroupId\\": 12345,\\n \\"ServiceId\\": \\"49****\\",\\n \\"DynamicTagRuleId\\": \\"6b882d9a-5117-42e2-9d0c-4749a0c6****\\",\\n \\"GmtCreate\\": 1603181891000,\\n \\"GroupFounderTagKey\\": \\"GroupKey1\\",\\n \\"GmtModified\\": 1603181891000,\\n \\"ContactGroups\\": {\\n \\"ContactGroup\\": [\\n {\\n \\"Name\\": \\"CloudMonitor\\"\\n }\\n ]\\n },\\n \\"Tags\\": {\\n \\"Tag\\": [\\n {\\n \\"Key\\": \\"tagKey1\\",\\n \\"Value\\": \\"tagValue1\\"\\n }\\n ]\\n },\\n \\"TemplateIds\\": {\\n \\"TemplateId\\": [\\n \\"92****\\"\\n ]\\n },\\n \\"ResourceGroupId\\": \\"rg-aek2hopjh*******\\",\\n \\"TemplateInfos\\": {\\n \\"TemplateInfo\\": [\\n {\\n \\"EffectTime\\": 1603181891000,\\n \\"TemplateId\\": \\"123***\\",\\n \\"Ver\\": \\"0\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeMonitorResourceQuotaAttribute' => [
'summary' => 'Queries the quotas of various CloudMonitor resources.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'ShowUsed',
'in' => 'query',
'schema' => ['description' => 'Specifies whether the response includes used quotas. Valid values:'."\n"
.'- true (default): Included.'."\n"
.'- false: Not included.', 'type' => 'boolean', 'required' => false, 'default' => 'true', 'example' => 'true', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '31BC7201-00F2-47B2-B7B9-6A173076ACE', 'title' => ''],
'ResourceQuota' => [
'description' => 'The quota details of CloudMonitor.',
'type' => 'object',
'properties' => [
'SuitInfo' => ['description' => 'The current edition of CloudMonitor. Valid values:'."\n"
.'- free: Free Edition.'."\n"
.'- pro: Pro Edition.'."\n"
.'- cms_post: pay-as-you-go.', 'type' => 'string', 'example' => 'pro', 'title' => ''],
'InstanceId' => ['description' => 'The subscription plan ID.', 'type' => 'string', 'example' => 'cms_edition-cn-n6w20rn****', 'title' => ''],
'ExpireTime' => ['description' => 'The expiration time of the plan.', 'type' => 'string', 'example' => '2021-02-28', 'title' => ''],
'SiteMonitorEcsProbe' => [
'description' => 'The quota for site monitoring ECS detection points.',
'type' => 'object',
'properties' => [
'QuotaLimit' => ['description' => 'The total quota for site monitoring ECS detection points.'."\n"
."\n"
.'> The maximum number of ECS detection points that can be selected for a single site monitoring task.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
'QuotaPackage' => ['description' => 'The quota for site monitoring ECS detection points included in the plan.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
'QuotaUsed' => ['description' => 'The used quota for site monitoring ECS detection points in the plan.'."\n"
."\n"
.'> The total number of ECS detection points across all site monitoring tasks that have been created.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
],
'title' => '',
'example' => '',
],
'SiteMonitorOperatorProbe' => [
'description' => 'The quota for site monitoring carrier detection points.',
'type' => 'object',
'properties' => [
'QuotaLimit' => ['description' => 'The total quota for site monitoring carrier detection points.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
'QuotaPackage' => ['description' => 'The quota for site monitoring carrier detection points included in the plan.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
'QuotaUsed' => ['description' => 'The used quota for site monitoring carrier detection points in the plan.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
],
'title' => '',
'example' => '',
],
'SiteMonitorTask' => [
'description' => 'The quota for site monitoring tasks.',
'type' => 'object',
'properties' => [
'QuotaLimit' => ['description' => 'The total quota for site monitoring tasks. Unit: count.', 'type' => 'integer', 'format' => 'int32', 'example' => '25', 'title' => ''],
'QuotaPackage' => ['description' => 'The quota for site monitoring tasks included in the plan. Unit: count.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
'QuotaUsed' => ['description' => 'The used quota for site monitoring tasks in the plan. Unit: count.', 'type' => 'integer', 'format' => 'int32', 'example' => '15', 'title' => ''],
],
'title' => '',
'example' => '',
],
'SiteMonitorBrowser' => [
'description' => 'The quota for browser-based monitoring tasks.',
'type' => 'object',
'properties' => [
'QuotaLimit' => ['description' => 'The total quota for browser-based monitoring tasks. Unit: count.', 'type' => 'integer', 'format' => 'int32', 'example' => '50', 'title' => ''],
'QuotaPackage' => ['description' => 'The quota for browser-based monitoring tasks included in the plan. Unit: count.', 'type' => 'integer', 'format' => 'int32', 'example' => '50', 'title' => ''],
'QuotaUsed' => ['description' => 'The used quota for browser-based monitoring tasks in the plan. Unit: count.', 'type' => 'integer', 'format' => 'int32', 'example' => '15', 'title' => ''],
],
'title' => '',
'example' => '',
],
'SiteMonitorMobile' => [
'description' => 'The quota for mobile monitoring tasks.',
'type' => 'object',
'properties' => [
'QuotaLimit' => ['description' => 'The total quota for mobile monitoring tasks. Unit: count.', 'type' => 'integer', 'format' => 'int32', 'example' => '50', 'title' => ''],
'QuotaPackage' => ['description' => 'The quota for mobile monitoring tasks included in the plan. Unit: count.', 'type' => 'integer', 'format' => 'int32', 'example' => '50', 'title' => ''],
'QuotaUsed' => ['description' => 'The used quota for mobile monitoring tasks in the plan. Unit: count.', 'type' => 'integer', 'format' => 'int32', 'example' => '15', 'title' => ''],
],
'title' => '',
'example' => '',
],
'CustomMonitor' => [
'description' => 'The quota for custom monitoring.',
'type' => 'object',
'properties' => [
'QuotaLimit' => ['description' => 'The total quota for custom monitoring time series. Unit: count.', 'type' => 'integer', 'format' => 'int32', 'example' => '1200', 'title' => ''],
'QuotaPackage' => ['description' => 'The quota for custom monitoring time series included in the plan. Unit: count.', 'type' => 'integer', 'format' => 'int32', 'example' => '1000', 'title' => ''],
'QuotaUsed' => ['description' => 'The used quota for custom monitoring time series in the plan. Unit: count.', 'type' => 'integer', 'format' => 'int32', 'example' => '8', 'title' => ''],
],
'title' => '',
'example' => '',
],
'EventMonitor' => [
'description' => 'The quota for event monitoring.',
'type' => 'object',
'properties' => [
'QuotaLimit' => ['description' => 'The total quota for event monitoring. Unit: 10,000.', 'type' => 'integer', 'format' => 'int32', 'example' => '55', 'title' => ''],
'QuotaPackage' => ['description' => 'The quota for event monitoring included in the plan. Unit: 10,000.', 'type' => 'integer', 'format' => 'int32', 'example' => '50', 'title' => ''],
'QuotaUsed' => ['description' => 'The used quota for event monitoring in the plan. Unit: 10,000.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
],
'title' => '',
'example' => '',
],
'LogMonitor' => [
'description' => 'The quota for Log Monitoring.',
'type' => 'object',
'properties' => [
'QuotaLimit' => ['description' => 'The total quota for Log Monitoring. Unit: MB/min.', 'type' => 'integer', 'format' => 'int32', 'example' => '150', 'title' => ''],
'QuotaPackage' => ['description' => 'The quota for Log Monitoring included in the plan. Unit: MB/min.', 'type' => 'integer', 'format' => 'int32', 'example' => '150', 'title' => ''],
'QuotaUsed' => ['description' => 'The used quota for Log Monitoring in the plan. Unit: MB/min.', 'type' => 'integer', 'format' => 'int32', 'example' => '80', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Api' => [
'description' => 'The API quota.',
'type' => 'object',
'properties' => [
'QuotaLimit' => ['description' => 'The total API quota. Unit: 10,000 calls.', 'type' => 'integer', 'format' => 'int32', 'example' => '500', 'title' => ''],
'QuotaPackage' => ['description' => 'The API quota included in the plan. Unit: 10,000 calls.', 'type' => 'integer', 'format' => 'int32', 'example' => '500', 'title' => ''],
'QuotaUsed' => ['description' => 'The used API quota in the plan. Unit: calls.', 'type' => 'integer', 'format' => 'int32', 'example' => '9987', 'title' => ''],
],
'title' => '',
'example' => '',
],
'SMS' => [
'description' => 'The quota for alert text message packages.',
'type' => 'object',
'properties' => [
'QuotaLimit' => ['description' => 'The total quota for alert text messages. Unit: messages.', 'type' => 'integer', 'format' => 'int32', 'example' => '550', 'title' => ''],
'QuotaPackage' => ['description' => 'The quota for alert text message packages. Unit: messages.', 'type' => 'integer', 'format' => 'int32', 'example' => '500', 'title' => ''],
'QuotaUsed' => ['description' => 'The used quota for alert text message packages. Unit: messages.', 'type' => 'integer', 'format' => 'int32', 'example' => '38', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Phone' => [
'description' => 'The quota for alert phone call packages.',
'type' => 'object',
'properties' => [
'QuotaLimit' => ['description' => 'The total quota for alert phone calls. Unit: calls.', 'type' => 'integer', 'format' => 'int32', 'example' => '550', 'title' => ''],
'QuotaPackage' => ['description' => 'The quota for alert phone call packages. Unit: calls.', 'type' => 'integer', 'format' => 'int32', 'example' => '500', 'title' => ''],
'QuotaUsed' => ['description' => 'The used quota for alert phone call packages. Unit: calls.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''],
],
'title' => '',
'example' => '',
],
'EnterpriseQuota' => [
'description' => 'The quota details of Hybrid Cloud Monitoring.',
'type' => 'object',
'properties' => [
'SuitInfo' => ['description' => 'The description of Hybrid Cloud Monitoring.', 'type' => 'string', 'example' => 'ENTERPRISE', 'title' => ''],
'InstanceId' => ['description' => 'The instance ID of Hybrid Cloud Monitoring.', 'type' => 'string', 'example' => 'cms_enterprise_public_cn-7mz27pd****', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Query cloudMonitor resource quotas',
'requestParamsDescription' => ' For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-10-07T08:33:21.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitorResourceQuotaAttribute'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeMonitorResourceQuotaAttribute',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"31BC7201-00F2-47B2-B7B9-6A173076ACE\\",\\n \\"ResourceQuota\\": {\\n \\"SuitInfo\\": \\"pro\\",\\n \\"InstanceId\\": \\"cms_edition-cn-n6w20rn****\\",\\n \\"ExpireTime\\": \\"2021-02-28\\",\\n \\"SiteMonitorEcsProbe\\": {\\n \\"QuotaLimit\\": 5,\\n \\"QuotaPackage\\": 5,\\n \\"QuotaUsed\\": 20\\n },\\n \\"SiteMonitorOperatorProbe\\": {\\n \\"QuotaLimit\\": 5,\\n \\"QuotaPackage\\": 5,\\n \\"QuotaUsed\\": 0\\n },\\n \\"SiteMonitorTask\\": {\\n \\"QuotaLimit\\": 25,\\n \\"QuotaPackage\\": 20,\\n \\"QuotaUsed\\": 15\\n },\\n \\"SiteMonitorBrowser\\": {\\n \\"QuotaLimit\\": 50,\\n \\"QuotaPackage\\": 50,\\n \\"QuotaUsed\\": 15\\n },\\n \\"SiteMonitorMobile\\": {\\n \\"QuotaLimit\\": 50,\\n \\"QuotaPackage\\": 50,\\n \\"QuotaUsed\\": 15\\n },\\n \\"CustomMonitor\\": {\\n \\"QuotaLimit\\": 1200,\\n \\"QuotaPackage\\": 1000,\\n \\"QuotaUsed\\": 8\\n },\\n \\"EventMonitor\\": {\\n \\"QuotaLimit\\": 55,\\n \\"QuotaPackage\\": 50,\\n \\"QuotaUsed\\": 2\\n },\\n \\"LogMonitor\\": {\\n \\"QuotaLimit\\": 150,\\n \\"QuotaPackage\\": 150,\\n \\"QuotaUsed\\": 80\\n },\\n \\"Api\\": {\\n \\"QuotaLimit\\": 500,\\n \\"QuotaPackage\\": 500,\\n \\"QuotaUsed\\": 9987\\n },\\n \\"SMS\\": {\\n \\"QuotaLimit\\": 550,\\n \\"QuotaPackage\\": 500,\\n \\"QuotaUsed\\": 38\\n },\\n \\"Phone\\": {\\n \\"QuotaLimit\\": 550,\\n \\"QuotaPackage\\": 500,\\n \\"QuotaUsed\\": 100\\n },\\n \\"EnterpriseQuota\\": {\\n \\"SuitInfo\\": \\"ENTERPRISE\\",\\n \\"InstanceId\\": \\"cms_enterprise_public_cn-7mz27pd****\\"\\n }\\n }\\n}","type":"json"}]',
'translator' => 'machine',
],
'DescribeMonitoringAgentAccessKey' => [
'summary' => 'Queries the AccessKey ID and AccessKey secret that are required to install the CloudMonitor agent on a third-party host.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'AccessKey' => ['description' => 'The AccessKey ID that is required to install the agent.', 'type' => 'string', 'example' => 'E7A27f9****', 'title' => ''],
'SecretKey' => ['description' => 'The AccessKey secret that is required to install the agent.', 'type' => 'string', 'example' => 'sBjNOUhLylrxMX-Xv1****', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'C0F655E9-D793-51E6-BD78-CABBCCFC1047', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeMonitoringAgentAccessKey',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitoringAgentAccessKey'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeMonitoringAgentAccessKey',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AccessKey\\": \\"E7A27f9****\\",\\n \\"SecretKey\\": \\"sBjNOUhLylrxMX-Xv1****\\",\\n \\"RequestId\\": \\"C0F655E9-D793-51E6-BD78-CABBCCFC1047\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"Message\\": \\"The specified resource is not found.\\"\\n}","type":"json"}]',
],
'DescribeMonitoringAgentConfig' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'EnableActiveAlert' => ['description' => 'The cloud services for which proactive alerting is enabled.', 'type' => 'string', 'example' => 'redis,rds,ecs', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'E9F4FA2A-54BE-4EF9-9D1D-1A0B1DC86B8D', 'title' => ''],
'AutoInstall' => ['description' => 'Indicates whether the CloudMonitor agent is automatically installed on existing Elastic Compute Service (ECS) instances. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'EnableInstallAgentNewECS' => ['description' => 'Indicates whether the CloudMonitor agent is automatically installed on newly purchased ECS instances. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified parameter is not valid.', 'description' => ''],
],
403 => [
['errorCode' => 'InvalidAuthorization', 'errorMessage' => 'The Request is not authorization.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeMonitoringAgentConfig',
'summary' => 'Queries the configurations of the CloudMonitor agent.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitoringAgentConfig'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeMonitoringAgentConfig',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"EnableActiveAlert\\": \\"redis,rds,ecs\\",\\n \\"RequestId\\": \\"E9F4FA2A-54BE-4EF9-9D1D-1A0B1DC86B8D\\",\\n \\"AutoInstall\\": true,\\n \\"Success\\": true,\\n \\"EnableInstallAgentNewECS\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\"\\n}","type":"json"}]',
],
'DescribeMonitoringAgentHosts' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'KeyWord',
'in' => 'query',
'schema' => ['description' => 'The keyword for a fuzzy search.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'host1'],
],
[
'name' => 'HostName',
'in' => 'query',
'schema' => ['description' => 'The hostname.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'hostNam1'],
],
[
'name' => 'InstanceIds',
'in' => 'query',
'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'i-a3d1q1pm2f9yr29e****'],
],
[
'name' => 'SerialNumbers',
'in' => 'query',
'schema' => ['description' => 'The serial number of the host.'."\n"
."\n"
.'A globally unique serial number is generated after the CloudMonitor agent is successfully installed on a host. Hosts that are not Alibaba Cloud instances do not have an instance ID, but have a serial number.'."\n"
."\n"
.'> Use this parameter to find a specific monitored host.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'a1ab31a3-1234-40f2-9e95-c8caa8f0****'],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page. Valid values:'."\n"
."\n"
.'- 10'."\n"
."\n"
.'- 20'."\n"
."\n"
.'- 50'."\n"
."\n"
.'- 100'."\n"
."\n"
.'> Alibaba Cloud does not limit the maximum value of this parameter. However, setting this parameter to a large value may cause a timeout.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '10'],
],
[
'name' => 'InstanceRegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the instance resides.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'cn-hangzhou'],
],
[
'name' => 'AliyunHost',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to filter for Alibaba Cloud Elastic Compute Service (ECS) instances. Valid values:'."\n"
."\n"
.'- true (default): Returns only ECS instances.'."\n"
."\n"
.'- false: Returns only hosts that are not ECS instances.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'true'],
],
[
'name' => 'Status',
'in' => 'query',
'schema' => ['description' => 'The status of the host. Valid values:'."\n"
."\n"
.'- Running: The host is running.'."\n"
."\n"
.'- Stopped: The host is stopped, the agent is not installed, or the agent installation failed.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'Running'],
],
[
'name' => 'SysomStatus',
'in' => 'query',
'schema' => ['description' => 'The status of SysOM. Valid values:'."\n"
."\n"
.'- installing: SysOM is being enabled.'."\n"
."\n"
.'- running: SysOM is running.'."\n"
."\n"
.'- stopped: SysOM is stopped.'."\n"
."\n"
.'- uninstalling: SysOM is being disabled.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'running'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response.',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '63EEBB2A-9E51-41E4-9E83-5DE7F3B292E0'],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A status code of 200 indicates a successful response.', 'type' => 'string', 'title' => '', 'example' => '200'],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => 'The Request is not authorization.'],
'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '10'],
'PageTotal' => ['description' => 'The number of pages.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '50'],
'Total' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '10'],
'Hosts' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Host' => [
'description' => 'The list of hosts.',
'type' => 'array',
'items' => [
'description' => 'The host.',
'type' => 'object',
'properties' => [
'SerialNumber' => ['description' => 'The serial number of the host. Hosts that are not Alibaba Cloud instances do not have an instance ID, but have a serial number.'."\n"
."\n"
.'> Use this parameter to find a specific monitored host.', 'type' => 'string', 'title' => '', 'example' => 'x12335-6cc8-4a22-9f21-1a00a719****'],
'NatIp' => ['description' => 'The NAT IP address.', 'type' => 'string', 'title' => '', 'example' => '192.168.XX.XX'],
'HostName' => ['description' => 'The hostname.', 'type' => 'string', 'title' => '', 'example' => 'hostIP'],
'AliUid' => ['description' => 'The ID of the Alibaba Cloud account.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '103201326074****'],
'NetworkType' => ['description' => 'The network type.', 'type' => 'string', 'title' => '', 'example' => 'vpc'],
'InstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'title' => '', 'example' => 'i-a2d5q7pm3f9yr212****'],
'isAliyunHost' => ['description' => 'Indicates whether the host is an Alibaba Cloud instance. Valid values:'."\n"
."\n"
.'- true: The host is an Alibaba Cloud instance.'."\n"
."\n"
.'- false: The host is not an Alibaba Cloud instance.', 'type' => 'boolean', 'title' => '', 'example' => 'true'],
'EipAddress' => ['description' => 'The elastic IP address (EIP).', 'type' => 'string', 'title' => '', 'example' => '192.168.XX.XX'],
'AgentVersion' => ['description' => 'The agent version.', 'type' => 'string', 'title' => '', 'example' => '3.4.6'],
'IpGroup' => ['description' => 'The IP address of the host.'."\n"
."\n"
.'> Multiple IP addresses are separated by commas (,).', 'type' => 'string', 'title' => '', 'example' => '192.168.XX.XX'],
'EipId' => ['description' => 'The ID of the EIP.', 'type' => 'string', 'title' => '', 'example' => 'eip-bp16i16k9gcezyfrp****'],
'Region' => ['description' => 'The region.', 'type' => 'string', 'title' => '', 'example' => 'cn-hangzhou'],
'InstanceTypeFamily' => ['description' => 'The ECS instance type family.', 'type' => 'string', 'title' => '', 'example' => 'ecs.n4'],
'OperatingSystem' => ['description' => 'The operating system.', 'type' => 'string', 'title' => '', 'example' => 'Linux'],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeMonitoringAgentHosts',
'summary' => 'You can call the DescribeMonitoringAgentHosts operation to query a list of all hosts, regardless of whether the CloudMonitor agent is installed.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-05-25T09:45:15.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2022-11-29T02:45:43.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitoringAgentHosts'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeMonitoringAgentHosts',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"63EEBB2A-9E51-41E4-9E83-5DE7F3B292E0\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"PageTotal\\": 50,\\n \\"Total\\": 10,\\n \\"Hosts\\": {\\n \\"Host\\": [\\n {\\n \\"SerialNumber\\": \\"x12335-6cc8-4a22-9f21-1a00a719****\\",\\n \\"NatIp\\": \\"192.168.XX.XX\\",\\n \\"HostName\\": \\"hostIP\\",\\n \\"AliUid\\": 0,\\n \\"NetworkType\\": \\"vpc\\",\\n \\"InstanceId\\": \\"i-a2d5q7pm3f9yr212****\\",\\n \\"isAliyunHost\\": true,\\n \\"EipAddress\\": \\"192.168.XX.XX\\",\\n \\"AgentVersion\\": \\"3.4.6\\",\\n \\"IpGroup\\": \\"192.168.XX.XX\\",\\n \\"EipId\\": \\"eip-bp16i16k9gcezyfrp****\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"InstanceTypeFamily\\": \\"ecs.n4\\",\\n \\"OperatingSystem\\": \\"Linux\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeMonitoringAgentProcesses' => [
'summary' => 'Call the DescribeMonitoringAgentProcesses operation to query the list of processes for a specified resource.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'i-hp3hl3cx1pbahzy8****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A status code of 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'C11C0E85-6862-4F25-8D66-D6A5E0882984', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'NodeProcesses' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'NodeProcess' => [
'description' => 'The information about the processes.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ProcessName' => ['description' => 'The name of the process.', 'type' => 'string', 'example' => 'java', 'title' => ''],
'ProcessId' => ['description' => 'The ID of the process.', 'type' => 'integer', 'format' => 'int64', 'example' => '4550102', 'title' => ''],
'GroupId' => ['description' => 'The ID of the application group.', 'type' => 'string', 'example' => '239708487', 'title' => ''],
'Command' => ['description' => 'The command.', 'type' => 'string', 'example' => '/bin/sh', 'title' => ''],
'ProcessUser' => ['description' => 'The user that runs the process.', 'type' => 'string', 'example' => 'admin', 'title' => ''],
'InstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'host-gdsmvinvmh6fu', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeMonitoringAgentProcesses',
'description' => '> Before you call this operation, you must call the CreateMonitoringAgentProcess operation to create a process monitoring task. For more information, see [CreateMonitoringAgentProcess](~~2513212~~).'."\n"
."\n"
.'This topic provides an example of how to query the list of processes for the resource i-hp3hl3cx1pbahzy8\\*\\*\\*\\*. The response shows the details of the Nginx and HTTP processes.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitoringAgentProcesses'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeMonitoringAgentProcesses',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"C11C0E85-6862-4F25-8D66-D6A5E0882984\\",\\n \\"Success\\": true,\\n \\"NodeProcesses\\": {\\n \\"NodeProcess\\": [\\n {\\n \\"ProcessName\\": \\"java\\",\\n \\"ProcessId\\": 4550102,\\n \\"GroupId\\": \\"239708487\\",\\n \\"Command\\": \\"/bin/sh\\",\\n \\"ProcessUser\\": \\"admin\\",\\n \\"InstanceId\\": \\"host-gdsmvinvmh6fu\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'extraInfo' => ' ',
],
'DescribeMonitoringAgentStatuses' => [
'summary' => 'Queries the running status of the CloudMonitor agent by calling the DescribeMonitoringAgentStatuses operation.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'InstanceIds',
'in' => 'query',
'schema' => ['description' => 'The instance IDs. Separate multiple instance IDs with commas (,).'."\n", 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'i-hp3dunahluwajv6f****', 'title' => ''],
],
[
'name' => 'HostAvailabilityTaskId',
'in' => 'query',
'schema' => ['description' => 'The ID of the availability monitoring task.'."\n", 'type' => 'string', 'required' => false, 'example' => '126****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response parameters.'."\n",
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.'."\n", 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '6F8371DF-AB81-41B8-9E1B-5493B3FF0E4F', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'* true'."\n"
.'* false'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'NodeStatusList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'NodeStatus' => [
'description' => 'The host status information.'."\n",
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The status of the CloudMonitor agent. Valid values:'."\n"
."\n"
.'* running: The CloudMonitor agent is running.'."\n"
.'* stopped: The CloudMonitor agent is stopped.'."\n"
.'* installing: The CloudMonitor agent is being installed.'."\n"
.'* install_faild: The CloudMonitor agent fails to be installed.'."\n"
.'* abnormal: The CloudMonitor agent is not properly installed.'."\n"
.'* not_installed: The CloudMonitor agent is not installed.'."\n", 'type' => 'string', 'example' => 'running', 'title' => ''],
'InstanceId' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'example' => 'i-hp3dunahluwajv6f****', 'title' => ''],
'AutoInstall' => ['description' => 'Indicates whether the CloudMonitor agent is automatically installed. Valid values:'."\n"
."\n"
.'* true: The CloudMonitor agent is automatically installed.'."\n"
.'* false: The CloudMonitor agent is not automatically installed.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'OsMonitorStatus' => ['description' => 'The status of SysOM. Valid values:'."\n"
."\n"
.'* installing: SysOM is being installed.'."\n"
.'* running: SysOM is running.'."\n"
.'* stopped: SysOM is stopped.'."\n"
.'* uninstalling: SysOM is being uninstalled.'."\n", 'type' => 'string', 'example' => 'running', 'title' => ''],
'OsMonitorErrorCode' => ['description' => 'The error status of SysOM. Valid values:'."\n"
."\n"
.'* `install_fail`: SysOM fails to be installed or an unknown error occurs.'."\n"
.'* `install_assist_invalid`: SysOM fails to be installed because the status of Cloud Assistant is invalid.'."\n"
.'* `install_assist_command_fail`: SysOM fails to be installed because the installation command fails to run.'."\n"
.'* `uninstall_fail`: SysOM fails to be uninstalled or an unknown error occurs.'."\n"
.'* `uninstall_assist_invalid`: SysOM fails to be uninstalled because the status of Cloud Assistant is invalid.'."\n"
.'* `uninstall_assist_command_fail`: SysOM fails to be uninstalled because the uninstallation command fails to run.'."\n", 'type' => 'string', 'example' => 'install_fail', 'title' => ''],
'OsMonitorErrorDetail' => ['description' => 'The details of the execution error. Valid values:'."\n"
."\n"
.'* `Command.ErrorCode.Fail.Downlaod.REGIN_ID`: Failed to obtain the region ID.'."\n"
.'* `Command.ErrorCode.Fail.Downlaod.SYSAK`: Failed to download the .rpm package of System Analyse Kit (SysAK).'."\n"
.'* `Command.ErrorCode.Fail.Downlaod.CMON_FILE`: Failed to download the CMON file.'."\n"
.'* `Command.ErrorCode.Fail.Downlaod.BTF`: Failed to start SysAK because the BTF file is not found.'."\n"
.'* `Command.ErrorCode.Fail.Start.SYSAK`: Failed to start SysAK due to an unknown error.'."\n", 'type' => 'string', 'example' => 'Command.ErrorCode.Fail.Downlaod.REGIN_ID', 'title' => ''],
'OsMonitorVersion' => ['description' => 'The SysOM version.'."\n", 'type' => 'string', 'example' => '1.3.0-12', 'title' => ''],
'OsMonitorConfig' => ['description' => 'Indicates whether the SysAK monitoring feature is enabled.`` Valid values:'."\n"
."\n"
.'* `true`: The SysAK monitoring feature is enabled.'."\n"
.'* `false`: the SysAK monitoring feature is disabled.'."\n", 'type' => 'string', 'example' => '{"sysak":true}', 'title' => ''],
'AgentInstallErrorCode' => ['description' => 'The error code returned when the CloudMonitor agent is installed. Valid values:'."\n"
.'- Common.Timeout: The installation timed out.'."\n"
.'- Common.SLR: The service-linked role for CloudMonitor is unauthorized.'."\n"
.'- Common.OS: The operating system is not supported.'."\n"
.'- Assist.Invalid: Cloud Assistant is not running.'."\n"
.'- Assist.Invoke: An error occurred when the installation program is started.'."\n"
.'- Assist.Execute: An error occurred when the installation program is running.', 'type' => 'string', 'example' => 'Assist.Invalid', 'title' => ''],
'LoongCollectorVersion' => ['description' => 'LoongCollector Version', 'type' => 'string', 'example' => '0.1.0', 'title' => ''],
'LoongCollectorStatus' => [
'description' => 'LoongCollector Status',
'enumValueTitles' => ['running' => 'Normal', 'stopped' => 'Stopped'],
'type' => 'string',
'example' => 'running',
'title' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Query the running status of the CloudMonitor agent',
'description' => 'This topic describes how to query the status of the CloudMonitor agent that is installed on the `i-hp3dunahluwajv6f****` instance. The result indicates that the CloudMonitor agent is in the `running` state.'."\n",
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).'."\n",
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-11-24T04:01:32.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-07-19T08:42:03.000Z', 'description' => 'Response parameters changed, Response parameters changed'],
['createdAt' => '2023-05-04T09:06:41.000Z', 'description' => 'Response parameters changed, Response parameters changed'],
['createdAt' => '2022-11-29T02:45:43.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitoringAgentStatuses'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeMonitoringAgentStatuses',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"6F8371DF-AB81-41B8-9E1B-5493B3FF0E4F\\",\\n \\"Success\\": true,\\n \\"NodeStatusList\\": {\\n \\"NodeStatus\\": [\\n {\\n \\"Status\\": \\"running\\",\\n \\"InstanceId\\": \\"i-hp3dunahluwajv6f****\\",\\n \\"AutoInstall\\": true,\\n \\"OsMonitorStatus\\": \\"running\\",\\n \\"OsMonitorErrorCode\\": \\"install_fail\\",\\n \\"OsMonitorErrorDetail\\": \\"Command.ErrorCode.Fail.Downlaod.REGIN_ID\\",\\n \\"OsMonitorVersion\\": \\"1.3.0-12\\",\\n \\"OsMonitorConfig\\": \\"{\\\\\\"sysak\\\\\\":true}\\",\\n \\"AgentInstallErrorCode\\": \\"Assist.Invalid\\",\\n \\"LoongCollectorVersion\\": \\"0.1.0\\",\\n \\"LoongCollectorStatus\\": \\"running\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeMonitoringConfig' => [
'summary' => 'Queries the global configurations of the CloudMonitor agent.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'F35654DB-0C9D-4FB3-903F-479BA7663061', 'title' => ''],
'AutoInstall' => ['description' => 'Indicates whether the CloudMonitor agent is automatically installed on existing Elastic Compute Service (ECS) instances. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'EnableInstallAgentNewECS' => ['description' => 'Indicates whether the CloudMonitor agent is automatically installed on new ECS instances. Valid values: Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified parameter is not valid.', 'description' => ''],
],
403 => [
['errorCode' => 'InvalidAuthorization', 'errorMessage' => 'The Request is not authorization.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeMonitoringConfig',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitoringConfig'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeMonitoringConfig',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F35654DB-0C9D-4FB3-903F-479BA7663061\\",\\n \\"AutoInstall\\": false,\\n \\"Success\\": true,\\n \\"EnableInstallAgentNewECS\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\"\\n}","type":"json"}]',
],
'DescribeProductResourceTagKeyList' => [
'summary' => 'Call the DescribeProductResourceTagKeyList operation to query all tag keys of cloud resources in a specified region.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['description' => 'The token that is used to retrieve the next page of results.', 'type' => 'string', 'required' => false, 'example' => 'dbc2826f237e****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A value of 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'The request processing has failed due to some unknown error.', 'title' => ''],
'NextToken' => ['description' => 'The token that is used to start the next query.', 'type' => 'string', 'example' => 'dbc2826f237e****', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '945ACAA9-89F2-4A62-8913-076FDEDAA8DB', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'TagKeys' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'TagKey' => [
'description' => 'The tag keys.',
'type' => 'array',
'items' => ['description' => 'The tag key.', 'type' => 'string', 'example' => 'tag_******', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeProductResourceTagKeyList',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeProductResourceTagKeyList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeProductResourceTagKeyList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The request processing has failed due to some unknown error.\\",\\n \\"NextToken\\": \\"dbc2826f237e****\\",\\n \\"RequestId\\": \\"945ACAA9-89F2-4A62-8913-076FDEDAA8DB\\",\\n \\"Success\\": true,\\n \\"TagKeys\\": {\\n \\"TagKey\\": [\\n \\"tag_******\\"\\n ]\\n }\\n}","type":"json"}]',
'extraInfo' => ' ',
],
'DescribeProductsOfActiveMetricRule' => [
'summary' => 'Queries the cloud services for which the initiative alert feature is enabled.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'F82E6667-7811-4BA0-842F-5B2DC42BBAAD', 'title' => ''],
'Datapoints' => ['description' => 'The information about the services for which the initiative alert feature is enabled. Services are separated with commas (,). Valid values:'."\n"
."\n"
.'- ECS: Elastic Compute Service (ECS)'."\n"
."\n"
.'- rds: ApsaraDB RDS'."\n"
."\n"
.'- slb: Server Load Balancer (SLB)'."\n"
."\n"
.'- redis\\_standard: Redis Open-Source Edition (standard architecture)'."\n"
."\n"
.'- redis\\_sharding: Redis Open-Source Edition (cluster architecture)'."\n"
."\n"
.'- redis\\_splitrw: Redis Open-Source Edition (read/write splitting architecture)'."\n"
."\n"
.'- mongodb: ApsaraDB for MongoDB of the replica set architecture'."\n"
."\n"
.'- mongodb\\_sharding: ApsaraDB for MongoDB of the sharded cluster architecture'."\n"
."\n"
.'- hbase: ApsaraDB for HBase'."\n"
."\n"
.'- elasticsearch: Elasticsearch'."\n"
."\n"
.'- opensearch: OpenSearch', 'type' => 'string', 'example' => 'ecs,rds', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true: The request was successful.'."\n"
."\n"
.'- false: The request failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'AllProductInitMetricRuleList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'AllProductInitMetricRule' => [
'description' => 'The information about the services for which one-click alert is enabled.',
'type' => 'array',
'items' => [
'description' => 'The information about the services for which one-click alert is enabled.',
'type' => 'object',
'properties' => [
'Product' => ['description' => 'The abbreviation of the service name.', 'type' => 'string', 'example' => 'ecs', 'title' => ''],
'AlertInitConfigList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'AlertInitConfig' => [
'description' => 'The initial alert rules that are generated after one-click alert is enabled for a service.',
'type' => 'array',
'items' => [
'description' => 'The initial alert rules that are generated after one-click alert is enabled for a service.',
'type' => 'object',
'properties' => [
'MetricName' => ['description' => 'The metric name. For more information, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'example' => 'cpu_total', 'title' => ''],
'EvaluationCount' => ['description' => 'The consecutive number of times for which the metric value meets the alert condition before an alert is triggered.', 'type' => 'string', 'example' => '3', 'title' => ''],
'Namespace' => ['description' => 'The namespace of the service. For more information, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'example' => 'acs_rds_dashboard', 'title' => ''],
'Threshold' => ['description' => 'The alert threshold.', 'type' => 'string', 'example' => '90', 'title' => ''],
'Statistics' => ['description' => 'The method used to calculate metric values that trigger alerts. For more information, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'example' => 'Average', 'title' => ''],
'Period' => ['description' => 'The aggregation period of monitoring data. Unit: minutes. For more information, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'example' => '1m', 'title' => ''],
'Level' => [
'description' => 'The alert level.'."\n"
."\n"
.'Valid values:'."\n"
."\n"
.'- INFO'."\n"
."\n"
.' '."\n"
."\n"
.' '."\n"
."\n"
.' '."\n"
."\n"
.'- WARN'."\n"
."\n"
.' '."\n"
."\n"
.' '."\n"
."\n"
.' '."\n"
."\n"
.'- CRITICAL'."\n"
."\n"
.' '."\n"
."\n"
.' '."\n"
."\n"
.' ',
'enumValueTitles' => ['INFO' => '', 'WARN' => '', 'CRITICAL' => ''],
'type' => 'string',
'example' => 'CRITICAL',
'title' => '',
],
'ComparisonOperator' => [
'description' => 'The operator that is used to compare the metric value with the threshold for Warn-level alerts.'."\n"
."\n"
.'Valid values:'."\n"
."\n"
.'- LessThanThreshold: less than the threshold'."\n"
."\n"
.'- GreaterThanLastWeek: greater than the metric value at the same time last week'."\n"
."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold'."\n"
."\n"
.'- NotEqualToThreshold: does not equal to the threshold'."\n"
."\n"
.'- GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle'."\n"
."\n"
.'- GreaterThanYesterday: greater than the metric value at the same time yesterday'."\n"
."\n"
.'- LessThanYesterday: less than the metric value at the same time yesterday'."\n"
."\n"
.'- LessThanLastWeek: less than the metric value at the same time last week'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold'."\n"
."\n"
.'- GreaterThanThreshold: greater than the threshold'."\n"
."\n"
.'- LessThanLastPeriod: less than the metric value in the last monitoring cycle',
'enumValueTitles' => [
'LessThanThreshold' => '', 'GreaterThanLastWeek' => '', 'LessThanOrEqualToThreshold' => '', 'NotEqualToThreshold' => '', 'GreaterThanLastPeriod' => '', 'GreaterThanYesterday' => '', 'LessThanYesterday' => '', 'LessThanLastWeek' => '', 'GreaterThanOrEqualToThreshold' => '', 'GreaterThanThreshold' => '',
'LessThanLastPeriod' => '',
],
'type' => 'string',
'example' => 'GreaterThanOrEqualToThreshold',
'title' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified parameter is not valid.', 'description' => ''],
],
403 => [
['errorCode' => 'InvalidAuthorization', 'errorMessage' => 'The Request is not authorization.', 'description' => ''],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeProductsOfActiveMetricRule',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-10-25T07:41:17.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeProductsOfActiveMetricRule'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeProductsOfActiveMetricRule',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"F82E6667-7811-4BA0-842F-5B2DC42BBAAD\\",\\n \\"Datapoints\\": \\"ecs,rds\\",\\n \\"Success\\": true,\\n \\"AllProductInitMetricRuleList\\": {\\n \\"AllProductInitMetricRule\\": [\\n {\\n \\"Product\\": \\"ecs\\",\\n \\"AlertInitConfigList\\": {\\n \\"AlertInitConfig\\": [\\n {\\n \\"MetricName\\": \\"cpu_total\\",\\n \\"EvaluationCount\\": \\"3\\",\\n \\"Namespace\\": \\"acs_rds_dashboard\\",\\n \\"Threshold\\": \\"90\\",\\n \\"Statistics\\": \\"Average\\",\\n \\"Period\\": \\"1m\\",\\n \\"Level\\": \\"CRITICAL\\",\\n \\"ComparisonOperator\\": \\"GreaterThanOrEqualToThreshold\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeProjectMeta' => [
'summary' => 'Calls the DescribeProjectMeta operation to query the list of cloud services that support time series monitoring metrics in CloudMonitor.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Labels',
'in' => 'query',
'schema' => ['description' => 'The tags. Tags are used to filter alerts, and each alert can be marked with special tags.'."\n"
."\n"
.'Currently, only filtering by product is supported. That is, the `name` is `product`. For example: {"name":"product","value":"ECS"}.'."\n"
.'>We do not recommend that you use the special tags for the CloudMonitor console in Alibaba Cloud.'."\n", 'type' => 'string', 'required' => false, 'example' => '[{"name":"product","value":"ECS"}]', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.'."\n"
."\n"
.'Valid values: 1 to 100.'."\n"
."\n"
.'Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.'."\n"
."\n"
.'Valid values: 1 to 10000.'."\n"
."\n"
.'Default value: 30.'."\n"
."\n"
.'>Currently, Alibaba Cloud does not impose a limit on this parameter. If you need to obtain all results, set the page size to a large value.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '4C2061B2-3B1B-43BF-A4A4-C53426F479C0', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values: true and false. The value true indicates success, and the value false indicates failure.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Code' => ['description' => 'The status code.'."\n"
.'>The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'string', 'example' => '5', 'title' => ''],
'PageNumber' => ['description' => 'The page number.', 'type' => 'string', 'example' => '1', 'title' => ''],
'Total' => ['description' => 'The total number of entries.', 'type' => 'string', 'example' => '12', 'title' => ''],
'Resources' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Resource' => [
'description' => 'The information about the cloud service.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Namespace' => ['description' => 'The namespace that is used to distinguish products. Format: `acs_Service abbreviation`. For more information, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'example' => 'acs_cdn', 'title' => ''],
'Description' => ['description' => 'The description.', 'type' => 'string', 'example' => 'CDN', 'title' => ''],
'Labels' => ['description' => 'The tags. Tags are used to filter alerts, and each alert can be marked with special tags.'."\n"
."\n"
.'For example, the tags indicate the specification of the product to which the alert belongs, and whether the alert can be set. Format: `[{"name":"Tag name","value":"Tag value"}、{"name":"Tag name","value":"Tag value"}]`. The following common tags are supported:'."\n"
."\n"
.'- alertUnit: the unit of the alert.'."\n"
.' To prevent the unit of the original reported data from being too small, which causes the value entered in an alert rule to be too large, the `alertUnit` tag is added. Currently, this tag is mainly applied to the CloudMonitor console.'."\n"
."\n"
.'- minAlertPeriod: the minimum reporting period. The time interval at which monitoring data is reported. The default value is 1 minute.'."\n"
."\n"
.'- metricCategory: the specification of the product. For example, kvstore_sharding.'."\n"
.' Some Alibaba Cloud products have different specifications that are defined in the same namespace, and this parameter is used to distinguish them.'."\n"
."\n"
.'- is_alarm: indicates whether alert rules can be set.'."\n"
.' We do not recommend that you use the special tags for the CloudMonitor console in Alibaba Cloud.'."\n"
."\n", 'type' => 'string', 'example' => '[{"metricCategory":ecs}]', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Queries the list of cloud services that support time series monitoring metrics in CloudMonitor',
'description' => 'Obtains the information about the connected cloud services, including the description, namespace, and tags of each service.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeProjectMeta'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4C2061B2-3B1B-43BF-A4A4-C53426F479C0\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"PageSize\\": \\"5\\",\\n \\"PageNumber\\": \\"1\\",\\n \\"Total\\": \\"12\\",\\n \\"Resources\\": {\\n \\"Resource\\": [\\n {\\n \\"Namespace\\": \\"acs_cdn\\",\\n \\"Description\\": \\"CDN\\",\\n \\"Labels\\": \\"[{\\\\\\"metricCategory\\\\\\":ecs}]\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeSiteInstantMonitorLog' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'parameters' => [
[
'name' => 'TaskIds',
'in' => 'query',
'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Length',
'in' => 'query',
'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'Filter',
'in' => 'query',
'schema' => ['type' => 'string'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'NextToken' => ['type' => 'string'],
'Data' => ['type' => 'string'],
'RequestId' => ['type' => 'string'],
'Success' => ['type' => 'string'],
'Code' => ['type' => 'string'],
'Message' => ['type' => 'string'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'Forbidden', 'errorMessage' => 'You are not authorized to operate the specified resource.', 'description' => 'No permission, please use RAM to authorize'],
],
406 => [
['errorCode' => 'ExceedingQuota', 'errorMessage' => 'Exceeding quota limits.', 'description' => 'The number of tasks exceeds the limit'],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'ThrottlingException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'changeSet' => [
['createdAt' => '2021-12-01T09:57:02.000Z', 'description' => 'OpenAPI offline'],
],
'flowControl' => [
'flowControlList' => [],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"\\",\\n \\"Data\\": \\"\\",\\n \\"RequestId\\": \\"\\",\\n \\"Success\\": \\"\\",\\n \\"Code\\": \\"\\",\\n \\"Message\\": \\"\\"\\n}","type":"json"}]',
],
'DescribeSiteMonitorAttribute' => [
'summary' => 'Queries the details of a site monitoring task by calling the DescribeSiteMonitorAttribute operation.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'TaskId',
'in' => 'query',
'schema' => ['description' => 'The ID of the monitoring task.', 'type' => 'string', 'required' => true, 'example' => 'cc641dff-c19d-45f3-ad0a-818a0c4f****', 'title' => ''],
],
[
'name' => 'IncludeAlert',
'in' => 'query',
'schema' => ['description' => 'Specifies whether the returned task details include alert rules.'."\n"
."\n"
.'- true: Alert rules are returned.'."\n"
.'- false (default): Alert rules are not returned.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The response parameters.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
.'>The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'successful', 'title' => ''],
'MetricRules' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'MetricRule' => [
'description' => 'The alert rules of the monitoring task.',
'type' => 'array',
'items' => [
'description' => 'The alert rules of the monitoring task.',
'type' => 'object',
'properties' => [
'ActionEnable' => ['description' => 'The status of the alert rule. Valid values:'."\n"
."\n"
.'- true: Enabled.'."\n"
.'- false: Disabled.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'AlarmActions' => ['description' => 'The alert contact group to which alert notifications are sent.', 'type' => 'string', 'example' => 'CloudMonitor', 'title' => ''],
'ComparisonOperator' => ['description' => 'The comparison operator used in the alert rule. Valid values:'."\n"
."\n"
.'- `>=`'."\n"
.'- `>`'."\n"
.'- `<=`'."\n"
.'- `<`'."\n"
.'- `=`'."\n"
.'- `!=`'."\n"
.'- GreaterThanYesterday: greater than the value at the same time yesterday.'."\n"
.'- LessThanYesterday: less than the value at the same time yesterday.'."\n"
.'- GreaterThanLastWeek: greater than the value at the same time last week.'."\n"
.'- LessThanLastWeek: less than the value at the same time last week.'."\n"
.'- GreaterThanLastPeriod: greater than the value in the last period.'."\n"
.'- LessThanLastPeriod: less than the value in the last period.', 'type' => 'string', 'example' => 'GreaterThanYesterday', 'title' => ''],
'Dimensions' => ['description' => 'The dimensions associated with the alert rule.', 'type' => 'string', 'example' => '[{"taskId": "cc641dff-c19d-45f3-ad0a-818a0c4f****" }]', 'title' => ''],
'EvaluationCount' => ['description' => 'The number of alert retries.', 'type' => 'string', 'example' => '3', 'title' => ''],
'Expression' => ['description' => 'The expression of the alert rule.', 'type' => 'string', 'example' => '$Availability=30', 'title' => ''],
'Level' => ['description' => 'The severity level of the alert rule. Valid values:'."\n"
."\n"
.'- 1: Critical.'."\n"
."\n"
.'- 2: Warning.'."\n"
."\n"
.'- 3: Information.', 'type' => 'string', 'example' => '2', 'title' => ''],
'MetricName' => ['description' => 'The metric name.', 'type' => 'string', 'example' => 'Availability', 'title' => ''],
'Namespace' => ['description' => 'The namespace of the Alibaba Cloud service.', 'type' => 'string', 'example' => 'acs_networkmonitor', 'title' => ''],
'OkActions' => ['description' => 'The alert contact group that receives alert notifications.', 'type' => 'string', 'example' => '[ "CloudMonitor"]', 'title' => ''],
'Period' => ['description' => 'The time interval, which is typically the reporting period of the metric. Unit: seconds.'."\n"
."\n"
.'>If you set a statistical period, data is queried based on the specified period.', 'type' => 'string', 'example' => '15s', 'title' => ''],
'RuleId' => ['description' => 'The ID of the alert rule.', 'type' => 'string', 'example' => 'bf071ae_7b7aec3817b0fdf****', 'title' => ''],
'RuleName' => ['description' => 'The name of the alert rule.', 'type' => 'string', 'example' => 'rule1', 'title' => ''],
'StateValue' => ['description' => 'The alert status. Valid values:'."\n"
."\n"
.'- OK: Normal.'."\n"
."\n"
.'- ALARM: Alerting.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'Statistics' => ['description' => 'The statistical method used for alerting. Valid values:'."\n"
."\n"
.'- Availability: the percentage of available detection points.'."\n"
.'- AvailableNumber: the number of available detection points.'."\n"
.'- ErrorCodeMaximum: any status code (independent alert).'."\n"
.'- ErrorCodeMinimum: all status codes (combined alert).'."\n"
.'- Average: response time.', 'type' => 'string', 'example' => 'Availability', 'title' => ''],
'Threshold' => ['description' => 'The alert threshold.', 'type' => 'string', 'example' => '30', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D17DF650-7EBD-54D0-903A-1D4E624D7402', 'title' => ''],
'SiteMonitors' => [
'description' => 'The details of the monitoring task.',
'type' => 'object',
'properties' => [
'Address' => ['description' => 'The monitored address of the monitoring task.', 'type' => 'string', 'example' => 'https://aliyun.com', 'title' => ''],
'AgentGroup' => ['description' => 'The type of detection point. Default value: PC.'."\n"
.'Valid values:'."\n"
."\n"
.'- PC: wired network.'."\n"
."\n"
.'- MOBILE: mobile network.', 'type' => 'string', 'example' => 'PC', 'title' => ''],
'CustomSchedule' => [
'description' => 'The custom monitoring schedule. You can select a time range from Monday to Sunday for monitoring.',
'type' => 'object',
'properties' => [
'days' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'days' => [
'description' => 'The monitoring day.',
'type' => 'array',
'items' => ['description' => 'The monitoring day.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'end_hour' => ['description' => 'The custom monitoring end time.'."\n"
."\n"
.'Unit: hours.', 'type' => 'integer', 'format' => 'int32', 'example' => '18', 'title' => ''],
'start_hour' => ['description' => 'The custom monitoring start time.'."\n"
."\n"
.'Unit: hours.', 'type' => 'integer', 'format' => 'int32', 'example' => '8', 'title' => ''],
'time_zone' => ['description' => 'The time zone for custom monitoring.', 'type' => 'string', 'example' => 'local', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Interval' => ['description' => 'The monitoring interval. Unit: minutes. Valid values: 1, 5, 15, 30, and 60.', 'type' => 'string', 'example' => '1', 'title' => ''],
'IspCities' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'IspCity' => [
'description' => 'The carrier and city of the detection point.',
'type' => 'array',
'items' => [
'description' => 'The carrier and city of the detection point.',
'type' => 'object',
'properties' => [
'City' => ['description' => 'The city ID.', 'type' => 'string', 'example' => '738', 'title' => ''],
'CityName' => ['description' => 'The city name.', 'type' => 'string', 'example' => '北京市', 'title' => ''],
'Isp' => ['description' => 'The carrier ID.', 'type' => 'string', 'example' => '465', 'title' => ''],
'IspName' => ['description' => 'The carrier name.', 'type' => 'string', 'example' => '阿里巴巴', 'title' => ''],
'Type' => ['description' => 'The network type of the detection point. Valid values:'."\n"
.'IDC: IDC data center.'."\n"
.'LASTMILE: residential broadband.'."\n"
.'MOBILE: mobile cellular network.', 'type' => 'string', 'example' => 'IDC', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'OptionJson' => [
'description' => 'The extended options. Each monitoring type has different extended options. For more information, see [CreateSiteMonitor](~~115048~~).',
'type' => 'object',
'properties' => [
'assertions' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'assertions' => [
'description' => 'The assertion configuration group.',
'type' => 'array',
'items' => [
'description' => 'The assertion configuration group.',
'type' => 'object',
'properties' => [
'operator' => ['description' => 'The assertion comparison operator. Valid values:'."\n"
.'- contains: Contains.'."\n"
.'- doesNotContain: Does not contain.'."\n"
.'- matches: Matches a regular expression.'."\n"
.'- doesNotMatch: Does not match a regular expression.'."\n"
.'- is: Equals a numeric value or matches a string.'."\n"
.'- isNot: Does not equal.'."\n"
.'- lessThan: Less than.'."\n"
.'- moreThan: Greater than.', 'type' => 'string', 'example' => 'lessThan', 'title' => ''],
'property' => ['description' => 'The parsing path for the assertion content.'."\n"
."\n"
.'- If the assertion type is `body_json`, the path is a `json path`.'."\n"
."\n"
.'- If the assertion type is `body_xml`, the path is an `xml path`.', 'type' => 'string', 'example' => 'json path', 'title' => ''],
'target' => ['description' => 'The target value or string for assertion comparison.', 'type' => 'string', 'example' => '0', 'title' => ''],
'type' => ['description' => 'The assertion type. Valid values:'."\n"
.'- response_time: Checks whether the response time meets expectations.'."\n"
.'- status_code: Checks whether the HTTP response status code meets expectations.'."\n"
.'- header: Checks whether a field in the response header meets expectations.'."\n"
.'- body_text: Checks whether the response body content meets expectations through text matching.'."\n"
.'- body_json: Checks whether the response body content meets expectations through JSON parsing (JSON Path).'."\n"
.'- body_xml: Checks whether the response body content meets expectations through XML parsing (XPath).', 'type' => 'string', 'example' => 'response_time', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'attempts' => ['description' => 'The number of retries after a DNS failure.', 'type' => 'integer', 'format' => 'int64', 'example' => '3', 'title' => ''],
'auth_info' => [
'description' => 'The authentication information.',
'type' => 'object',
'properties' => [
'type' => ['description' => 'The authentication type. HTTP Basic Authentication is supported. Valid values: basic.', 'type' => 'string', 'example' => 'basic', 'title' => ''],
'username' => ['description' => 'The username used for HTTP Basic Authentication.', 'type' => 'string', 'example' => 'test_username', 'title' => ''],
'password' => ['description' => 'The password used for HTTP Basic Authentication.', 'type' => 'string', 'example' => 'test_password', 'title' => ''],
'use_cookie_session_key' => ['description' => 'Specifies whether the key is stored in the client cookie for digest authentication.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'grant_type' => ['description' => 'The grant type used in OAuth 2.0 authentication. Valid values: client_credentials and password.', 'type' => 'string', 'example' => 'password', 'title' => ''],
'client_id' => ['description' => 'The client ID used for client authentication in OAuth 2.0.', 'type' => 'string', 'example' => 'client_id', 'title' => ''],
'client_secret' => ['description' => 'The client secret used for client authentication in OAuth 2.0.', 'type' => 'string', 'example' => 'client_secret', 'title' => ''],
'scopes' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'scopes' => [
'description' => 'The permission scopes requested in OAuth 2.0.',
'type' => 'array',
'items' => ['description' => 'A single permission scope requested in OAuth 2.0.', 'type' => 'string', 'example' => 'test_operation', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'token_url' => ['description' => 'The authorization server URL in OAuth 2.0.', 'type' => 'string', 'example' => 'https://www.example.com', 'title' => ''],
'auth_style' => ['description' => 'The OAuth 2.0 authentication style. Valid values: ROA and RPC.', 'type' => 'string', 'example' => 'ROA', 'title' => ''],
'access_key_id' => ['description' => 'Supported only in multi-step monitoring. The AccessKey ID used for Alibaba Cloud authentication. We recommend that you use encrypted storage.', 'type' => 'string', 'example' => 'testAk', 'title' => ''],
'access_key_secret' => ['description' => 'Supported only in multi-step monitoring. The AccessKey secret used for Alibaba Cloud authentication. We recommend that you use encrypted storage.', 'type' => 'string', 'example' => 'testSk', 'title' => ''],
'region_id' => ['description' => 'Supported only in multi-step monitoring. The region ID of the request when using Alibaba Cloud authentication.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
'api_action' => ['description' => 'Supported only in multi-step monitoring. The API action of the request when using Alibaba Cloud operations.', 'type' => 'string', 'example' => 'example_api', 'title' => ''],
'api_version' => ['description' => 'Supported only in multi-step monitoring. The API version of the request when using Alibaba Cloud operations.', 'type' => 'string', 'example' => '2019-01-01', 'title' => ''],
'with_addon_resources' => ['description' => 'Supported only in multi-step monitoring. Specifies whether additional resources exist when using Alibaba Cloud authentication for this step.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'service_name' => ['description' => 'The service name of the request when using AWS authentication.', 'type' => 'string', 'example' => 'example_service_name', 'title' => ''],
'session_token' => ['description' => 'The session token used for AWS authentication.', 'type' => 'string', 'example' => 'example_token', 'title' => ''],
],
'title' => '',
'example' => '',
],
'blocked_url_list' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'blocked_url_list' => [
'description' => 'The list of blocked resource URLs. Path wildcards are supported.',
'type' => 'array',
'items' => ['description' => 'The list of blocked resource URLs. Path wildcards are supported.', 'type' => 'string', 'example' => 'www.taobao.com/**', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'browser_headers' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'browser_headers' => [
'description' => 'The custom headers. The structure is `{"key": "somekey", "value":"somevalue"}`.',
'type' => 'array',
'items' => ['description' => 'The custom headers. The structure is `{"key": "somekey", "value":"somevalue"}`.', 'type' => 'object', 'example' => '{"key":"value"}', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'browser_hosts' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'browser_hosts' => [
'description' => 'The custom hosts. The structure is `{"url":"someurl", "ip":"someip"}`.',
'type' => 'array',
'items' => ['description' => 'The custom hosts. The structure is `{"url":"someurl", "ip":"someip"}`.', 'type' => 'string', 'example' => '{"url":"www.taobao.com","ip":"127.0.0.1"}', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'browser_info' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'browser_info' => [
'description' => 'The browser information.',
'type' => 'array',
'items' => [
'description' => 'The browser information.',
'type' => 'object',
'properties' => [
'browser' => ['description' => 'The type of the browser.', 'type' => 'string', 'example' => 'Chrome', 'title' => ''],
'device' => ['description' => 'The screen type.', 'type' => 'string', 'example' => 'laptop', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'browser_insecure' => ['description' => 'Specifies whether to ignore certificate errors. Valid values:'."\n"
."\n"
.'- false: Does not ignore certificate errors.'."\n"
.'- true: Ignores certificate errors.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'browser_task_version' => ['description' => 'The browser monitoring version. Valid values:'."\n"
."\n"
.'- 1: Single-page monitoring.'."\n"
.'- 2: Multi-page monitoring.', 'type' => 'string', 'example' => '1', 'title' => ''],
'cookie' => ['description' => 'The cookie for the HTTP request.', 'type' => 'string', 'example' => 'lang=en', 'title' => ''],
'diagnosis_mtr' => ['description' => 'Specifies whether to enable automatic MTR network diagnostics after a task failure. Valid values:'."\n"
.'- false: Disabled.'."\n"
.'- true: Enabled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'diagnosis_ping' => ['description' => 'Specifies whether to enable automatic PING network latency detection after a task failure. Valid values:'."\n"
.'- false: Disabled.'."\n"
.'- true: Enabled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'dns_hijack_whitelist' => ['description' => 'The DNS hijacking configuration list.', 'type' => 'string', 'example' => 'www.taobao.com:www.taobao.com.danuoyi.tbcache.com', 'title' => ''],
'dns_match_rule' => ['description' => 'The DNS matching rule. Valid values:'."\n"
."\n"
.'- IN_DNS: The expected aliases or IP addresses are all included in the DNS response.'."\n"
.'- DNS_IN: All DNS responses are included in the expected aliases or IP addresses.'."\n"
.'- EQUAL: The DNS response exactly matches the expected aliases or IP addresses.'."\n"
.'- ANY: The DNS response and the expected aliases or IP addresses have an intersection.', 'type' => 'string', 'example' => 'IN_DNS', 'title' => ''],
'dns_server' => ['description' => 'The IP address of the DNS server.'."\n"
."\n"
.'> This parameter applies only to the DNS monitoring type.', 'type' => 'string', 'example' => '192.168.XX.XX', 'title' => ''],
'dns_type' => ['description' => 'The DNS resolution type. This parameter applies only to the DNS monitoring type. Valid values:'."\n"
.'- A: Specifies the IP address corresponding to a hostname or domain name.'."\n"
.'- CNAME: Maps multiple domain names to another domain name.'."\n"
.'- NS: Specifies the DNS server that resolves a domain name.'."\n"
.'- MX: Points a domain name to a mail server address.'."\n"
.'- TXT: A description of the hostname or domain name. The text length is limited to 512 bytes and is typically used for SPF (Sender Policy Framework) records for anti-spam purposes.', 'type' => 'string', 'example' => 'A', 'title' => ''],
'empty_message' => ['description' => 'Specifies whether the WebSocket task is allowed to return no message or an empty message. Valid values:'."\n"
.'- false (default): Not allowed.'."\n"
.'- true: Allowed.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'expect_exist_string' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'expect_exist_string' => [
'description' => 'The list of strings expected to exist on the page.',
'type' => 'array',
'items' => ['description' => 'The list of strings expected to exist on the page.', 'type' => 'string', 'example' => 'expected string', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'expect_non_exist_string' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'expect_non_exist_string' => [
'description' => 'The list of strings expected not to exist on the page.',
'type' => 'array',
'items' => ['description' => 'The list of strings expected not to exist on the page.', 'type' => 'string', 'example' => 'unexpected string', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'expect_value' => ['description' => 'The alias or address to be resolved.'."\n"
."\n"
.'> This parameter applies only to the DNS monitoring type.', 'type' => 'string', 'example' => 'dns_server', 'title' => ''],
'failure_rate' => ['description' => 'The packet loss rate.'."\n"
."\n"
.'> This parameter applies only to the PING monitoring type.', 'type' => 'number', 'format' => 'float', 'example' => '0.4', 'title' => ''],
'header' => ['description' => 'The HTTP request header.', 'type' => 'string', 'example' => 'testKey:testValue', 'title' => ''],
'http_method' => ['description' => 'The HTTP request method. Valid values:'."\n"
.'- get '."\n"
.'- post'."\n"
.'- head.', 'type' => 'string', 'example' => 'get', 'title' => ''],
'ip_network' => [
'description' => 'The network type of the task. Valid values: v4, v6, and auto. Default value: v4.',
'type' => 'string',
'enum' => [],
'example' => 'v4',
'title' => '',
],
'isBase64Encode' => ['description' => 'Specifies whether to decode and store the password using Base64. Valid values:'."\n"
.'- true: The password is decoded and stored using Base64.'."\n"
.'- false: The password is not decoded and stored using Base64.', 'type' => 'string', 'example' => 'false', 'title' => ''],
'match_rule' => ['description' => 'Specifies whether alert rules are included. Valid values:'."\n"
.'- 0: Yes.'."\n"
.'- 1: No.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'min_tls_version' => ['description' => 'The minimum TLS version. TLS 1.2 and later are supported by default. TLS 1.0 and 1.1 are disabled. To support these versions, modify the configuration.', 'type' => 'string', 'example' => 'tlsv1.2', 'title' => ''],
'password' => ['description' => 'The password for SMTP, POP3, or FTP monitoring types.', 'type' => 'string', 'example' => '123****', 'title' => ''],
'ping_num' => ['description' => 'The number of PING packets for the PING monitoring type.', 'type' => 'integer', 'format' => 'int32', 'example' => '29', 'title' => ''],
'ping_port' => ['description' => 'The PING port. This parameter applies to TCP PING.', 'type' => 'integer', 'format' => 'int32', 'example' => '80', 'title' => ''],
'ping_type' => ['description' => 'The PING protocol type. Valid values:'."\n"
."\n"
.'- icmp'."\n"
."\n"
.'- tcp'."\n"
."\n"
.'- udp.', 'type' => 'string', 'example' => 'icmp', 'default' => 'icmp', 'title' => ''],
'port' => ['description' => 'The port for TCP, UDP, SMTP, or POP3 monitoring types.', 'type' => 'integer', 'format' => 'int32', 'example' => '110', 'title' => ''],
'protocol' => ['description' => 'The monitoring protocol.', 'type' => 'string', 'example' => 'TCP', 'title' => ''],
'quic_enabled' => ['description' => 'Specifies whether the browser monitoring task uses the QUIC protocol. Valid values:'."\n"
.'- true: Uses the QUIC protocol.'."\n"
.'- false: Does not use the QUIC protocol.'."\n"
.'Default value: false.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'quic_target' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'quic_target' => [
'description' => 'The list of sites that are forced to use the QUIC protocol.',
'type' => 'array',
'items' => ['description' => 'A site that is forced to use the QUIC protocol. The format is url:port. The port is optional and defaults to 443.', 'type' => 'string', 'example' => 'www.taobao.com', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'request_content' => ['description' => 'The request content for the HTTP monitoring type.', 'type' => 'string', 'example' => 'aa=bb', 'title' => ''],
'request_format' => ['description' => 'The format of the HTTP request content. Valid values:'."\n"
.'- hex: hexadecimal.'."\n"
.'- txt: text.', 'type' => 'string', 'example' => 'txt', 'title' => ''],
'response_content' => ['description' => 'The expected response content to match.', 'type' => 'string', 'example' => 'txt', 'title' => ''],
'response_format' => ['description' => 'The format of the HTTP response content. Valid values:'."\n"
.'- hex: hexadecimal.'."\n"
.'- txt: text.', 'type' => 'string', 'example' => 'txt', 'title' => ''],
'retry_delay' => ['description' => 'The number of retries after a monitoring failure.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'screen_shot' => ['description' => 'Specifies whether to enable page screenshots.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'strict_mode' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
'time_out' => ['description' => 'The timeout period. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '3', 'title' => ''],
'traffic_hijack_element_blacklist' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'traffic_hijack_element_blacklist' => [
'description' => 'When a redirect occurs, if the URL of a resource loaded by the browser matches an expression in this list, traffic hijacking is considered to have occurred.',
'type' => 'array',
'items' => ['description' => 'When a redirect occurs, if the URL of a resource loaded by the browser matches an expression in this list, traffic hijacking is considered to have occurred.', 'type' => 'string', 'example' => 'www.taobao.com', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'traffic_hijack_element_count' => ['description' => 'When a redirect occurs, if the number of resources loaded by the browser exceeds this value, traffic hijacking is considered to have occurred. When this value is 0, no verification is performed. Default value: 0.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'traffic_hijack_element_whitelist' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'traffic_hijack_element_whitelist' => [
'description' => 'When a redirect occurs, if the URL of a resource loaded by the browser does not match any expression in this list, traffic hijacking is considered to have occurred.',
'type' => 'array',
'items' => ['description' => 'When a redirect occurs, if the URL of a resource loaded by the browser does not match any expression in this list, traffic hijacking is considered to have occurred.', 'type' => 'string', 'example' => 'www.taobao.com', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'username' => ['description' => 'The username for FTP, SMTP, or POP3.', 'type' => 'string', 'example' => 'testUser', 'title' => ''],
'waitTime_after_completion' => ['description' => 'The additional wait time after the page is opened in a browser monitoring task.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''],
'scroll_end' => ['description' => 'For browser monitoring tasks, specifies whether to scroll to the bottom of the page after it is opened.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'host_binding' => ['description' => 'The custom host for HTTP tasks. The format is ip1,ip2:address. Multiple mappings can be configured. The left side of the colon contains A records or CNAMEs that the domain name can be resolved to, separated by commas. The right side of the colon is the domain name.', 'type' => 'string', 'example' => '127.0.0.1:www.aliyun.com', 'title' => ''],
'host_binding_type' => [
'description' => 'Specifies how the custom host takes effect. Valid values: 0 (random) and 1 (round-robin).',
'enumValueTitles' => ['0', '1'],
'type' => 'integer',
'format' => 'int32',
'example' => '0',
'title' => '',
],
'hops' => ['description' => 'The number of hops for traceroute diagnostics when a PING task fails.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
'icmp_timeout_millis' => ['description' => 'The timeout period for a single PING request using the ICMP protocol. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '3000', 'title' => ''],
'config_variables' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'config_variables' => [
'description' => 'The environment variable configuration. This parameter takes effect for multi-step monitoring.',
'type' => 'array',
'items' => [
'description' => 'Environment variables can be referenced in parameters of different test steps by using the placeholder {{$.variable_name}}. They can also be updated by parsing the response of a test step and referenced in subsequent steps. For sensitive information such as API keys, enable encrypted storage.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The name of the environment variable.', 'type' => 'string', 'example' => 'variable_name', 'title' => ''],
'value' => ['description' => 'The value of the variable.', 'type' => 'string', 'example' => 'variable_value', 'title' => ''],
'secure' => ['description' => 'Specifies whether to use encrypted storage.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'steps' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'steps' => [
'description' => 'The step configurations for multi-step monitoring. This parameter takes effect for multi-step monitoring.',
'type' => 'array',
'items' => [
'description' => 'The configuration of a single step in multi-step monitoring.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The step name (deprecated).', 'type' => 'string', 'deprecated' => true, 'example' => 'step1', 'title' => ''],
'step_type' => ['description' => 'The monitoring type of this step. Valid values:'."\n"
.'- http'."\n"
.'- ping'."\n"
.'- tcp'."\n"
.'- udp'."\n"
.'- dns'."\n"
.'- smtp'."\n"
.'- pop3'."\n"
.'- ftp'."\n"
.'- wait'."\n"
."\n"
.'The wait type represents a wait step.', 'type' => 'string', 'example' => 'http', 'title' => ''],
'url' => ['description' => 'The URL for a single step in multi-step monitoring.', 'type' => 'string', 'example' => 'https://aliyun.com', 'title' => ''],
'allow_failure' => ['description' => 'Specifies whether to continue to the next step if the current step fails. Default value: false.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'is_critical' => ['description' => 'Specifies whether to mark the entire monitoring task as failed if the current step fails. Default value: false.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'wait_time_in_secs' => ['description' => 'The wait time. Unit: seconds.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
'extracted_variables' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'extracted_variables' => [
'description' => 'The variable extraction configuration.',
'type' => 'array',
'items' => [
'description' => 'The configuration for extracting a single variable.',
'type' => 'object',
'properties' => [
'name' => ['description' => 'The variable name.', 'type' => 'string', 'example' => 'test_variable', 'title' => ''],
'parser' => [
'description' => 'The variable extraction method settings.',
'type' => 'object',
'properties' => [
'parser_type' => ['description' => 'The extraction mode. Valid values: 0 (JSON), 1 (XML), and 2 (regular expression).', 'type' => 'string', 'example' => '0', 'title' => ''],
'value' => ['description' => 'The variable extraction expression.'."\n"
.'When the extraction method is JSON or XML, the expression supports XML format.'."\n"
.'When the extraction method is regular expression, the string matching this value is extracted.', 'type' => 'string', 'example' => 'x.testkey.arrayvalue[0].innerkey', 'title' => ''],
],
'title' => '',
'example' => '',
],
'field' => ['description' => 'This parameter takes effect when the variable location is HTTP header. Extracts the key specified by this parameter from the header.', 'type' => 'string', 'example' => 'request_id', 'title' => ''],
'extracted_type' => ['description' => 'The location from which the variable is extracted. Valid values: 0 (HTTP body) and 1 (HTTP header).', 'type' => 'string', 'example' => '1', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'option' => ['description' => 'The extended options for this step. Each monitoring type has different extended options. For more information, see [CreateSiteMonitor](~~115048~~).', 'type' => 'string', 'example' => '{"enable_operator_dns": true}', 'title' => ''],
'step_name' => ['description' => 'The step name.', 'type' => 'string', 'example' => 'step1', 'title' => ''],
'use_generated_cookie' => ['description' => 'Specifies whether to use the cookies extracted from previous steps. Default value: false.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'auto_extract_cookie' => ['description' => 'Specifies whether to automatically extract cookies. The set-cookie header in the HTTP response of this step is parsed, and the cookies are available in subsequent monitoring steps. Default value: false.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'trace_region' => ['description' => 'The deployment region of the target application when integrating with Managed Service for OpenTelemetry.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
'trace_type' => ['description' => 'Settings for the Tracing Analysis protocol used when integrating with Managed Service for OpenTelemetry.'."\n"
.'Valid values:'."\n"
.'- OpenTelemetry'."\n"
.'- Zipkin'."\n"
.'- Jaeger.', 'type' => 'string', 'example' => 'OpenTelemetry', 'title' => ''],
'safe_link' => ['description' => 'This parameter takes effect for SMTP monitoring tasks. Set this parameter to 1 to use a secure connection. Default value: 0.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'enable_packet_capture' => ['description' => 'Specifies whether to enable packet capture for this task.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'use_private_crt' => ['title' => '', 'description' => 'Specifies whether to use a private certificate.', 'type' => 'boolean', 'example' => ''],
'private_crt_file_name' => ['title' => '', 'description' => 'The certificate file name of the private certificate.', 'type' => 'string', 'example' => 'cert.pem'],
'use_ssl' => ['title' => '', 'description' => 'Specifies whether to use an SSL connection when performing a TCP task.', 'type' => 'boolean', 'example' => 'tlsv1.0'],
'max_tls_version' => ['title' => '', 'description' => 'The maximum TLS version.', 'type' => 'string', 'example' => 'tlsv1.3'],
'server_name' => ['title' => '', 'description' => 'The Server Name Indication (SNI).', 'type' => 'string', 'example' => 'www.aliyun.com'],
'supported_cipher_suits' => ['title' => '', 'description' => 'The supported cipher suites.', 'type' => 'string', 'example' => 'TLS_AES_256_GCM_SHA384'],
],
'title' => '',
'example' => '',
],
'TaskId' => ['description' => 'The ID of the monitoring task.', 'type' => 'string', 'example' => 'cc641dff-c19d-45f3-ad0a-818a0c4f****', 'title' => ''],
'TaskName' => ['description' => 'The name of the monitoring task.', 'type' => 'string', 'example' => 'test123', 'title' => ''],
'TaskState' => ['description' => 'The status of the monitoring task. Valid values:'."\n"
."\n"
.'- 1: Enabled.'."\n"
.'- 2: Disabled.', 'type' => 'string', 'example' => '1', 'title' => ''],
'TaskType' => ['description' => 'The type of the monitoring task. Site monitoring task types include HTTP(S), PING, TCP, UDP, DNS, SMTP, POP3, and FTP.', 'type' => 'string', 'example' => 'HTTP', 'title' => ''],
'VpcConfig' => [
'description' => 'The VPC configuration for the internal network monitoring task.',
'type' => 'object',
'properties' => [
'Region' => ['description' => 'The region where the target site of the internal network monitoring task is located.', 'type' => 'string', 'example' => 'cn-beijing', 'title' => ''],
'SecurityGroupId' => ['description' => 'The ID of the security group associated with the internal network monitoring task.', 'type' => 'string', 'example' => 'sg-xxxxxx', 'title' => ''],
'VpcId' => ['description' => 'The ID of the VPC associated with the internal network monitoring task.', 'type' => 'string', 'example' => 'vpc-xxxxxx', 'title' => ''],
'VswitchId' => ['description' => 'The ID of the vSwitch associated with the internal network monitoring task.', 'type' => 'string', 'example' => 'vsw-xxxxxx', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: Successful.'."\n"
."\n"
.'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'The parameter is missing or invalid. %s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'Forbidden', 'errorMessage' => 'You are not authorized to operate the specified resource.', 'description' => 'No permission, please use RAM to authorize'],
],
[
['errorCode' => 'Forbidden', 'errorMessage' => 'Task Id does not exist', 'description' => ''],
],
406 => [
['errorCode' => 'ExceedingQuota', 'errorMessage' => 'Exceeding quota limits.', 'description' => 'The number of tasks exceeds the limit'],
],
429 => [
['errorCode' => 'Throttli∂ngException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Query details of a site monitoring task',
'description' => 'This topic provides an example on how to query the details of the site monitoring task `cc641dff-c19d-45f3-ad0a-818a0c4f****`. The response shows that the task name is `test123`, the monitored address is `https://aliyun.com`, and the carrier is `Alibaba`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-10-14T05:34:16.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2025-06-26T07:45:34.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2025-06-20T09:27:51.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2025-03-27T05:33:05.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2025-03-13T05:55:59.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2025-02-10T06:02:26.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-11-28T07:10:24.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-10-25T09:01:18.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-09-25T10:12:00.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-09-24T08:27:35.000Z', 'description' => 'Error codes changed, Response parameters changed'],
['createdAt' => '2024-09-23T08:45:00.000Z', 'description' => 'Error codes changed, Response parameters changed'],
['createdAt' => '2024-09-09T11:50:14.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-08-05T11:09:56.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-07-31T06:53:06.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-05-16T06:57:03.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-05-16T06:23:53.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-09-04T08:23:04.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-08-22T07:49:39.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-08-04T02:58:38.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-06-15T04:29:38.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-05-22T07:54:08.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-04-06T11:21:25.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2022-12-27T07:31:03.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2022-06-17T07:34:28.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-09-16T09:06:08.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-09-16T09:06:08.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSiteMonitorAttribute'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeSiteMonitorAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"MetricRules\\": {\\n \\"MetricRule\\": [\\n {\\n \\"ActionEnable\\": \\"true\\",\\n \\"AlarmActions\\": \\"CloudMonitor\\",\\n \\"ComparisonOperator\\": \\"GreaterThanYesterday\\",\\n \\"Dimensions\\": \\"[{\\\\\\"taskId\\\\\\": \\\\\\"cc641dff-c19d-45f3-ad0a-818a0c4f****\\\\\\" }]\\",\\n \\"EvaluationCount\\": \\"3\\",\\n \\"Expression\\": \\"$Availability=30\\",\\n \\"Level\\": \\"2\\",\\n \\"MetricName\\": \\"Availability\\",\\n \\"Namespace\\": \\"acs_networkmonitor\\",\\n \\"OkActions\\": \\"[ \\\\\\"CloudMonitor\\\\\\"]\\",\\n \\"Period\\": \\"15s\\",\\n \\"RuleId\\": \\"bf071ae_7b7aec3817b0fdf****\\",\\n \\"RuleName\\": \\"rule1\\",\\n \\"StateValue\\": \\"OK\\",\\n \\"Statistics\\": \\"Availability\\",\\n \\"Threshold\\": \\"30\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"D17DF650-7EBD-54D0-903A-1D4E624D7402\\",\\n \\"SiteMonitors\\": {\\n \\"Address\\": \\"https://aliyun.com\\",\\n \\"AgentGroup\\": \\"PC\\",\\n \\"CustomSchedule\\": {\\n \\"days\\": {\\n \\"days\\": [\\n 1\\n ]\\n },\\n \\"end_hour\\": 18,\\n \\"start_hour\\": 8,\\n \\"time_zone\\": \\"local\\"\\n },\\n \\"Interval\\": \\"1\\",\\n \\"IspCities\\": {\\n \\"IspCity\\": [\\n {\\n \\"City\\": \\"738\\",\\n \\"CityName\\": \\"北京市\\",\\n \\"Isp\\": \\"465\\",\\n \\"IspName\\": \\"阿里巴巴\\",\\n \\"Type\\": \\"IDC\\"\\n }\\n ]\\n },\\n \\"OptionJson\\": {\\n \\"assertions\\": {\\n \\"assertions\\": [\\n {\\n \\"operator\\": \\"lessThan\\",\\n \\"property\\": \\"json path\\",\\n \\"target\\": \\"0\\",\\n \\"type\\": \\"response_time\\"\\n }\\n ]\\n },\\n \\"attempts\\": 3,\\n \\"auth_info\\": {\\n \\"type\\": \\"basic\\",\\n \\"username\\": \\"test_username\\",\\n \\"password\\": \\"test_password\\",\\n \\"use_cookie_session_key\\": false,\\n \\"grant_type\\": \\"password\\",\\n \\"client_id\\": \\"client_id\\",\\n \\"client_secret\\": \\"client_secret\\",\\n \\"scopes\\": {\\n \\"scopes\\": [\\n \\"test_operation\\"\\n ]\\n },\\n \\"token_url\\": \\"https://www.example.com\\",\\n \\"auth_style\\": \\"ROA\\",\\n \\"access_key_id\\": \\"testAk\\",\\n \\"access_key_secret\\": \\"testSk\\",\\n \\"region_id\\": \\"cn-hangzhou\\",\\n \\"api_action\\": \\"example_api\\",\\n \\"api_version\\": \\"2019-01-01\\",\\n \\"with_addon_resources\\": false,\\n \\"service_name\\": \\"example_service_name\\",\\n \\"session_token\\": \\"example_token\\"\\n },\\n \\"blocked_url_list\\": {\\n \\"blocked_url_list\\": [\\n \\"www.taobao.com/**\\"\\n ]\\n },\\n \\"browser_headers\\": {\\n \\"browser_headers\\": [\\n {\\n \\"key\\": \\"value\\"\\n }\\n ]\\n },\\n \\"browser_hosts\\": {\\n \\"browser_hosts\\": [\\n \\"{\\\\\\"url\\\\\\":\\\\\\"www.taobao.com\\\\\\",\\\\\\"ip\\\\\\":\\\\\\"127.0.0.1\\\\\\"}\\"\\n ]\\n },\\n \\"browser_info\\": {\\n \\"browser_info\\": [\\n {\\n \\"browser\\": \\"Chrome\\",\\n \\"device\\": \\"laptop\\"\\n }\\n ]\\n },\\n \\"browser_insecure\\": false,\\n \\"browser_task_version\\": \\"1\\",\\n \\"cookie\\": \\"lang=en\\",\\n \\"diagnosis_mtr\\": false,\\n \\"diagnosis_ping\\": false,\\n \\"dns_hijack_whitelist\\": \\"www.taobao.com:www.taobao.com.danuoyi.tbcache.com\\",\\n \\"dns_match_rule\\": \\"IN_DNS\\",\\n \\"dns_server\\": \\"192.168.XX.XX\\",\\n \\"dns_type\\": \\"A\\",\\n \\"empty_message\\": false,\\n \\"expect_exist_string\\": {\\n \\"expect_exist_string\\": [\\n \\"expected string\\"\\n ]\\n },\\n \\"expect_non_exist_string\\": {\\n \\"expect_non_exist_string\\": [\\n \\"unexpected string\\"\\n ]\\n },\\n \\"expect_value\\": \\"dns_server\\",\\n \\"failure_rate\\": 0.4,\\n \\"header\\": \\"testKey:testValue\\",\\n \\"http_method\\": \\"get\\",\\n \\"ip_network\\": \\"v4\\",\\n \\"isBase64Encode\\": \\"false\\",\\n \\"match_rule\\": 1,\\n \\"min_tls_version\\": \\"tlsv1.2\\",\\n \\"password\\": \\"123****\\",\\n \\"ping_num\\": 29,\\n \\"ping_port\\": 80,\\n \\"ping_type\\": \\"icmp\\",\\n \\"port\\": 110,\\n \\"protocol\\": \\"TCP\\",\\n \\"quic_enabled\\": true,\\n \\"quic_target\\": {\\n \\"quic_target\\": [\\n \\"www.taobao.com\\"\\n ]\\n },\\n \\"request_content\\": \\"aa=bb\\",\\n \\"request_format\\": \\"txt\\",\\n \\"response_content\\": \\"txt\\",\\n \\"response_format\\": \\"txt\\",\\n \\"retry_delay\\": 0,\\n \\"screen_shot\\": false,\\n \\"strict_mode\\": false,\\n \\"time_out\\": 3,\\n \\"traffic_hijack_element_blacklist\\": {\\n \\"traffic_hijack_element_blacklist\\": [\\n \\"www.taobao.com\\"\\n ]\\n },\\n \\"traffic_hijack_element_count\\": 0,\\n \\"traffic_hijack_element_whitelist\\": {\\n \\"traffic_hijack_element_whitelist\\": [\\n \\"www.taobao.com\\"\\n ]\\n },\\n \\"username\\": \\"testUser\\",\\n \\"waitTime_after_completion\\": 3,\\n \\"scroll_end\\": false,\\n \\"host_binding\\": \\"127.0.0.1:www.aliyun.com\\",\\n \\"host_binding_type\\": 0,\\n \\"hops\\": 20,\\n \\"icmp_timeout_millis\\": 3000,\\n \\"config_variables\\": {\\n \\"config_variables\\": [\\n {\\n \\"name\\": \\"variable_name\\",\\n \\"value\\": \\"variable_value\\",\\n \\"secure\\": true\\n }\\n ]\\n },\\n \\"steps\\": {\\n \\"steps\\": [\\n {\\n \\"name\\": \\"step1\\",\\n \\"step_type\\": \\"http\\",\\n \\"url\\": \\"https://aliyun.com\\",\\n \\"allow_failure\\": true,\\n \\"is_critical\\": true,\\n \\"wait_time_in_secs\\": 5,\\n \\"extracted_variables\\": {\\n \\"extracted_variables\\": [\\n {\\n \\"name\\": \\"test_variable\\",\\n \\"parser\\": {\\n \\"parser_type\\": \\"0\\",\\n \\"value\\": \\"x.testkey.arrayvalue[0].innerkey\\"\\n },\\n \\"field\\": \\"request_id\\",\\n \\"extracted_type\\": \\"1\\"\\n }\\n ]\\n },\\n \\"option\\": \\"{\\\\\\"enable_operator_dns\\\\\\": true}\\",\\n \\"step_name\\": \\"step1\\",\\n \\"use_generated_cookie\\": true,\\n \\"auto_extract_cookie\\": true\\n }\\n ]\\n },\\n \\"trace_region\\": \\"cn-hangzhou\\",\\n \\"trace_type\\": \\"OpenTelemetry\\",\\n \\"safe_link\\": 0,\\n \\"enable_packet_capture\\": true,\\n \\"use_private_crt\\": false,\\n \\"private_crt_file_name\\": \\"cert.pem\\",\\n \\"use_ssl\\": true,\\n \\"max_tls_version\\": \\"tlsv1.3\\",\\n \\"server_name\\": \\"www.aliyun.com\\",\\n \\"supported_cipher_suits\\": \\"TLS_AES_256_GCM_SHA384\\"\\n },\\n \\"TaskId\\": \\"cc641dff-c19d-45f3-ad0a-818a0c4f****\\",\\n \\"TaskName\\": \\"test123\\",\\n \\"TaskState\\": \\"1\\",\\n \\"TaskType\\": \\"HTTP\\",\\n \\"VpcConfig\\": {\\n \\"Region\\": \\"cn-beijing\\",\\n \\"SecurityGroupId\\": \\"sg-xxxxxx\\",\\n \\"VpcId\\": \\"vpc-xxxxxx\\",\\n \\"VswitchId\\": \\"vsw-xxxxxx\\"\\n }\\n },\\n \\"Success\\": true\\n}","type":"json"}]',
],
'DescribeSiteMonitorData' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'TaskId',
'in' => 'query',
'schema' => ['description' => 'The job ID.', 'type' => 'string', 'required' => true, 'example' => '49f7b317-7645-4cc9-94fd-ea42e522****', 'title' => ''],
],
[
'name' => 'Type',
'in' => 'query',
'schema' => ['description' => 'The type of the monitored object whose monitoring data is to be queried. Valid values:'."\n"
."\n"
.'- metric'."\n"
."\n"
.'- event', 'type' => 'string', 'required' => false, 'example' => 'metric', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The metric name. Valid values:'."\n"
."\n"
.'- Availability'."\n"
."\n"
.'- ResponseTime', 'type' => 'string', 'required' => true, 'example' => 'Availability', 'title' => ''],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => 'The start of the time range to query. The following formats are supported:'."\n"
."\n"
.'- UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 UTC on Thursday, January 1, 1970.'."\n"
."\n"
.'- UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format.', 'type' => 'string', 'required' => false, 'example' => '1551579637000', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => 'The end of the time range to query. The following formats are supported:'."\n"
."\n"
.'- UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 UTC on Thursday, January 1, 1970.'."\n"
."\n"
.'- UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format.', 'type' => 'string', 'required' => false, 'example' => '1551581437000', 'title' => ''],
],
[
'name' => 'Period',
'in' => 'query',
'schema' => ['description' => 'The statistical period. The value is an integral multiple of 60. Unit: seconds.'."\n"
."\n"
.'> The default value equals the minimum interval at which detection requests are sent to the monitored address.', 'type' => 'string', 'required' => false, 'example' => '60', 'title' => ''],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['description' => 'The pagination token.', 'type' => 'string', 'required' => false, 'example' => '49f7b317-7645-4cc9-94fd-ea42e5220930ea42e5220930ea42e522****', 'title' => ''],
],
[
'name' => 'Length',
'in' => 'query',
'schema' => ['description' => 'The number of data points to return.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1000', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'NextToken' => ['description' => 'The pagination token.', 'type' => 'string', 'example' => 'ea42e5220930ea42e522****', 'title' => ''],
'Data' => ['description' => 'The monitoring data.', 'type' => 'string', 'example' => '[{"Maximum":247,"Mimimum":61,"Average":154,"userId":"127067667954****","taskId":"49f7b317-7645-4cc9-94fd-ea42e522****","timestamp":1551581760000}]', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3febb181-0d98-4af9-8b04-7faf36b048b9', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values: true: The request was successful. false: The request failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'Code' => ['description' => 'The responses code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'Successful', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'Forbidden', 'errorMessage' => 'You are not authorized to operate the specified resource.', 'description' => 'No permission, please use RAM to authorize'],
],
406 => [
['errorCode' => 'ExceedingQuota', 'errorMessage' => 'Exceeding quota limits.', 'description' => 'The number of tasks exceeds the limit'],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'ThrottlingException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'DescribeSiteMonitorData',
'summary' => 'Queries the fine-grained monitoring data of a site monitoring task.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => 'The returned data contains a JSON string that may consist of several or all of the following parameters:'."\n"
."\n"
.'- Error4XXRate: the percentage of detection results with 4XX status codes.'."\n"
."\n"
.'- Error6XXRate: the percentage of detection results with 6XX status codes.'."\n"
."\n"
.'- Error5XXRate: the percentage of detection results with 5XX status codes.'."\n"
."\n"
.'- Error4XXNumber: the number of detection results with 4XX status codes.'."\n"
."\n"
.'- Error5XXNumber: the number of detection results with 5XX status codes.'."\n"
."\n"
.'- Error6XXNumber: the number of detection results with 6XX status codes.'."\n"
."\n"
.'- Over5totalTime: the percentage of detection requests to which the response time exceeds 5,000 ms.'."\n"
."\n"
.'- Over3totalTime: the percentage of detection requests to which the response time exceeds 3,000 ms.'."\n"
."\n"
.'- Over2totalTime: the percentage of detection requests to which the response time exceeds 2,000 ms.'."\n"
."\n"
.'- Over10FailureRate: the percentage of detection points whose failure rate of detection requests exceeds 10%.'."\n"
."\n"
.'- Over100FailureRate: the percentage of detection points whose failure rate of detection requests exceeds 99%.'."\n"
."\n"
.'- Over30FailureRate: the percentage of detection points whose failure rate of detection requests exceeds 30%.'."\n"
."\n"
.'- Over50FailureRate: the percentage of detection points whose failure rate of detection requests exceeds 50%.'."\n"
."\n"
.'- Over80FailureRate: the percentage of detection points whose failure rate of detection requests exceeds 80%.'."\n"
."\n"
.'- Over90FailureRate: the percentage of detection points whose failure rate of detection requests exceeds 90%.'."\n"
."\n"
.'- Over400NumberRate: the percentage of detection results with status codes that are greater than 400.'."\n"
."\n"
.'- Over400NumberRate: the percentage of detection results with status codes that are greater than 500.'."\n"
."\n"
.'- AvailableNumber: the number of available detection points.'."\n"
."\n"
.'- UnavailableNumber: the number of unavailable detection points.'."\n"
."\n"
.'- Availability: the availability rate.'."\n"
."\n"
.'- Unavailability: the unavailability rate.'."\n"
."\n"
.'- ErrorCodeMaximum: the maximum error code in the detection results that were returned in a specific period. Assume that five status codes are returned in a minute after detection requests are sent from five detection points. The status code in four detection results is 200 and that in one detection result is 404. In this case, the maximum error code is 404.'."\n"
."\n"
.'- ErrorCodeMinimum: the minimum error code in the detection results returned in a monitoring period. Assume that five status codes are returned in a minute after detection requests are sent from five detection points. The status code in four detection results is 200 and that in one detection result is 404. In this case, the minimum error code is 200.'."\n"
."\n"
.'> We recommend that you use the AvailableNumber, UnavailableNumber, Availability, Unavailability, ErrorCodeMaximum, or ErrorCodeMinimum metric, whose value is easy to calculate.',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSiteMonitorData'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeSiteMonitorData',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"ea42e5220930ea42e522****\\",\\n \\"Data\\": \\"[{\\\\\\"Maximum\\\\\\":247,\\\\\\"Mimimum\\\\\\":61,\\\\\\"Average\\\\\\":154,\\\\\\"userId\\\\\\":\\\\\\"127067667954****\\\\\\",\\\\\\"taskId\\\\\\":\\\\\\"49f7b317-7645-4cc9-94fd-ea42e522****\\\\\\",\\\\\\"timestamp\\\\\\":1551581760000}]\\",\\n \\"RequestId\\": \\"3febb181-0d98-4af9-8b04-7faf36b048b9\\",\\n \\"Success\\": \\"true\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Successful\\"\\n}","type":"json"}]',
],
'DescribeSiteMonitorISPCityList' => [
'summary' => 'Queries the details of all carrier detection points by calling the DescribeSiteMonitorISPCityList operation.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Isp',
'in' => 'query',
'schema' => ['description' => 'The name or ID of the carrier detection point.'."\n"
."\n"
.'> Fuzzy match is supported for carrier names.', 'type' => 'string', 'required' => false, 'example' => 'China Unicom', 'title' => ''],
],
[
'name' => 'City',
'in' => 'query',
'schema' => ['description' => 'The name or ID of the city where the carrier detection point resides.'."\n"
."\n"
.'> Fuzzy match is supported for city names.', 'type' => 'string', 'required' => false, 'example' => 'Guiyang', 'title' => ''],
],
[
'name' => 'IPV6',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to query IPv6 probes. Valid values:'."\n"
.'- true (default): Queries IPv6 probes.'."\n"
.'- false: Does not query IPv6 probes.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'IPV4',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to query IPv4 probes. Valid values:'."\n"
.'- true (default): Queries IPv4 probes.'."\n"
.'- false: Does not query IPv4 probes.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'ViewAll',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to return all detection points. Valid values:'."\n"
."\n"
.'- true (default): Returns all detection points.'."\n"
.'- false: Returns only available detection points.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '状态码。'."\n"
."\n"
.'> 200表示成功。', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful', 'title' => ''],
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'B35D7D84-547B-4E61-B909-48A1F8A0C756', 'title' => ''],
'Success' => ['description' => '操作是否成功。取值:'."\n"
."\n"
.'- true:成功。'."\n"
."\n"
.'- false:失败。', 'type' => 'string', 'example' => 'true', 'title' => ''],
'IspCityList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'IspCity' => [
'description' => '探测点列表。',
'type' => 'array',
'items' => [
'description' => '探测点列表。',
'type' => 'object',
'properties' => [
'CityName.en' => ['description' => '城市名称(英文)。', 'type' => 'string', 'example' => 'Guiyang', 'title' => ''],
'IPV4ProbeCount' => ['description' => 'IPv4探针数量。', 'type' => 'string', 'example' => '4', 'title' => ''],
'City' => ['description' => '城市ID。', 'type' => 'string', 'example' => '4', 'title' => ''],
'Isp' => ['description' => '运营商ID。', 'type' => 'string', 'example' => '232', 'title' => ''],
'CityName.zh_CN' => ['description' => '城市名称(简体中文)。'."\n"
.'> 该参数仅适用于中国站。', 'type' => 'string', 'example' => '贵阳市', 'title' => ''],
'Region.zh_CN' => ['description' => '省份(简体中文)。'."\n"
.'> 该参数仅适用于中国站。', 'type' => 'string', 'example' => '贵州省', 'title' => ''],
'IspName.zh_CN' => ['description' => '运营商名称(简体中文)。'."\n"
.'> 该参数仅适用于中国站。', 'type' => 'string', 'example' => '联通', 'title' => ''],
'Country.en' => ['description' => '国家(英文)。', 'type' => 'string', 'example' => 'China', 'title' => ''],
'IPV6ProbeCount' => ['description' => 'IPv6探针数量。', 'type' => 'string', 'example' => '3', 'title' => ''],
'Region' => ['description' => '省份代码。', 'type' => 'string', 'example' => '264', 'title' => ''],
'Country' => ['description' => '国家代码。', 'type' => 'string', 'example' => '629', 'title' => ''],
'IspName.en' => ['description' => '运营商名称(英文)。', 'type' => 'string', 'example' => 'China-Unicom', 'title' => ''],
'Region.en' => ['description' => '省份(英文)。', 'type' => 'string', 'example' => 'Guizhou', 'title' => ''],
'Country.zh_CN' => ['description' => '国家(简体中文)。'."\n"
.'> 该参数仅适用于中国站。', 'type' => 'string', 'example' => '中国', 'title' => ''],
'Area.zh_CN' => ['description' => '区域(简体中文)。'."\n"
."\n"
.'> 该参数仅适用于中国站。', 'type' => 'string', 'example' => '西南', 'title' => ''],
'Area.en' => ['description' => '区域(汉语拼音)。', 'type' => 'string', 'example' => 'XiNan', 'title' => ''],
'IPPool' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'IPPool' => [
'description' => 'IP地址池。',
'type' => 'array',
'items' => ['description' => 'IP地址池。', 'type' => 'string', 'example' => '["192.68.XX.XX","192.68.XX.XX"]', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'Forbidden', 'errorMessage' => 'You are not authorized to operate the specified resource.', 'description' => 'No permission, please use RAM to authorize'],
],
406 => [
['errorCode' => 'ExceedingQuota', 'errorMessage' => 'Exceeding quota limits.', 'description' => 'The number of tasks exceeds the limit'],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'ThrottlingException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Query details of all carrier detection points',
'description' => '本文将提供一个示例,查询运营商“联通”在“贵阳市”的探测点详情。',
'requestParamsDescription' => 'For details about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2021-10-28T06:46:29.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-10-28T06:46:29.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSiteMonitorISPCityList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeSiteMonitorISPCityList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"B35D7D84-547B-4E61-B909-48A1F8A0C756\\",\\n \\"Success\\": \\"true\\",\\n \\"IspCityList\\": {\\n \\"IspCity\\": [\\n {\\n \\"CityName.en\\": \\"Guiyang\\",\\n \\"IPV4ProbeCount\\": \\"4\\",\\n \\"City\\": \\"4\\",\\n \\"Isp\\": \\"232\\",\\n \\"CityName.zh_CN\\": \\"贵阳市\\",\\n \\"Region.zh_CN\\": \\"贵州省\\",\\n \\"IspName.zh_CN\\": \\"联通\\",\\n \\"Country.en\\": \\"China\\",\\n \\"IPV6ProbeCount\\": \\"3\\",\\n \\"Region\\": \\"264\\",\\n \\"Country\\": \\"629\\",\\n \\"IspName.en\\": \\"China-Unicom\\",\\n \\"Region.en\\": \\"Guizhou\\",\\n \\"Country.zh_CN\\": \\"中国\\",\\n \\"Area.zh_CN\\": \\"西南\\",\\n \\"Area.en\\": \\"XiNan\\",\\n \\"IPPool\\": {\\n \\"IPPool\\": [\\n \\"[\\\\\\"192.68.XX.XX\\\\\\",\\\\\\"192.68.XX.XX\\\\\\"]\\"\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeSiteMonitorList' => [
'summary' => 'Queries the list of site monitoring tasks by calling the DescribeSiteMonitorList operation.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'TaskId',
'in' => 'query',
'schema' => ['description' => 'The ID of the site monitoring task.', 'type' => 'string', 'required' => false, 'example' => 'a1ecd34a-8157-44d9-b060-14950837****', 'title' => ''],
],
[
'name' => 'TaskType',
'in' => 'query',
'schema' => ['description' => 'The type of the site monitoring task. CloudMonitor supports the following types: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.', 'type' => 'string', 'required' => false, 'example' => 'HTTP', 'title' => ''],
],
[
'name' => 'Keyword',
'in' => 'query',
'schema' => ['description' => 'The keyword used to search for site monitoring tasks.'."\n"
."\n"
.'> Fuzzy match is supported based on the task name or task address.', 'type' => 'string', 'required' => false, 'example' => 'site', 'title' => ''],
],
[
'name' => 'Page',
'in' => 'query',
'schema' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'TaskState',
'in' => 'query',
'schema' => ['description' => 'The task status. Valid values:'."\n"
."\n"
.'- 1: Normal.'."\n"
."\n"
.'- 2: Disabled.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'AgentGroup',
'in' => 'query',
'schema' => [
'description' => 'The type of detection points used by the task. Valid values:'."\n"
."\n"
.'- PC: PC-based detection points.'."\n"
."\n"
.'- MOBILE: mobile-based detection points.'."\n"
."\n"
.'- FC: internal detection points.',
'type' => 'string',
'enum' => ['PC', 'MOBILE', 'FC'],
'required' => false,
'example' => 'PC',
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'A80DB41C-AF6C-50E1-ADB5-66DCBA3D266B', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: Successful.'."\n"
."\n"
.'- false: Failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'successful', 'title' => ''],
'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
'TotalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'SiteMonitors' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'SiteMonitor' => [
'description' => 'The list of site monitoring tasks.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'TaskType' => ['description' => 'The type of the site monitoring task. CloudMonitor supports the following types: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.', 'type' => 'string', 'example' => 'TCP', 'title' => ''],
'UpdateTime' => ['description' => 'The time when the site monitoring task was last updated.', 'type' => 'string', 'example' => '2022-03-08 17:14:31', 'title' => ''],
'Interval' => ['description' => 'The monitoring interval. Unit: minutes.', 'type' => 'string', 'example' => '1', 'title' => ''],
'TaskState' => ['description' => 'The task status. Valid values:'."\n"
."\n"
.'- 1: Normal.'."\n"
."\n"
.'- 2: Disabled.', 'type' => 'string', 'example' => '1', 'title' => ''],
'CreateTime' => ['description' => 'The time when the task was created.', 'type' => 'string', 'example' => '2021-11-01 11:05:18', 'title' => ''],
'TaskName' => ['description' => 'The name of the site monitoring task.', 'type' => 'string', 'example' => 'New monitoring task', 'title' => ''],
'Address' => ['description' => 'The URL or IP address that is monitored by the task.', 'type' => 'string', 'example' => 'https://aliyun.com', 'title' => ''],
'TaskId' => ['description' => 'The ID of the site monitoring task.', 'type' => 'string', 'example' => 'f5783760-1b39-4b6b-80e8-453d962a****', 'title' => ''],
'OptionsJson' => [
'description' => 'The extended options. Each monitoring type has different extended options. For more information, see [CreateSiteMonitor](~~115048~~).',
'type' => 'object',
'properties' => [
'password' => ['description' => 'The password for the SMTP, POP3, or FTP monitoring type.', 'type' => 'string', 'example' => '123****', 'title' => ''],
'request_format' => ['description' => 'The format of the HTTP request content. Valid values:'."\n"
.'- hex: hexadecimal format.'."\n"
.'- txt: text format.', 'type' => 'string', 'example' => 'hex', 'title' => ''],
'response_content' => ['description' => 'The matched response content.'."\n"
.'- Hexadecimal format: When the request content is a byte string that cannot be represented by printable characters, you can convert the byte string to a hexadecimal string. The conversion rule is as follows: each byte is converted to a two-character hexadecimal representation. For example, 1 byte (1B) is converted to `01` in hexadecimal, and 27 bytes (27B) is converted to `1B` in hexadecimal. The binary array (in Java format) `{(byte)1, (byte)27}` is converted to `011b` or `011B` in hexadecimal. Site monitoring is case-insensitive for hexadecimal values. Enter the string `011B` in the request content and set the request content format to hexadecimal.'."\n"
."\n"
.'- Text format: plain text, which is a string composed of printable characters.', 'type' => 'string', 'example' => 'cf0f85', 'title' => ''],
'failure_rate' => ['description' => 'The packet loss rate.'."\n"
."\n"
.'> This parameter is applicable only to the PING monitoring type.', 'type' => 'number', 'format' => 'float', 'example' => '0.5', 'title' => ''],
'time_out' => ['description' => 'The timeout period. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '3000', 'title' => ''],
'header' => ['description' => 'The HTTP request header. The format is `key1:value1`. Multiple headers are separated by line breaks.', 'type' => 'string', 'example' => 'testKey:testValue', 'title' => ''],
'cookie' => ['description' => 'The cookie text for the HTTP request.', 'type' => 'string', 'example' => 'lang=en', 'title' => ''],
'port' => ['description' => 'The port for the TCP, UDP, SMTP, or POP3 monitoring type.', 'type' => 'integer', 'format' => 'int32', 'example' => '80', 'title' => ''],
'ping_num' => ['description' => 'The number of PING attempts.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
'authentication' => ['description' => 'Specifies whether security authentication is enabled. Valid values:'."\n"
.'- 0: Enabled.'."\n"
.'- 1: Disabled.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'http_method' => ['description' => 'The HTTP request method. Valid values:'."\n"
.'- get '."\n"
.'- post'."\n"
.'- head.', 'type' => 'string', 'example' => 'get', 'title' => ''],
'match_rule' => ['description' => 'Specifies whether alert rules are included. Valid values:'."\n"
.'- 0: Included.'."\n"
.'- 1: Not included.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'dns_match_rule' => ['description' => 'The DNS matching rule. Valid values:'."\n"
."\n"
.'- IN_DNS: The expected aliases or IP addresses are all included in the DNS response.'."\n"
.'- DNS_IN: All DNS responses are included in the expected aliases or IP addresses.'."\n"
.'- EQUAL: The DNS response exactly matches the expected aliases or IP addresses.'."\n"
.'- ANY: The DNS response and the expected aliases or IP addresses have an intersection.', 'type' => 'string', 'example' => 'IN_DNS', 'title' => ''],
'request_content' => ['description' => 'The HTTP request content.', 'type' => 'string', 'example' => 'cf0f85', 'title' => ''],
'username' => ['description' => 'The username for the FTP, SMTP, or POP3 monitoring type.', 'type' => 'string', 'example' => 'testUser', 'title' => ''],
'response_format' => ['description' => 'The format of the HTTP response content. Valid values:'."\n"
.'- hex: hexadecimal format.'."\n"
.'- txt: text format.', 'type' => 'string', 'example' => 'hex', 'title' => ''],
'dns_type' => ['description' => 'The DNS resolution type. This parameter is applicable only to the DNS monitoring type. Valid values:'."\n"
.'- A (default): specifies the IP address that corresponds to the hostname or domain name.'."\n"
.'- CNAME: maps multiple domain names to another domain name.'."\n"
.'- NS: specifies the DNS server that resolves the domain name.'."\n"
.'- MX: points the domain name to a mail server address.'."\n"
.'- TXT: the description of the hostname or domain name. The text length is limited to 512 bytes. This type is typically used for Sender Policy Framework (SPF) records for anti-spam purposes.'."\n"
.'- AAAA: the DNS record that resolves a domain name to an IPv6 address.', 'type' => 'string', 'example' => 'A', 'title' => ''],
'dns_server' => ['description' => 'The domain name or IP address of the specified DNS server.', 'type' => 'string', 'example' => '192.168.XX.XX', 'title' => ''],
'enable_operator_dns' => ['description' => 'Specifies whether to use the carrier DNS. Valid values:'."\n"
.'- true (default): Uses the carrier DNS.'."\n"
.'- false: Does not use the carrier DNS. Uses the default DNS or the DNS of the specified server.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'attempts' => ['description' => 'The number of retries after a DNS failure.', 'type' => 'integer', 'format' => 'int64', 'example' => '3', 'title' => ''],
'protocol' => ['description' => 'The DNS protocol type. Valid values:'."\n"
.'- udp (default)'."\n"
.'- tcp'."\n"
.'- tcp-tls.', 'type' => 'string', 'example' => 'udp', 'title' => ''],
'proxy_protocol' => ['description' => 'Specifies whether ProxyProtocol is enabled. Valid values:'."\n"
.'- false (default): ProxyProtocol is disabled.'."\n"
.'- true: ProxyProtocol is enabled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'acceptable_response_code' => ['description' => 'The acceptable status codes. '."\n"
."\n"
.'> Use assertion configurations instead.', 'type' => 'string', 'example' => '400', 'title' => ''],
'isBase64Encode' => ['description' => 'Specifies whether to store the password after Base64 decoding. Valid values:'."\n"
.'- true: Stores the password after Base64 decoding.'."\n"
.'- false (default): Does not store the password after Base64 decoding.', 'type' => 'string', 'example' => 'false', 'title' => ''],
'cert_verify' => ['description' => 'Specifies whether to verify the certificate. Valid values:'."\n"
.'- false (default): Skips certificate verification.'."\n"
.'- true: Verifies the certificate.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'unfollow_redirect' => ['description' => 'Specifies whether to follow redirects when a 301 or 302 status code is returned. Valid values:'."\n"
.'- true: Does not follow redirects.'."\n"
.'- false (default): Follows redirects.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'diagnosis_mtr' => ['description' => 'Specifies whether to enable automatic MTR network diagnostics after a task failure. Valid values:'."\n"
.'- false (default): Disables automatic MTR network diagnostics.'."\n"
.'- true: Enables automatic MTR network diagnostics.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'diagnosis_ping' => ['description' => 'Specifies whether to enable automatic Ping network latency detection after a monitoring task failure. Valid values:'."\n"
.'- false (default): Disabled.'."\n"
.'- true: Enabled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'retry_delay' => ['description' => 'The number of retries after a monitoring failure.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'assertions' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'assertions' => [
'description' => 'The assertion configuration group.',
'type' => 'array',
'items' => [
'description' => 'The assertion configuration group.',
'type' => 'object',
'properties' => [
'property' => ['description' => 'The parsing path for the assertion content.'."\n"
."\n"
.'- If the assertion type is `body_json`, the path is a `json path`.'."\n"
."\n"
.'- If the assertion type is `body_xml`, the path is an `xml path`.', 'type' => 'string', 'example' => 'json path', 'title' => ''],
'type' => ['description' => 'The assertion type. Valid values:'."\n"
.'- response_time: determines whether the response time meets expectations.'."\n"
.'- status_code: determines whether the HTTP response status code meets expectations.'."\n"
.'- header: determines whether a field in the response header meets expectations.'."\n"
.'- body_text: determines whether the response body content meets expectations through text character matching.'."\n"
.'- body_json: determines whether the response body content meets expectations through JSON parsing (JSON Path).'."\n"
.'- body_xml: determines whether the response body content meets expectations through XML parsing (XPath).', 'type' => 'string', 'example' => 'response_time', 'title' => ''],
'operator' => ['description' => 'The assertion comparison operator. Valid values:'."\n"
.'- contains: contains.'."\n"
.'- doesNotContain: does not contain.'."\n"
.'- matches: matches a regular expression.'."\n"
.'- doesNotMatch: does not match a regular expression.'."\n"
.'- is: equals (numeric or string).'."\n"
.'- isNot: does not equal.'."\n"
.'- lessThan: less than.'."\n"
.'- moreThan: greater than.', 'type' => 'string', 'example' => 'lessThan', 'title' => ''],
'target' => ['description' => 'The target value or string for assertion comparison.', 'type' => 'string', 'example' => '1000', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'AgentGroup' => ['description' => 'The type of detection point. Valid values:'."\n"
."\n"
.'- PC: PC-based.'."\n"
.'- MOBILE: mobile-based.', 'type' => 'string', 'example' => 'PC', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'Forbidden', 'errorMessage' => 'You are not authorized to operate the specified resource.', 'description' => 'No permission, please use RAM to authorize'],
],
406 => [
['errorCode' => 'ExceedingQuota', 'errorMessage' => 'Exceeding quota limits.', 'description' => 'The number of tasks exceeds the limit'],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'ThrottlingException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Query site monitoring tasks',
'description' => 'This topic provides an example of how to query the list of site monitoring tasks for the current account. The response shows that the current account has one site monitoring task named `HanZhou_ECS2`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-05-07T03:43:08.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2023-05-22T07:54:08.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2022-06-17T07:34:28.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2022-05-30T06:34:21.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-09-16T09:06:08.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSiteMonitorList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeSiteMonitorList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A80DB41C-AF6C-50E1-ADB5-66DCBA3D266B\\",\\n \\"Success\\": \\"true\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 1,\\n \\"SiteMonitors\\": {\\n \\"SiteMonitor\\": [\\n {\\n \\"TaskType\\": \\"TCP\\",\\n \\"UpdateTime\\": \\"2022-03-08 17:14:31\\",\\n \\"Interval\\": \\"1\\",\\n \\"TaskState\\": \\"1\\",\\n \\"CreateTime\\": \\"2021-11-01 11:05:18\\",\\n \\"TaskName\\": \\"New monitoring task\\",\\n \\"Address\\": \\"https://aliyun.com\\",\\n \\"TaskId\\": \\"f5783760-1b39-4b6b-80e8-453d962a****\\",\\n \\"OptionsJson\\": {\\n \\"password\\": \\"123****\\",\\n \\"request_format\\": \\"hex\\",\\n \\"response_content\\": \\"cf0f85\\",\\n \\"failure_rate\\": 0.5,\\n \\"time_out\\": 3000,\\n \\"header\\": \\"testKey:testValue\\",\\n \\"cookie\\": \\"lang=en\\",\\n \\"port\\": 80,\\n \\"ping_num\\": 20,\\n \\"authentication\\": 1,\\n \\"http_method\\": \\"get\\",\\n \\"match_rule\\": 0,\\n \\"dns_match_rule\\": \\"IN_DNS\\",\\n \\"request_content\\": \\"cf0f85\\",\\n \\"username\\": \\"testUser\\",\\n \\"response_format\\": \\"hex\\",\\n \\"dns_type\\": \\"A\\",\\n \\"dns_server\\": \\"192.168.XX.XX\\",\\n \\"enable_operator_dns\\": true,\\n \\"attempts\\": 3,\\n \\"protocol\\": \\"udp\\",\\n \\"proxy_protocol\\": false,\\n \\"acceptable_response_code\\": \\"400\\",\\n \\"isBase64Encode\\": \\"false\\",\\n \\"cert_verify\\": false,\\n \\"unfollow_redirect\\": false,\\n \\"diagnosis_mtr\\": false,\\n \\"diagnosis_ping\\": false,\\n \\"retry_delay\\": 1,\\n \\"assertions\\": {\\n \\"assertions\\": [\\n {\\n \\"property\\": \\"json path\\",\\n \\"type\\": \\"response_time\\",\\n \\"operator\\": \\"lessThan\\",\\n \\"target\\": \\"1000\\"\\n }\\n ]\\n }\\n },\\n \\"AgentGroup\\": \\"PC\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeSiteMonitorLog' => [
'summary' => 'Call the DescribeSiteMonitorLog operation to query the detection logs for a one-time detection task.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'TaskIds',
'in' => 'query',
'schema' => ['description' => 'The ID of the detection task. You can specify multiple task IDs. Separate them with commas (,).', 'type' => 'string', 'required' => true, 'example' => 'afa5c3ce-f944-4363-9edb-ce919a29****', 'title' => ''],
],
[
'name' => 'Isp',
'in' => 'query',
'schema' => ['description' => 'The carrier ID.', 'type' => 'string', 'required' => false, 'example' => '465', 'title' => ''],
],
[
'name' => 'City',
'in' => 'query',
'schema' => ['description' => 'The city ID.', 'type' => 'string', 'required' => false, 'example' => '546', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The metric.'."\n"
."\n"
.'Only the `ProbeLog` metric is supported.', 'type' => 'string', 'required' => false, 'example' => 'ProbeLog', 'title' => ''],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => 'The beginning of the time range to query. The following formats are supported:'."\n"
."\n"
.'- UNIX timestamp: the number of milliseconds that have elapsed since January 1, 1970.'."\n"
."\n"
.'- UTC format: YYYY-MM-DDThh:mm:ssZ.'."\n"
."\n"
.'> * The start time and end time follow the (StartTime, EndTime] pattern. The value of StartTime cannot be the same as or later than the value of EndTime.
- Use UNIX timestamps to prevent time zone-related issues.
', 'type' => 'string', 'required' => false, 'example' => '1638422474389', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => 'The end of the time range to query. The following formats are supported:'."\n"
."\n"
.'- UNIX timestamp: the number of milliseconds that have elapsed since January 1, 1970.'."\n"
."\n"
.'- UTC format: YYYY-MM-DDThh:mm:ssZ.'."\n"
."\n"
.'> Use UNIX timestamps to prevent time zone-related issues.', 'type' => 'string', 'required' => false, 'example' => '1638422475687', 'title' => ''],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => ['description' => 'If the response is truncated, use the `NextToken` parameter to retrieve the next page of results.', 'type' => 'string', 'required' => false, 'example' => 'IWBjqMYSy0is7zSMGu16****', 'title' => ''],
],
[
'name' => 'Length',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page for a paged query. Valid values: 1 to 1440.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1000', 'title' => ''],
],
[
'name' => 'Filter',
'in' => 'query',
'schema' => ['description' => 'The filter expression for detection results.'."\n"
."\n"
.'Simple expressions are supported. For example, you can use the `TotalTime>100` expression to query the detection data whose total response time exceeds 100 milliseconds.', 'type' => 'string', 'required' => false, 'example' => 'TotalTime>100', 'title' => ''],
],
[
'name' => 'BrowserInfo',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => ['description' => 'This parameter is deprecated. You do not need to specify this parameter.', 'type' => 'string', 'required' => false, 'example' => '无', 'title' => ''],
],
[
'name' => 'Browser',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => [
'description' => 'The type of the browser.',
'enumValueTitles' => [' Chrome' => 'Chrome', 'Safari' => 'Safari', 'Edge' => 'Edge', 'Firefox' => 'Firefox'],
'type' => 'string',
'required' => false,
'example' => 'Chrome',
'title' => '',
],
],
[
'name' => 'Device',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => [
'description' => 'The type of the device. This parameter specifies the screen size for impersonation.',
'enumValueTitles' => ['tablet' => 'tablet', 'mobile' => 'mobile', 'laptop' => 'laptop'],
'type' => 'string',
'required' => false,
'example' => 'laptop',
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'N/A',
'type' => 'object',
'properties' => [
'NextToken' => ['description' => 'The token that is used to query the next page.', 'type' => 'string', 'example' => 'IWBjqMYSy0is7zSMGu16****', 'title' => ''],
'Data' => ['description' => 'The detection logs of the one-time detection task.', 'type' => 'string', 'example' => '[{\\"redirectCount\\":0.0,\\"SSLConnectTime\\":0.0,\\"pingDetail\\":\\"\\",\\"HTTPConnectTime\\":0.0,\\"isp\\":\\"465\\",\\"errorCode\\":611,\\"ispCN\\":\\"阿里巴巴\\",\\"resolution\\":\\"\\",\\"areaEN\\":\\"HuaBei\\",\\"taskEndTimestamp\\":1638422475687,\\"targetIspEN\\":\\"\\",\\"TotalTime\\":1.0,\\"taskStartTimestamp\\":1638422474389,\\"countryCN\\":\\"中国\\",\\"provinceEN\\":\\"Beijing\\",\\"countryEN\\":\\"China\\",\\"targetCityEN\\":\\"\\",\\"curlConnectTime\\":0.0,\\"ips\\":\\"\\",\\"route\\":\\"\\",\\"tcpConnectTime\\":0.0,\\"cityEN\\":\\"Beijing\\",\\"HTTPDownloadSpeed\\":0.0,\\"HTTPDownloadTime\\":0.0,\\"HTTPResponseCode\\":0.0,\\"areaCN\\":\\"华北\\",\\"city\\":\\"546\\",\\"expection\\":\\"\\",\\"suorceIp\\":\\"192.168.XX.XX \\",\\"ispEN\\":\\"Alibaba\\",\\"HTTPDNSTime\\":1.0,\\"targetIsp\\":\\"\\",\\"curlStarttransferTime\\":0.0,\\"provinceCN\\":\\"北京市\\",\\"timestamp\\":1638422474000,\\"redirectTime\\":0.0,\\"targetCity\\":\\"\\", \\"expect\\":\\"\\",\\"HTTPDownloadSize\\":0.0,\\"localDns\\":\\"192.168.XX.XX\\",\\"cityCN\\":\\"北京市\\",\\"taskId\\":\\"afa5c3ce-f944-4363-9edb-ce919a29****\\"}]', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '67F646FA-ED8A-58C2-B461-451DB52C8B14', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A status code of 200 indicates that the operation was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'successful', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'Forbidden', 'errorMessage' => 'You are not authorized to operate the specified resource.', 'description' => 'No permission, please use RAM to authorize'],
],
406 => [
['errorCode' => 'ExceedingQuota', 'errorMessage' => 'Exceeding quota limits.', 'description' => 'The number of tasks exceeds the limit'],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'ThrottlingException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'DescribeSiteMonitorLog',
'description' => 'Only Alibaba Cloud accounts with Network Analysis and Monitoring activated can create one-time detection tasks.'."\n"
."\n"
.'This topic provides an example of how to query the detection logs for the one-time detection task `afa5c3ce-f944-4363-9edb-ce919a29****`.',
'changeSet' => [
['createdAt' => '2023-08-22T07:49:39.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2023-04-03T11:31:12.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSiteMonitorLog'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'cms:DescribeSiteMonitorLog',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"IWBjqMYSy0is7zSMGu16****\\",\\n \\"Data\\": \\"[{\\\\\\\\\\\\\\"redirectCount\\\\\\\\\\\\\\":0.0,\\\\\\\\\\\\\\"SSLConnectTime\\\\\\\\\\\\\\":0.0,\\\\\\\\\\\\\\"pingDetail\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"HTTPConnectTime\\\\\\\\\\\\\\":0.0,\\\\\\\\\\\\\\"isp\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"465\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"errorCode\\\\\\\\\\\\\\":611,\\\\\\\\\\\\\\"ispCN\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"阿里巴巴\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"resolution\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"areaEN\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"HuaBei\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"taskEndTimestamp\\\\\\\\\\\\\\":1638422475687,\\\\\\\\\\\\\\"targetIspEN\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"TotalTime\\\\\\\\\\\\\\":1.0,\\\\\\\\\\\\\\"taskStartTimestamp\\\\\\\\\\\\\\":1638422474389,\\\\\\\\\\\\\\"countryCN\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"中国\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"provinceEN\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Beijing\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"countryEN\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"China\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"targetCityEN\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"curlConnectTime\\\\\\\\\\\\\\":0.0,\\\\\\\\\\\\\\"ips\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"route\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"tcpConnectTime\\\\\\\\\\\\\\":0.0,\\\\\\\\\\\\\\"cityEN\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Beijing\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"HTTPDownloadSpeed\\\\\\\\\\\\\\":0.0,\\\\\\\\\\\\\\"HTTPDownloadTime\\\\\\\\\\\\\\":0.0,\\\\\\\\\\\\\\"HTTPResponseCode\\\\\\\\\\\\\\":0.0,\\\\\\\\\\\\\\"areaCN\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"华北\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"city\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"546\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"expection\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"suorceIp\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"192.168.XX.XX \\\\\\\\\\\\\\",\\\\\\\\\\\\\\"ispEN\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Alibaba\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"HTTPDNSTime\\\\\\\\\\\\\\":1.0,\\\\\\\\\\\\\\"targetIsp\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"curlStarttransferTime\\\\\\\\\\\\\\":0.0,\\\\\\\\\\\\\\"provinceCN\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"北京市\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"timestamp\\\\\\\\\\\\\\":1638422474000,\\\\\\\\\\\\\\"redirectTime\\\\\\\\\\\\\\":0.0,\\\\\\\\\\\\\\"targetCity\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"\\\\\\\\\\\\\\", \\\\\\\\\\\\\\"expect\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"HTTPDownloadSize\\\\\\\\\\\\\\":0.0,\\\\\\\\\\\\\\"localDns\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"192.168.XX.XX\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cityCN\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"北京市\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"taskId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"afa5c3ce-f944-4363-9edb-ce919a29****\\\\\\\\\\\\\\"}]\\",\\n \\"RequestId\\": \\"67F646FA-ED8A-58C2-B461-451DB52C8B14\\",\\n \\"Success\\": \\"true\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]',
],
'DescribeSiteMonitorQuota' => [
'summary' => 'Calls the DescribeSiteMonitorQuota operation to query the quota and version of site monitoring.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The value 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'Request succeeded.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '26860260-76C6-404E-AB7A-EB98D36A6885', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'Data' => [
'description' => 'The quota information.',
'type' => 'object',
'properties' => [
'SiteMonitorOperatorQuotaQuota' => ['description' => 'The quota of non-Alibaba detection points. Default value: 0.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'SecondMonitor' => ['description' => 'Indicates whether second-level monitoring is enabled. Valid values:'."\n"
."\n"
.'- true: enabled.'."\n"
."\n"
.'- false: disabled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'SiteMonitorQuotaTaskUsed' => ['description' => 'The number of used site monitoring detection task quotas.', 'type' => 'integer', 'format' => 'int32', 'example' => '6', 'title' => ''],
'SiteMonitorTaskQuota' => ['description' => 'The quota of site monitoring detection tasks.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
'SiteMonitorVersion' => ['description' => 'The version of site monitoring. Valid values:'."\n"
."\n"
.'- V1: the old version.'."\n"
.' '."\n"
.'- V2: the new version.', 'type' => 'string', 'example' => 'V1', 'title' => ''],
'SiteMonitorIdcQuota' => ['description' => 'The quota of Alibaba detection points. The free quota is 5.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'Forbidden', 'errorMessage' => 'You are not authorized to operate the specified resource.', 'description' => 'No permission, please use RAM to authorize'],
],
406 => [
['errorCode' => 'ExceedingQuota', 'errorMessage' => 'Exceeding quota limits.', 'description' => 'The number of tasks exceeds the limit'],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'staticInfo' => [],
'title' => 'Queries the quota and version of site monitoring',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-12-27T07:31:02.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSiteMonitorQuota'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeSiteMonitorQuota',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Request succeeded.\\",\\n \\"RequestId\\": \\"26860260-76C6-404E-AB7A-EB98D36A6885\\",\\n \\"Success\\": \\"true\\",\\n \\"Data\\": {\\n \\"SiteMonitorOperatorQuotaQuota\\": 0,\\n \\"SecondMonitor\\": false,\\n \\"SiteMonitorQuotaTaskUsed\\": 6,\\n \\"SiteMonitorTaskQuota\\": 10,\\n \\"SiteMonitorVersion\\": \\"V1\\",\\n \\"SiteMonitorIdcQuota\\": 5\\n }\\n}","type":"json"}]',
],
'DescribeSiteMonitorStatistics' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'TaskId',
'in' => 'query',
'schema' => ['description' => 'The ID of the site monitoring task.'."\n"
."\n"
.'For information about how to obtain the ID of a site monitoring task, see [DescribeSiteMonitorList](~~115052~~).', 'type' => 'string', 'required' => true, 'example' => 'ef4cdc8b-9dc7-43e7-810e-f950e56c****', 'title' => ''],
],
[
'name' => 'TimeRange',
'in' => 'query',
'schema' => ['description' => 'The statistical period.'."\n"
."\n\n"
.'Unit: minutes. Default value: 1440 (1 day). Maximum value: 43200 (30 days).', 'type' => 'string', 'required' => false, 'example' => '1440', 'title' => ''],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => 'The beginning of the time range to query.'."\n"
."\n"
.'Unit: milliseconds. Default value: 1 hour before the current time.', 'type' => 'string', 'required' => false, 'example' => '1576142850527', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The name of the metric. Valid values:'."\n"
."\n"
.'- Availability: the availability.'."\n"
.'- ErrorRate: the error rate.'."\n"
.'- ResponseTime: the response time.', 'type' => 'string', 'required' => true, 'example' => 'Availability', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
.'> The value 200 indicates that the call is successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'Successful', 'title' => ''],
'Data' => ['description' => 'The statistical result.', 'type' => 'string', 'example' => '100', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '3AD2724D-E317-4BFB-B422-D6691D071BE1', 'title' => ''],
'Success' => ['description' => 'Indicates whether the call is successful. Valid values:'."\n"
."\n"
.'- true: The call is successful.'."\n"
."\n"
.'- false: The call failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => 'InvalidParameterValue', 'errorMessage' => 'The specified parameter is not valid.', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
403 => [
['errorCode' => 'Forbidden', 'errorMessage' => 'You are not authorized to operate the specified resource.', 'description' => 'No permission, please use RAM to authorize'],
['errorCode' => 'InvalidClientTokenId', 'errorMessage' => 'The X.509 certificate or cms access key ID provided does not exist in our records.', 'description' => ''],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'Throttli∂ngException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Queries the average statistics of a specified metric in a specified site monitoring task.',
'summary' => 'Queries the average statistics of a specified metric in a specified site monitoring task by calling the DescribeSiteMonitorStatistics operation.',
'description' => 'This topic provides an example on how to query the average statistics of the `Availability` metric in the site monitoring task whose ID is `ef4cdc8b-9dc7-43e7-810e-f950e56c****`. The returned result shows that the availability is `100`.'."\n"
."\n\n",
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSiteMonitorStatistics'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeSiteMonitorStatistics',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Data\\": \\"100\\",\\n \\"RequestId\\": \\"3AD2724D-E317-4BFB-B422-D6691D071BE1\\",\\n \\"Success\\": \\"true\\"\\n}","type":"json"}]',
],
'DescribeSyntheticProbeList' => [
'summary' => 'Queries a list of detection points.',
'path' => '',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Isp',
'in' => 'query',
'schema' => ['description' => 'The name or ID of the carrier.', 'type' => 'string', 'example' => 'China Unicom', 'required' => false, 'title' => ''],
],
[
'name' => 'City',
'in' => 'query',
'schema' => ['description' => 'The name or ID of the city where the carrier detection point is located.', 'type' => 'string', 'example' => 'Beijing', 'required' => false, 'title' => ''],
],
[
'name' => 'Ipv4',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to return only IPv4 detection points.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''],
],
[
'name' => 'Ipv6',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to return only IPv6 detection points.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''],
],
[
'name' => 'ViewAll',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to return all detection points. Valid values:'."\n"
."\n"
.'- false (default): Returns the detection points that are available to you.'."\n"
."\n"
.'- true: Returns all detection points.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'MbProbe',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to return only mobile detection points.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''],
],
[
'name' => 'LmProbe',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to return only last-mile detection points.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''],
],
[
'name' => 'IdcProbe',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to return only detection points in data centers.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'The response schema.',
'type' => 'object',
'properties' => [
'Code' => ['title' => '', 'description' => 'The status code.', 'type' => 'string', 'example' => '200'],
'IspCityList' => [
'description' => 'The list of detection points.',
'type' => 'array',
'items' => [
'description' => 'The details of a detection point.',
'type' => 'object',
'properties' => [
'AreaCn' => ['description' => 'The name of the area in Chinese.', 'type' => 'string', 'example' => '华北', 'title' => ''],
'AreaEn' => ['description' => 'The name of the area in English.', 'type' => 'string', 'example' => 'Huabei', 'title' => ''],
'City' => ['description' => 'The city ID.', 'type' => 'string', 'example' => '738', 'title' => ''],
'CityCn' => ['description' => 'The name of the city in Chinese.', 'type' => 'string', 'example' => '北京', 'title' => ''],
'CityEn' => ['description' => 'The name of the city in English.', 'type' => 'string', 'example' => 'Beijing', 'title' => ''],
'Country' => ['description' => 'The country code.', 'type' => 'string', 'example' => '629', 'title' => ''],
'CountryCn' => ['description' => 'The name of the country in Chinese.', 'type' => 'string', 'example' => '中国', 'title' => ''],
'CountryEn' => ['description' => 'The name of the country or region in English.', 'type' => 'string', 'example' => 'China', 'title' => ''],
'IpPool' => [
'description' => 'The list of node IP addresses.',
'type' => 'array',
'items' => ['description' => 'The node IP address.', 'type' => 'string', 'example' => '1.1.1.1', 'title' => ''],
'title' => '',
'example' => '',
],
'Isp' => ['description' => 'The carrier ID.', 'type' => 'string', 'example' => '232', 'title' => ''],
'IspCn' => ['description' => 'The name of the carrier in Chinese.', 'type' => 'string', 'example' => '联通', 'title' => ''],
'IspEn' => ['description' => 'The name of the carrier in English.', 'type' => 'string', 'example' => 'China-Unicom', 'title' => ''],
'LmProbeCount' => ['description' => 'The number of last-mile detection points.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'MbProbeCount' => ['description' => 'The number of mobile detection points.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Region' => ['description' => 'The province code.', 'type' => 'string', 'example' => '264', 'title' => ''],
'RegionCn' => ['description' => 'The name of the province in Chinese.', 'type' => 'string', 'example' => '江西省', 'title' => ''],
'RegionEn' => ['description' => 'The name of the province in English.', 'type' => 'string', 'example' => 'Jiangxi', 'title' => ''],
'IdcV4ProbeCount' => ['description' => 'The number of IPv4 detection points in data centers.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'IdcV6ProbeCount' => ['description' => 'The number of IDC IPv6 nodes.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '87170bc7-e28a-4c93-b9bf-90a1dbe84736', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values: true: The operation was successful. false: The operation failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameterValue', 'errorMessage' => 'Illegal parameters.', 'description' => 'Illegal parameters.'],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'Forbidden', 'errorMessage' => 'You are not authorized to operate the specified resource.', 'description' => 'No permission, please use RAM to authorize'],
],
406 => [
['errorCode' => 'ExceedingQuota', 'errorMessage' => 'Exceeding quota limits.', 'description' => 'The number of tasks exceeds the limit'],
],
429 => [
['errorCode' => 'ThrottlingException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalUnknownError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"IspCityList\\": [\\n {\\n \\"AreaCn\\": \\"华北\\",\\n \\"AreaEn\\": \\"Huabei\\",\\n \\"City\\": \\"738\\",\\n \\"CityCn\\": \\"北京\\",\\n \\"CityEn\\": \\"Beijing\\",\\n \\"Country\\": \\"629\\",\\n \\"CountryCn\\": \\"中国\\",\\n \\"CountryEn\\": \\"China\\",\\n \\"IpPool\\": [\\n \\"1.1.1.1\\"\\n ],\\n \\"Isp\\": \\"232\\",\\n \\"IspCn\\": \\"联通\\",\\n \\"IspEn\\": \\"China-Unicom\\",\\n \\"LmProbeCount\\": 1,\\n \\"MbProbeCount\\": 1,\\n \\"Region\\": \\"264\\",\\n \\"RegionCn\\": \\"江西省\\",\\n \\"RegionEn\\": \\"Jiangxi\\",\\n \\"IdcV4ProbeCount\\": 1,\\n \\"IdcV6ProbeCount\\": 1\\n }\\n ],\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"87170bc7-e28a-4c93-b9bf-90a1dbe84736\\",\\n \\"Success\\": \\"true\\"\\n}","type":"json"}]',
'title' => 'DescribeSyntheticProbeList',
'description' => 'This topic provides an example of how to call the DescribeSyntheticProbeList operation to query detection point details for the China Unicom carrier in Beijing.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSyntheticProbeList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'cms:DescribeSyntheticProbeList',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeSystemEventAttribute' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Product',
'in' => 'query',
'schema' => ['description' => 'The abbreviation of the service name.'."\n"
."\n"
.'> You can call the [DescribeSystemEventMetaList](~~114972~~) operation to query the abbreviations of service names.', 'type' => 'string', 'required' => false, 'example' => 'oss', 'title' => ''],
],
[
'name' => 'EventType',
'in' => 'query',
'schema' => ['description' => 'The type of the system event.'."\n"
."\n"
.'> You can call the [DescribeSystemEventMetaList](~~114972~~) operation to query the types of system events.', 'type' => 'string', 'required' => false, 'example' => 'Exception', 'title' => ''],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => 'The name of the system event.'."\n"
."\n"
.'> You can call the [DescribeSystemEventMetaList](~~114972~~) operation to query the names of system events.', 'type' => 'string', 'required' => false, 'example' => 'BucketIngressBandwidth', 'title' => ''],
],
[
'name' => 'Level',
'in' => 'query',
'schema' => ['description' => 'The level of the system event. Valid values:'."\n"
."\n"
.'- CRITICAL: critical'."\n"
."\n"
.'- WARN: warning'."\n"
."\n"
.'- INFO: information', 'type' => 'string', 'required' => false, 'example' => 'CRITICAL', 'title' => ''],
],
[
'name' => 'Status',
'in' => 'query',
'schema' => ['description' => 'The status of the system event.'."\n"
."\n"
.'> You can call the [DescribeSystemEventMetaList](~~114972~~) operation to query the statuses of system events.', 'type' => 'string', 'required' => false, 'example' => 'normal', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => false, 'example' => '12346', 'title' => ''],
],
[
'name' => 'SearchKeywords',
'in' => 'query',
'schema' => ['description' => 'The keywords that are used to search for the system event. Valid values:'."\n"
."\n"
.'- If you want to search for the system event whose content contains a and b, set the value to `a and b`.'."\n"
."\n"
.'- If you want to search for the system event whose content contains a or b, set the value to `a or b`.', 'type' => 'string', 'required' => false, 'example' => 'cms', 'title' => ''],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => 'The beginning of the time range to query.'."\n"
."\n"
.'The value must be a UNIX timestamp. It is the number of seconds that have elapsed since 00:00:00 UTC, January 1, 1970.', 'type' => 'string', 'required' => false, 'example' => '1552199984949', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => 'The end of the time range to query.'."\n"
."\n"
.'The value must be a UNIX timestamp. It is the number of seconds that have elapsed since 00:00:00 UTC, January 1, 1970.', 'type' => 'string', 'required' => false, 'example' => '1552221584949', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The number of the page to return.'."\n"
."\n"
.'Valid values: 1 to 100000000.'."\n"
."\n"
.'Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page.'."\n"
."\n"
.'Valid values: 1 to 100.'."\n"
."\n"
.'Default value: 10', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The status code 200 indicates that the call is successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The message that is returned. If the call is successful, `success` is returned. If the call fails, an error message is returned.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '60912C8D-B340-4253-ADE7-61ACDFD25CFC', 'title' => ''],
'Success' => ['description' => 'Indicates whether the call is successful. Valid values: True: The call is successful. false: The call fails.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'SystemEvents' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'SystemEvent' => [
'description' => 'The details of the event.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The status of the event.', 'type' => 'string', 'example' => 'normal', 'title' => ''],
'Time' => ['description' => 'The time when the event occurred. The value is a timestamp.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1552199984000', 'title' => ''],
'GroupId' => ['description' => 'The ID of the application group.', 'type' => 'string', 'example' => '12345', 'title' => ''],
'Product' => ['description' => 'The abbreviation of the service name.', 'type' => 'string', 'example' => 'CloudMonitor', 'title' => ''],
'InstanceName' => ['description' => 'The instance name.', 'type' => 'string', 'example' => 'instanceId1', 'title' => ''],
'ResourceId' => ['description' => 'The resource ID.', 'type' => 'string', 'example' => 'xxxxx-1', 'title' => ''],
'Name' => ['description' => 'The event name.', 'type' => 'string', 'example' => 'Agent_Status_Stopped', 'title' => ''],
'Content' => ['description' => 'The details of the event.', 'type' => 'string', 'example' => '[{"product":"CloudMonitor","content":"{\\"ipGroup\\":\\"112.126.XX.XX,10.163.XX.XX\\",\\"tianjimonVersion\\":\\"1.2.22\\"}","groupId":"176,177,178,179,180,692,120812,1663836,96,2028302","time":"1552209568000","resourceId":"acs:ecs:cn-beijing:173651113438****:instance/i-25k35****","level":"CRITICAL","status":"stopped","instanceName":"cmssiteprobebj-6","name":"Agent_Status_Stopped","regionId":"cn-beijing"}]', 'title' => ''],
'Level' => ['description' => 'The level of the event. Valid values:'."\n"
."\n"
.'- CRITICAL'."\n"
."\n"
.'- WARN'."\n"
."\n"
.'- INFO', 'type' => 'string', 'example' => 'WARN', 'title' => ''],
'RegionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
'Id' => ['description' => 'The event ID.', 'type' => 'string', 'example' => 'b936efc9-f621-4e8a-a6eb-076be40e****', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Parameter invalid.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeSystemEventAttribute',
'summary' => 'Queries a system event.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-02-13T11:47:48.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2023-12-07T03:28:51.000Z', 'description' => 'Response parameters changed, Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSystemEventAttribute'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeSystemEventAttribute',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"60912C8D-B340-4253-ADE7-61ACDFD25CFC\\",\\n \\"Success\\": \\"true\\",\\n \\"SystemEvents\\": {\\n \\"SystemEvent\\": [\\n {\\n \\"Status\\": \\"normal\\",\\n \\"Time\\": 1552199984000,\\n \\"GroupId\\": \\"12345\\",\\n \\"Product\\": \\"CloudMonitor\\",\\n \\"InstanceName\\": \\"instanceId1\\",\\n \\"ResourceId\\": \\"xxxxx-1\\",\\n \\"Name\\": \\"Agent_Status_Stopped\\",\\n \\"Content\\": \\"[{\\\\\\"product\\\\\\":\\\\\\"CloudMonitor\\\\\\",\\\\\\"content\\\\\\":\\\\\\"{\\\\\\\\\\\\\\"ipGroup\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"112.126.XX.XX,10.163.XX.XX\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"tianjimonVersion\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1.2.22\\\\\\\\\\\\\\"}\\\\\\",\\\\\\"groupId\\\\\\":\\\\\\"176,177,178,179,180,692,120812,1663836,96,2028302\\\\\\",\\\\\\"time\\\\\\":\\\\\\"1552209568000\\\\\\",\\\\\\"resourceId\\\\\\":\\\\\\"acs:ecs:cn-beijing:173651113438****:instance/i-25k35****\\\\\\",\\\\\\"level\\\\\\":\\\\\\"CRITICAL\\\\\\",\\\\\\"status\\\\\\":\\\\\\"stopped\\\\\\",\\\\\\"instanceName\\\\\\":\\\\\\"cmssiteprobebj-6\\\\\\",\\\\\\"name\\\\\\":\\\\\\"Agent_Status_Stopped\\\\\\",\\\\\\"regionId\\\\\\":\\\\\\"cn-beijing\\\\\\"}]\\",\\n \\"Level\\": \\"WARN\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Id\\": \\"b936efc9-f621-4e8a-a6eb-076be40e****\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeSystemEventCount' => [
'summary' => 'Queries the number of events that occurred for each Alibaba Cloud service under the current account.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Product',
'in' => 'query',
'schema' => ['description' => 'The name of the Alibaba Cloud service.'."\n"
."\n"
.'Call the DescribeSystemEventMetaList operation to obtain the value of the `Product` response parameter, which provides the Alibaba Cloud service names for all events under the current Alibaba Cloud account. For more information, see [DescribeSystemEventMetaList](~~114972~~).', 'type' => 'string', 'required' => false, 'example' => 'ECS', 'title' => ''],
],
[
'name' => 'EventType',
'in' => 'query',
'schema' => ['description' => 'The event type.'."\n"
."\n"
.'Call the DescribeSystemEventMetaList operation to obtain the value of the `EventType` response parameter, which provides the event types for all Alibaba Cloud services under the current Alibaba Cloud account. For more information, see [DescribeSystemEventMetaList](~~114972~~).', 'type' => 'string', 'required' => false, 'example' => 'StatusNotification', 'title' => ''],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => 'The event name.'."\n"
."\n"
.'Call the DescribeSystemEventMetaList operation to obtain the value of the `Name` response parameter, which provides the event names for all Alibaba Cloud services under the current Alibaba Cloud account. For more information, see [DescribeSystemEventMetaList](~~114972~~).', 'type' => 'string', 'required' => false, 'example' => 'Instance:StateChange', 'title' => ''],
],
[
'name' => 'Level',
'in' => 'query',
'schema' => ['description' => 'The event level. Valid values:'."\n"
."\n"
.'- Critical: critical.'."\n"
."\n"
.'- Warn: warning.'."\n"
."\n"
.'- Info: information.'."\n"
."\n"
.'Call the DescribeSystemEventMetaList operation to obtain the value of the `Level` response parameter, which provides the event levels for all Alibaba Cloud services under the current Alibaba Cloud account. For more information, see [DescribeSystemEventMetaList](~~114972~~).', 'type' => 'string', 'required' => false, 'example' => 'Info', 'title' => ''],
],
[
'name' => 'Status',
'in' => 'query',
'schema' => ['description' => 'The event status.'."\n"
."\n"
.'Call the DescribeSystemEventMetaList operation to obtain the value of the `Status` response parameter, which provides the event statuses for all Alibaba Cloud services under the current Alibaba Cloud account. For more information, see [DescribeSystemEventMetaList](~~114972~~).', 'type' => 'string', 'required' => false, 'example' => 'Normal', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The application group ID.', 'type' => 'string', 'required' => false, 'example' => '17285****', 'title' => ''],
],
[
'name' => 'SearchKeywords',
'in' => 'query',
'schema' => ['description' => 'The keywords contained in the event content for searching. Valid values:'."\n"
."\n"
.'- To search for event content that contains both a and b, search for `a and b`.'."\n"
."\n"
.'- To search for event content that contains either a or b, search for `a or b`.', 'type' => 'string', 'required' => false, 'example' => 'ECS', 'title' => ''],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => 'The timestamp of the start time for the event query. Unit: milliseconds.', 'type' => 'string', 'required' => false, 'example' => '1635993541000', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => 'The timestamp of the end time for the event query. Unit: milliseconds.', 'type' => 'string', 'required' => false, 'example' => '1635993921000', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
.'>A value of 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.'."\n"
."\n"
.'If the request is successful, a success message is returned. If the request fails, the failure reason is returned.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'C7A7B776-0ACE-5A93-9B07-DE8008D9CCDF', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation is successful. Valid values:'."\n"
."\n"
.'- true: The operation is successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'SystemEventCounts' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'SystemEventCount' => [
'description' => 'The event details.',
'type' => 'array',
'items' => [
'description' => 'The event details.',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The event status.', 'type' => 'string', 'example' => 'Normal', 'title' => ''],
'Time' => ['description' => 'The timestamp when the event occurred. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1635993751000', 'title' => ''],
'GroupId' => ['description' => 'The application group ID.', 'type' => 'string', 'example' => '17285****', 'title' => ''],
'Product' => ['description' => 'The Alibaba Cloud service name of the event.', 'type' => 'string', 'example' => 'ECS', 'title' => ''],
'InstanceName' => ['description' => 'The instance name.', 'type' => 'string', 'example' => 'ECS-test', 'title' => ''],
'Num' => ['description' => 'The number of events that occurred.', 'type' => 'integer', 'format' => 'int64', 'example' => '3', 'title' => ''],
'ResourceId' => ['description' => 'The resource ID.', 'type' => 'string', 'example' => 'i-rj99xc6cptkk64ml****', 'title' => ''],
'Name' => ['description' => 'The event name.', 'type' => 'string', 'example' => 'Instance:StateChange', 'title' => ''],
'Content' => ['description' => 'The event description.', 'type' => 'string', 'example' => 'Instance status change notification', 'title' => ''],
'Level' => ['description' => 'The event level. Valid values:'."\n"
."\n"
.'- Critical: critical.'."\n"
."\n"
.'- Warn: warning.'."\n"
."\n"
.'- Info: information.', 'type' => 'string', 'example' => 'Info', 'title' => ''],
'RegionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Query the number of events for each Alibaba Cloud service under the current account',
'description' => '### Background information'."\n"
.'You can call [DescribeSystemEventMetaList](~~114972~~) to obtain the Alibaba Cloud services and their system events supported by CloudMonitor.'."\n"
.'### Operation description'."\n"
.'This topic provides an example of how to query the number of events that occurred for Elastic Compute Service (`ECS`) under the current account. The response shows that a total of 3 events occurred.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSystemEventCount'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeSystemEventCount',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"C7A7B776-0ACE-5A93-9B07-DE8008D9CCDF\\",\\n \\"Success\\": \\"true\\",\\n \\"SystemEventCounts\\": {\\n \\"SystemEventCount\\": [\\n {\\n \\"Status\\": \\"Normal\\",\\n \\"Time\\": 1635993751000,\\n \\"GroupId\\": \\"17285****\\",\\n \\"Product\\": \\"ECS\\",\\n \\"InstanceName\\": \\"ECS-test\\",\\n \\"Num\\": 3,\\n \\"ResourceId\\": \\"i-rj99xc6cptkk64ml****\\",\\n \\"Name\\": \\"Instance:StateChange\\",\\n \\"Content\\": \\"Instance status change notification\\",\\n \\"Level\\": \\"Info\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeSystemEventHistogram' => [
'summary' => 'Queries the number of times a system event occurred during each interval within a period of time.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Product',
'in' => 'query',
'schema' => ['description' => 'The abbreviation of the service name.'."\n"
."\n"
.'> You can call the [DescribeSystemEventMetaList](~~114972~~) operation to query the abbreviations of service names.', 'type' => 'string', 'required' => false, 'example' => 'OSS', 'title' => ''],
],
[
'name' => 'EventType',
'in' => 'query',
'schema' => ['description' => 'The event type.'."\n"
."\n"
.'> You can call the [DescribeSystemEventMetaList](~~114972~~) operation to query the types of system events.', 'type' => 'string', 'required' => false, 'example' => 'Exception', 'title' => ''],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => 'The event name.'."\n"
."\n"
.'> You can call the [DescribeSystemEventMetaList](~~114972~~) operation to query the names of system events.', 'type' => 'string', 'required' => false, 'example' => 'BucketIngressBandwidth', 'title' => ''],
],
[
'name' => 'Level',
'in' => 'query',
'schema' => ['description' => 'The level of the event. Valid values:'."\n"
."\n"
.'- CRITICAL'."\n"
."\n"
.'- WARN'."\n"
."\n"
.'- INFO', 'type' => 'string', 'required' => false, 'example' => 'CRITICAL', 'title' => ''],
],
[
'name' => 'Status',
'in' => 'query',
'schema' => ['description' => 'The event status.'."\n"
."\n"
.'> You can call the [DescribeSystemEventMetaList](~~114972~~) operation to query the status of system events.', 'type' => 'string', 'required' => false, 'example' => 'normal', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => false, 'example' => '12345', 'title' => ''],
],
[
'name' => 'SearchKeywords',
'in' => 'query',
'schema' => ['description' => 'The keywords that are used to search for the system event. Valid values:'."\n"
."\n"
.'- If you want to search for the system event whose content contains a and b, set the value to `a and b`.'."\n"
."\n"
.'- If you want to search for the system event whose content contains a or b, set the value to `a or b`.', 'type' => 'string', 'required' => false, 'example' => 'cms', 'title' => ''],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => 'The start time.'."\n"
."\n"
.'This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.', 'type' => 'string', 'required' => false, 'example' => '1552209685596', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => 'The end time.'."\n"
."\n"
.'This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.', 'type' => 'string', 'required' => false, 'example' => '1552220485596', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The response code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '486029C9-53E1-44B4-85A8-16A571A043FD', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values: true: The request was successful. false: The request failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'SystemEventHistograms' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'SystemEventHistogram' => [
'description' => 'The information about the number of times the system event occurred during each interval of a time period.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'EndTime' => ['description' => 'The end time.'."\n"
."\n"
.'This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.', 'type' => 'integer', 'format' => 'int64', 'example' => '1552225753000', 'title' => ''],
'StartTime' => ['description' => 'The start time.'."\n"
."\n"
.'This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.', 'type' => 'integer', 'format' => 'int64', 'example' => '1552225770000', 'title' => ''],
'Count' => ['description' => 'The number of times the system event occurred.', 'type' => 'integer', 'format' => 'int64', 'example' => '2', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeSystemEventHistogram',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSystemEventHistogram'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeSystemEventHistogram',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"486029C9-53E1-44B4-85A8-16A571A043FD\\",\\n \\"Success\\": \\"true\\",\\n \\"SystemEventHistograms\\": {\\n \\"SystemEventHistogram\\": [\\n {\\n \\"EndTime\\": 1552225753000,\\n \\"StartTime\\": 1552225770000,\\n \\"Count\\": 2\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeSystemEventMetaList' => [
'summary' => 'Queries the meta information of system events by calling the DescribeSystemEventMetaList operation.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> A value of 200 indicates success.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'A6582C8B-E67C-4A19-BC15-EAEFEBDC7995', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Data' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Resource' => [
'description' => 'The meta information.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The event status.', 'type' => 'string', 'example' => 'failed', 'title' => ''],
'EventType' => ['description' => 'The event type. Valid values:'."\n"
."\n"
.'- StatusNotification: fault notification.'."\n"
."\n"
.'- Exception: exception.'."\n"
."\n"
.'- Maintenance: O&M.', 'type' => 'string', 'example' => 'Exception', 'title' => ''],
'Product' => ['description' => 'The abbreviation of the product name.', 'type' => 'string', 'example' => 'ADS', 'title' => ''],
'NameDesc' => ['description' => 'The description of the event name.', 'type' => 'string', 'example' => 'High query failure rate', 'title' => ''],
'NameDesc.En' => ['description' => '英文事件名称的描述信息。', 'type' => 'string', 'example' => 'High query failure rate.', 'title' => ''],
'Name' => ['description' => 'The event name.', 'type' => 'string', 'example' => 'SelectFailureRate', 'title' => ''],
'StatusDesc' => ['description' => 'The description of the event status.', 'type' => 'string', 'example' => 'Operation Failed', 'title' => ''],
'Level' => ['description' => 'The alert level. Valid values:'."\n"
."\n"
.'- CRITICAL: critical.'."\n"
.'- WARN: warning.'."\n"
.'- INFO: information.', 'type' => 'string', 'example' => 'INFO', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Query meta information of system events',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSystemEventMetaList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"A6582C8B-E67C-4A19-BC15-EAEFEBDC7995\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Resource\\": [\\n {\\n \\"Status\\": \\"failed\\",\\n \\"EventType\\": \\"Exception\\",\\n \\"Product\\": \\"ADS\\",\\n \\"NameDesc\\": \\"High query failure rate\\",\\n \\"NameDesc.En\\": \\"High query failure rate.\\",\\n \\"Name\\": \\"SelectFailureRate\\",\\n \\"StatusDesc\\": \\"Operation Failed\\",\\n \\"Level\\": \\"INFO\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeTagKeyList' => [
'summary' => 'Calls the DescribeTagKeyList operation to query a list of tag keys.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '100', 'example' => '10', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
.'>A value of 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Specified parameter PageSize is not valid.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B04B8CF3-4489-432D-83BA-6F128E5F2293', 'title' => ''],
'Success' => ['description' => 'Indicates whether the call was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'TagKeys' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'TagKey' => [
'description' => 'The tag keys.',
'type' => 'array',
'items' => ['description' => 'The tag keys.', 'type' => 'string', 'example' => 't0et07752s_', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Query tag key list',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeTagKeyList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeTagKeyList',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Specified parameter PageSize is not valid.\\",\\n \\"RequestId\\": \\"B04B8CF3-4489-432D-83BA-6F128E5F2293\\",\\n \\"Success\\": true,\\n \\"TagKeys\\": {\\n \\"TagKey\\": [\\n \\"t0et07752s_\\"\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeTagValueList' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.'."\n"
."\n"
.'Starts from 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '100', 'example' => '10', 'title' => ''],
],
[
'name' => 'TagKey',
'in' => 'query',
'schema' => ['description' => 'The tag key.'."\n"
."\n"
.'For more information about how to obtain the tag key, see [DescribeTagKeyList](~~145558~~).', 'type' => 'string', 'required' => true, 'example' => 'tagKey1', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A status code of 200 indicates a successful response.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B04B8CF3-4489-432D-83BA-6F128E4F2295', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'TagValues' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'TagValue' => [
'description' => 'The tag values.',
'type' => 'array',
'items' => ['description' => 'The tag value.', 'type' => 'string', 'example' => 'si-65d55ff37d6c4b4ea3b3', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeTagValueList',
'summary' => 'Queries the tag values for a specified tag key.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeTagValueList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeTagValueList',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"B04B8CF3-4489-432D-83BA-6F128E4F2295\\",\\n \\"Success\\": true,\\n \\"TagValues\\": {\\n \\"TagValue\\": [\\n \\"si-65d55ff37d6c4b4ea3b3\\"\\n ]\\n }\\n}","type":"json"}]',
'extraInfo' => ' ',
],
'DescribeUnhealthyHostAvailability' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Id',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The task ID.',
'type' => 'array',
'items' => ['description' => 'The task ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123***', 'title' => ''],
'required' => true,
'example' => '123456',
'maxItems' => 20,
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A value of 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'User not authorized to operate on the specified resource.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'ACBDBB40-DFB6-4F4C-8957-51FFB233969C', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values: -true: The operation was successful. -false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'UnhealthyList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'NodeTaskInstance' => [
'description' => 'Information about the list of unhealthy servers.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Id' => ['description' => 'The task ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123******', 'title' => ''],
'InstanceList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'String' => [
'description' => 'A list of instance IDs.',
'type' => 'array',
'items' => ['description' => 'The instances.', 'type' => 'string', 'example' => 'i-*****', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DescribeUnhealthyHostAvailability',
'summary' => 'Call the DescribeUnhealthyHostAvailability operation to query a list of unhealthy servers.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeUnhealthyHostAvailability'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'cms:DescribeUnhealthyHostAvailability',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"User not authorized to operate on the specified resource.\\",\\n \\"RequestId\\": \\"ACBDBB40-DFB6-4F4C-8957-51FFB233969C\\",\\n \\"Success\\": true,\\n \\"UnhealthyList\\": {\\n \\"NodeTaskInstance\\": [\\n {\\n \\"Id\\": 0,\\n \\"InstanceList\\": {\\n \\"String\\": [\\n \\"i-*****\\"\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
'extraInfo' => ' ',
],
'DisableActiveMetricRule' => [
'summary' => 'Disables the initiative alert feature for a cloud service.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'update', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Product',
'in' => 'query',
'schema' => ['description' => 'The cloud service for which you want to disable proactive alerting. Valid values:'."\n"
."\n"
.'- ECS: Elastic Compute Service (ECS)'."\n"
."\n"
.'- rds: ApsaraDB RDS'."\n"
."\n"
.'- slb: Server Load Balancer (SLB)'."\n"
."\n"
.'- redis\\_standard: Redis Open-Source Edition (standard architecture)'."\n"
."\n"
.'- redis\\_sharding: Redis Open-Source Edition (cluster architecture)'."\n"
."\n"
.'- redis\\_splitrw: Redis Open-Source Edition (read/write splitting architecture)'."\n"
."\n"
.'- mongodb: ApsaraDB for MongoDB of the replica set architecture'."\n"
."\n"
.'- mongodb\\_sharding: ApsaraDB for MongoDB of the sharded cluster architecture'."\n"
."\n"
.'- hbase: ApsaraDB for HBase'."\n"
."\n"
.'- elasticsearch: Elasticsearch'."\n"
."\n"
.'- opensearch: OpenSearch', 'type' => 'string', 'required' => true, 'example' => 'ecs', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'F82E6667-7811-4BA0-842F-5B2DC42BBAAD', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'The X.509 certificate or cms access key ID provided does not exist in our records.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'DisableActiveMetricRule',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableActiveMetricRule'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:DisableActiveMetricRule',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"F82E6667-7811-4BA0-842F-5B2DC42BBAAD\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'DisableEventRules' => [
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'RuleNames',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The names of the event-triggered alert rules.',
'type' => 'array',
'items' => ['description' => 'The name of an event-triggered alert rule.', 'type' => 'string', 'required' => false, 'example' => 'ruleName1', 'title' => ''],
'required' => true,
'example' => 'ruleName1',
'maxItems' => 20,
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A value of 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3FD0E8B5-F132-4F4E-A081-2878AF378B12', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => 'InvalidAuthorization', 'errorMessage' => 'Permission denied', 'description' => 'Permission denied.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DisableEventRules',
'summary' => 'Disables one or more event-triggered alert rules.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableEventRules'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:DisableEventRules',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"3FD0E8B5-F132-4F4E-A081-2878AF378B12\\",\\n \\"Success\\": true\\n}","type":"json"}]',
'extraInfo' => ' ',
],
'DisableHostAvailability' => [
'summary' => 'Disables one or more specified availability monitoring jobs.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'update', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Id',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The IDs of the availability monitoring jobs.',
'type' => 'array',
'items' => ['description' => 'The ID of the availability monitoring job.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '12345', 'title' => ''],
'required' => true,
'example' => '12345',
'maxItems' => 20,
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A value of 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'User not authorized to operate on the specified resource.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'ACBDBB40-DFB6-4F4C-8957-51FFB233969C', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values: true: success. false: failure.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
409 => [
['errorCode' => 'ResourceConflict', 'errorMessage' => 'Concurrent modification of resources.', 'description' => ''],
['errorCode' => 'ResourceExist', 'errorMessage' => 'Resources already exist.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'DisableHostAvailability',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableHostAvailability'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:DisableHostAvailability',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'HostAvailability', 'arn' => 'acs:cms::{#accountId}:group/{#groupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"User not authorized to operate on the specified resource.\\",\\n \\"RequestId\\": \\"ACBDBB40-DFB6-4F4C-8957-51FFB233969C\\",\\n \\"Success\\": true\\n}","type":"json"}]',
'extraInfo' => ' ',
],
'DisableMetricRules' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'update', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'RuleId',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The IDs of the alert rules.',
'type' => 'array',
'items' => ['description' => 'The ID of the alert rule.', 'type' => 'string', 'required' => false, 'example' => 'uuid_a141b055483428c22bab05443287196afa42cb6146', 'title' => ''],
'required' => true,
'example' => 'detect_87****_HTTP_HttpLatency',
'maxItems' => 100,
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A value of 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'FF38D33A-67C1-40EB-AB65-FAEE51EDB644', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. A value of \\`true\\` indicates success and a value of \\`false\\` indicates failure.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'Throttli∂ngException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'DisableMetricRules',
'summary' => 'You can call the DisableMetricRules operation to disable alert rules.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableMetricRules'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:DisableMetricRules',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"FF38D33A-67C1-40EB-AB65-FAEE51EDB644\\",\\n \\"Success\\": true\\n}","type":"json"}]',
'extraInfo' => ' ',
],
'DisableSiteMonitors' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'TaskIds',
'in' => 'query',
'schema' => ['description' => 'The IDs of site monitoring tasks. Separate multiple IDs with commas (,).', 'type' => 'string', 'required' => true, 'example' => '49f7b317-7645-4cc9-94fd-ea42e522****,49f7b317-7645-4cc9-94fd-ea42e522****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'successful', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3fcd12e7-d387-42ee-b77e-661c775bb17f', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'Data' => [
'description' => 'The number of detection point records affected by the site monitoring task.',
'type' => 'object',
'properties' => [
'count' => ['description' => 'The number of detection point records.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'Forbidden', 'errorMessage' => 'You are not authorized to operate the specified resource.', 'description' => 'No permission, please use RAM to authorize'],
['errorCode' => 'UnauthorizedTasks', 'errorMessage' => 'You are not permitted to operate the specified tasks.', 'description' => 'You are not permitted to operate the specified tasks.'],
],
[
['errorCode' => 'TaskNotExist', 'errorMessage' => 'The specified task does not exist.', 'description' => 'The specified task does not exist.'],
],
406 => [
['errorCode' => 'ExceedingQuota', 'errorMessage' => 'Exceeding quota limits.', 'description' => 'The number of tasks exceeds the limit'],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'ThrottlingException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Disable one or more site monitoring tasks',
'summary' => 'Disables one or more site monitoring tasks by calling the DisableSiteMonitors operation.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-04-01T07:22:22.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableSiteMonitors'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:DisableSiteMonitors',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"3fcd12e7-d387-42ee-b77e-661c775bb17f\\",\\n \\"Success\\": \\"true\\",\\n \\"Data\\": {\\n \\"count\\": 0\\n }\\n}","type":"json"}]',
],
'EnableActiveMetricRule' => [
'summary' => 'Enables the initiative alert feature for a cloud service.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'update', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Product',
'in' => 'query',
'schema' => ['description' => 'The cloud service for which you want to enable initiative alert. Valid values:'."\n"
."\n"
.'- ECS: Elastic Compute Service (ECS)'."\n"
."\n"
.'- rds: ApsaraDB RDS'."\n"
."\n"
.'- slb: Server Load Balancer (SLB)'."\n"
."\n"
.'- redis\\_standard: Redis Open-Source Edition (standard architecture)'."\n"
."\n"
.'- redis\\_sharding: Redis Open-Source Edition (cluster architecture)'."\n"
."\n"
.'- redis\\_splitrw: Redis Open-Source Edition (read/write splitting architecture)'."\n"
."\n"
.'- mongodb: ApsaraDB for MongoDB of the replica set architecture'."\n"
."\n"
.'- mongodb\\_sharding: ApsaraDB for MongoDB of the sharded cluster architecture'."\n"
."\n"
.'- hbase: ApsaraDB for HBase'."\n"
."\n"
.'- elasticsearch: Elasticsearch'."\n"
."\n"
.'- opensearch: OpenSearch', 'type' => 'string', 'required' => true, 'example' => 'ecs', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The responses code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'F82E6667-7811-4BA0-842F-5B2DC42BBAAD', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'The X.509 certificate or cms access key ID provided does not exist in our records.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'EnableActiveMetricRule',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableActiveMetricRule'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:EnableActiveMetricRule',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"F82E6667-7811-4BA0-842F-5B2DC42BBAAD\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'EnableEventRules' => [
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'RuleNames',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The names of the event rules to enable.',
'type' => 'array',
'items' => ['description' => 'The name of the event rule to enable.', 'type' => 'string', 'required' => false, 'example' => 'ruleName1', 'title' => ''],
'required' => true,
'example' => 'ruleName1',
'maxItems' => 20,
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code. A value of 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request. It is a unique identifier generated by Alibaba Cloud. You can use this ID to troubleshoot issues.', 'type' => 'string', 'example' => '20F2896A-6684-4A04-8255-4155B1593C70', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameterValue', 'errorMessage' => 'Illegal parameters.', 'description' => 'Illegal parameters.'],
],
403 => [
['errorCode' => 'InvalidAuthorization', 'errorMessage' => 'Permission denied', 'description' => 'Permission denied.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'EnableEventRules',
'summary' => 'The EnableEventRules operation enables one or more event rules.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableEventRules'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:EnableEventRules',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"20F2896A-6684-4A04-8255-4155B1593C70\\",\\n \\"Success\\": true\\n}","type":"json"}]',
'extraInfo' => ' ',
],
'EnableHostAvailability' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'update', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Id',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The ID of the availability monitoring task.',
'type' => 'array',
'items' => ['description' => 'The ID of the availability monitoring task.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123456', 'title' => ''],
'required' => true,
'maxItems' => 20,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A value of 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'User not authorized to operate on the specified resource.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'ACBDBB40-DFB6-4F4C-8957-51FFB233969C', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. A value of true indicates success. A value of false indicates failure.', 'type' => 'boolean', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
409 => [
['errorCode' => 'ResourceConflict', 'errorMessage' => 'Concurrent modification of resources.', 'description' => ''],
['errorCode' => 'ResourceExist', 'errorMessage' => 'Resources already exist.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Enable a specified availability monitoring task',
'summary' => 'Enables a specified availability monitoring task.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableHostAvailability'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:EnableHostAvailability',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"User not authorized to operate on the specified resource.\\",\\n \\"RequestId\\": \\"ACBDBB40-DFB6-4F4C-8957-51FFB233969C\\",\\n \\"Success\\": false\\n}","type":"json"}]',
],
'EnableMetricRuleBlackList' => [
'summary' => 'Enables or disables multiple blacklist policies at a time.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'update', 'riskType' => 'high', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Id',
'in' => 'query',
'schema' => ['description' => 'The IDs of the blacklist policies. Separate multiple IDs with commas (,). You can specify up to 50 IDs.'."\n"
."\n"
.'For information about how to obtain the ID of a blacklist policy, see [DescribeMetricRuleBlackList](~~457257~~).'."\n"
."\n"
.'> You can also set this parameter to a JSON array. Example: `["a9ad2ac2-3ed9-11ed-b878-0242ac12****","5cb8a9a4-198f-4651-a353-f8b28788****"]`.', 'type' => 'string', 'required' => true, 'example' => 'a9ad2ac2-3ed9-11ed-b878-0242ac12****', 'title' => ''],
],
[
'name' => 'IsEnable',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to enable the blacklist policy. Valid values:'."\n"
."\n"
.'- true: The blacklist policy is enabled.'."\n"
."\n"
.'- false (default): The blacklist policy is disabled.', 'type' => 'boolean', 'required' => true, 'example' => 'true', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '94869866-1621-3652-BBC9-72A47B2AC2F5', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Count' => ['description' => 'The number of blacklist policies that are enabled or disabled.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
409 => [
['errorCode' => 'ResourceConflict', 'errorMessage' => 'Concurrent modification of resources.', 'description' => ''],
['errorCode' => 'ResourceExist', 'errorMessage' => 'Resources already exist.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'EnableMetricRuleBlackList',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableMetricRuleBlackList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:EnableMetricRuleBlackList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"94869866-1621-3652-BBC9-72A47B2AC2F5\\",\\n \\"Success\\": true,\\n \\"Count\\": 1\\n}","type":"json"}]',
],
'EnableMetricRules' => [
'summary' => 'Enables alert rules.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'update', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'RuleId',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The IDs of the alert rules.'."\n"
."\n"
.'Valid values of N: 1 to 100.'."\n"
."\n"
.'For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](~~114941~~).',
'type' => 'array',
'items' => ['description' => 'The ID of the alert rule.'."\n"
."\n"
.'Valid values of N: 1 to 100.'."\n"
."\n"
.'For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](~~114941~~).', 'type' => 'string', 'required' => false, 'example' => 'GroupProcess_67800278_2FE7D515-4BBD-447B-BC1A-3F17ED49****', 'title' => ''],
'required' => true,
'example' => 'ab05733c97b7ce239fb1b53393dc1697c123****',
'maxItems' => 100,
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'FF38D33A-67C1-40EB-AB65-FAEE51EDB644', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
402 => [
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'Throttli∂ngException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'EnableMetricRules',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableMetricRules'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:EnableMetricRules',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"FF38D33A-67C1-40EB-AB65-FAEE51EDB644\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'EnableSiteMonitors' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'TaskIds',
'in' => 'query',
'schema' => ['description' => 'The ID of the site monitoring task. Separate multiple IDs with commas (,).', 'type' => 'string', 'required' => true, 'example' => '49f7b317-7645-4cc9-94fd-ea42e522****,49f7b317-7645-4cc9-94fd-ea42e522****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The responses code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'successful', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3fcd12e7-d387-42ee-b77e-661c775bb17f', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'string', 'example' => 'true', 'title' => ''],
'Data' => [
'description' => 'The number of detection points that are affected by the site monitoring tasks.',
'type' => 'object',
'properties' => [
'count' => ['description' => 'The number of detection points.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'Forbidden', 'errorMessage' => 'You are not authorized to operate the specified resource.', 'description' => 'No permission, please use RAM to authorize'],
['errorCode' => 'RestrictedUser', 'errorMessage' => 'The user\'s operation is restricted, please register NAAM product code.', 'description' => ''],
['errorCode' => 'UnauthorizedTasks', 'errorMessage' => 'You are not permitted to operate the specified tasks.', 'description' => 'You are not permitted to operate the specified tasks.'],
],
[
['errorCode' => 'TaskNotExist', 'errorMessage' => 'The specified task does not exist.', 'description' => 'The specified task does not exist.'],
],
406 => [
['errorCode' => 'ExceedingQuota', 'errorMessage' => 'Exceeding quota limits.', 'description' => 'The number of tasks exceeds the limit'],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'ThrottlingException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'EnableSiteMonitors',
'summary' => 'Enables site monitoring tasks.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-04-01T07:22:22.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2023-06-19T07:10:45.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableSiteMonitors'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:EnableSiteMonitors',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"3fcd12e7-d387-42ee-b77e-661c775bb17f\\",\\n \\"Success\\": \\"true\\",\\n \\"Data\\": {\\n \\"count\\": 0\\n }\\n}","type":"json"}]',
],
'InstallMonitoringAgent' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Force',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to forcibly install the CloudMonitor agent. Valid values:'."\n"
."\n"
.'- true (default): Forcibly installs the agent.'."\n"
."\n"
.'- false: Does not forcibly install the agent.', 'type' => 'boolean', 'required' => false, 'default' => 'true', 'example' => 'true', 'title' => ''],
],
[
'name' => 'InstanceIds',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The IDs of the Alibaba Cloud hosts.'."\n"
."\n"
.'You can specify from 1 to 10 instance IDs.'."\n"
."\n"
.'> You must specify either `InstallCommand` or `InstanceIds`.',
'type' => 'array',
'items' => ['description' => 'The ID of the Alibaba Cloud host.'."\n"
."\n"
.'You can specify from 1 to 10 instance IDs.'."\n"
."\n"
.'> You must specify either `InstallCommand` or `InstanceIds`.', 'type' => 'string', 'required' => false, 'example' => 'i-m5e0k0bexac8tykr****', 'title' => ''],
'required' => false,
'example' => 'i-m5e0k0bexac8tykr****',
'maxItems' => 10,
'title' => '',
],
],
[
'name' => 'InstallCommand',
'in' => 'query',
'schema' => ['description' => 'The installation command. This command installs the CloudMonitor agent on all Alibaba Cloud hosts that belong to your Alibaba Cloud account. Valid values:'."\n"
."\n"
.'- `onlyInstallNotHasAgent`: Installs the latest version of the CloudMonitor agent only on Alibaba Cloud hosts where the agent is not installed.'."\n"
."\n"
.'- `onlyUpgradeAgent`: Upgrades the CloudMonitor agent only on Alibaba Cloud hosts where an earlier version of the agent is installed.'."\n"
."\n"
.'- `installAndUpgrade`: Installs the latest version of the CloudMonitor agent on Alibaba Cloud hosts where the agent is not installed, and upgrades the agent on Alibaba Cloud hosts where an earlier version of the agent is installed.'."\n"
."\n"
.'> If you set this parameter, the `InstanceIds` parameter is invalid.', 'type' => 'string', 'required' => false, 'example' => 'onlyInstallNotHasAgent', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A value of 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0BDAF8A8-04DC-5F0C-90E4-724D42C41945', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Parameter invalid.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'InstallMonitoringAgent',
'summary' => 'Call the InstallMonitoringAgent operation to install the CloudMonitor agent on specified Alibaba Cloud hosts.',
'description' => '## Prerequisites'."\n"
."\n"
.'Ensure that Cloud Assistant is installed on the Alibaba Cloud host. For more information, see [Cloud Assistant overview](~~64601~~).'."\n"
."\n"
.'## Background information'."\n"
."\n"
.'This API applies only to Alibaba Cloud hosts, which are Elastic Compute Service (ECS) instances. The success rate for installing the CloudMonitor agent using this API is approximately 95%. If the installation fails, you must manually install the agent. For more information about how to install the CloudMonitor agent, see [Install and uninstall the C++ agent](~~183482~~).'."\n"
."\n"
.'## Example'."\n"
."\n"
.'This example shows how to forcibly install the latest version of the CloudMonitor agent on the ECS instance `i-m5e0k0bexac8tykr****`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-02-13T11:47:48.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2022-12-27T07:31:03.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2021-11-16T08:56:27.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'InstallMonitoringAgent'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:InstallMonitoringAgent',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"0BDAF8A8-04DC-5F0C-90E4-724D42C41945\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'ModifyGroupMonitoringAgentProcess' => [
'summary' => 'Modifies process monitoring in an application group.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'update', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Id',
'in' => 'query',
'schema' => ['description' => 'The ID of the process monitoring task in the application group.', 'type' => 'string', 'required' => true, 'example' => '92E3065F-0980-4E31-9AA0-BA6****', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => true, 'example' => '6780****', 'title' => ''],
],
[
'name' => 'MatchExpressFilterRelation',
'in' => 'query',
'schema' => ['description' => 'This parameter is deprecated and does not need to be specified.', 'type' => 'string', 'required' => false, 'example' => 'and', 'title' => ''],
],
[
'name' => 'AlertConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => 'The alert rule configurations.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'SilenceTime' => ['description' => 'The mute for epoch. Valid values of N: 1 to 200.'."\n"
."\n"
.'Unit: seconds. Minimum value: 3600 (1 hour). Default value: 86400 (1 day).'."\n"
.'> When monitoring data continuously exceeds the alert rule threshold, only one alert notification is sent within each mute for epoch.', 'type' => 'string', 'required' => false, 'example' => '86400', 'title' => ''],
'ComparisonOperator' => ['description' => 'The comparison operator for the Critical-level threshold. Valid values of N: 1 to 200. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to'."\n"
.'- GreaterThanThreshold: greater than'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to'."\n"
.'- LessThanThreshold: less than'."\n"
.'- NotEqualToThreshold: not equal to'."\n"
.'- GreaterThanYesterday: greater than the value at the same time yesterday'."\n"
.'- LessThanYesterday: less than the value at the same time yesterday'."\n"
.'- GreaterThanLastWeek: greater than the value at the same time last week'."\n"
.'- LessThanLastWeek: less than the value at the same time last week'."\n"
.'- GreaterThanLastPeriod: greater than the value in the previous period'."\n"
.'- LessThanLastPeriod: less than the value in the previous period', 'type' => 'string', 'required' => true, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Webhook' => ['description' => 'The callback URL to which a POST request is sent when an alert is triggered. Valid values of N: 1 to 200.', 'type' => 'string', 'required' => false, 'example' => 'http://www.aliyun.com', 'title' => ''],
'Times' => ['description' => 'The number of consecutive occurrences of the alert level. Valid values of N: 1 to 200. Default value: 3.'."\n"
."\n"
.'> An alert is triggered only when the alert level consecutively occurs the specified number of times and the alert threshold is reached.', 'type' => 'string', 'required' => true, 'example' => '3', 'title' => ''],
'EscalationsLevel' => ['description' => 'The alert level. Valid values of N: 1 to 200. Valid values:'."\n"
.'- critical (default): critical.'."\n"
.'- warn: warning.'."\n"
.'- info: information.', 'type' => 'string', 'required' => true, 'example' => 'warn', 'title' => ''],
'EffectiveInterval' => ['description' => 'The effective period of the alert rule. Valid values of N: 1 to 200.', 'type' => 'string', 'required' => false, 'example' => '00:00-22:59', 'title' => ''],
'NoEffectiveInterval' => ['description' => 'This parameter is deprecated and does not need to be specified.', 'type' => 'string', 'required' => false, 'example' => '00:00-05:30', 'title' => ''],
'Threshold' => ['description' => 'The alert threshold. Valid values of N: 1 to 200.', 'type' => 'string', 'required' => true, 'example' => '5', 'title' => ''],
'Statistics' => ['description' => 'The statistical method for alerts. Valid values of N: 1 to 200.'."\n"
."\n"
.'> Only Average is supported.', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
'TargetList' => [
'description' => 'None.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Id' => ['description' => 'The ID of the alert trigger target.'."\n"
."\n"
.'For information about how to obtain the ID of the alert trigger target, see [DescribeMetricRuleTargets](~~121592~~).', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
'Arn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the resource.'."\n"
."\n"
.'For information about how to obtain the resource ARN, see [DescribeMetricRuleTargets](~~121592~~).'."\n"
."\n"
.'The ARN is in the format of `acs:{ServiceAbbreviation}:{regionId}:{userId}:/{ResourceType}/{ResourceName}/message`. Example: `acs:mns:ap-southeast-1:120886317861****:/queues/test123/message`. The parameters are described as follows:'."\n"
."\n"
.'- {ServiceAbbreviation}: Only Simple Message Queue (formerly MNS) is supported.'."\n"
."\n"
.'- {userId}: The Alibaba Cloud account ID.'."\n"
."\n"
.'- {regionId}: The region where the Simple Message Queue (formerly MNS) queue or topic resides.'."\n"
."\n"
.'- {ResourceType}: The type of the resource that accepts alerts. Valid values:'."\n"
."\n"
.' - **queues**: queue.'."\n"
.' - **topics**: topic.'."\n"
."\n"
.'- {ResourceName}: The resource name.'."\n"
."\n"
.' - If the resource type is **queues**, the resource name is the queue name.'."\n"
.' - If the resource type is **topics**, the resource name is the topic name.', 'type' => 'string', 'required' => false, 'example' => 'acs:mns:cn-hangzhou:120886317861****:/queues/test/message', 'title' => ''],
'Level' => ['description' => 'The alert level. Valid values:'."\n"
."\n"
.'- INFO: information.'."\n"
.'- WARN: warning.'."\n"
.'- CRITICAL: critical.', 'type' => 'string', 'required' => false, 'example' => '["INFO", "WARN", "CRITICAL"]', 'title' => ''],
'JsonParams' => ['description' => 'The JSON-formatted parameters of the alert callback.', 'type' => 'string', 'required' => false, 'example' => '{"customField1":"value1","customField2":"$.name"}', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 3,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '7985D471-3FA8-4EE9-8F4B-45C19DF3D36F', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Modify process monitoring in an application group',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-08-05T04:05:02.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyGroupMonitoringAgentProcess'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:ModifyGroupMonitoringAgentProcess',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'MonitoringAgentProcess', 'arn' => 'acs:cms::{#accountId}:group/{#groupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"7985D471-3FA8-4EE9-8F4B-45C19DF3D36F\\",\\n \\"Success\\": true\\n}","type":"json"}]',
'translator' => 'machine',
],
'ModifyHostAvailability' => [
'summary' => 'Modifies an availability monitoring task.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'update', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123456', 'title' => ''],
],
[
'name' => 'Id',
'in' => 'query',
'schema' => ['description' => 'The ID of the availability monitoring task.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12345', 'title' => ''],
],
[
'name' => 'TaskName',
'in' => 'query',
'schema' => ['description' => 'The name of the availability monitoring task.', 'type' => 'string', 'required' => true, 'example' => 'task2', 'title' => ''],
],
[
'name' => 'TaskScope',
'in' => 'query',
'schema' => ['description' => 'The detection scope of the availability monitoring task. Valid values:'."\n"
."\n"
.'- GROUP: All ECS instances in the current application group are used as probes for the detection task.'."\n"
.'- GROUP_SPEC_INSTANCE: Specified ECS instances in the current application group are used as probes for the detection task. If you set this parameter to this value, you must also set InstanceList to specify the ECS instances that initiate detection.', 'type' => 'string', 'required' => false, 'default' => 'GROUP', 'example' => 'GROUP', 'title' => ''],
],
[
'name' => 'TaskOption.HttpURI',
'in' => 'query',
'schema' => ['description' => 'The URI for HTTP or Telnet detection types.', 'type' => 'string', 'required' => false, 'example' => 'https://www.aliyun.com'."\n"
.'telnet://127.0.0.1:80', 'title' => ''],
],
[
'name' => 'TaskOption.TelnetOrPingHost',
'in' => 'query',
'schema' => ['description' => 'The domain name or address to detect.'."\n"
."\n"
.'> If the detection task type is PING, you must set this parameter. For more information about how to set the detection task type, see [CreateHostAvailability](~~115317~~).', 'type' => 'string', 'required' => false, 'example' => 'www.aliyun.com', 'title' => ''],
],
[
'name' => 'TaskOption.HttpResponseCharset',
'in' => 'query',
'schema' => ['description' => 'The response character set for the HTTP detection type.'."\n"
."\n"
.'> Only UTF-8 is supported.', 'type' => 'string', 'required' => false, 'example' => 'UTF-8', 'title' => ''],
],
[
'name' => 'TaskOption.HttpPostContent',
'in' => 'query',
'schema' => ['description' => 'The POST content of the HTTP detection request.', 'type' => 'string', 'required' => false, 'example' => 'params1=value1', 'title' => ''],
],
[
'name' => 'TaskOption.HttpResponseMatchContent',
'in' => 'query',
'schema' => ['description' => 'The content to match in the HTTP detection response.', 'type' => 'string', 'required' => false, 'example' => 'ok', 'title' => ''],
],
[
'name' => 'TaskOption.HttpMethod',
'in' => 'query',
'schema' => ['description' => 'The method for the detection type. Valid values:'."\n"
."\n"
.'- GET'."\n"
.'- POST'."\n"
.'- HEAD'."\n"
."\n"
.'> If the detection task type is HTTP, you must set this parameter. For more information about how to set the detection task type, see [CreateHostAvailability](~~115317~~).', 'type' => 'string', 'required' => false, 'example' => 'GET', 'title' => ''],
],
[
'name' => 'TaskOption.HttpNegative',
'in' => 'query',
'schema' => ['description' => 'The alert rule for matching HTTP response content. Valid values:'."\n"
.'- true: An alert is triggered if the HTTP response content contains the specified alert rule.'."\n"
.'- false: An alert is triggered if the HTTP response content does not contain the specified alert rule.'."\n"
."\n"
.'> If the detection task type is HTTP, you must set this parameter. For more information about how to set the detection task type, see [CreateHostAvailability](~~115317~~).', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'TaskOption.HttpHeader',
'in' => 'query',
'schema' => ['description' => 'The header of the HTTP request. The format is `Parameter:Value`. Separate multiple parameters with carriage returns. Example:'."\n"
.'```'."\n"
.'params1:value1'."\n"
.'params2:value2'."\n"
.'```', 'type' => 'string', 'required' => false, 'example' => 'params1:value1', 'title' => ''],
],
[
'name' => 'TaskOption.Interval',
'in' => 'query',
'schema' => ['description' => 'The detection frequency. Unit: seconds. Valid values: 15, 30, 60, 120, 300, 900, 1800, and 3600.'."\n"
."\n"
.'> Only CloudMonitor agent 3.5.1 or later supports this parameter.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60', 'title' => ''],
],
[
'name' => 'AlertConfig.NotifyType',
'in' => 'query',
'schema' => ['description' => 'The alert notification type. Valid values:'."\n"
."\n"
.'- 2: Phone call + text message + email + DingTalk chatbot.'."\n"
."\n"
.'- 1: Text message + email + DingTalk chatbot.'."\n"
."\n"
.'- 0: Email + DingTalk chatbot.'."\n"
."\n\n"
.'0: Email + DingTalk chatbot.'."\n"
."\n"
.'0: Email + DingTalk chatbot.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '0', 'title' => ''],
],
[
'name' => 'AlertConfig.StartTime',
'in' => 'query',
'schema' => ['description' => 'The start time when the alert takes effect. Valid values: 0 to 23.'."\n"
."\n"
.'For example, if AlertConfig.StartTime is set to 0 and AlertConfig.EndTime is set to 22, the alert is effective from 00:00:00 to 22:00:00.'."\n"
."\n"
.'> If the alert is not within the effective period, no alert notification is sent even if the threshold is exceeded.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
],
[
'name' => 'AlertConfig.EndTime',
'in' => 'query',
'schema' => ['description' => 'The end time when the alert takes effect. Valid values: 0 to 23.'."\n"
."\n"
.'For example, if AlertConfig.StartTime is set to 0 and AlertConfig.EndTime is set to 22, the alert is effective from 00:00:00 to 22:00:00.'."\n"
."\n"
.'> If the alert is not within the effective period, no alert notification is sent even if the threshold is exceeded.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '22', 'title' => ''],
],
[
'name' => 'AlertConfig.SilenceTime',
'in' => 'query',
'schema' => ['description' => 'The mute period. Unit: seconds. Default value: 86400 (1 day).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '86400', 'title' => ''],
],
[
'name' => 'AlertConfig.WebHook',
'in' => 'query',
'schema' => ['description' => 'The webhook address.', 'type' => 'string', 'required' => false, 'example' => 'https://www.aliyun.com/webhook.json', 'title' => ''],
],
[
'name' => 'AlertConfigEscalationList',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The alert configuration list.',
'type' => 'array',
'items' => [
'description' => 'The alert configuration list.',
'type' => 'object',
'properties' => [
'MetricName' => ['description' => 'The metric for the alert. Valid values of N: 1 to 21. Valid values:'."\n"
."\n"
.'- HttpStatus: HTTP status code.'."\n"
.'- HttpLatency: HTTP latency.'."\n"
.'- TelnetStatus: Telnet status code.'."\n"
.'- TelnetLatency: Telnet latency.'."\n"
.'- PingLostRate: PING packet loss rate.', 'type' => 'string', 'required' => true, 'example' => 'HttpStatus', 'title' => ''],
'Value' => ['description' => 'The alert threshold. Valid values of N: 1 to 21.', 'type' => 'string', 'required' => false, 'example' => '3', 'title' => ''],
'Times' => ['description' => 'The number of alert retries. Valid values of N: 1 to 21.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'title' => ''],
'Operator' => ['description' => 'The comparison operator for the alert rule. Valid values of N: 1 to 21. Valid values:'."\n"
."\n"
.'- `>`'."\n"
.'- `>=`'."\n"
.'- `<`'."\n"
.'- `<=`'."\n"
.'- `=`', 'type' => 'string', 'required' => false, 'example' => '>', 'title' => ''],
'Aggregate' => ['description' => 'The statistical method for the alert. Valid values of N: 1 to 21. The valid values vary based on the metric:'."\n"
."\n"
.'- HttpStatus: Value.'."\n"
.'- HttpLatency: Average.'."\n"
.'- TelnetStatus: Value.'."\n"
.'- TelnetLatency: Average.'."\n"
.'- PingLostRate: Average.'."\n"
."\n"
.'> The statistical method for status code metrics is the original value (Value). The statistical method for latency or packet loss rate metrics is the average value (Average).', 'type' => 'string', 'required' => false, 'example' => 'Value', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 10,
'title' => '',
'example' => '',
],
],
[
'name' => 'InstanceList',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The list of ECS instances that initiate detection. Valid values of N: 1 to 21.'."\n"
."\n"
.'> If `TaskScope` is set to `GROUP_SPEC_INSTANCE`, you must set this parameter.',
'type' => 'array',
'items' => ['description' => 'The list of ECS instances that initiate detection. Valid values of N: 1 to 21.'."\n"
."\n"
.'> If `TaskScope` is set to `GROUP_SPEC_INSTANCE`, you must set this parameter.', 'type' => 'string', 'required' => false, 'example' => '2', 'title' => ''],
'required' => false,
'example' => 'i-absdfkwl321****',
'maxItems' => 1000,
'title' => '',
],
],
[
'name' => 'AlertConfigTargetList',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => 'The alert trigger targets.',
'type' => 'array',
'items' => [
'description' => 'The alert trigger targets.',
'type' => 'object',
'properties' => [
'Id' => ['description' => 'The ID of the alert trigger target.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
'Arn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the resource.'."\n"
."\n"
.'The format is `acs:{AbbreviatedCloudServiceName}:{regionId}:{userId}:/{ResourceType}/{ResourceName}/message`. Example: `acs:mns:ap-southeast-1:120886317861****:/queues/test123/message`. The following list describes the parameters:'."\n"
."\n"
.'- {AbbreviatedCloudServiceName}: Only Simple Message Queue (formerly MNS) is supported.'."\n"
."\n"
.'- {userId}: The Alibaba Cloud account ID.'."\n"
."\n"
.'- {regionId}: The region where the Simple Message Queue (formerly MNS) queue or topic resides.'."\n"
."\n"
.'- {ResourceType}: The type of the resource that accepts alerts. Valid values:'."\n"
."\n"
.' - **queues**: queue.'."\n"
.' - **topics**: topic.'."\n"
."\n"
.'- {ResourceName}: The name of the resource.'."\n"
."\n"
.' - If the resource type is **queues**, the resource name is the queue name.'."\n"
.' - If the resource type is **topics**, the resource name is the topic name.', 'type' => 'string', 'required' => false, 'example' => 'acs:mns:cn-hangzhou:111:/queues/test/message', 'title' => ''],
'Level' => ['description' => 'The alert level. Valid values:'."\n"
."\n"
.'- INFO: information.'."\n"
.'- WARN: warning.'."\n"
.'- CRITICAL: critical.', 'type' => 'string', 'required' => false, 'example' => '["INFO", "WARN", "CRITICAL"]', 'title' => ''],
'JsonParams' => ['description' => 'The JSON-formatted parameters for the alert callback.', 'type' => 'string', 'required' => false, 'example' => '{"customField1":"value1","customField2":"$.name"}', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '16E815A3-47E1-4290-87F9-D5C99471FF45', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
409 => [
['errorCode' => 'ResourceConflict', 'errorMessage' => 'Concurrent modification of resources.', 'description' => ''],
['errorCode' => 'ResourceExist', 'errorMessage' => 'Resources already exist.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Modify an availability monitoring task',
'description' => 'This topic provides an example on how to change the name of availability monitoring task `12345` in application group `123456` to `task2`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-08-05T04:05:02.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyHostAvailability'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:ModifyHostAvailability',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"16E815A3-47E1-4290-87F9-D5C99471FF45\\",\\n \\"Success\\": true\\n}","type":"json"}]',
'translator' => 'machine',
],
'ModifyHostInfo' => [
'summary' => 'Calls the ModifyHostInfo operation to modify the display information of a non-Alibaba Cloud host.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'update', 'riskType' => 'high', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The instance ID. Only non-Alibaba Cloud hosts are supported.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'host-R_NSWNV****', 'title' => ''],
],
[
'name' => 'HostName',
'in' => 'query',
'schema' => ['description' => 'The host name.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'portalHost', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The value 200 indicates that the call was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'EBB5215C-44AB-4000-A2D7-48634FDC4F04', 'title' => ''],
'Success' => ['description' => 'Indicates whether the call was successful. The value true indicates that the call was successful. The value false indicates that the call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Modify the display information of a non-Alibaba Cloud host',
'description' => '****',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyHostInfo'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:ModifyHostInfo',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"EBB5215C-44AB-4000-A2D7-48634FDC4F04\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'ModifyHybridMonitorNamespace' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The name of the metric store.'."\n"
."\n"
.'Format: consists of uppercase letters, lowercase letters, digits, and hyphens (-).'."\n"
."\n"
.'For information about how to obtain the name of a metric store, see [DescribeHybridMonitorNamespaceList](~~428880~~).', 'type' => 'string', 'required' => true, 'example' => 'aliyun', 'title' => ''],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['description' => 'The description of the metric store.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'Alibaba Cloud product metric repository.', 'title' => ''],
],
[
'name' => 'Spec',
'in' => 'query',
'schema' => [
'description' => 'The data storage duration. Valid values:'."\n"
."\n"
.'- cms.s1.large: 15 days.'."\n"
.'- cms.s1.xlarge: 32 days.'."\n"
.'- cms.s1.2xlarge: 63 days.'."\n"
.'- cms.s1.3xlarge: 93 days.'."\n"
.'- cms.s1.6xlarge: 185 days.'."\n"
.'- cms.s1.12xlarge: 376 days.'."\n"
."\n"
.'For the prices of different storage duration specifications, see the **Pricing** section in [Dashboard](~~223532~~).',
'enumValueTitles' => ['cms.s1.12xlarge' => 'cms.s1.12xlarge', 'cms.s1.large' => 'cms.s1.large', 'cms.s1.2xlarge' => 'cms.s1.2xlarge', 'cms.s1.6xlarge' => 'cms.s1.6xlarge', 'cms.s1.3xlarge' => 'cms.s1.3xlarge'],
'type' => 'string',
'required' => false,
'docRequired' => false,
'enum' => [],
'example' => 'cms.s1.2xlarge',
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The response code.', 'type' => 'string', 'example' => 'Success', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => '%s', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'E190AB2E-7BF9-59B7-9DDC-7CB1782C5ECD', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: Successful.'."\n"
.'- false: Failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Modify a metric store',
'summary' => 'Calls the ModifyHybridMonitorNamespace operation to modify a metric store.',
'description' => 'This topic provides an example on how to change the data storage duration of the metric store `aliyun` to `cms.s1.2xlarge`. The response shows that the metric store is modified.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [
['createdAt' => '2022-06-09T09:38:01.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2022-04-24T08:29:10.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyHybridMonitorNamespace'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:UpdateCustomNamespace',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"%s\\",\\n \\"RequestId\\": \\"E190AB2E-7BF9-59B7-9DDC-7CB1782C5ECD\\",\\n \\"Success\\": \\"true\\"\\n}","type":"json"}]',
],
'ModifyHybridMonitorSLSGroup' => [
'summary' => 'Modifies a Logstore group by calling the ModifyHybridMonitorSLSGroup operation.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'SLSGroupName',
'in' => 'query',
'schema' => ['description' => 'The name of the Logstore group.'."\n"
."\n"
.'For information about how to obtain the name of a Logstore group, see [DescribeHybridMonitorSLSGroup](~~429526~~).', 'type' => 'string', 'required' => true, 'example' => 'Logstore_test', 'title' => ''],
],
[
'name' => 'SLSGroupDescription',
'in' => 'query',
'schema' => ['description' => 'The description of the Logstore group.', 'type' => 'string', 'required' => false, 'example' => 'Logstore group of Alibaba Cloud products.', 'title' => ''],
],
[
'name' => 'SLSGroupConfig',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The configurations of the Logstore group.'."\n"
."\n"
.'Valid values of N: 1 to 25.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'SLSRegion' => ['description' => 'The region.'."\n"
."\n"
.'Valid values of N: 1 to 25.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''],
'SLSProject' => ['description' => 'The log project.'."\n"
."\n"
.'Valid values of N: 1 to 25.', 'type' => 'string', 'required' => true, 'example' => 'aliyun-project', 'title' => ''],
'SLSLogstore' => ['description' => 'The Logstore.'."\n"
."\n"
.'Valid values of N: 1 to 25.', 'type' => 'string', 'required' => true, 'example' => 'Logstore-aliyun-all', 'title' => ''],
'SLSUserId' => ['description' => 'The member ID.'."\n"
."\n"
.'Valid values of N: 1 to 25.'."\n"
."\n"
.'When you invoke this operation by using a management account, you can associate the Alibaba Cloud services of any member in the resource folder with Hybrid Cloud Monitoring through cloud native mode. You can use the resource folder to monitor the Alibaba Cloud services of multiple accounts.'."\n"
."\n"
.'> If a member uses CloudMonitor for the first time, make sure that the member has completed authorization for the CloudMonitor service-linked role (AliyunServiceRoleForCloudMonitor). For more information, see [CloudMonitor service-linked role](~~170423~~).', 'type' => 'string', 'required' => false, 'example' => '120886317861****', 'title' => ''],
],
'required' => true,
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 30,
'minItems' => 1,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'NotFound.SLSGroup', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '66683237-7126-50F8-BBF8-D67ACC919A17', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation is successful. Valid values:'."\n"
."\n"
.'- true: Successful.'."\n"
.'- false: Failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
412 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Modify a logstore group',
'description' => 'This topic provides an example on how to change the Logstore in the `aliyun-project` log project in the `ap-southeast-1` region of the Logstore group `Logstore_test` to `Logstore-aliyun-all`. The response shows that the Logstore group is modified.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyHybridMonitorSLSGroup'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:ModifyHybridMonitorSLSGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"NotFound.SLSGroup\\",\\n \\"RequestId\\": \\"66683237-7126-50F8-BBF8-D67ACC919A17\\",\\n \\"Success\\": \\"true\\"\\n}","type":"json"}]',
],
'ModifyHybridMonitorTask' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'paid', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'TaskId',
'in' => 'query',
'schema' => ['description' => 'The monitoring task ID.'."\n"
."\n"
.'For information about how to obtain the monitoring task ID, see [DescribeHybridMonitorTaskList](~~428624~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '36****', 'title' => ''],
],
[
'name' => 'TaskName',
'in' => 'query',
'schema' => ['description' => 'The monitoring task name.'."\n"
."\n"
.'For information about how to obtain the monitoring task ID, see [DescribeHybridMonitorTaskList](~~428624~~).', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'SLS_task', 'title' => ''],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['description' => 'The description of the monitoring task.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'SLS log monitoring data.', 'title' => ''],
],
[
'name' => 'CollectInterval',
'in' => 'query',
'schema' => ['description' => 'The collection interval of the metric. Valid values:'."\n"
."\n"
.'- 15'."\n"
."\n"
.'- 60'."\n"
."\n"
.'Unit: seconds.', 'type' => 'string', 'required' => false, 'example' => '15', 'title' => ''],
],
[
'name' => 'AttachLabels',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The tags of the metric.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Value' => ['description' => 'The tag value of the metric.', 'type' => 'string', 'required' => false, 'example' => 'testValue', 'title' => ''],
'Name' => ['description' => 'The tag key of the metric.', 'type' => 'string', 'required' => false, 'example' => 'app_service', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 10,
'title' => '',
'example' => '',
],
],
[
'name' => 'SLSProcessConfig',
'in' => 'query',
'style' => 'flat',
'schema' => [
'description' => 'The SLS log configuration.',
'type' => 'object',
'properties' => [
'Filter' => [
'description' => 'The filter conditions for parameters in the SLS log.',
'type' => 'object',
'properties' => [
'Relation' => ['description' => 'The relationship between multiple filter conditions. Valid values:'."\n"
."\n"
.'- and (default): Logs are processed only when all filter conditions are met.'."\n"
.'- or: Logs are processed when any filter condition is met.', 'type' => 'string', 'required' => false, 'example' => 'and', 'title' => ''],
'Filters' => [
'description' => 'None.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'SLSKeyName' => ['description' => 'The name of the parameter to filter in the SLS log.', 'type' => 'string', 'required' => false, 'example' => 'code', 'title' => ''],
'Operator' => [
'description' => 'The method used to filter parameter values in the SLS log. Valid values:'."\n"
.'- `contain`: contains.'."\n"
.'- `notContain`: does not contain.'."\n"
.'- `>`: greater than.'."\n"
.'- `<`: less than.'."\n"
.'- `=`: equal to.'."\n"
.'- `!=`: not equal to.'."\n"
.'- `>=`: greater than or equal to.'."\n"
.'- `<=`: less than or equal to.',
'type' => 'string',
'enum' => ['>', '>=', '=', '<=', '<', '!=', 'contain', 'notContain'],
'required' => false,
'example' => '=',
'title' => '',
],
'Value' => ['description' => 'The filter value of the parameter in the SLS log.', 'type' => 'string', 'required' => false, 'example' => '200', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
'required' => false,
'title' => '',
'example' => '',
],
'Statistics' => [
'description' => 'None.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'SLSKeyName' => ['description' => 'The name of the parameter for SLS log statistics.', 'type' => 'string', 'required' => false, 'example' => 'name', 'title' => ''],
'Function' => ['description' => 'The statistical method used to aggregate log data within a statistical period. Valid values:'."\n"
.'- count: counts the number of occurrences.'."\n"
.'- sum: calculates the sum.'."\n"
.'- avg: calculates the average.'."\n"
.'- max: returns the maximum value.'."\n"
.'- min: returns the minimum value.'."\n"
.'- value: samples within the period.'."\n"
.'- countps: calculates the per-second average of the count for the specified field within the statistical period.'."\n"
.'- sumps: calculates the per-second average of the sum for the specified field within the statistical period.'."\n"
.'- distinct: calculates the number of occurrences of the specified field after deduplication within the statistical period.'."\n"
.'- distribution: calculates the number of occurrences of field values within a specified range.'."\n"
.'- percentile: calculates the distribution value of field values, such as P50.', 'type' => 'string', 'required' => false, 'example' => 'count', 'title' => ''],
'Alias' => ['description' => 'The alias of the SLS log statistics result.', 'type' => 'string', 'minLength' => 0, 'pattern' => '^[a-zA-Z_][a-zA-Z0-9_]{1,39}$', 'required' => false, 'example' => 'level_count', 'title' => ''],
'Parameter1' => ['description' => 'The statistical value of the SLS log.'."\n"
."\n"
.'- If `Function` is set to `distribution`, this parameter specifies the lower limit of the statistical range. For example, to count the number of 2XX HTTP status codes, set this parameter to 200.'."\n"
."\n"
.'- If `Function` is set to `percentile`, this parameter specifies the percentile of the statistical distribution. For example, 0.5 indicates P50.', 'type' => 'string', 'required' => false, 'example' => '200', 'title' => ''],
'Parameter2' => ['description' => 'The statistical value of the SLS log.'."\n"
."\n"
.'> This parameter is required only when `Function` is set to `distribution`. It specifies the upper limit of the statistical range. For example, to count the number of 2XX HTTP status codes, set this parameter to 299.', 'type' => 'string', 'required' => false, 'example' => '299', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
'GroupBy' => [
'description' => 'Aggregates data by spatial dimension, which is equivalent to GROUP BY in SQL.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'SLSKeyName' => ['description' => 'The name of the parameter for SLS log statistics.', 'type' => 'string', 'required' => false, 'example' => 'code', 'title' => ''],
'Alias' => ['description' => 'The alias of the SLS log statistics result.', 'type' => 'string', 'pattern' => '^[a-zA-Z_][a-zA-Z0-9_]{1,39}$', 'required' => false, 'example' => 'ApiResult', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
'Express' => [
'description' => 'The arithmetic operation result of the extended field in the SLS log statistics result.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Express' => ['description' => 'The arithmetic operation result of the extended field in the SLS log statistics result.', 'type' => 'string', 'required' => false, 'example' => 'success_count', 'title' => ''],
'Alias' => ['description' => 'The alias of the arithmetic operation result of the extended field in the SLS log statistics result.', 'type' => 'string', 'pattern' => '^[a-zA-Z_][a-zA-Z0-9_]{1,39}$', 'required' => false, 'example' => 'SuccRate', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
'required' => false,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Invalid.SLSConfig', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '11145B76-566A-5D80-A8A3-FAD98D310079', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
.'- false: The operation failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Modify a monitoring task',
'summary' => 'Modifies the metrics of a Simple Log Service (SLS) log monitoring task by calling the ModifyHybridMonitorTask operation.',
'description' => 'This topic provides an example on how to change the collection interval of the SLS log monitoring task `36****` to `15` seconds. The response shows that the metric is modified.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [
['createdAt' => '2022-07-11T06:44:52.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-12-09T02:41:41.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyHybridMonitorTask'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:ModifyHybridMonitorTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Invalid.SLSConfig\\",\\n \\"RequestId\\": \\"11145B76-566A-5D80-A8A3-FAD98D310079\\",\\n \\"Success\\": \\"true\\"\\n}","type":"json"}]',
],
'ModifyMetricRuleBlackList' => [
'summary' => 'Modifies a blacklist policy.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'update', 'riskType' => 'high', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Id',
'in' => 'query',
'schema' => ['description' => 'The ID of the blacklist policy.'."\n"
."\n"
.'For information about how to obtain the ID of a blacklist policy, see [DescribeMetricRuleBlackList](~~457257~~).', 'type' => 'string', 'required' => true, 'example' => '93514c96-ceb8-47d8-8ee3-93b6d98b****', 'title' => ''],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => 'The name of the blacklist policy.', 'type' => 'string', 'required' => true, 'example' => 'Blacklist-02', 'title' => ''],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The namespace of the cloud service.'."\n"
."\n"
.'For more information about the namespaces of cloud services, see [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => true, 'example' => 'acs_ecs_dashboard', 'title' => ''],
],
[
'name' => 'Category',
'in' => 'query',
'schema' => ['description' => 'The category of the cloud service. For example, ApsaraDB for Redis supports the standard architecture, the cluster architecture, and the read/write splitting architecture. In this case, the valid values of this parameter for ApsaraDB for Redis include `kvstore_standard`, `kvstore_sharding`, and `kvstore_splitrw`.', 'type' => 'string', 'required' => true, 'example' => 'ecs', 'title' => ''],
],
[
'name' => 'ScopeType',
'in' => 'query',
'schema' => ['description' => 'The effective scope of the blacklist policy. Valid values:'."\n"
."\n"
.'- USER: The blacklist policy takes effect only within the current Alibaba Cloud account.'."\n"
."\n"
.'- GROUP (default): The blacklist policy takes effect only within the specified application group. For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](~~115032~~).', 'type' => 'string', 'required' => false, 'example' => 'USER', 'title' => ''],
],
[
'name' => 'ScopeValue',
'in' => 'query',
'schema' => ['description' => 'The IDs of the application groups.'."\n"
."\n"
.'> This parameter is required only when `ScopeType` is set to `GROUP`.', 'type' => 'string', 'required' => false, 'example' => '["67****","78****"]', 'title' => ''],
],
[
'name' => 'EnableStartTime',
'in' => 'query',
'schema' => ['description' => 'The timestamp when the blacklist policy starts to take effect.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'string', 'required' => false, 'example' => '1640237400000', 'title' => ''],
],
[
'name' => 'EnableEndTime',
'in' => 'query',
'schema' => ['description' => 'The timestamp when the blacklist policy expires.'."\n"
."\n"
.'Unit: milliseconds.', 'type' => 'string', 'required' => false, 'example' => '1640608200000', 'title' => ''],
],
[
'name' => 'EffectiveTime',
'in' => 'query',
'schema' => ['description' => 'The time range within which the blacklist policy is effective. Take note of the following information:'."\n"
."\n"
.'- If you do not configure this parameter, the blacklist policy is permanently effective.'."\n"
."\n"
.'- If you configure this parameter, the blacklist policy is effective only within the specified time range. Examples:'."\n"
."\n"
.' - `03:00-04:59`: The blacklist policy is effective from 03:00 to 05:00 local time. 05:00 local time is excluded.'."\n"
."\n"
.' - `03:00-04:59 UTC+0700`: The blacklist policy is effective from 03:00 to 05:00 (UTC+7). 05:00 (UTC+7) is excluded.', 'type' => 'string', 'required' => false, 'example' => '03:00-04:59', 'title' => ''],
],
[
'name' => 'Instances',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The IDs of the instances that belong to the specified cloud service.',
'type' => 'array',
'items' => ['description' => 'The IDs of the instances that belong to the specified cloud service.'."\n"
."\n"
.'Valid values of N: 1 to 100.', 'type' => 'string', 'required' => false, 'example' => '{"instancceId":"i-bp1ew0zfkjblsuwx****"}', 'title' => ''],
'required' => true,
'maxItems' => 100,
'title' => '',
'example' => '',
],
],
[
'name' => 'Metrics',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The metrics of the instance.'."\n"
."\n"
.'- If you do not configure this parameter, the blacklist policy applies to all metrics of the specified cloud service.'."\n"
."\n"
.'- If you configure this parameter, the blacklist policy applies only to the current metric.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'MetricName' => ['description' => 'The name of the metric.'."\n"
."\n"
.'Valid values of N: 1 to 10.', 'type' => 'string', 'required' => true, 'example' => 'disk_utilization', 'title' => ''],
'Resource' => ['description' => 'The extended dimension of the instance. For example, `{"device":"C:"}` specifies that the blacklist policy is applied to all C disks of the specified Elastic Compute Service (ECS) instance.'."\n"
."\n"
.'Valid values of N: 1 to 10.', 'type' => 'string', 'required' => false, 'example' => '{"device":"C:"}', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 100,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The error code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '008773AE-1D86-3231-90F9-1AF7F808F9CE', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Count' => ['description' => 'The number of blacklist policies that are modified.', 'type' => 'string', 'example' => '1', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
409 => [
['errorCode' => 'ResourceConflict', 'errorMessage' => 'Concurrent modification of resources.', 'description' => ''],
['errorCode' => 'ResourceExist', 'errorMessage' => 'Resources already exist.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'ModifyMetricRuleBlackList',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyMetricRuleBlackList'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:ModifyMetricRuleBlackList',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"008773AE-1D86-3231-90F9-1AF7F808F9CE\\",\\n \\"Success\\": true,\\n \\"Count\\": \\"1\\"\\n}","type":"json"}]',
],
'ModifyMetricRuleTemplate' => [
'summary' => 'Modifies an alert template.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'update', 'riskType' => 'high', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'TemplateId',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert template.'."\n"
."\n"
.'For information about how to obtain the ID of an alert template, see [DescribeMetricRuleTemplateList](~~114982~~).', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123456', 'title' => ''],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => 'The name of the alert template.'."\n"
."\n"
.'For information about how to obtain the name of an alert template, see [DescribeMetricRuleTemplateList](~~114982~~).', 'type' => 'string', 'required' => false, 'example' => 'Template_123', 'title' => ''],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['description' => 'The description of the alert template.', 'type' => 'string', 'required' => false, 'example' => 'ECS_template1', 'title' => ''],
],
[
'name' => 'RestVersion',
'in' => 'query',
'schema' => ['description' => 'The version of the alert template. The version changes with the number of times that the alert template is modified.'."\n"
."\n"
.'For information about how to obtain the version of an alert template, see [DescribeMetricRuleTemplateList](~~114982~~).', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1', 'title' => ''],
],
[
'name' => 'AlertTemplates',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The details of the alert template.',
'type' => 'array',
'items' => [
'description' => 'The version of the alert template. The version changes with the number of times that the alert template is modified.'."\n"
."\n"
.'For information about how to obtain the version of an alert template, see [DescribeMetricRuleTemplateList](~~114982~~).',
'type' => 'object',
'properties' => [
'Escalations.Info.Threshold' => ['description' => 'The threshold for Info-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for the selected alert level.', 'type' => 'string', 'required' => false, 'example' => '20', 'title' => ''],
'MetricName' => ['description' => 'The metric name.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'For information about how to obtain metrics, see [DescribeMetricMetaList](~~98846~~) or [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'cpu_total', 'title' => ''],
'Webhook' => ['description' => 'The callback URL.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'The callback URL must be accessible over the Internet. CloudMonitor pushes an alert notification to the specified callback URL by sending an HTTP POST request. Only the HTTP protocol is supported.', 'type' => 'string', 'required' => false, 'example' => 'http://www.aliyun.com', 'title' => ''],
'Escalations.Warn.Threshold' => ['description' => 'The threshold for Warn-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for the selected alert level.', 'type' => 'string', 'required' => false, 'example' => '30', 'title' => ''],
'Namespace' => ['description' => 'The namespace of the cloud service.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'For information about how to obtain the namespace of a cloud service, see [DescribeMetricMetaList](~~98846~~) or [Appendix 1: Metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'acs_ecs_dashboard', 'title' => ''],
'Period' => ['description' => 'The statistical period of the monitoring data.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> If the value is set to 300 seconds, the monitoring data is collected every 300 seconds. If the monitoring data is reported every 1 minute, the alert system calculates the average, maximum, and minimum values of the monitoring data of 5 minutes and checks whether the aggregated values exceed the threshold. To prevent unexpected alerts, we recommend that you set this parameter together with other parameters.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '60', 'title' => ''],
'RuleName' => ['description' => 'The name of the alert rule.'."\n"
."\n"
.'Valid values of N: 1 to 200.', 'type' => 'string', 'required' => false, 'example' => 'Rule_123', 'title' => ''],
'Escalations.Critical.Times' => ['description' => 'The consecutive number of times for which the metric value meets the alert condition before a Critical-level alert is triggered.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for the selected alert level.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2', 'title' => ''],
'Selector' => ['description' => 'The dimension of the alert. It is an extended field.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'For example, an alert template is applied to an application group, this parameter is set to `{"disk":"/"}`, and the MetricName parameter is set to `DiskUtilization`. In this case, the generated alert rule is applied to the root disk partition (`"/"`) of all instances in the application group to which the alert template is applied.'."\n"
."\n"
.'> For more information about the values of extended fields, see [DescribeMetricRuleTemplateAttribute](~~114979~~).', 'type' => 'string', 'required' => false, 'example' => '{"disk":"/"}', 'title' => ''],
'Escalations.Info.Statistics' => ['description' => 'The statistical method for Info-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](~~163515~~).'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for the selected alert level.', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
'Escalations.Warn.Times' => ['description' => 'The consecutive number of times for which the metric value meets the alert condition before a Warn-level alert is triggered.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for the selected alert level.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
'Escalations.Info.ComparisonOperator' => ['description' => 'The operator that is used to compare the metric value with the threshold for Info-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold'."\n"
."\n"
.'- GreaterThanThreshold: greater than the threshold'."\n"
."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold'."\n"
."\n"
.'- LessThanThreshold: less than the threshold'."\n"
."\n"
.'- NotEqualToThreshold: not equal to the threshold'."\n"
."\n"
.'- GreaterThanYesterday: greater than the metric value at the same time yesterday'."\n"
."\n"
.'- LessThanYesterday: less than the metric value at the same time yesterday'."\n"
."\n"
.'- GreaterThanLastWeek: greater than the metric value at the same time last week'."\n"
."\n"
.'- LessThanLastWeek: less than the metric value at the same time last week'."\n"
."\n"
.'- GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle'."\n"
."\n"
.'- LessThanLastPeriod: less than the metric value in the last monitoring cycle'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for the selected alert level.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Category' => ['description' => 'The abbreviation of the cloud service name.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'For more information about how to obtain the abbreviation of a cloud service name, see `metricCategory` in the response parameter `Labels` of the [DescribeProjectMeta](~~114916~~) operation.', 'type' => 'string', 'required' => false, 'example' => 'ecs', 'title' => ''],
'Escalations.Critical.Threshold' => ['description' => 'The threshold for Critical-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for the selected alert level.', 'type' => 'string', 'required' => false, 'example' => '30', 'title' => ''],
'Escalations.Critical.Statistics' => ['description' => 'The statistical method for Critical-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](~~163515~~).'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for the selected alert level.', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
'Escalations.Critical.ComparisonOperator' => ['description' => 'The operator that is used to compare the metric value with the threshold for Critical-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold'."\n"
."\n"
.'- GreaterThanThreshold: greater than the threshold'."\n"
."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold'."\n"
."\n"
.'- LessThanThreshold: less than the threshold'."\n"
."\n"
.'- NotEqualToThreshold: not equal to the threshold'."\n"
."\n"
.'- GreaterThanYesterday: greater than the metric value at the same time yesterday'."\n"
."\n"
.'- LessThanYesterday: less than the metric value at the same time yesterday'."\n"
."\n"
.'- GreaterThanLastWeek: greater than the metric value at the same time last week'."\n"
."\n"
.'- LessThanLastWeek: less than the metric value at the same time last week'."\n"
."\n"
.'- GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle'."\n"
."\n"
.'- LessThanLastPeriod: less than the metric value in the last monitoring cycle'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for the selected alert level.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Escalations.Warn.ComparisonOperator' => ['description' => 'The operator that is used to compare the metric value with the threshold for Warn-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold'."\n"
."\n"
.'- GreaterThanThreshold: greater than the threshold'."\n"
."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold'."\n"
."\n"
.'- LessThanThreshold: less than the threshold'."\n"
."\n"
.'- NotEqualToThreshold: not equal to the threshold'."\n"
."\n"
.'- GreaterThanYesterday: greater than the metric value at the same time yesterday'."\n"
."\n"
.'- LessThanYesterday: less than the metric value at the same time yesterday'."\n"
."\n"
.'- GreaterThanLastWeek: greater than the metric value at the same time last week'."\n"
."\n"
.'- LessThanLastWeek: less than the metric value at the same time last week'."\n"
."\n"
.'- GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle'."\n"
."\n"
.'- LessThanLastPeriod: less than the metric value in the last monitoring cycle'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for the selected alert level.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Escalations.Info.Times' => ['description' => 'The consecutive number of times for which the metric value meets the alert condition before an Info-level alert is triggered.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for the selected alert level.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
'Escalations.Warn.Statistics' => ['description' => 'The statistical method for Warn-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 200.'."\n"
."\n"
.'The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see [Appendix 1: Metrics](~~163515~~).'."\n"
."\n"
.'> You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for the selected alert level.', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 200,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '9E07117F-F6AE-4F1C-81E8-36FBB4892235', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'InvalidClientTokenId', 'errorMessage' => 'The X.509 certificate or cms access key ID provided does not exist in our records.', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
412 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'Throttli∂ngException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalFailure', 'errorMessage' => '%s', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'ModifyMetricRuleTemplate',
'description' => '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.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyMetricRuleTemplate'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:ModifyMetricRuleTemplate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"9E07117F-F6AE-4F1C-81E8-36FBB4892235\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'ModifyMonitorGroup' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'update', 'riskType' => 'high', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '123456', 'title' => ''],
],
[
'name' => 'GroupName',
'in' => 'query',
'schema' => ['description' => 'The name of the application group.', 'type' => 'string', 'required' => false, 'example' => 'ecs_group', 'title' => ''],
],
[
'name' => 'ContactGroups',
'in' => 'query',
'schema' => ['description' => 'The alert contact group.', 'type' => 'string', 'required' => false, 'example' => 'alarm_ecs_group', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A value of 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'C85A2870-5DF4-4269-BC50-ECB5E4591A80', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. A value of true indicates success. A value of false indicates failure.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
409 => [
['errorCode' => 'ResourceConflict', 'errorMessage' => 'Concurrent modification of resources.', 'description' => ''],
['errorCode' => 'ResourceExist', 'errorMessage' => 'Resources already exist.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'ModifyMonitorGroup',
'summary' => 'You can call the ModifyMonitorGroup operation to modify an application group.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyMonitorGroup'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:ModifyMonitorGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'MonitorGroup', 'arn' => 'acs:cms::{#accountId}:group/{#groupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"C85A2870-5DF4-4269-BC50-ECB5E4591A80\\",\\n \\"Success\\": true\\n}","type":"json"}]',
'extraInfo' => ' ',
],
'ModifyMonitorGroupInstances' => [
'summary' => 'The ModifyMonitorGroupInstances operation modifies the resources in an application group.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '12345', 'title' => ''],
],
[
'name' => 'Instances',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The list of instances. You can specify up to 2,000 instances.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'InstanceName' => ['description' => 'The name of the instance.', 'type' => 'string', 'required' => true, 'example' => 'HostName', 'title' => ''],
'Category' => ['description' => 'The cloud service to which the resource instance belongs. The following cloud services are supported:'."\n"
."\n"
.'- ECS (including Alibaba Cloud and third-party hosts)'."\n"
."\n"
.'- ApsaraDB RDS'."\n"
."\n"
.'- AnalyticDB'."\n"
."\n"
.'- SLB'."\n"
."\n"
.'- VPC (Elastic IP)'."\n"
."\n"
.'- API Gateway'."\n"
."\n"
.'- Alibaba Cloud CDN'."\n"
."\n"
.'- Container Service for Swarm'."\n"
."\n"
.'- DCDN'."\n"
."\n"
.'- Anti-DDoS'."\n"
."\n"
.'- EIP'."\n"
."\n"
.'- Elasticsearch'."\n"
."\n"
.'- E-MapReduce'."\n"
."\n"
.'- Auto Scaling'."\n"
."\n"
.'- ApsaraDB for HBase'."\n"
."\n"
.'- IoT Edge'."\n"
."\n"
.'- Kubernetes pod'."\n"
."\n"
.'- ApsaraDB for Redis (sharded cluster)'."\n"
."\n"
.'- ApsaraDB for Redis (read/write splitting)'."\n"
."\n"
.'- ApsaraDB for Redis (Standard Edition)'."\n"
."\n"
.'- ApsaraDB for Memcache'."\n"
."\n"
.'- MNS'."\n"
."\n"
.'- ApsaraDB for MongoDB (replica set)'."\n"
."\n"
.'- ApsaraDB for MongoDB (sharded cluster)'."\n"
."\n"
.'- ApsaraDB for MongoDB (sharded cluster)'."\n"
."\n"
.'- MNS topic'."\n"
."\n"
.'- OCS (ApsaraDB for Memcache of earlier versions)'."\n"
."\n"
.'- OpenSearch'."\n"
."\n"
.'- OSS'."\n"
."\n"
.'- PolarDB'."\n"
."\n"
.'- HybridDB for MySQL'."\n"
."\n"
.'- Internet Shared Bandwidth'."\n"
."\n"
.'- SLS'."\n"
."\n"
.'- VPN Gateway', 'type' => 'string', 'required' => true, 'example' => 'ECS', 'title' => ''],
'InstanceId' => ['description' => 'The ID of the resource instance.', 'type' => 'string', 'required' => true, 'example' => 'i-a2d5q7pm12****', 'title' => ''],
'RegionId' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''],
],
'required' => false,
'description' => '',
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 2000,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A value of 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'FEC7EDB3-9B08-4AC0-A42A-329F5D14B95A', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. A value of true indicates a success. A value of false indicates a failure.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Parameter invalid.', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'AccessForbidden', 'errorMessage' => 'The X.509 certificate or cms access key ID provided does not exist in our records.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'ResourceConflict', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'ResourceExist', 'errorMessage' => '%s', 'description' => ''],
],
412 => [
['errorCode' => 'ResourcesOverLimit', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'Throttli∂ngException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'ModifyMonitorGroupInstances',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-02-13T11:47:48.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyMonitorGroupInstances'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:ModifyMonitorGroupInstances',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"FEC7EDB3-9B08-4AC0-A42A-329F5D14B95A\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'ModifySiteMonitor' => [
'summary' => 'Modifies a site monitoring task by calling the ModifySiteMonitor operation.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'paid', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Address',
'in' => 'query',
'schema' => ['description' => 'The URL or IP address of the monitoring task.', 'type' => 'string', 'required' => false, 'example' => 'http://www.aliyun.com', 'title' => ''],
],
[
'name' => 'TaskId',
'in' => 'query',
'schema' => ['description' => 'The ID of the monitoring task.', 'type' => 'string', 'required' => true, 'example' => '2c8dbdf9-a3ab-46a1-85a4-f094965e****', 'title' => ''],
],
[
'name' => 'TaskName',
'in' => 'query',
'schema' => ['description' => 'The name of the monitoring task. The name must be 4 to 100 characters in length and can contain letters, digits, underscores (_), and Chinese characters.', 'type' => 'string', 'required' => false, 'example' => 'HanZhou_ECS2', 'title' => ''],
],
[
'name' => 'Interval',
'in' => 'query',
'schema' => ['description' => 'The monitoring frequency. Valid values: 1, 5, and 15. Unit: minutes. Default value: 1.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'IspCities',
'in' => 'query',
'schema' => ['description' => 'The detection point information. The value is in JSONArray format, for example: `[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]`, where `city` corresponds to Beijing, Hangzhou, and Qingdao respectively.'."\n"
."\n"
.'> You can call the DescribeSiteMonitorISPCityList operation to query detection point information. For more information, see [DescribeSiteMonitorISPCityList](~~115045~~). If this parameter is left empty, the system randomly selects three detection points.', 'type' => 'string', 'required' => false, 'example' => '[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]', 'title' => ''],
],
[
'name' => 'OptionsJson',
'in' => 'query',
'schema' => ['description' => 'The advanced extended options for the protocol type of the monitoring task. Different protocol types correspond to different extended options.', 'type' => 'string', 'required' => false, 'example' => '{"time_out":5000}', 'title' => ''],
],
[
'name' => 'AlertIds',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert rule. The ID of an existing alert rule in CloudMonitor. You can call the DescribeMetricRuleList operation to query alert rule IDs. For more information, see [DescribeMetricRuleList](~~114941~~).', 'type' => 'string', 'required' => false, 'example' => '49f7c317-7645-4cc9-94fd-ea42e122****', 'title' => ''],
],
[
'name' => 'IntervalUnit',
'in' => 'query',
'schema' => ['description' => 'The unit of the monitoring metrics.'."\n"
."\n"
.'Unit: milliseconds (ms).', 'type' => 'string', 'required' => false, 'example' => 'ms', 'title' => ''],
],
[
'name' => 'CustomSchedule',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => ['description' => 'The custom monitoring schedule. You can select a specific time period from Monday to Sunday for monitoring.', 'type' => 'string', 'example' => '{"start_hour":0,"end_hour":24, "days":[0], "time_zone":"Local"}', 'required' => false, 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'successful', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '68192f5d-0d45-4b98-9724-892813f86c71', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
'Data' => [
'description' => 'The details of the node task result.',
'type' => 'object',
'properties' => [
'count' => ['description' => 'The number of monitoring tasks.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidQueryParameter', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'IllegalAddress', 'errorMessage' => 'Illegal HTTP address', 'description' => ''],
['errorCode' => 'OperationError', 'errorMessage' => 'Operation failed', 'description' => ''],
['errorCode' => 'TaskNotExists', 'errorMessage' => 'Task does not exist', 'description' => ''],
['errorCode' => 'OperatorInvalid', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'NameRepeat', 'errorMessage' => 'Task name repeat', 'description' => ''],
['errorCode' => 'CreateAlarmError', 'errorMessage' => 'Create alarm error', 'description' => ''],
['errorCode' => 'NameNotExists', 'errorMessage' => 'Task name not exists', 'description' => ''],
['errorCode' => 'OperatorCityInvalid', 'errorMessage' => 'Invalid Isp.', 'description' => 'Invalid Isp'],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'Forbidden', 'errorMessage' => 'You are not authorized to operate the specified resource.', 'description' => 'No permission, please use RAM to authorize'],
['errorCode' => 'RestrictedUser', 'errorMessage' => 'The user\'s operation is restricted, please register NAAM product code.', 'description' => ''],
['errorCode' => 'UnauthorizedTasks', 'errorMessage' => 'You are not permitted to operate the specified tasks.', 'description' => 'You are not permitted to operate the specified tasks.'],
],
[
['errorCode' => 'TaskNotExist', 'errorMessage' => 'The specified task does not exist.', 'description' => 'The specified task does not exist.'],
],
406 => [
['errorCode' => 'ExceedingQuota', 'errorMessage' => 'Exceeding quota limits.', 'description' => 'The number of tasks exceeds the limit'],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'ThrottlingException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternetServerError', 'errorMessage' => 'System internal error.', 'description' => 'System internal error'],
],
],
'title' => 'Modify a site monitoring task',
'requestParamsDescription' => 'Site monitoring supports the following eight task types. The extended options (OptionsJson) for each task type are described in the following tables.'."\n"
."\n"
.'- HTTP.'."\n"
."\n"
.'|Name |Type |Description|'."\n"
.'| ----- | -------------- | ----------- |'."\n"
.'|http_method |String |The HTTP request method. Valid values: GET, POST, and HEAD. Default value: GET. |'."\n"
.'|header |String |Custom HTTP headers separated by line feeds (\\n).
Each header must comply with the HTTP protocol format (key-value pairs separated by a colon). |'."\n"
.'|cookie |String |The cookie, which follows the standard HTTP request format. |'."\n"
.'|request_content |String |The request content. Two formats are supported: JSON and form. If this parameter is not specified, the request does not contain a body. |'."\n"
.'|response_content |String |The expected response content. During monitoring, the first 64 bytes returned by the HTTP server are checked. |'."\n"
.'|match_rule |String |0: The monitoring is successful if the response does not contain response_content.
1: The monitoring is successful if the response contains response_content. |'."\n"
.'|username |String |If a username is provided, a BasicAuth header is included in the HTTP request. |'."\n"
.'|password |String |The password for HTTP request authentication. |'."\n"
.'|time_out |int |The timeout period. Unit: milliseconds. Default value: 5. |'."\n"
.'|max_redirect |int |The maximum number of redirects. The default value is 5 for ECS detection points and 2 for carrier detection points.
To disable redirects, set this parameter to 0.
Valid values: 0 to 50. |.'."\n"
."\n"
.' '."\n"
.'- PING.'."\n"
."\n"
.'|Name |Type |Description |'."\n"
.'| ----- | -------------- | ----------- |'."\n"
.'|failure_rate |int |If the PING failure rate exceeds this value, the monitoring fails and returns 610 (PingAllFail) or 615 (PingPartialFail).
Default value: 0.1. |'."\n"
.'|ping_num |int |The number of PING attempts. Default value: 20.
Valid values: 1 to 100. |.'."\n"
."\n"
.'- DNS.'."\n"
."\n"
.'|Name |Type |Description |'."\n"
.'| ----- | -------------- | ----------- |'."\n"
.'|dns_server |string |The address of the DNS server. The value can be a domain name or an IP address. |'."\n"
.'|dns_type |string |The DNS query type. Valid values: A, NS, CNAME, MX, TXT, and ANY. |'."\n"
.'|expect_value |string |The list of expected values separated by whitespace characters. |'."\n"
.'|match_rule |string |The relationship between the expected value list and the DNS list. If the specified relationship is not met, the monitoring fails.
Empty string or IN_DNS: The expected value list is a subset of the DNS list.
DNS_IN: The DNS list is a subset of the expected value list.
EQUAL: The DNS list is equal to the expected value list.
ANY: The DNS list and the expected value list have a non-empty intersection. |.'."\n"
."\n"
.'- FTP.'."\n"
."\n"
.'|Name |Type |Description |'."\n"
.'| ----- | -------------- | ----------- |'."\n"
.'|port |int |The port number of the FTP server. If this parameter is not specified, the default value is used. Default value for FTP: 21. Default value for FTPs: 990. |'."\n"
.'|username |string |The FTP username. If this parameter is not specified, anonymous login is used. |'."\n"
.'|password |string |The FTP password. |.'."\n"
."\n"
.'- POP3/SMTP.'."\n"
."\n"
.'|Name |Type |Description |'."\n"
.'| ----- | -------------- | ----------- |'."\n"
.'|port |int |The port number of the POP3 server. Default value for POP3: 110. Default value for POP3s: 995. |'."\n"
.'|username |string |The username for POP3/SMTP. |'."\n"
.'|password |string |The password for POP3/SMTP. |.'."\n"
."\n"
.'- TCP/UDP.'."\n"
."\n"
.'|Name |Type |Description |'."\n"
.'| ----- | -------------- | ----------- |'."\n"
.'|port |int |The port of the TCP/UDP server. |'."\n"
.'|request_content |string |The request content. If request_format is set to hex, the value of request_content is in hexadecimal compact format. |'."\n"
.'|request_format |string |If request_format is set to other values, request_content is sent to the TCP/UDP server as a plain string. |'."\n"
.'|response_content |string |The response content. If the content returned by the TCP/UDP server does not contain response_content, the monitoring fails.
If response_format is set to hex, the value of response_content is in hexadecimal compact format.
If response_content is set to other values, response_content is a plain string. |.',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-04-01T07:22:22.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2025-02-13T09:00:16.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2025-02-12T07:07:35.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2023-08-04T02:58:38.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2023-06-19T07:10:45.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2022-08-03T06:48:53.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifySiteMonitor'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'cms:ModifySiteMonitor',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"68192f5d-0d45-4b98-9724-892813f86c71\\",\\n \\"Success\\": \\"true\\",\\n \\"Data\\": {\\n \\"count\\": 1\\n }\\n}","type":"json"}]',
],
'PutContact' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'ContactName',
'in' => 'query',
'schema' => ['description' => 'The name of the alert contact.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Alice', 'title' => ''],
],
[
'name' => 'Describe',
'in' => 'query',
'schema' => ['description' => 'The description of the alert contact.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ECS_Instance', 'title' => ''],
],
[
'name' => 'Channels.SMS',
'in' => 'query',
'schema' => ['description' => 'The phone number of the alert contact. An activation link is sent to the phone number. The alert contact is added only after the link is activated.'."\n"
."\n"
.'Specify at least one of the following contact methods: phone number, email address, DingTalk chatbot, or TradeManager.'."\n"
.'Specify at least one of the following contact methods: email address or DingTalk chatbot.'."\n"
.'Specify at least one of the following contact methods: email address or DingTalk chatbot..', 'type' => 'string', 'required' => false, 'example' => '1333333****', 'title' => ''],
],
[
'name' => 'Channels.Mail',
'in' => 'query',
'schema' => ['description' => 'The email address of the alert contact. An activation link is sent to the email address. The alert contact is added only after the link is activated.'."\n"
."\n"
.'Specify at least one of the following contact methods: phone number, email address, DingTalk chatbot, or TradeManager.'."\n"
.'Specify at least one of the following contact methods: email address or DingTalk chatbot.'."\n"
.'Specify at least one of the following contact methods: email address or DingTalk chatbot..', 'type' => 'string', 'required' => false, 'example' => 'test@aliyun.com', 'title' => ''],
],
[
'name' => 'Channels.AliIM',
'in' => 'query',
'schema' => ['description' => 'The TradeManager ID of the alert contact.'."\n"
."\n"
.'Specify at least one of the following contact methods: phone number, email address, DingTalk chatbot, or TradeManager.'."\n"
.'Specify at least one of the following contact methods: email address or DingTalk chatbot.'."\n"
.'Specify at least one of the following contact methods: email address or DingTalk chatbot..', 'type' => 'string', 'required' => false, 'example' => 'Jim', 'title' => ''],
],
[
'name' => 'Channels.DingWebHook',
'in' => 'query',
'schema' => ['description' => 'The webhook URL of the DingTalk chatbot.'."\n"
."\n"
.'Specify at least one of the following contact methods: phone number, email address, DingTalk chatbot, or TradeManager.'."\n"
.'Specify at least one of the following contact methods: email address or DingTalk chatbot.'."\n"
.'Specify at least one of the following contact methods: email address or DingTalk chatbot..', 'type' => 'string', 'required' => false, 'example' => 'https://oapi.dingtalk.com/robot/send?access_token=7d49515e8ebf21106a80a9cc4bb3d247771305d52fb15d6201234565****', 'title' => ''],
],
[
'name' => 'Lang',
'in' => 'query',
'schema' => ['description' => 'The language in which alert notifications are sent. Valid values:'."\n"
.'- zh-cn: simplified Chinese.'."\n"
.'- en: English.'."\n"
."\n"
.'> If you do not set this parameter, the language is automatically determined based on the region of the account.', 'type' => 'string', 'required' => false, 'example' => 'zh-cn', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '181C406E-9DE4-484C-9C61-37AE9A1A12EE', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameterValue', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => 'InvalidAuthorization', 'errorMessage' => 'Permission denied', 'description' => 'Permission denied.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Create or modify alert contact information',
'summary' => 'Calls the PutContact operation to create or modify alert contact information.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutContact'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:PutContact',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"181C406E-9DE4-484C-9C61-37AE9A1A12EE\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'PutContactGroup' => [
'summary' => 'Creates or modifies an alert contact group by calling the PutContactGroup operation.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'ContactGroupName',
'in' => 'query',
'schema' => ['description' => 'The name of the alert contact group.', 'type' => 'string', 'required' => true, 'example' => 'Attendance system group', 'title' => ''],
],
[
'name' => 'Describe',
'in' => 'query',
'schema' => ['description' => 'The description of the alert contact group.', 'type' => 'string', 'required' => false, 'example' => 'Alert test', 'title' => ''],
],
[
'name' => 'EnableSubscribed',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to enable the subscription feature. Valid values:'."\n"
."\n"
.'- true: Enabled.'."\n"
."\n"
.'- false: Disabled.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'ContactNames',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The name of the alert contact.',
'type' => 'array',
'items' => ['description' => 'The name of the alert contact.', 'type' => 'string', 'required' => false, 'example' => 'lucy', 'title' => ''],
'required' => false,
'maxItems' => 100,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'Illegal parameters.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B4E30DB6-F069-5D0B-A589-2A89F7D62A57', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation is successful. Valid values:'."\n"
."\n"
.'- true: Successful.'."\n"
."\n"
.'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameterValue', 'errorMessage' => 'Illegal parameters.', 'description' => 'Illegal parameters.'],
],
403 => [
['errorCode' => 'InvalidAuthorization', 'errorMessage' => 'Permission denied', 'description' => 'Permission denied.'],
],
[
['errorCode' => 'ContactGroup.NotExists', 'errorMessage' => 'ContactGroup not exists', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Create or modify an alert contact group',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutContactGroup'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:PutContactGroup',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Illegal parameters.\\",\\n \\"RequestId\\": \\"B4E30DB6-F069-5D0B-A589-2A89F7D62A57\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'PutCustomEvent' => [
'summary' => 'Reports custom events.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'EventInfo',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The event details.',
'type' => 'array',
'items' => [
'description' => '',
'type' => 'object',
'properties' => [
'EventName' => ['description' => 'The event name. Valid values of N: 1 to 50.', 'type' => 'string', 'required' => true, 'example' => 'myEvent', 'title' => ''],
'Time' => ['description' => 'The time when the event occurred.'."\n"
."\n"
.'Format: `yyyyMMddTHHmmss.SSSZ`.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'> You can also specify a UNIX timestamp. Example: 1552199984000. Unit: milliseconds.', 'type' => 'string', 'required' => false, 'example' => '20171013T170923.456+0800', 'title' => ''],
'GroupId' => ['description' => 'The ID of the application group. Valid values of N: 1 to 50.'."\n"
."\n"
.'Default value: 0. This value indicates that the event to be reported does not belong to any application group.', 'type' => 'string', 'required' => false, 'example' => '123456', 'title' => ''],
'Content' => ['description' => 'The event content. Valid values of N: 1 to 50.', 'type' => 'string', 'required' => true, 'example' => 'IOException', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 50,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The responses code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '131DD9C8-9A32-4428-AD2E-4E3013B6E3A7', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'PutCustomEvent',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutCustomEvent'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:PutCustomEvent',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"131DD9C8-9A32-4428-AD2E-4E3013B6E3A7\\"\\n}","type":"json"}]',
],
'PutCustomEventRule' => [
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group. For information about how to obtain the ID, see [DescribeCustomEventAttribute](~~115262~~).'."\n"
."\n"
.'> A value of 0 indicates that the reported custom event does not belong to any application group.', 'type' => 'string', 'required' => true, 'example' => '7378****', 'title' => ''],
],
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert rule.'."\n"
."\n"
.'> If the alert rule ID already exists, the alert rule is modified. If the alert rule ID does not exist, an alert rule is created.', 'type' => 'string', 'required' => true, 'example' => 'CustomRuleId1', 'title' => ''],
],
[
'name' => 'RuleName',
'in' => 'query',
'schema' => ['description' => 'The name of the alert rule.', 'type' => 'string', 'required' => true, 'example' => 'CustomeRule', 'title' => ''],
],
[
'name' => 'EventName',
'in' => 'query',
'schema' => ['description' => 'The name of the custom event. For information about how to obtain the name, see [DescribeCustomEventAttribute](~~115262~~).', 'type' => 'string', 'required' => true, 'example' => 'HostDown', 'title' => ''],
],
[
'name' => 'ContactGroups',
'in' => 'query',
'schema' => ['description' => 'The alert contact group. Separate multiple contact groups with commas (,).', 'type' => 'string', 'required' => true, 'example' => 'ECS_Group', 'title' => ''],
],
[
'name' => 'Webhook',
'in' => 'query',
'schema' => ['description' => 'The callback URL to which a POST request is sent when an alert is triggered.', 'type' => 'string', 'required' => false, 'example' => 'https://www.aliyun.com', 'title' => ''],
],
[
'name' => 'EffectiveInterval',
'in' => 'query',
'schema' => ['description' => 'The time period during which the alert rule is effective. Valid values: 00:00-23:59.', 'type' => 'string', 'required' => false, 'example' => '00:00-23:59', 'title' => ''],
],
[
'name' => 'Period',
'in' => 'query',
'schema' => ['description' => 'The aggregation period of the monitoring data for the custom event. Unit: seconds. The value must be 60 or a multiple of 60. Default value: 300.', 'type' => 'string', 'required' => false, 'default' => '300', 'example' => '60', 'title' => ''],
],
[
'name' => 'EmailSubject',
'in' => 'query',
'schema' => ['description' => 'The subject of the alert email.', 'type' => 'string', 'required' => false, 'example' => 'ECS instance', 'title' => ''],
],
[
'name' => 'Threshold',
'in' => 'query',
'schema' => ['description' => 'The alert threshold.', 'type' => 'string', 'required' => true, 'example' => '99', 'title' => ''],
],
[
'name' => 'Level',
'in' => 'query',
'schema' => ['description' => 'The alert level. Valid values:'."\n"
.'- CRITICAL'."\n"
.'- WARN'."\n"
.'- INFO', 'type' => 'string', 'required' => true, 'example' => 'CRITICAL', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The value 200 indicates that the call was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The request has failed due to a temporary failure of the server.', 'title' => ''],
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'AD5DCD82-BD1C-405F-BAED-32302DE9F498', 'title' => ''],
'Success' => ['description' => 'Indicates whether the call was successful. Valid values:'."\n"
."\n"
.'- true: The call was successful.'."\n"
."\n"
.'- false: The call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
204 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
499 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Create an alert rule for a custom event',
'summary' => 'Calls the PutCustomEventRule operation to create an alert rule for a custom event.',
'description' => 'Before you call this operation, you must call the PutCustomEvent operation to report the monitoring data of the custom event. For more information, see [PutCustomEvent](~~115012~~).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutCustomEventRule'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:PutCustomEventRule',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The request has failed due to a temporary failure of the server.\\",\\n \\"RequestId\\": \\"AD5DCD82-BD1C-405F-BAED-32302DE9F498\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'PutCustomMetric' => [
'summary' => 'Calls the PutCustomMetric operation to report custom monitoring data.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'MetricList',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The list of monitoring data.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Type' => ['description' => 'The type of the reported value. Valid values of N: 1 to 21. Valid values:'."\n"
."\n"
.'- 0: raw data.'."\n"
.'- 1: aggregate data.'."\n"
."\n"
.'> When you report aggregate data, we recommend that you report both data with a period of 60 seconds and data with a period of 300 seconds. Otherwise, monitoring data cannot be queried for a time span of more than 7 days.', 'type' => 'string', 'required' => true, 'example' => '0', 'title' => ''],
'MetricName' => ['description' => 'The name of the metric. Valid values of N: 1 to 21. For more information, see [Metrics of cloud services](~~163515~~).', 'type' => 'string', 'required' => true, 'example' => 'cpu_total', 'title' => ''],
'Time' => ['description' => 'The time when the metric occurred. Valid values of N: 1 to 21. The following two types of values are supported:'."\n"
.'- UTC time. Format: YYYY-MM-DDThh:mm:ssZ. For example: 20171012T132456.888+0800.'."\n"
.'- A Long-type timestamp. For example: 1508136760000.'."\n", 'type' => 'string', 'required' => false, 'example' => '1508136760000', 'title' => ''],
'GroupId' => ['description' => 'The ID of the application group. Valid values of N: 1 to 21.'."\n"
."\n"
.'> If the metric does not belong to any application group, enter 0.', 'type' => 'string', 'required' => true, 'example' => '12345', 'title' => ''],
'Values' => ['description' => 'The collection of metric values. Valid values of N: 1 to 21.'."\n"
."\n"
.'> If the type of the reported value is 0, the raw values are reported. CloudMonitor aggregates raw values into multiple values, such as maximum, count, and sum, by period.'."\n", 'type' => 'string', 'required' => true, 'example' => '{"value":10.5}', 'title' => ''],
'Dimensions' => ['description' => 'The dimension map, which is used to query monitoring data of a specified resource. Valid values of N: 1 to 21.'."\n"
."\n"
.'Format: a collection of key-value pairs. A commonly used key-value pair collection is: `{"Key":"Value"}`.'."\n"
."\n"
.'The length of Key and Value is 1 to 64 characters. Characters beyond the first 64 are truncated.'."\n"
."\n"
.'The values of Key and Value can contain letters, digits, periods (.), hyphens (-), underscores (_), forward slashes (/), and backslashes (\\).'."\n"
."\n"
.'> Dimensions must be passed in as a JSON string that represents the map object, and must be passed in order. ', 'type' => 'string', 'required' => true, 'example' => '{"sampleName1":"value1","sampleName2":"value2"}', 'title' => ''],
'Period' => ['description' => 'The aggregation period. Valid values of N: 1 to 21. Unit: seconds. Valid values: 60 and 300.'."\n"
."\n"
.'> If the type of the reported value is 1, you must set this parameter.', 'type' => 'string', 'required' => false, 'example' => '60', 'title' => ''],
],
'required' => false,
'description' => '',
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 100,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
.'> 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The request has failed due to a temporary failure of the server.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '05B36C2C-5F6E-48D5-8B41-CE36DD7EE8E0', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Report custom monitoring data',
'description' => '> We recommend that you use the [PutHybridMonitorMetricData](~~383455~~) operation in Enterprise CloudMonitor.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutCustomMetric'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:PutCustomMetric',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The request has failed due to a temporary failure of the server.\\",\\n \\"RequestId\\": \\"05B36C2C-5F6E-48D5-8B41-CE36DD7EE8E0\\"\\n}","type":"json"}]',
],
'PutCustomMetricRule' => [
'summary' => 'Creates an alert rule for custom monitoring.',
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group to which the custom monitoring data belongs.'."\n"
."\n"
.'> A value of 0 indicates that the reported custom monitoring data does not belong to any application group.', 'type' => 'string', 'required' => false, 'example' => '7378****', 'title' => ''],
],
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert rule.'."\n"
."\n"
.'> If the alert rule ID already exists, the alert rule is modified. If the alert rule ID does not exist, an alert rule is created.', 'type' => 'string', 'required' => true, 'example' => 'MyRuleId1', 'title' => ''],
],
[
'name' => 'RuleName',
'in' => 'query',
'schema' => ['description' => 'The name of the alert rule.', 'type' => 'string', 'required' => false, 'example' => 'CpuUsage', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The name of the metric.'."\n"
."\n"
.'> For information about how to obtain the metric name, see [DescribeCustomMetricList](~~115005~~).', 'type' => 'string', 'required' => true, 'example' => 'cpu_total', 'title' => ''],
],
[
'name' => 'Resources',
'in' => 'query',
'schema' => ['description' => 'The custom monitoring data to which the alert rule applies. The value consists of the application group ID to which the custom monitoring data belongs and the dimensions of the metric.', 'type' => 'string', 'required' => true, 'example' => '[{"groupId":7378****,"dimension":"instanceId=i-hp3543t5e4sudb3s****"}]', 'title' => ''],
],
[
'name' => 'ContactGroups',
'in' => 'query',
'schema' => ['description' => 'The alert contact group. Separate multiple alert contact groups with commas (,).', 'type' => 'string', 'required' => true, 'example' => 'ECS_Group', 'title' => ''],
],
[
'name' => 'Webhook',
'in' => 'query',
'schema' => ['description' => 'The webhook URL that is called when an alert is triggered. A POST request is sent to this URL.', 'type' => 'string', 'required' => false, 'example' => 'https://www.aliyun.com', 'title' => ''],
],
[
'name' => 'EffectiveInterval',
'in' => 'query',
'schema' => ['description' => 'The time range during which the alert rule is effective. Valid values: 00:00-23:59.', 'type' => 'string', 'required' => false, 'example' => '00:00-23:59', 'title' => ''],
],
[
'name' => 'SilenceTime',
'in' => 'query',
'schema' => ['description' => 'The mute for period. Unit: seconds. Default value: 86400 (1 day).'."\n"
."\n"
.'> If monitoring data continuously exceeds the alert rule threshold, only one alert notification is sent within each mute for period.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '86400', 'example' => '86400', 'title' => ''],
],
[
'name' => 'Period',
'in' => 'query',
'schema' => ['description' => 'The aggregation period of the custom monitoring data. Unit: seconds. The value must be 60 or a multiple of 60. Default value: the original reporting period of the custom monitoring data.', 'type' => 'string', 'required' => false, 'default' => '300', 'example' => '300', 'title' => ''],
],
[
'name' => 'EmailSubject',
'in' => 'query',
'schema' => ['description' => 'The subject of the alert email.', 'type' => 'string', 'required' => false, 'example' => 'ECS instance', 'title' => ''],
],
[
'name' => 'Threshold',
'in' => 'query',
'schema' => ['description' => 'The alert threshold.', 'type' => 'string', 'required' => true, 'example' => '90', 'title' => ''],
],
[
'name' => 'Level',
'in' => 'query',
'schema' => ['description' => 'The severity level of the alert. Valid values:'."\n"
.'- CRITICAL: critical.'."\n"
.'- WARN: warning.'."\n"
.'- INFO: information.', 'type' => 'string', 'required' => true, 'example' => 'CRITICAL', 'title' => ''],
],
[
'name' => 'EvaluationCount',
'in' => 'query',
'schema' => ['description' => 'The number of retries for the alert.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '3', 'title' => ''],
],
[
'name' => 'Statistics',
'in' => 'query',
'schema' => ['description' => 'The statistical method for the alert.', 'type' => 'string', 'required' => true, 'example' => 'Average', 'title' => ''],
],
[
'name' => 'ComparisonOperator',
'in' => 'query',
'schema' => ['description' => 'The comparison operator for the threshold. Valid values:'."\n"
."\n"
.'- `>=`'."\n"
."\n"
.'- `=`'."\n"
."\n"
.'- `<=`'."\n"
."\n"
.'- `>`'."\n"
."\n"
.'- `<`'."\n"
."\n"
.'- `!=`.', 'type' => 'string', 'required' => true, 'example' => '>=', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> A value of 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message. If the call is successful, this parameter is empty. If the call fails, the error message is returned.', 'type' => 'string', 'example' => 'ComparisonOperator is mandatory for this action.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '65D50468-ECEF-48F1-A6E1-D952E89D9432', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation is successful. Valid values:'."\n"
."\n"
.'- true: successful.'."\n"
."\n"
.'- false: failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
204 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
499 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Create a custom monitoring alert rule',
'description' => 'Before calling this operation, call the PutCustomMetric operation to report custom monitoring data. For more information, see [PutCustomMetric](~~115004~~).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutCustomMetricRule'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:PutCustomMetricRule',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"ComparisonOperator is mandatory for this action.\\",\\n \\"RequestId\\": \\"65D50468-ECEF-48F1-A6E1-D952E89D9432\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'PutEventRule' => [
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'RuleName',
'in' => 'query',
'schema' => ['description' => 'The name of the Event-triggered Alert Rule.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'myRuleName', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group to which the Event-triggered Alert Rule belongs.', 'type' => 'string', 'required' => false, 'example' => '7378****', 'title' => ''],
],
[
'name' => 'EventType',
'in' => 'query',
'schema' => [
'description' => 'The type of the Event-triggered Alert Rule. Valid values:'."\n"
."\n"
.'- SYSTEM: system event.'."\n"
.'- CUSTOM: custom event.',
'type' => 'string',
'required' => false,
'default' => 'SYSTEM',
'enum' => ['SYSTEM', 'CUSTOM'],
'example' => 'SYSTEM',
'title' => '',
],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['description' => 'The description of the Event-triggered Alert Rule.', 'type' => 'string', 'required' => false, 'example' => 'Event alert test', 'title' => ''],
],
[
'name' => 'State',
'in' => 'query',
'schema' => [
'description' => 'The status of the Event-triggered Alert Rule. Valid values:'."\n"
."\n"
.'- ENABLED: enabled.'."\n"
.'- DISABLED: disabled.',
'type' => 'string',
'required' => false,
'default' => 'ENABLED',
'enum' => ['ENABLED', 'DISABLED'],
'example' => 'ENABLED',
'title' => '',
],
],
[
'name' => 'EventPattern',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The pattern of the Event-triggered Alert Rule.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'EventTypeList' => [
'description' => 'The type of the Event-triggered Alert Rule. Valid values of N: 1 to 50. Valid values:'."\n"
."\n"
.'- StatusNotification: fault notification.'."\n"
."\n"
.'- Exception: exception.'."\n"
."\n"
.'- Maintenance: O&M.'."\n"
."\n"
.'- \\*: unlimited.',
'type' => 'array',
'items' => ['description' => 'The type of the Event-triggered Alert Rule. Valid values of N: 1 to 50. Valid values:'."\n"
."\n"
.'- StatusNotification: fault notification.'."\n"
."\n"
.'- Exception: exception.'."\n"
."\n"
.'- Maintenance: O&M.'."\n"
."\n"
.'- \\*: unlimited.', 'type' => 'string', 'required' => false, 'example' => 'Exception', 'title' => ''],
'required' => false,
'example' => 'Exception',
'maxItems' => 5,
'title' => '',
],
'StatusList' => [
'description' => 'The status of the Event-triggered Alert Rule. Valid values of N: 1 to 50.',
'type' => 'array',
'items' => ['description' => 'The status of the Event-triggered Alert Rule. Valid values of N: 1 to 50.', 'type' => 'string', 'required' => false, 'example' => 'Failed', 'title' => ''],
'required' => false,
'example' => 'Failed',
'maxItems' => 5,
'title' => '',
],
'Product' => ['description' => 'The Alibaba Cloud service type. Valid values of N: 1 to 50.'."\n"
."\n"
.'>For information about the Alibaba Cloud services supported by Event-triggered Alert Rules, see [DescribeSystemEventMetaList](~~114972~~).', 'type' => 'string', 'required' => true, 'example' => 'ecs', 'title' => ''],
'LevelList' => [
'description' => 'The level of the Event-triggered Alert Rule. Valid values of N: 1 to 50. Valid values:'."\n"
."\n"
.'- CRITICAL: critical.'."\n"
."\n"
.'- WARN: warning.'."\n"
."\n"
.'- INFO: information.'."\n"
."\n"
.'- \\*: all levels.',
'type' => 'array',
'items' => ['description' => 'The level of the Event-triggered Alert Rule. Valid values of N: 1 to 50. Valid values:'."\n"
."\n"
.'- CRITICAL: critical.'."\n"
."\n"
.'- WARN: warning.'."\n"
."\n"
.'- INFO: information.'."\n"
."\n"
.'- \\*: all levels.', 'type' => 'string', 'required' => false, 'example' => 'CRITICAL', 'title' => ''],
'required' => false,
'example' => 'CRITICAL',
'maxItems' => 5,
'title' => '',
],
'NameList' => [
'description' => 'The name of the Event-triggered Alert Rule. Valid values of N: 1 to 50.',
'type' => 'array',
'items' => ['description' => 'The name of the Event-triggered Alert Rule. Valid values of N: 1 to 50.', 'type' => 'string', 'required' => false, 'example' => 'Agent_Status_Stopped', 'title' => ''],
'required' => false,
'example' => 'Agent_Status_Stopped',
'maxItems' => 20,
'title' => '',
],
'CustomFilters' => ['description' => 'The keyword for event filtering. When the event content contains this keyword, an alert is automatically triggered.', 'type' => 'string', 'required' => false, 'example' => 'Stopping', 'title' => ''],
'SQLFilter' => ['description' => 'The SQL filter for events. When the event content meets the SQL condition, an alert is automatically triggered.'."\n"
.'> The syntax of the SQL event filter is consistent with the query syntax of Simple Log Service (SLS).', 'type' => 'string', 'required' => false, 'example' => '192.168.XX.XX and Executed', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 50,
'title' => '',
'example' => '',
],
],
[
'name' => 'SilenceTime',
'in' => 'query',
'schema' => ['description' => 'The mute period. Unit: seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '86400', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'>A value of 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'Data' => ['description' => 'The number of rows affected when the Event-triggered Alert Rule is created or modified.', 'type' => 'string', 'example' => '1', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0B47C47B-E68A-4429-BB23-370E91889C7D', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Create or modify an event-based alert rule',
'summary' => 'Creates or modifies an event-based alert rule by calling the PutEventRule operation.',
'description' => 'If the Event-triggered Alert Rule name does not exist, a new alert rule is created. If the Event-triggered Alert Rule name already exists, the existing alert rule is modified.'."\n"
."\n"
.'This topic provides an example of how to create an event-based alert rule named `myRuleName` for the Alibaba Cloud service `ecs`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2021-12-24T03:35:55.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-12-24T03:35:55.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-12-24T03:35:55.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-12-24T03:35:55.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-12-03T08:36:44.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutEventRule'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:PutEventRule',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"Data\\": \\"1\\",\\n \\"RequestId\\": \\"0B47C47B-E68A-4429-BB23-370E91889C7D\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'PutEventRuleTargets' => [
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'RuleName',
'in' => 'query',
'schema' => ['description' => 'The name of the alert rule.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'testEventRule', 'title' => ''],
],
[
'name' => 'FcParameters',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The Function Compute notification method.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'FunctionName' => ['description' => 'The name of the function. Valid values of N: 1 to 5.', 'type' => 'string', 'required' => false, 'example' => 'fc-test', 'title' => ''],
'Region' => ['description' => 'The region where the Function Compute service resides. Valid values of N: 1 to 5.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
'ServiceName' => ['description' => 'The service name of the Function Compute service. Valid values of N: 1 to 5.', 'type' => 'string', 'required' => false, 'example' => 'fc-test', 'title' => ''],
'Id' => ['description' => 'The unique identifier of the rule target. Valid values of N: 1 to 5.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 5,
'title' => '',
'example' => '',
],
],
[
'name' => 'ContactParameters',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The alert contact group notification method.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'ContactGroupName' => ['description' => 'The name of the alert contact group. Valid values of N: 1 to 5.', 'type' => 'string', 'required' => false, 'example' => 'Default alert contact group', 'title' => ''],
'Id' => ['description' => 'The unique identifier of the rule target. Valid values of N: 1 to 5.', 'type' => 'string', 'required' => false, 'example' => '2', 'title' => ''],
'Level' => ['description' => 'The alert notification level. Valid values of N: 1 to 5. Valid values:'."\n"
."\n"
.'- 2: phone call, text message, DingTalk, and email'."\n"
."\n"
.'- 3: text message, DingTalk, and email'."\n"
."\n"
.'- 4: DingTalk and email'."\n"
."\n"
.'4: DingTalk and email'."\n"
."\n"
.'4: DingTalk and email.', 'type' => 'string', 'required' => false, 'example' => '4', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 5,
'title' => '',
'example' => '',
],
],
[
'name' => 'MnsParameters',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The Simple Message Queue (formerly MNS) notification method.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Region' => ['description' => 'The region where Simple Message Queue (formerly MNS) resides. Valid values of N: 1 to 5.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
'Queue' => ['description' => 'The name of the queue. Valid values of N: 1 to 5.', 'type' => 'string', 'required' => false, 'example' => 'queue1', 'title' => ''],
'Id' => ['description' => 'The unique identifier of the rule target. Valid values of N: 1 to 5.', 'type' => 'string', 'required' => false, 'example' => '3', 'title' => ''],
'Topic' => ['description' => 'The topic of Simple Message Queue (formerly MNS).', 'type' => 'string', 'required' => false, 'example' => 'topic_sample', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 5,
'title' => '',
'example' => '',
],
],
[
'name' => 'WebhookParameters',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The URL callback notification method.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Protocol' => ['description' => 'The protocol name. Valid values of N: 1 to 5. Valid values:'."\n"
."\n"
.'- http'."\n"
.'- telnet'."\n"
.'- ping.', 'type' => 'string', 'required' => false, 'example' => 'http', 'title' => ''],
'Url' => ['description' => 'The callback URL. Valid values of N: 1 to 5.', 'type' => 'string', 'required' => false, 'example' => 'http://www.aliyun.com', 'title' => ''],
'Method' => ['description' => 'The request method of the HTTP callback. Valid values of N: 1 to 5.'."\n"
."\n"
.'Only GET and POST are supported.', 'type' => 'string', 'required' => false, 'example' => 'GET', 'title' => ''],
'Id' => ['description' => 'The unique identifier of the rule target. Valid values of N: 1 to 5.', 'type' => 'string', 'required' => false, 'example' => '4', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 5,
'title' => '',
'example' => '',
],
],
[
'name' => 'SlsParameters',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The Simple Log Service notification method.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'LogStore' => ['description' => 'The Logstore of Simple Log Service. Valid values of N: 1 to 5.', 'type' => 'string', 'required' => false, 'example' => 'testlogstore', 'title' => ''],
'Region' => ['description' => 'The region where Simple Log Service resides. Valid values of N: 1 to 5.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
'Project' => ['description' => 'The project of Simple Log Service. Valid values of N: 1 to 5.', 'type' => 'string', 'required' => false, 'example' => 'testproject', 'title' => ''],
'Id' => ['description' => 'The unique identifier of the rule target. Valid values of N: 1 to 5.', 'type' => 'string', 'required' => false, 'example' => '5', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 5,
'title' => '',
'example' => '',
],
],
[
'name' => 'OpenApiParameters',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The list of API callback notification parameters.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Action' => ['description' => 'The API name.', 'type' => 'string', 'required' => false, 'example' => 'PutLogs', 'title' => ''],
'Arn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the resource. Valid values of N: 1 to 5.'."\n"
.'Format: `arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}`. The fields are described as follows:'."\n"
.' - Service: the Alibaba Cloud service.'."\n"
.' - Region: the region ID.'."\n"
.' - Account: the Alibaba Cloud account ID.'."\n"
.' - ResourceType: the resource type.'."\n"
.' - ResourceId: the resource ID.', 'type' => 'string', 'required' => false, 'example' => 'acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***', 'title' => ''],
'Id' => ['description' => 'The unique identifier of the API callback notification method.', 'type' => 'string', 'required' => false, 'example' => '3', 'title' => ''],
'Product' => ['description' => 'The ID of the Alibaba Cloud service to which the API belongs.', 'type' => 'string', 'required' => false, 'example' => 'log', 'title' => ''],
'Region' => ['description' => 'The region where the resource resides.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
'Role' => ['description' => 'The role name.', 'type' => 'string', 'required' => false, 'example' => 'MyRole', 'title' => ''],
'Version' => ['description' => 'The API version.', 'type' => 'string', 'required' => false, 'example' => '2019-01-01', 'title' => ''],
'JsonParams' => ['description' => 'The JSON-formatted parameters of the alert callback.', 'type' => 'string', 'required' => false, 'example' => '{"customField1":"value1","customField2":"$.name"}', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 5,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
.'>The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '409C64DA-CF14-45DF-B463-471C790DD15A', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. The value true indicates success. The value false indicates failure.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'FailedParameterCount' => ['description' => 'The number of failed parameters.', 'type' => 'string', 'example' => '2', 'title' => ''],
'FailedContactParameters' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ContactParameter' => [
'description' => 'This parameter is returned if the rule targets contain an alert contact group that failed to be created.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'ContactGroupName' => ['description' => 'The name of the alert contact group.', 'type' => 'string', 'example' => 'Default alert contact group', 'title' => ''],
'Id' => ['description' => 'The ID of the rule target.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
'Level' => ['description' => "\n"
.'The alert notification level. Valid values:'."\n"
."\n"
.'- 2: phone call, text message, DingTalk, and email'."\n"
."\n"
.'- 3: text message, DingTalk, and email'."\n"
."\n"
.'- 4: DingTalk and email'."\n"
."\n"
.'4: DingTalk and email'."\n"
."\n"
.'4: DingTalk and email.', 'type' => 'string', 'example' => '4', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'FailedMnsParameters' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'MnsParameter' => [
'description' => 'This parameter is returned if the rule targets contain a Simple Message Queue (formerly MNS) instance that failed to be created.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Queue' => ['description' => 'The name of the queue.', 'type' => 'string', 'example' => 'testQueue', 'title' => ''],
'Id' => ['description' => 'The ID of the rule target.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
'Region' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'FailedFcParameters' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'FcParameter' => [
'description' => 'This parameter is returned if the rule targets contain a Function Compute service that failed to be created.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'ServiceName' => ['description' => 'The name of the Function Compute service.', 'type' => 'string', 'example' => 'serviceTest1', 'title' => ''],
'FunctionName' => ['description' => 'The name of the function.', 'type' => 'string', 'example' => 'functionTest1', 'title' => ''],
'Id' => ['description' => 'The ID of the rule target.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Region' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Add or modify notification channels of an alert rule',
'summary' => 'Adds or modifies the notification channels of an event-triggered alert rule by calling the PutEventRuleTargets operation.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2021-12-22T07:44:57.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-12-22T07:44:57.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-12-22T07:44:57.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutEventRuleTargets'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:PutEventRuleTargets',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"409C64DA-CF14-45DF-B463-471C790DD15A\\",\\n \\"Success\\": true,\\n \\"FailedParameterCount\\": \\"2\\",\\n \\"FailedContactParameters\\": {\\n \\"ContactParameter\\": [\\n {\\n \\"ContactGroupName\\": \\"Default alert contact group\\",\\n \\"Id\\": 2,\\n \\"Level\\": \\"4\\"\\n }\\n ]\\n },\\n \\"FailedMnsParameters\\": {\\n \\"MnsParameter\\": [\\n {\\n \\"Queue\\": \\"testQueue\\",\\n \\"Id\\": 2,\\n \\"Region\\": \\"cn-hangzhou\\"\\n }\\n ]\\n },\\n \\"FailedFcParameters\\": {\\n \\"FcParameter\\": [\\n {\\n \\"ServiceName\\": \\"serviceTest1\\",\\n \\"FunctionName\\": \\"functionTest1\\",\\n \\"Id\\": 1,\\n \\"Region\\": \\"cn-hangzhou\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'PutExporterOutput' => [
'summary' => 'Creates or modifies a monitoring data export configuration by calling the PutExporterOutput operation.',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'DestName',
'in' => 'query',
'schema' => ['description' => 'The name of the configuration.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'exporterConfig', 'title' => ''],
],
[
'name' => 'ConfigJson',
'in' => 'query',
'schema' => ['description' => 'The configuration of the data export. The value is a JSONObject string that must contain the following fields:'."\n"
."\n"
.'- endpoint: the domain name that corresponds to the data of Log Service (SLS).'."\n"
.'- project: the project.'."\n"
.'- logstore: the Logstore.'."\n"
.'- ak: the AccessKey ID.'."\n"
.'- as: the AccessKey secret.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '{ "endpoint": "http://cn-qingdao-share.log.aliyuncs.com", "project": "exporter", "logstore": "exporter","ak": "LTAIp*******", "userId": "17754********", "as": "TxHwuJ8yAb3AU******"}', 'title' => ''],
],
[
'name' => 'Desc',
'in' => 'query',
'schema' => ['description' => 'The description of the configuration.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'CPU metric export', 'title' => ''],
],
[
'name' => 'DestType',
'in' => 'query',
'schema' => ['description' => 'The product to which the data is exported.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'sls', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The value 200 indicates that the call is successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '6A5F022D-AC7C-460E-94AE-B9E75083D027', 'title' => ''],
'Success' => ['description' => 'Indicates whether the call was successful. The value true indicates that the call was successful. The value false indicates that the call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Create or modify a monitoring data export configuration',
'description' => '> Only Log Service (SLS) is supported. More products will be supported in the future.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-09-21T02:01:45.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutExporterOutput'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:PutExporterOutput',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"6A5F022D-AC7C-460E-94AE-B9E75083D027\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'PutExporterRule' => [
'summary' => 'Invokes the PutExporterRule operation to create or modify export rules.',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'RuleName',
'in' => 'query',
'schema' => ['description' => 'The name of the rule.'."\n"
."\n"
.'> If the rule name already exists, the existing rule is modified. Otherwise, a new rule is created.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'rule1_****', 'title' => ''],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The namespace of the Alibaba Cloud service. For more information, see [Cloud service metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'acs_ecs_dashboard', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The metric name. For more information, see [Cloud service metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'CPUUtilization', 'title' => ''],
],
[
'name' => 'TargetWindows',
'in' => 'query',
'schema' => ['description' => 'The time windows for data export. Unit: seconds.'."\n"
."\n"
.'> - To export data for multiple windows, separate the windows with commas (,).'."\n"
.'- Exporting data at intervals of less than 60 seconds is not supported.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '60,300', 'title' => ''],
],
[
'name' => 'Describe',
'in' => 'query',
'schema' => ['description' => 'The description of the export rules.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'desc_******', 'title' => ''],
],
[
'name' => 'DstNames',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The destination for data export.',
'type' => 'array',
'items' => ['description' => 'The destination for data export.', 'type' => 'string', 'required' => false, 'example' => 'dst_******', 'title' => ''],
'required' => true,
'maxItems' => 20,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '461CF2CD-2FC3-4B26-8645-7BD27E7D0F1D', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Create or modify a data export rule',
'changeSet' => [
['createdAt' => '2023-08-30T08:14:42.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-01-10T10:46:10.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutExporterRule'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:PutExporterRule',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"461CF2CD-2FC3-4B26-8645-7BD27E7D0F1D\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'PutGroupMetricRule' => [
'summary' => 'Creates or modifies an alert rule in a specified application group.',
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The application group ID.'."\n"
."\n"
.'For information about how to obtain the application group ID, see [DescribeMonitorGroups](~~115032~~).', 'type' => 'string', 'required' => true, 'example' => '17285****', 'title' => ''],
],
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['description' => 'The alert rule ID.'."\n"
."\n"
.'- To create an alert rule for the application group, enter the alert rule ID.'."\n"
."\n"
.'- To modify a specified alert rule in the application group, obtain the alert rule ID. For information about how to obtain the alert rule ID, see [DescribeMetricRuleList](~~114941~~).', 'type' => 'string', 'required' => true, 'example' => '123456', 'title' => ''],
],
[
'name' => 'Category',
'in' => 'query',
'schema' => ['description' => 'The abbreviation of the Alibaba Cloud service name.'."\n"
."\n"
.'For information about how to obtain the abbreviation, see the `metricCategory` tag in the `Labels` response parameter of the [DescribeProjectMeta](~~114916~~) operation.', 'type' => 'string', 'required' => false, 'example' => 'ECS', 'title' => ''],
],
[
'name' => 'RuleName',
'in' => 'query',
'schema' => ['description' => 'The alert rule name.'."\n"
."\n"
.'- To create an alert rule for the application group, enter the alert rule name.'."\n"
."\n"
.'- To modify a specified alert rule in the application group, obtain the alert rule name. For information about how to obtain the alert rule name, see [DescribeMetricRuleList](~~114941~~).', 'type' => 'string', 'required' => true, 'example' => 'Rule_01', 'title' => ''],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The namespace of the Alibaba Cloud service.'."\n"
."\n"
.'For information about how to obtain the namespace, see [DescribeMetricMetaList](~~98846~~) or [Cloud service monitoring](~~163515~~).', 'type' => 'string', 'required' => true, 'example' => 'acs_ecs_dashboard', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The metric name.'."\n"
."\n"
.'For information about how to obtain the metric name, see [DescribeMetricMetaList](~~98846~~) or [Cloud service monitoring](~~163515~~).', 'type' => 'string', 'required' => true, 'example' => 'cpu_total', 'title' => ''],
],
[
'name' => 'Dimensions',
'in' => 'query',
'schema' => ['description' => 'The first-level dimensions of the alert rule in the application group.'."\n"
."\n"
.'Format: a collection of `key:value` pairs, such as `{"userId":"120886317861****"}` and `{"instanceId":"i-m5e1qg6uo38rztr4****"}`.', 'type' => 'string', 'required' => false, 'example' => '[{"instanceId":"i-m5e1qg6uo38rztr4****"}]', 'title' => ''],
],
[
'name' => 'ExtraDimensionJson',
'in' => 'query',
'schema' => ['description' => 'The second-level or third-level dimensions of the alert rule in the application group.'."\n"
."\n"
.'Format: a collection of `key:value` pairs, such as `port:80` and `/dev/xvda:d-m5e6yphgzn3aprwu****`.'."\n"
."\n"
.'If the first-level dimension is `{"instanceId":"i-m5e1qg6uo38rztr4****"}`, the second-level dimension is the cloud disk of the instance: `{"/dev/xvda":"d-m5e6yphgzn3aprwu****"}`.', 'type' => 'string', 'required' => false, 'example' => '{"/dev/xvda":"d-m5e6yphgzn3aprwu****"}', 'title' => ''],
],
[
'name' => 'EffectiveInterval',
'in' => 'query',
'schema' => ['description' => 'The effective period during which the alert rule takes effect.', 'type' => 'string', 'required' => false, 'example' => '05:31-23:59', 'title' => ''],
],
[
'name' => 'NoEffectiveInterval',
'in' => 'query',
'schema' => ['description' => 'The time range during which the alert rule is ineffective.', 'type' => 'string', 'required' => false, 'example' => '00:00-05:30', 'title' => ''],
],
[
'name' => 'SilenceTime',
'in' => 'query',
'schema' => ['description' => 'The mute period during which CloudMonitor does not repeatedly send alert notifications for the same metric.'."\n"
."\n"
.'Unit: seconds. Default value: 86400.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '86400', 'title' => ''],
],
[
'name' => 'Period',
'in' => 'query',
'schema' => ['description' => 'The reporting period of monitoring data.'."\n"
."\n"
.'The value of `Period` is 60 or a multiple of 60. Unit: seconds. Default value: 300.', 'type' => 'string', 'required' => false, 'example' => '60', 'title' => ''],
],
[
'name' => 'Interval',
'in' => 'query',
'schema' => ['description' => 'The detection period of the alert rule. Unit: seconds.'."\n"
."\n"
.'> Keep the detection period consistent with the data reporting period. If the detection period is shorter than the data reporting period, alerts may not be triggered due to insufficient data.', 'type' => 'string', 'required' => false, 'example' => '60', 'title' => ''],
],
[
'name' => 'Webhook',
'in' => 'query',
'schema' => ['description' => 'The callback URL to which a request is sent when an alert is triggered.'."\n"
."\n"
.'Enter a URL that is accessible over the Internet. CloudMonitor sends a POST request to push alert information to this URL. Only the HTTP protocol is supported.', 'type' => 'string', 'required' => false, 'example' => 'https://www.aliyun.com', 'title' => ''],
],
[
'name' => 'EmailSubject',
'in' => 'query',
'schema' => ['description' => 'The subject of the alert email.', 'type' => 'string', 'required' => false, 'example' => 'ECS instance', 'title' => ''],
],
[
'name' => 'ContactGroups',
'in' => 'query',
'schema' => ['description' => 'The alert contact group.', 'type' => 'string', 'required' => false, 'example' => 'ECS_Group', 'title' => ''],
],
[
'name' => 'Escalations.Critical.Statistics',
'in' => 'query',
'schema' => ['description' => 'The statistical method for Critical-level alerts. Separate multiple statistical methods with commas (,).'."\n"
."\n"
.'The value of this parameter is determined by the `Statistics` column that corresponds to the `MetricName` of the specified Alibaba Cloud service, such as Maximum, Minimum, and Average. For information about how to obtain the value, see [Cloud service monitoring](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
],
[
'name' => 'Escalations.Critical.ComparisonOperator',
'in' => 'query',
'schema' => ['description' => 'The comparison operator for Critical-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold.'."\n"
.'- GreaterThanThreshold: greater than the threshold.'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold.'."\n"
.'- LessThanThreshold: less than the threshold.'."\n"
.'- NotEqualToThreshold: not equal to the threshold.'."\n"
.'- GreaterThanYesterday: greater than the value at the same time yesterday.'."\n"
.'- LessThanYesterday: less than the value at the same time yesterday.'."\n"
.'- GreaterThanLastWeek: greater than the value at the same time last week.'."\n"
.'- LessThanLastWeek: less than the value at the same time last week.'."\n"
.'- GreaterThanLastPeriod: greater than the value in the last period.'."\n"
.'- LessThanLastPeriod: less than the value in the last period.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
],
[
'name' => 'Escalations.Critical.Threshold',
'in' => 'query',
'schema' => ['description' => 'The threshold for Critical-level alerts.', 'type' => 'string', 'required' => false, 'example' => '90', 'title' => ''],
],
[
'name' => 'Escalations.Critical.Times',
'in' => 'query',
'schema' => ['description' => 'The retry count for Critical-level alerts.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'title' => ''],
],
[
'name' => 'Escalations.Warn.Statistics',
'in' => 'query',
'schema' => ['description' => 'The statistical method for Warn-level alerts. Separate multiple statistical methods with commas (,).'."\n"
."\n"
.'The value of this parameter is determined by the `Statistics` column that corresponds to the `MetricName` of the specified Alibaba Cloud service, such as Maximum, Minimum, and Average. For information about how to obtain the value, see [Cloud service monitoring](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
],
[
'name' => 'Escalations.Warn.ComparisonOperator',
'in' => 'query',
'schema' => ['description' => 'The comparison operator for Warn-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold.'."\n"
.'- GreaterThanThreshold: greater than the threshold.'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold.'."\n"
.'- LessThanThreshold: less than the threshold.'."\n"
.'- NotEqualToThreshold: not equal to the threshold.'."\n"
.'- GreaterThanYesterday: greater than the value at the same time yesterday.'."\n"
.'- LessThanYesterday: less than the value at the same time yesterday.'."\n"
.'- GreaterThanLastWeek: greater than the value at the same time last week.'."\n"
.'- LessThanLastWeek: less than the value at the same time last week.'."\n"
.'- GreaterThanLastPeriod: greater than the value in the last period.'."\n"
.'- LessThanLastPeriod: less than the value in the last period.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
],
[
'name' => 'Escalations.Warn.Threshold',
'in' => 'query',
'schema' => ['description' => 'The threshold for Warn-level alerts.', 'type' => 'string', 'required' => false, 'example' => '90', 'title' => ''],
],
[
'name' => 'Escalations.Warn.Times',
'in' => 'query',
'schema' => ['description' => 'The retry count for Warn-level alerts.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'title' => ''],
],
[
'name' => 'Escalations.Info.Statistics',
'in' => 'query',
'schema' => ['description' => 'The statistical method for Info-level alerts. Separate multiple statistical methods with commas (,).'."\n"
."\n"
.'The value of this parameter is determined by the `Statistics` column that corresponds to the `MetricName` of the specified Alibaba Cloud service, such as Maximum, Minimum, and Average. For information about how to obtain the value, see [Cloud service monitoring](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
],
[
'name' => 'Escalations.Info.ComparisonOperator',
'in' => 'query',
'schema' => ['description' => 'The comparison operator for Info-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold.'."\n"
.'- GreaterThanThreshold: greater than the threshold.'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold.'."\n"
.'- LessThanThreshold: less than the threshold.'."\n"
.'- NotEqualToThreshold: not equal to the threshold.'."\n"
.'- GreaterThanYesterday: greater than the value at the same time yesterday.'."\n"
.'- LessThanYesterday: less than the value at the same time yesterday.'."\n"
.'- GreaterThanLastWeek: greater than the value at the same time last week.'."\n"
.'- LessThanLastWeek: less than the value at the same time last week.'."\n"
.'- GreaterThanLastPeriod: greater than the value in the last period.'."\n"
.'- LessThanLastPeriod: less than the value in the last period.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
],
[
'name' => 'Escalations.Info.Threshold',
'in' => 'query',
'schema' => ['description' => 'The threshold for Info-level alerts.', 'type' => 'string', 'required' => false, 'example' => '90', 'title' => ''],
],
[
'name' => 'Escalations.Info.Times',
'in' => 'query',
'schema' => ['description' => 'The retry count for Info-level alerts.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'title' => ''],
],
[
'name' => 'NoDataPolicy',
'in' => 'query',
'schema' => ['description' => 'The processing method when no monitoring data is found. Valid values:'."\n"
.'- KEEP_LAST_STATE (default): No action is performed.'."\n"
.'- INSUFFICIENT_DATA: An alert whose content is "Insufficient Data" is triggered.'."\n"
.'- OK: The status is considered normal.', 'type' => 'string', 'required' => false, 'example' => 'KEEP_LAST_STATE', 'title' => ''],
],
[
'name' => 'Labels',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The tags of the alert rule.'."\n"
."\n"
.'Tags are included in alert notifications.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The tag key of the alert rule.', 'type' => 'string', 'required' => false, 'example' => 'key1', 'title' => ''],
'Value' => ['description' => 'The tag value of the alert rule.', 'type' => 'string', 'required' => false, 'example' => 'value1', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 20,
'minItems' => 0,
'title' => '',
'example' => '',
],
],
[
'name' => 'Options',
'in' => 'query',
'schema' => ['description' => 'The advanced settings.'."\n"
."\n"
.'Format: {"key1":"value1","key2":"value2"}. Example: {"NotSendOK":true}. This specifies whether to send alert recovery notifications. The key is NotSendOK, and the value is true (do not send) or false (send, which is the default).', 'type' => 'string', 'required' => false, 'example' => '{"NotSendOK":true}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'>A value of 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The Request is not authorization.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '461CF2CD-2FC3-4B26-8645-7BD27E7D0F1D', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Result' => [
'description' => 'The result of creating or modifying the alert rule.',
'type' => 'object',
'properties' => [
'RuleId' => ['description' => 'The alert rule ID.', 'type' => 'string', 'example' => '123456', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
204 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
499 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Create or modify an alert rule in a specified application group',
'description' => 'This topic provides an example on how to create an alert rule for the `cpu_total` metric of Elastic Compute Service (ECS) in the application group `17285****`. The alert rule ID is `123456`, the alert rule name is `Rule_test`, the alert level is `Critical`, the statistical method is `Average`, the comparison operator is `GreaterThanOrEqualToThreshold`, the threshold is `90`, and the retry count is `3`. The response shows that the alert rule is created. The alert rule ID is `123456`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-12-13T07:02:48.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2022-07-20T09:52:58.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-09-14T06:58:52.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-09-14T06:58:52.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutGroupMetricRule'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:PutGroupMetricRule',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'GroupMetricRule', 'arn' => 'acs:cms::{#accountId}:group/{#groupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The Request is not authorization.\\",\\n \\"RequestId\\": \\"461CF2CD-2FC3-4B26-8645-7BD27E7D0F1D\\",\\n \\"Success\\": true,\\n \\"Result\\": {\\n \\"RuleId\\": \\"123456\\"\\n }\\n}","type":"json"}]',
],
'PutHybridMonitorMetricData' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'paid'],
'parameters' => [
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The name of the metric namespace.'."\n"
."\n"
.'For information about how to obtain the name of a metric namespace, see [DescribeHybridMonitorNamespaceList](~~428880~~).', 'type' => 'string', 'required' => true, 'example' => 'default-aliyun', 'title' => ''],
],
[
'name' => 'MetricList',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'title' => '',
'description' => 'The list of monitoring data.'."\n"
."\n"
.'Valid values of N: 1 to 100.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Name' => ['title' => '', 'description' => 'The name of the metric.'."\n"
."\n"
.'Valid values of N: 1 to 100.'."\n"
."\n"
.'Format: The name can contain uppercase letters, lowercase letters, digits, and underscores (_). The name must start with an uppercase letter or a lowercase letter.', 'type' => 'string', 'required' => true, 'example' => 'CPU_Usage', 'maxLength' => 128, 'minLength' => 1, 'pattern' => '^[a-zA-Z_][a-zA-Z0-9_]*$'],
'Labels' => [
'title' => '',
'description' => 'The list of labels of the metric.'."\n"
."\n"
.'Valid values of N: 1 to 100.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Key' => ['title' => '', 'description' => 'The key of the label of the metric.'."\n"
."\n"
.'Valid values of N: 1 to 100.'."\n"
."\n"
.'Format: The key can contain uppercase letters, lowercase letters, digits, and underscores (_). The key must start with an uppercase letter, a lowercase letter, or an underscore (_).'."\n"
."\n"
.'> Key and Value must be set at the same time.', 'type' => 'string', 'example' => 'IP', 'required' => false],
'Value' => ['description' => 'The value of the label of the metric.'."\n"
."\n"
.'Valid values of N: 1 to 100.'."\n"
."\n"
.'> Key and Value must be set at the same time.', 'type' => 'string', 'required' => false, 'example' => '192.168.XX.XX', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'example' => '[{"Key":"app","Value":"testApp"},{"Key":"ip","Value":"192.168.XX.XX"},{"Key":"hostName","Value":"host01"}]',
'maxItems' => 20,
],
'Value' => ['title' => '', 'description' => 'The value of the metric.'."\n"
."\n"
.'Valid values of N: 1 to 100.'."\n"
."\n"
.'Format: an integer or a floating-point number.', 'type' => 'string', 'required' => true, 'example' => '90', 'pattern' => '^[0-9\\.]*$'],
'TS' => ['title' => '', 'description' => 'The timestamp when the monitoring data was reported.'."\n"
."\n"
.'Valid values of N: 1 to 100.'."\n"
."\n"
.'Unit: milliseconds. Default value: the current time.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1640776119473'],
],
'required' => true,
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 100,
'minItems' => 1,
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['title' => '', 'description' => 'The status code.'."\n"
."\n"
.'> The value 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200'],
'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '5DB1CBCA-D14A-55FA-814F-B4DBD9735F68'],
'ErrorDetail' => [
'title' => '',
'description' => 'The details of the invalid parameters.'."\n"
."\n"
.'If the request parameters that you specify do not meet the requirements, the details of the invalid parameters are displayed.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Index' => ['title' => '', 'description' => 'The position of the error information in the array.', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
'ErrorMessage' => ['title' => '', 'description' => 'The error message that is returned for the invalid parameter.', 'type' => 'string', 'example' => 'label name :123 not match [a-zA-Z_][a-zA-Z0-9_]*'],
],
'title' => '',
'example' => '',
],
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Reports monitoring data to a metric namespace',
'summary' => 'Reports the specified monitoring data to a specified metric namespace of Enterprise CloudMonitor by calling the PutHybridMonitorMetricData operation.',
'description' => '## Prerequisites'."\n"
.'Make sure that you have activated Enterprise CloudMonitor. For more information, see [Activate Enterprise CloudMonitor](~~250773~~).'."\n"
."\n"
.'## Limits'."\n"
.'The size of the monitoring data that you can report at a time cannot exceed 1 MB.'."\n"
."\n"
.'## Usage notes'."\n"
.'This topic provides an example to show how to report the monitoring data of the `CPU_Usage` metric to the `default-aliyun` metric namespace of Enterprise CloudMonitor.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).'."\n"
."\n",
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2021-12-24T03:08:24.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-12-24T03:08:24.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-12-24T03:08:24.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-12-24T03:08:24.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '200', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutHybridMonitorMetricData'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:PutHybridMonitorMetricData',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"RequestId\\": \\"5DB1CBCA-D14A-55FA-814F-B4DBD9735F68\\",\\n \\"ErrorDetail\\": [\\n {\\n \\"Index\\": 0,\\n \\"ErrorMessage\\": \\"label name :123 not match [a-zA-Z_][a-zA-Z0-9_]*\\"\\n }\\n ]\\n}","type":"json"}]',
],
'PutLogMonitor' => [
'summary' => 'Creates or modifies a log monitoring metric by calling the PutLogMonitor operation.',
'methods' => ['post', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'LogId',
'in' => 'query',
'schema' => ['description' => 'The ID of the log monitoring metric.', 'type' => 'string', 'required' => false, 'example' => '16****', 'title' => ''],
],
[
'name' => 'SlsRegionId',
'in' => 'query',
'schema' => ['description' => 'The region where the Log Service project resides.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''],
],
[
'name' => 'SlsProject',
'in' => 'query',
'schema' => ['description' => 'The name of the Log Service project.', 'type' => 'string', 'required' => true, 'example' => 'test-project', 'title' => ''],
],
[
'name' => 'SlsLogstore',
'in' => 'query',
'schema' => ['description' => 'The name of the Log Service Logstore.', 'type' => 'string', 'required' => true, 'example' => 'test-logstore', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The metric name. For information about the metrics supported by CloudMonitor for Alibaba Cloud services, see [Cloud service monitoring metrics](~~163515~~).', 'type' => 'string', 'required' => true, 'example' => 'cpu_total', 'title' => ''],
],
[
'name' => 'MetricExpress',
'in' => 'query',
'schema' => ['description' => 'The extended field. The extended field provides arithmetic operations on the results of the statistical methods.'."\n"
."\n"
.'For example, if you configure the total number of HTTP status code requests (TotalNumber) and the number of requests with HTTP status codes greater than 499 (5xxNumber) in the statistical methods, you can use the extended field to calculate the server error rate: 5xxNumber/TotalNumber*100.'."\n"
."\n"
.'JSON format: {"extend":{"errorPercent":"5xxNumber/TotalNumber*100"}}. Field description:'."\n"
."\n"
.'- extend: required.'."\n"
."\n"
.'- errorPercent: the alias of the new field generated from the calculation result. You can specify a custom name. '."\n"
."\n"
.'- errorPercent: the calculation expression for existing fields.', 'type' => 'string', 'required' => false, 'example' => '{"extend":{"errorPercent":"5XXNumber/TotalNumber*100"}}', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => false, 'example' => '7301****', 'title' => ''],
],
[
'name' => 'ValueFilterRelation',
'in' => 'query',
'schema' => ['description' => 'The logical operator used to combine log filter conditions. Valid values:'."\n"
."\n"
.'- and'."\n"
."\n"
.'- or'."\n"
."\n"
.'> This parameter must be used together with `ValueFilter.N.Key`.', 'type' => 'string', 'required' => true, 'example' => 'and', 'title' => ''],
],
[
'name' => 'Tumblingwindows',
'in' => 'query',
'schema' => ['description' => 'The tumbling window size for pre-aggregation. Unit: seconds. CloudMonitor performs an aggregation calculation on the data at the specified interval.', 'type' => 'string', 'required' => false, 'example' => '60,300', 'title' => ''],
],
[
'name' => 'Unit',
'in' => 'query',
'schema' => ['description' => 'The unit.', 'type' => 'string', 'required' => false, 'example' => 'Percent', 'title' => ''],
],
[
'name' => 'Aggregates',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The aggregate function definitions.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'FieldName' => ['description' => 'The name of the original field for aggregation. Valid values of N: 1 to 10.', 'type' => 'string', 'required' => true, 'example' => 'sourceCount', 'title' => ''],
'Function' => ['description' => 'The statistical method used to aggregate log data within a statistical period. Valid values of N: 1 to 10. Valid values:'."\n"
.'- count: counts the number of occurrences.'."\n"
.'- sum: calculates the sum.'."\n"
.'- avg: calculates the average.'."\n"
.'- max: returns the maximum value.'."\n"
.'- min: returns the minimum value.'."\n"
.'- countps: calculates the average count per second for the specified field within the statistical period.'."\n"
.'- sumps: calculates the average sum per second for the specified field within the statistical period.'."\n"
.'- distinct: counts the number of occurrences of the specified field after deduplication within the statistical period.', 'type' => 'string', 'required' => true, 'example' => 'count', 'title' => ''],
'Alias' => ['description' => 'The alias of the aggregate function. Valid values of N: 1 to 10.', 'type' => 'string', 'required' => true, 'example' => 'Count', 'title' => ''],
],
'required' => false,
'description' => '',
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 10,
'title' => '',
'example' => '',
],
],
[
'name' => 'Groupbys',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The dimensions used for spatial aggregation. This is equivalent to the Group By clause in SQL, which groups monitoring data by specified dimensions. If no dimension is specified, all monitoring data is aggregated based on the aggregate function.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'FieldName' => ['description' => 'The name of the Group By field. Valid values of N: 1 to 10.', 'type' => 'string', 'required' => false, 'example' => 'cpu', 'title' => ''],
'Alias' => ['description' => 'The alias of the Group By field. Valid values of N: 1 to 10.', 'type' => 'string', 'required' => false, 'example' => 'CPUUtilization', 'title' => ''],
],
'required' => false,
'description' => '',
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 10,
'title' => '',
'example' => '',
],
],
[
'name' => 'ValueFilter',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The filter rules, used together with ValueFilterRelation. This is equivalent to the Where clause in SQL. If this parameter is not specified, all data is processed. For example, if the log contains Level and Error fields and you want to count the number of Error occurrences per minute, you can define the statistical method to sum the Level field with the condition Level=Error.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The name of the log field to match. Valid values of N: 1 to 10.', 'type' => 'string', 'required' => false, 'example' => 'lh_source', 'title' => ''],
'Value' => ['description' => 'The value of the log field to match. Valid values of N: 1 to 10.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''],
'Operator' => ['description' => 'The matching method for the field value. Valid values of N: 1 to 10. Valid values:'."\n"
.'- `contain`: contains.'."\n"
.'- `notContain`: does not contain.'."\n"
.'- `>`: greater than.'."\n"
.'- `<`: less than.'."\n"
.'- `>=`: greater than or equal to.'."\n"
.'- `<=`: less than or equal to.', 'type' => 'string', 'required' => false, 'example' => 'contain', 'title' => ''],
],
'required' => false,
'description' => '',
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 20,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message. Results:'."\n"
."\n"
.'- If the operation is successful, `successful` is returned.'."\n"
."\n"
.'- If the operation fails, an error message is returned, such as `alias of aggreate must be set value.`.', 'type' => 'string', 'example' => 'successful', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '91561287-0802-5F9C-9BDE-404C50D41B06', 'title' => ''],
'LogId' => ['description' => 'The ID of the log monitoring metric.', 'type' => 'string', 'example' => '16****', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation is successful. Valid values:'."\n"
."\n"
.'- true: The operation is successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'LimitorError', 'errorMessage' => 'Log monitor limit is not enough', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Create or modify a log monitoring metric',
'description' => 'This topic provides an example of how to create a log monitoring metric named `cpu_total`. The response shows that the log monitoring metric is created. The log monitoring metric ID is `16****`.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2021-11-04T08:57:18.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2021-11-04T08:57:18.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutLogMonitor'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:PutLogMonitor',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"91561287-0802-5F9C-9BDE-404C50D41B06\\",\\n \\"LogId\\": \\"16****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'PutMetricRuleTargets' => [
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert rule.'."\n"
."\n"
.'For information about how to obtain the alert rule ID, see [DescribeMetricRuleList](~~114941~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ae06917_75a8c43178ab66****', 'title' => ''],
],
[
'name' => 'Targets',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'None.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Id' => ['description' => 'The ID of the alert trigger target.'."\n"
."\n"
.'For information about how to obtain the alert trigger target ID, see [DescribeMetricRuleTargets](~~121592~~).', 'type' => 'string', 'required' => true, 'example' => '1', 'title' => ''],
'Arn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the resource. Simple Message Queue (formerly MNS), elastic scaling (ESS), Simple Log Service (SLS), and Function Compute (FC) are supported.'."\n"
."\n"
.'The following section describes the ARN parameter metric description for Simple Message Queue (formerly MNS):'."\n"
."\n"
.'`acs:mns:{regionId}:{userId}:/{Resource type}/{Resource name}/message`'."\n"
."\n"
.'- {regionId}: the region where the MSMQ or topic of Simple Message Queue (formerly MNS) resides.'."\n"
.'- {userId}: the Alibaba Cloud account that owns the resource.'."\n"
.'- {Resource type}: the type of the resource that accepts alert notifications. Valid values:'."\n"
."\n"
.' - **queues**: queue.'."\n"
.' - **topics**: topic.'."\n"
."\n"
.'- {Resource name}: the name of the resource.'."\n"
."\n"
.' - If the resource type is **queues**, the resource name is the queue name.'."\n"
.' - If the resource type is **topics**, the resource name is the topic name.'."\n"
."\n"
.'ARN for elastic scaling:'."\n"
."\n"
.'acs:ess:{regionId}:{userId}:scalingGroupId/{Scaling group ID}:scalingRuleId/{Scaling rule ID}'."\n"
."\n"
.'ARN for Simple Log Service:'."\n"
."\n"
.'acs:log:{regionId}:{userId}:project/{Project name}/logstore/{Logstore name}'."\n"
."\n"
.'ARN for Function Compute:'."\n"
."\n"
.'acs:fc:{regionId}:{userId}:services/{Service name}/functions/{Function name}.', 'type' => 'string', 'required' => true, 'example' => 'acs:mns:cn-hangzhou:120886317861****:/queues/test/message', 'title' => ''],
'Level' => ['description' => 'The alert level. Valid values:'."\n"
."\n"
.'- INFO: information.'."\n"
.'- WARN: warning.'."\n"
.'- CRITICAL: critical.', 'type' => 'string', 'required' => false, 'example' => '["INFO", "WARN", "CRITICAL"]', 'title' => ''],
'JsonParams' => ['description' => 'The JSON-formatted parameters of the alert callback.', 'type' => 'string', 'required' => false, 'example' => '{"customField1":"value1","customField2":"$.name"}', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 5,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The request processing has failed due to some unknown error.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '6A569B0D-9055-58AF-9E82-BAEAF95C0FD5', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: successful.'."\n"
."\n"
.'- false: failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'FailData' => [
'description' => 'The list of failures.',
'type' => 'object',
'properties' => [
'Targets' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Target' => [
'description' => 'The alert trigger targets.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Id' => ['description' => 'The ID of the alert trigger target.', 'type' => 'string', 'example' => '1', 'title' => ''],
'Arn' => ['description' => 'The ARN of the resource. Format: `acs:{Abbreviation of the Alibaba Cloud service}:{regionId}:{userId}:/{Resource type}/{Resource name}/message`. Simple Message Queue (formerly MNS), elastic scaling (ESS), Simple Log Service (SLS), and Function Compute (FC) are supported. Example: `acs:mns:ap-southeast-1:120886317861****:/queues/test123/message`. The following section describes the ARN parameter metric description for Simple Message Queue (formerly MNS):'."\n"
."\n"
.'- {Abbreviation of the Alibaba Cloud service}: mns'."\n"
."\n"
.'- {userId}: the Alibaba Cloud account ID.'."\n"
."\n"
.'- {regionId}: the region where the MSMQ or topic of Simple Message Queue (formerly MNS) resides.'."\n"
."\n"
.'- {Resource type}: the type of the resource that accepts alert notifications. Valid values:'."\n"
."\n"
.' - **queues**: queue.'."\n"
.' - **topics**: topic.'."\n"
."\n"
.'- {Resource name}: the name of the resource.'."\n"
."\n"
.' - If the resource type is **queues**, the resource name is the queue name.'."\n"
.' - If the resource type is **topics**, the resource name is the topic name.', 'type' => 'string', 'example' => 'acs:mns:cn-hangzhou:111:/queues/test/message', 'title' => ''],
'Level' => ['description' => 'The alert level. Valid values:'."\n"
."\n"
.'- INFO: information.'."\n"
.'- WARN: warning.'."\n"
.'- CRITICAL: critical.', 'type' => 'string', 'example' => '["INFO", "WARN", "CRITICAL"]', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
200 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
500 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'Add or modify push channels for a specified alert rule',
'summary' => 'Adds or modifies push channels for a specified alert rule by calling the PutMetricRuleTargets operation.',
'description' => '## Usage notes'."\n"
.'This topic provides an example on how to associate the resource `acs:mns:ap-southeast-1:120886317861****:/queues/test/message` with the alert rule `ae06917_75a8c43178ab66****`. The alert trigger target ID is `1`. The response shows that the resource is associated.',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-03-21T06:36:40.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutMetricRuleTargets'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:PutMetricRuleTargets',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The request processing has failed due to some unknown error.\\",\\n \\"RequestId\\": \\"6A569B0D-9055-58AF-9E82-BAEAF95C0FD5\\",\\n \\"Success\\": true,\\n \\"FailData\\": {\\n \\"Targets\\": {\\n \\"Target\\": [\\n {\\n \\"Id\\": \\"1\\",\\n \\"Arn\\": \\"acs:mns:cn-hangzhou:111:/queues/test/message\\",\\n \\"Level\\": \\"[\\\\\\"INFO\\\\\\", \\\\\\"WARN\\\\\\", \\\\\\"CRITICAL\\\\\\"]\\"\\n }\\n ]\\n }\\n }\\n}","type":"json"}]',
],
'PutMonitorGroupDynamicRule' => [
'summary' => 'Creates or modifies an alert rule to dynamically add instances that meet the rule to an application group.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'create', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '123456', 'title' => ''],
],
[
'name' => 'GroupRules',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'None.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'FilterRelation' => ['description' => 'The logical operator used between conditional expressions in the alert rule. Valid values of N: 1 to 3. Valid values:'."\n"
."\n"
.'- and: The instances that meet all the conditional expressions are automatically added to the application group.'."\n"
."\n"
.'- or: The instances that meet one of the conditional expressions are automatically added to the application group.', 'type' => 'string', 'required' => true, 'example' => 'and', 'title' => ''],
'Filters' => [
'description' => 'None.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Value' => ['description' => 'The value to be matched with the specified field. Valid values of N: 1 to 3.', 'type' => 'string', 'required' => true, 'example' => 'nginx', 'title' => ''],
'Name' => ['description' => 'The name of the field based on which instances are filtered. Valid values of N: 1 to 3.'."\n"
."\n"
.'Only hostnames are supported. Example: hostName.', 'type' => 'string', 'required' => true, 'example' => 'hostName', 'title' => ''],
'Function' => ['description' => 'The method that is used to filter instances. Valid values of N: 1 to 3. Valid values:'."\n"
."\n"
.'- contains: contains'."\n"
."\n"
.'- notContains: does not contain'."\n"
."\n"
.'- startWith: starts with a prefix'."\n"
."\n"
.'- endWith: ends with a suffix', 'type' => 'string', 'required' => true, 'example' => 'contains', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 10,
'title' => '',
'example' => '',
],
'Category' => ['description' => 'The cloud service to which the alert rule is applied. Valid values of N: 1 to 3. Valid values:'."\n"
."\n"
.'- ecs: Elastic Compute Service (ECS)'."\n"
."\n"
.'- rds: ApsaraDB RDS'."\n"
."\n"
.'- slb: Server Load Balancer (SLB)', 'type' => 'string', 'required' => true, 'example' => 'ecs', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 50,
'title' => '',
'example' => '',
],
],
[
'name' => 'IsAsync',
'in' => 'query',
'schema' => ['description' => 'The mode for creating the alert rule. Valid values:'."\n"
."\n"
.'- true: creates asynchronously'."\n"
."\n"
.'- false (default): creates synchronously', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified resource is not found.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3E73F1AB-D195-438A-BCA7-2F4355789C58', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'AccessDeniedException', 'errorMessage' => 'You donot have sufficient access to perform this action.', 'description' => ''],
],
[
['errorCode' => 'LimitExceeded', 'errorMessage' => 'The quota for this customer had been reached.', 'description' => ''],
],
[
['errorCode' => 'AccessForbidden', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
409 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
412 => [
['errorCode' => 'OverLimit', 'errorMessage' => 'Matched instances count was over limit', 'description' => ''],
],
429 => [
['errorCode' => 'Throttli∂ngException', 'errorMessage' => 'The request was denied due to request throttling.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'PutMonitorGroupDynamicRule',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-12-27T07:31:03.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2022-01-27T07:02:52.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2022-01-27T07:02:52.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2022-01-27T07:02:52.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutMonitorGroupDynamicRule'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:PutMonitorGroupDynamicRule',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'MonitorGroup', 'arn' => 'acs:cms::{#accountId}:group/{#groupId}'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"The specified resource is not found.\\",\\n \\"RequestId\\": \\"3E73F1AB-D195-438A-BCA7-2F4355789C58\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'PutMonitoringConfig' => [
'summary' => 'Calls the PutMonitoringConfig operation to set the global configuration of the CloudMonitor agent.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'create', 'riskType' => 'high', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'AutoInstall',
'in' => 'query',
'schema' => ['description' => 'This parameter is deprecated and can be ignored.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'EnableInstallAgentNewECS',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to automatically install the CloudMonitor agent on newly purchased ECS instances. Valid values:'."\n"
.'- true (default): The CloudMonitor agent is automatically installed on newly purchased ECS instances.'."\n"
."\n"
.'- false: The CloudMonitor agent is not automatically installed on newly purchased ECS instances.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The value 200 indicates success.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Specified parameter EnableInstallAgentNewECS is not valid.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '109C8095-6FAD-4DBB-B013-6ED18CE4C0B1', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: Successful.'."\n"
."\n"
.'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'The specified parameter is not valid.', 'description' => ''],
],
403 => [
['errorCode' => 'InvalidAuthorization', 'errorMessage' => 'The Request is not authorization.', 'description' => ''],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"Specified parameter EnableInstallAgentNewECS is not valid.\\",\\n \\"RequestId\\": \\"109C8095-6FAD-4DBB-B013-6ED18CE4C0B1\\",\\n \\"Success\\": true\\n}","type":"json"}]',
'title' => 'Set the global configuration of the cloudMonitor agent',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutMonitoringConfig'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:PutMonitoringConfig',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'PutResourceMetricRule' => [
'summary' => 'Sets an alert rule.',
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'RuleId',
'in' => 'query',
'schema' => ['description' => 'The ID of the alert rule.'."\n"
."\n"
.'You can enter a new alert rule ID or use the ID of an existing alert rule in CloudMonitor. For more information about how to query alert rule IDs, see [DescribeMetricRuleList](~~114941~~).'."\n"
."\n"
.'> If you enter a new alert rule ID, a threshold alert rule is created.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'a151cd6023eacee2f0978e03863cc1697c89508****', 'title' => ''],
],
[
'name' => 'RuleName',
'in' => 'query',
'schema' => ['description' => 'The name of the alert rule.'."\n"
."\n"
.'You can enter a new alert rule name or use the name of an existing alert rule in CloudMonitor. For more information about how to query alert rule names, see [DescribeMetricRuleList](~~114941~~).'."\n"
."\n"
.'> If you enter a new alert rule name, a threshold alert rule is created.', 'type' => 'string', 'required' => true, 'example' => 'test123', 'title' => ''],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => ['description' => 'The namespace of the Alibaba Cloud service. For more information about how to query the namespace of an Alibaba Cloud service, see [Alibaba Cloud service monitoring metrics](~~163515~~).'."\n"
."\n"
.'> If you create a Prometheus alert rule for Hybrid Cloud Monitoring, set this parameter to `acs_prometheus`.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'acs_ecs_dashboard', 'title' => ''],
],
[
'name' => 'MetricName',
'in' => 'query',
'schema' => ['description' => 'The name of the metric. For more information about how to query metric names, see [Alibaba Cloud service monitoring metrics](~~163515~~).'."\n"
."\n"
.'> If you create a Prometheus alert rule for Hybrid Cloud Monitoring, this parameter specifies the name of the metric repository. For more information about how to obtain the metric repository name, see [DescribeHybridMonitorNamespaceList](~~428880~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cpu_total', 'title' => ''],
],
[
'name' => 'Resources',
'in' => 'query',
'schema' => ['description' => 'The resource information, such as `[{"instanceId":"i-uf6j91r34rnwawoo****"}]` or `[{"userId":"100931896542****"}]`.'."\n"
."\n"
.'For more information about the supported monitoring dimensions, see [Alibaba Cloud service monitoring metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '[{"instanceId":"i-uf6j91r34rnwawoo****"}]', 'title' => ''],
],
[
'name' => 'ContactGroups',
'in' => 'query',
'schema' => ['description' => 'The alert contact group. Alert notifications are sent to the alert contacts in the alert contact group.'."\n"
."\n"
.'> An alert contact group is a group of alert contacts that can contain one or more alert contacts. For more information about how to create alert contacts and alert contact groups, see [PutContact](~~114923~~) and [PutContactGroup](~~114929~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ECS_Group', 'title' => ''],
],
[
'name' => 'Webhook',
'in' => 'query',
'schema' => ['description' => 'The callback URL to which a POST request is sent when an alert is triggered.', 'type' => 'string', 'required' => false, 'example' => 'https://alert.aliyun.com.com:8080/callback', 'title' => ''],
],
[
'name' => 'EffectiveInterval',
'in' => 'query',
'schema' => ['description' => 'The effective period of the alert rule.', 'type' => 'string', 'required' => false, 'example' => '00:00-23:59', 'title' => ''],
],
[
'name' => 'NoEffectiveInterval',
'in' => 'query',
'schema' => ['description' => 'The time range during which the alert rule is ineffective.', 'type' => 'string', 'required' => false, 'example' => '00:00-06:00', 'title' => ''],
],
[
'name' => 'SilenceTime',
'in' => 'query',
'schema' => ['description' => 'The mute period. Unit: seconds. Default value: 86400.'."\n"
."\n"
.'> The mute period specifies the interval at which an alert notification is re-sent if the alert does not recover to Normal.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '86400', 'example' => '86400', 'title' => ''],
],
[
'name' => 'Period',
'in' => 'query',
'schema' => ['description' => 'The statistical period of the metric. Unit: seconds. The default value is the original reporting period of the metric.'."\n"
."\n"
.'> For more information about how to query the statistical period of a metric, see [Alibaba Cloud service monitoring metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => '60', 'title' => ''],
],
[
'name' => 'Interval',
'in' => 'query',
'schema' => ['description' => 'The trigger period of the alert rule. Unit: seconds.'."\n"
."\n"
.'> For more information about how to query the statistical period of a metric, see [Alibaba Cloud service monitoring metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => '60', 'title' => ''],
],
[
'name' => 'EmailSubject',
'in' => 'query',
'schema' => ['description' => 'The subject of the alert email.', 'type' => 'string', 'required' => false, 'example' => 'ECS instance alert', 'title' => ''],
],
[
'name' => 'Escalations.Critical.Statistics',
'in' => 'query',
'schema' => ['description' => 'The statistical method for the Critical level.'."\n"
."\n"
.'The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` of the specified Alibaba Cloud service, such as Maximum, Minimum, and Average. For more information about how to obtain the value of this parameter, see [Alibaba Cloud service monitoring metrics](~~163515~~).'."\n"
."\n"
.'> At least one of the alert levels Critical (critical), Warn (warning), or Info (information) must be settings. The parameters Statistics, ComparisonOperator, Threshold, and Times must be set together for the specified alert level.', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
],
[
'name' => 'Escalations.Critical.ComparisonOperator',
'in' => 'query',
'schema' => ['description' => 'The comparison operator for the Critical level. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold.'."\n"
.'- GreaterThanThreshold: greater than the threshold.'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold.'."\n"
.'- LessThanThreshold: less than the threshold.'."\n"
.'- NotEqualToThreshold: not equal to the threshold.'."\n"
.'- EqualToThreshold: equal to the threshold.'."\n"
.'- GreaterThanYesterday: greater than the value at the same time yesterday.'."\n"
.'- LessThanYesterday: less than the value at the same time yesterday.'."\n"
.'- GreaterThanLastWeek: greater than the value at the same time last week.'."\n"
.'- LessThanLastWeek: less than the value at the same time last week.'."\n"
.'- GreaterThanLastPeriod: greater than the value in the last period.'."\n"
.'- LessThanLastPeriod: less than the value in the last period.'."\n"
."\n"
.'> At least one of the alert levels Critical, Warn, or Info must be set. The parameters Statistics, ComparisonOperator, Threshold, and Times must be set together for the specified alert level.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
],
[
'name' => 'Escalations.Critical.Threshold',
'in' => 'query',
'schema' => ['description' => 'The threshold for the Critical level.'."\n"
."\n\n"
.'> At least one of the alert levels Critical, Warn, or Info must be set. The parameters Statistics, ComparisonOperator, Threshold, and Times must be set together for the specified alert level.', 'type' => 'string', 'required' => false, 'example' => '90', 'title' => ''],
],
[
'name' => 'Escalations.Critical.Times',
'in' => 'query',
'schema' => ['description' => 'The retry count for the Critical level.'."\n"
."\n"
.'> At least one of the alert levels Critical, Warn, or Info must be set. The parameters Statistics, ComparisonOperator, Threshold, and Times must be set together for the specified alert level.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'title' => ''],
],
[
'name' => 'Escalations.Warn.Statistics',
'in' => 'query',
'schema' => ['description' => 'The statistical method for the Warn level.'."\n"
."\n"
.'The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` of the specified Alibaba Cloud service, such as Maximum, Minimum, and Average. For more information about how to obtain the value of this parameter, see [Alibaba Cloud service monitoring metrics](~~163515~~).'."\n"
."\n"
.'> At least one of the alert levels Critical (critical), Warn (warning), or Info (information) must be set. The parameters Statistics, ComparisonOperator, Threshold, and Times must be set together for the specified alert level.', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
],
[
'name' => 'Escalations.Warn.ComparisonOperator',
'in' => 'query',
'schema' => ['description' => 'The comparison operator for the Warn level. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold.'."\n"
.'- GreaterThanThreshold: greater than the threshold.'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold.'."\n"
.'- LessThanThreshold: less than the threshold.'."\n"
.'- NotEqualToThreshold: not equal to the threshold.'."\n"
.'- EqualToThreshold: equal to the threshold.'."\n"
.'- GreaterThanYesterday: greater than the value at the same time yesterday.'."\n"
.'- LessThanYesterday: less than the value at the same time yesterday.'."\n"
.'- GreaterThanLastWeek: greater than the value at the same time last week.'."\n"
.'- LessThanLastWeek: less than the value at the same time last week.'."\n"
.'- GreaterThanLastPeriod: greater than the value in the last period.'."\n"
.'- LessThanLastPeriod: less than the value in the last period.'."\n"
."\n"
.'> At least one of the alert levels Critical, Warn, or Info must be set. The parameters Statistics, ComparisonOperator, Threshold, and Times must be set together for the specified alert level.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
],
[
'name' => 'Escalations.Warn.Threshold',
'in' => 'query',
'schema' => ['description' => 'The threshold for the Warn level.'."\n"
.'> At least one of the alert levels Critical, Warn, or Info must be set. The parameters Statistics, ComparisonOperator, Threshold, and Times must be set together for the specified alert level.', 'type' => 'string', 'required' => false, 'example' => '90', 'title' => ''],
],
[
'name' => 'Escalations.Warn.Times',
'in' => 'query',
'schema' => ['description' => 'The retry count for the Warn level.'."\n"
."\n"
.'> At least one of the alert levels Critical, Warn, or Info must be set. The parameters Statistics, ComparisonOperator, Threshold, and Times must be set together for the specified alert level.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'title' => ''],
],
[
'name' => 'Escalations.Info.Statistics',
'in' => 'query',
'schema' => ['description' => 'The statistical method for the Info level.'."\n"
."\n"
.'The value of this parameter is determined by the `Statistics` column corresponding to the `MetricName` of the specified Alibaba Cloud service, such as Maximum, Minimum, and Average. For more information about how to obtain the value of this parameter, see [Alibaba Cloud service monitoring metrics](~~163515~~).'."\n"
."\n"
.'> At least one of the alert levels Critical (critical), Warn (warning), or Info (information) must be set. The parameters Statistics, ComparisonOperator, Threshold, and Times must be set together for the specified alert level.', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
],
[
'name' => 'Escalations.Info.ComparisonOperator',
'in' => 'query',
'schema' => ['description' => 'The comparison operator for the Info level. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold.'."\n"
.'- GreaterThanThreshold: greater than the threshold.'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold.'."\n"
.'- LessThanThreshold: less than the threshold.'."\n"
.'- NotEqualToThreshold: not equal to the threshold.'."\n"
.'- EqualToThreshold: equal to the threshold.'."\n"
.'- GreaterThanYesterday: greater than the value at the same time yesterday.'."\n"
.'- LessThanYesterday: less than the value at the same time yesterday.'."\n"
.'- GreaterThanLastWeek: greater than the value at the same time last week.'."\n"
.'- LessThanLastWeek: less than the value at the same time last week.'."\n"
.'- GreaterThanLastPeriod: greater than the value in the last period.'."\n"
.'- LessThanLastPeriod: less than the value in the last period.'."\n"
."\n"
.'> At least one of the alert levels Critical, Warn, or Info must be set. The parameters Statistics, ComparisonOperator, Threshold, and Times must be set together for the specified alert level.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
],
[
'name' => 'Escalations.Info.Threshold',
'in' => 'query',
'schema' => ['description' => 'The threshold for the Info level.'."\n"
."\n"
.'> At least one of the alert levels Critical, Warn, or Info must be set. The parameters Statistics, ComparisonOperator, Threshold, and Times must be set together for the specified alert level.', 'type' => 'string', 'required' => false, 'example' => '90', 'title' => ''],
],
[
'name' => 'Escalations.Info.Times',
'in' => 'query',
'schema' => ['description' => 'The retry count for the Info level.'."\n"
."\n"
.'> At least one of the alert levels Critical, Warn, or Info must be set. The parameters Statistics, ComparisonOperator, Threshold, and Times must be set together for the specified alert level.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'title' => ''],
],
[
'name' => 'NoDataPolicy',
'in' => 'query',
'schema' => ['description' => 'The processing method when no monitoring data is found. Valid values:'."\n"
."\n"
.'- KEEP\\_LAST\\_STATE (default): No action is performed.'."\n"
.'- INSUFFICIENT\\_DATA: An alert whose content is "Insufficient Data" is triggered.'."\n"
.'- OK: The status is considered normal.', 'type' => 'string', 'required' => false, 'example' => 'KEEP_LAST_STATE', 'title' => ''],
],
[
'name' => 'CompositeExpression',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => 'The alert conditions for multiple metrics.'."\n"
."\n"
.'> Single-metric and multi-metric alert conditions are mutually exclusive and cannot be set at the same time.',
'type' => 'object',
'properties' => [
'ExpressionList' => [
'description' => 'The list of alert conditions created in standard mode.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'MetricName' => ['description' => 'The metric name of the Alibaba Cloud service.', 'type' => 'string', 'required' => false, 'example' => 'cpu_total', 'title' => ''],
'Period' => ['description' => 'The aggregation period of the metric.'."\n"
."\n"
.'Unit: seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '60', 'title' => ''],
'Statistics' => ['description' => 'The statistical method of the metric. Valid values:'."\n"
.'- $Maximum: maximum value.'."\n"
.'- $Minimum: minimum value.'."\n"
.'- $Average: average value.'."\n"
.'- $Availability: availability rate (typically used for site monitoring).'."\n"
."\n"
.'> `$` is the unified prefix for metrics. For more information about supported Alibaba Cloud services, see [Alibaba Cloud service monitoring metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => '$Maximum', 'title' => ''],
'ComparisonOperator' => ['description' => 'The comparison operator for the threshold. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold.'."\n"
.'- GreaterThanThreshold: greater than the threshold.'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold.'."\n"
.'- LessThanThreshold: less than the threshold.'."\n"
.'- NotEqualToThreshold: not equal to the threshold.'."\n"
.'- EqualToThreshold: equal to the threshold.'."\n"
.'- GreaterThanYesterday: greater than the value at the same time yesterday.'."\n"
.'- LessThanYesterday: less than the value at the same time yesterday.'."\n"
.'- GreaterThanLastWeek: greater than the value at the same time last week.'."\n"
.'- LessThanLastWeek: less than the value at the same time last week.'."\n"
.'- GreaterThanLastPeriod: greater than the value in the last period.'."\n"
.'- LessThanLastPeriod: less than the value in the last period.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Threshold' => ['description' => 'The alert threshold.', 'type' => 'string', 'required' => false, 'example' => '90', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
'ExpressionListJoin' => ['description' => 'The relationship between multi-metric alert conditions. Valid values: '."\n"
."\n"
.'- `&&`: An alert is triggered only when all metrics meet the alert conditions. An alert is triggered only when all expressions in ExpressionList evaluate to `true`.'."\n"
."\n"
.'- `||`: An alert is triggered when any metric meets the alert conditions.', 'type' => 'string', 'required' => false, 'example' => '||', 'title' => ''],
'ExpressionRaw' => ['description' => 'The alert condition created by using an expression. This includes but is not limited to the following scenarios:'."\n"
."\n"
.'- Set an alert blacklist for specific resources. For example, `$instanceId != \'i-io8kfvcpp7x5****\' ``&&`` $Average > 50` specifies that no alert is triggered for the instance `i-io8kfvcpp7x5****` even if its `Average` exceeds 50.'."\n"
.'- Set a special alert threshold for a specific instance in the rule. For example, `$Average > ($instanceId == \'i-io8kfvcpp7x5****\'? 80: 50)` specifies that an alert is triggered for the instance `i-io8kfvcpp7x5****` only when its `Average` exceeds 80, while an alert is triggered for other instances when their `Average` exceeds 50.'."\n"
.'- Limit the number of instances that exceed the threshold. For example, `count($Average > 20) > 3` specifies that an alert is triggered only when more than three instances in the alert rule have an `Average` greater than 20.', 'type' => 'string', 'required' => false, 'example' => '$Average > ($instanceId == \'i-io8kfvcpp7x5****\'? 80: 50)', 'title' => ''],
'Level' => ['description' => 'The alert level. Valid values:'."\n"
.'- CRITICAL: critical.'."\n"
.'- WARN: warning.'."\n"
.'- INFO: information.', 'type' => 'string', 'required' => false, 'example' => 'CRITICAL', 'title' => ''],
'Times' => ['description' => 'The number of times that the alert condition must be met before an alert notification is sent.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
],
[
'name' => 'Labels',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'When the metric meets the alert condition and an alert is triggered, the labels are written to the metric and displayed in the alert notification.'."\n"
."\n"
.'> This feature is the same as the Label feature in Prometheus alerting.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The label key.', 'type' => 'string', 'required' => false, 'example' => 'tagKey1', 'title' => ''],
'Value' => ['description' => 'The label value.'."\n"
."\n"
.'> The label value supports template parameters. Template parameters are replaced with actual label values.', 'type' => 'string', 'required' => false, 'example' => 'ECS', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 20,
'title' => '',
'example' => '',
],
],
[
'name' => 'Prometheus',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => 'The Prometheus alert configuration.'."\n"
."\n"
.'> Set this parameter only when you create a Prometheus alert rule for Hybrid Cloud Monitoring.',
'type' => 'object',
'properties' => [
'PromQL' => ['description' => 'The PromQL query statement.'."\n"
."\n"
.'> The data retrieved by the PromQL query statement is the alert data. Include the alert threshold in this statement.', 'type' => 'string', 'required' => false, 'example' => 'cpuUsage{instanceId="xxxx"}[1m]>90', 'title' => ''],
'Level' => ['description' => 'The alert level. Valid values:'."\n"
.'- CRITICAL: critical.'."\n"
.'- WARN: warning.'."\n"
.'- INFO: information.', 'type' => 'string', 'required' => false, 'example' => 'CRITICAL', 'title' => ''],
'Times' => ['description' => 'The number of times that the alert condition must be met before an alert notification is sent.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'title' => ''],
'Annotations' => [
'description' => 'The annotations for Prometheus alerting. The annotation keys and values are rendered to help you understand the metrics or alert rules.'."\n"
."\n"
.'> This feature is equivalent to the Annotation feature in Prometheus.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The annotation key.', 'type' => 'string', 'required' => false, 'example' => 'summary', 'title' => ''],
'Value' => ['description' => 'The annotation value.', 'type' => 'string', 'required' => false, 'example' => '{{ $labels.instance }} CPU usage above 10% {current value: {{ humanizePercentage $value }} }', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'title' => '',
'example' => '',
],
],
'required' => false,
'title' => '',
'example' => '',
],
],
[
'name' => 'SendOK',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'Specifies whether to send a recovery notification.', 'type' => 'boolean', 'default' => 'true', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The request processing has failed due to some unknown error.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '65D50468-ECEF-48F1-A6E1-D952E89D9436', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
204 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
429 => [
['errorCode' => 'ResourceOverLimit', 'errorMessage' => 'The resource has exceeded the limit. %s', 'description' => ''],
],
499 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Set a threshold alert rule for a specified metric of a specified resource',
'description' => 'This topic provides an example on how to set a threshold alert rule for the `cpu_total` metric of the Elastic Computing Service (ECS) instance `i-uf6j91r34rnwawoo****` in the `acs_ecs_dashboard` namespace. The alert contact group is `ECS_Group`, the alert rule name is `test123`, the alert rule ID is `a151cd6023eacee2f0978e03863cc1697c89508****`, the statistical method for the Critical level is `Average`, the comparison operator for the Critical level is `GreaterThanOrEqualToThreshold`, the threshold for the Critical level is `90`, and the retry count for the Critical level is `3`.'."\n"
.'> As of August 15, 2024, Statistics validation is increased. The statistical value must match the Statistics of the corresponding metric. For more information about how to obtain the value of this parameter, see [Alibaba Cloud service monitoring metrics](https://www.alibabacloud.com/help/en/cms/support/appendix-1-metrics).',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-04-01T02:36:25.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2022-12-27T11:46:48.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2022-12-26T09:11:22.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2022-08-05T04:05:02.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2022-07-29T09:41:36.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-10-28T09:54:48.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-10-28T09:54:48.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-10-28T09:54:48.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-10-28T09:54:48.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutResourceMetricRule'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:PutResourceMetricRule',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The request processing has failed due to some unknown error.\\",\\n \\"RequestId\\": \\"65D50468-ECEF-48F1-A6E1-D952E89D9436\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
'PutResourceMetricRules' => [
'methods' => ['post', 'get', 'put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Rules',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The list of threshold alert rules.'."\n"
."\n"
.'Valid values of N: 1 to 50.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Escalations.Info.Threshold' => ['description' => 'The threshold for Info-level alerts.'."\n"
."\n"
.'> You must specify at least one of the following alert levels: Critical, Warn, or Info. For the specified alert level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'string', 'required' => false, 'example' => '90', 'title' => ''],
'MetricName' => ['description' => 'The metric name.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'For more information about how to query metric names, see [Alibaba Cloud service monitoring metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => 'cpu_total', 'title' => ''],
'Escalations.Warn.Threshold' => ['description' => 'The threshold for Warn-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'> You must specify at least one of the following alert levels: Critical, Warn, or Info. For the specified alert level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'string', 'required' => false, 'example' => '90', 'title' => ''],
'EffectiveInterval' => ['description' => 'The effective period of the alert rule.'."\n"
."\n"
.'Valid values of N: 1 to 50.', 'type' => 'string', 'required' => false, 'example' => '00:00-23:59', 'title' => ''],
'NoEffectiveInterval' => ['description' => 'The time range during which the alert rule is ineffective.'."\n"
."\n"
.'Valid values of N: 1 to 50.', 'type' => 'string', 'required' => false, 'example' => '00:00-06:00', 'title' => ''],
'RuleId' => ['description' => 'The alert rule ID.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'You can enter a new alert rule ID or use an existing alert rule ID in CloudMonitor. For more information about how to query alert rule IDs, see [DescribeMetricRuleList](~~114941~~).'."\n"
."\n"
.'> If you enter a new alert rule ID, a threshold alert rule is created.', 'type' => 'string', 'required' => true, 'example' => 'a151cd6023eacee2f0978e03863cc1697c89508****', 'title' => ''],
'Escalations.Critical.Times' => ['description' => 'The retry count for Critical-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'> You must specify at least one of the following alert levels: Critical, Warn, or Info. For the specified alert level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'title' => ''],
'Escalations.Critical.Threshold' => ['description' => 'The threshold for Critical-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'> You must specify at least one of the following alert levels: Critical, Warn, or Info. For the specified alert level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'string', 'required' => false, 'example' => '90', 'title' => ''],
'Escalations.Critical.Statistics' => ['description' => 'The statistics method for Critical-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'The value of this parameter is determined by the `Statistics` column that corresponds to the `MetricName` of the specified Alibaba Cloud service. Examples: Maximum, Minimum, and Average. For more information about how to obtain the value of this parameter, see [Alibaba Cloud service monitoring metrics](~~163515~~).'."\n"
."\n"
.'> You must specify at least one of the following alert levels: Critical (critical), Warn (warning), or Info (information). For the specified alert level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
'Escalations.Warn.ComparisonOperator' => ['description' => 'The comparison operator for Warn-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold.'."\n"
.'- GreaterThanThreshold: greater than the threshold.'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold.'."\n"
.'- LessThanThreshold: less than the threshold.'."\n"
.'- NotEqualToThreshold: not equal to the threshold.'."\n"
.'- EqualToThreshold: equal to the threshold.'."\n"
.'- GreaterThanYesterday: greater than the value at the same time yesterday.'."\n"
.'- LessThanYesterday: less than the value at the same time yesterday.'."\n"
.'- GreaterThanLastWeek: greater than the value at the same time last week.'."\n"
.'- LessThanLastWeek: less than the value at the same time last week.'."\n"
.'- GreaterThanLastPeriod: greater than the value in the last period.'."\n"
.'- LessThanLastPeriod: less than the value in the last period.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'> You must specify at least one of the following alert levels: Critical, Warn, or Info. For the specified alert level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Escalations.Info.Times' => ['description' => 'The retry count for Info-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'> You must specify at least one of the following alert levels: Critical, Warn, or Info. For the specified alert level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'title' => ''],
'Resources' => ['description' => 'The resource information, such as `[{"instanceId":"i-uf6j91r34rnwawoo****"}]` or `[{"userId":"100931896542****"}]`.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'For more information about the supported dimensions, see [Alibaba Cloud service monitoring metrics](~~163515~~).', 'type' => 'string', 'required' => true, 'example' => '[{"instanceId":"i-uf6j91r34rnwawoo****"}]', 'title' => ''],
'SilenceTime' => ['description' => 'The mute period.'."\n"
."\n"
.'Unit: seconds. Default value: 86400.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'> The mute period specifies the interval at which an alert notification is sent again if the alert is not cleared.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '86400', 'title' => ''],
'Webhook' => ['description' => 'The callback URL to which a POST request is sent when an alert is triggered.'."\n"
."\n"
.'Valid values of N: 1 to 50.', 'type' => 'string', 'required' => false, 'example' => 'https://alert.aliyun.com.com:8080/callback', 'title' => ''],
'ContactGroups' => ['description' => 'The alert contact group. Alert notifications are sent to the alert contacts in the alert contact group.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'> An alert contact group contains one or more alert contacts. For more information about how to create alert contacts and alert contact groups, see [PutContact](~~114923~~) and [PutContactGroup](~~114929~~).', 'type' => 'string', 'required' => true, 'example' => 'ECS_Group', 'title' => ''],
'Namespace' => ['description' => 'The data namespace of the Alibaba Cloud service.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'For more information about how to query the data namespace of an Alibaba Cloud service, see [Alibaba Cloud service monitoring metrics](~~163515~~).', 'type' => 'string', 'required' => true, 'example' => 'acs_ecs_dashboard', 'title' => ''],
'EmailSubject' => ['description' => 'The subject of the alert email.'."\n"
."\n"
.'Valid values of N: 1 to 50.', 'type' => 'string', 'required' => false, 'example' => 'ECS instance alert', 'title' => ''],
'Period' => ['description' => 'The statistical period of the metric.'."\n"
."\n"
.'Unit: seconds. Default value: the original reporting period of the metric.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'> For more information about how to query the statistical period of a metric, see [Alibaba Cloud service monitoring metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => '60', 'title' => ''],
'RuleName' => ['description' => 'The alert rule name.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'You can enter a new alert rule name or use an existing alert rule name in CloudMonitor. For more information about how to query alert rule names, see [DescribeMetricRuleList](~~114941~~).'."\n"
."\n"
.'> If you enter a new alert rule name, a threshold alert rule is created.', 'type' => 'string', 'required' => true, 'example' => 'test123', 'title' => ''],
'Escalations.Info.Statistics' => ['description' => 'The statistics method for Info-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'The value of this parameter is determined by the `Statistics` column that corresponds to the `MetricName` of the specified Alibaba Cloud service. Examples: Maximum, Minimum, and Average. For more information about how to obtain the value of this parameter, see [Alibaba Cloud service monitoring metrics](~~163515~~).'."\n"
."\n"
.'> You must specify at least one of the following alert levels: Critical (critical), Warn (warning), or Info (information). For the specified alert level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
'Escalations.Warn.Times' => ['description' => 'The retry count for Warn-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'> You must specify at least one of the following alert levels: Critical, Warn, or Info. For the specified alert level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3', 'title' => ''],
'Escalations.Info.ComparisonOperator' => ['description' => 'The comparison operator for Info-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold.'."\n"
.'- GreaterThanThreshold: greater than the threshold.'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold.'."\n"
.'- LessThanThreshold: less than the threshold.'."\n"
.'- NotEqualToThreshold: not equal to the threshold.'."\n"
.'- EqualToThreshold: equal to the threshold.'."\n"
.'- GreaterThanYesterday: greater than the value at the same time yesterday.'."\n"
.'- LessThanYesterday: less than the value at the same time yesterday.'."\n"
.'- GreaterThanLastWeek: greater than the value at the same time last week.'."\n"
.'- LessThanLastWeek: less than the value at the same time last week.'."\n"
.'- GreaterThanLastPeriod: greater than the value in the last period.'."\n"
.'- LessThanLastPeriod: less than the value in the last period.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'> You must specify at least one of the following alert levels: Critical, Warn, or Info. For the specified alert level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Interval' => ['description' => 'The trigger period of the alert rule.'."\n"
."\n"
.'Unit: seconds.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'> For more information about how to query the statistical period of a metric, see [Alibaba Cloud service monitoring metrics](~~163515~~).', 'type' => 'string', 'required' => false, 'example' => '60', 'title' => ''],
'Escalations.Critical.ComparisonOperator' => ['description' => 'The comparison operator for Critical-level alerts. Valid values:'."\n"
."\n"
.'- GreaterThanOrEqualToThreshold: greater than or equal to the threshold.'."\n"
.'- GreaterThanThreshold: greater than the threshold.'."\n"
.'- LessThanOrEqualToThreshold: less than or equal to the threshold.'."\n"
.'- LessThanThreshold: less than the threshold.'."\n"
.'- NotEqualToThreshold: not equal to the threshold.'."\n"
.'- EqualToThreshold: equal to the threshold.'."\n"
.'- GreaterThanYesterday: greater than the value at the same time yesterday.'."\n"
.'- LessThanYesterday: less than the value at the same time yesterday.'."\n"
.'- GreaterThanLastWeek: greater than the value at the same time last week.'."\n"
.'- LessThanLastWeek: less than the value at the same time last week.'."\n"
.'- GreaterThanLastPeriod: greater than the value in the last period.'."\n"
.'- LessThanLastPeriod: less than the value in the last period.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'> You must specify at least one of the following alert levels: Critical, Warn, or Info. For the specified alert level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'string', 'required' => false, 'example' => 'GreaterThanOrEqualToThreshold', 'title' => ''],
'Escalations.Warn.Statistics' => ['description' => 'The statistics method for Warn-level alerts.'."\n"
."\n"
.'Valid values of N: 1 to 50.'."\n"
."\n"
.'The value of this parameter is determined by the `Statistics` column that corresponds to the `MetricName` of the specified Alibaba Cloud service. Examples: Maximum, Minimum, and Average. For more information about how to obtain the value of this parameter, see [Alibaba Cloud service monitoring metrics](~~163515~~).'."\n"
."\n"
.'> You must specify at least one of the following alert levels: Critical (critical), Warn (warning), or Info (information). For the specified alert level, you must set all of the following parameters: Statistics, ComparisonOperator, Threshold, and Times.', 'type' => 'string', 'required' => false, 'example' => 'Average', 'title' => ''],
'NoDataPolicy' => ['description' => 'The processing method when no monitoring data is found. Valid values:'."\n"
."\n"
.'- KEEP_LAST_STATE (default): No action is taken.'."\n"
.'- INSUFFICIENT_DATA: An alert whose content is "Insufficient Data" is triggered.'."\n"
.'- OK: The status is considered normal.'."\n"
."\n"
.'Valid values of N: 1 to 50.', 'type' => 'string', 'required' => false, 'example' => 'KEEP_LAST_STATE', 'title' => ''],
'Labels' => [
'description' => 'When the metric reaches the alert condition and an alert is triggered, the labels are written to the metric and displayed in the alert notification.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The label key.', 'type' => 'string', 'required' => false, 'example' => 'tagKey1', 'title' => ''],
'Value' => ['description' => 'The label value.'."\n"
."\n"
.'> The label value supports template parameters. Template parameters are replaced with actual label values.', 'type' => 'string', 'required' => false, 'example' => 'ECS', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => false,
'maxItems' => 20,
'minItems' => 0,
'title' => '',
'example' => '',
],
'SendOK' => ['description' => 'Specifies whether to send a recovery notification.', 'type' => 'boolean', 'default' => 'true', 'required' => false, 'example' => 'true', 'title' => ''],
],
'required' => false,
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 500,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The HTTP status code.'."\n"
."\n"
.'> The value 200 indicates success.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The request processing has failed due to some unknown error.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '15D1440E-BF24-5A41-93E4-36864635179E', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'FailedListResult' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Target' => [
'description' => 'The list of failed results for setting alert rules on resources.',
'type' => 'array',
'items' => [
'description' => 'None.',
'type' => 'object',
'properties' => [
'RuleId' => ['description' => 'The alert rule ID.', 'type' => 'string', 'example' => 'a151cd6023eacee2f0978e03863cc1697c89508****', 'title' => ''],
'Result' => [
'description' => 'The failure result.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.', 'type' => 'string', 'example' => '404', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The request processing has failed due to some unknown error.', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
204 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
206 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
400 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
406 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
422 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
499 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
[
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
503 => [
['errorCode' => '%s', 'errorMessage' => '%s', 'description' => ''],
],
],
'title' => 'Create multiple threshold alert rules for a specified metric of a specified resource',
'summary' => 'Calls the PutResourceMetricRules operation to create multiple threshold alert rules for a specified metric of a specified resource.',
'description' => 'This topic provides an example of how to create a threshold alert rule for the `cpu_total` metric of the Elastic Computing Service (ECS) instance `i-uf6j91r34rnwawoo****` in the `acs_ecs_dashboard` namespace. The alert contact group is set to `ECS_Group`, the alert rule name is set to `test123`, the alert rule ID is set to `a151cd6023eacee2f0978e03863cc1697c89508****`, the statistics method for the Critical level is set to `Average`, the comparison operator for the Critical level is set to `GreaterThanOrEqualToThreshold`, the threshold for the Critical level is set to `90`, and the retry count for the Critical level is set to `3`.'."\n"
.'> As of August 15, 2024, Statistics validation is added. You can set the statistics value only to the Statistics value that corresponds to the metric. For more information about how to obtain the value of this parameter, see [Alibaba Cloud service monitoring metrics](https://www.alibabacloud.com/help/en/cms/support/appendix-1-metrics).',
'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~199331~~).',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2021-10-28T09:54:48.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-10-28T09:54:48.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2021-10-28T09:54:48.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-10-28T09:54:48.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutResourceMetricRules'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'cms:PutResourceMetricRules',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"The request processing has failed due to some unknown error.\\",\\n \\"RequestId\\": \\"15D1440E-BF24-5A41-93E4-36864635179E\\",\\n \\"Success\\": true,\\n \\"FailedListResult\\": {\\n \\"Target\\": [\\n {\\n \\"RuleId\\": \\"a151cd6023eacee2f0978e03863cc1697c89508****\\",\\n \\"Result\\": {\\n \\"Code\\": \\"404\\",\\n \\"Message\\": \\"The request processing has failed due to some unknown error.\\",\\n \\"Success\\": false\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'RemoveTags' => [
'summary' => 'The RemoveTags operation removes one or more tags.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Tag',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The list of tags.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The tag key.'."\n"
."\n"
.'> You must specify both the tag key (`Tag.N.Key`) and the tag value (`Tag.N.Value`).', 'type' => 'string', 'required' => true, 'example' => 'Key1', 'title' => ''],
'Value' => ['description' => 'The tag value.'."\n"
."\n"
.'> You must specify both the tag key (`Tag.N.Key`) and the tag value (`Tag.N.Value`).', 'type' => 'string', 'required' => true, 'example' => 'Value1', 'title' => ''],
],
'required' => false,
'description' => '',
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 10,
'title' => '',
'example' => '',
],
],
[
'name' => 'GroupIds',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'The ID of the application group.',
'type' => 'array',
'items' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => false, 'example' => '12345', 'title' => ''],
'required' => true,
'example' => '12345',
'maxItems' => 20,
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> A status code of 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Illegal parameters.', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '195390D2-69D0-4D9E-81AA-A7F5BC1B91EB', 'title' => ''],
'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
."\n"
.'- true: The operation was successful.'."\n"
."\n"
.'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'Tag' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Tags' => [
'description' => 'The list of tags.',
'type' => 'array',
'items' => ['description' => 'The list of removed tags.', 'type' => 'string', 'example' => 'tag1', 'title' => ''],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'RemoveTags',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemoveTags'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:RemoveTags',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Illegal parameters.\\",\\n \\"RequestId\\": \\"195390D2-69D0-4D9E-81AA-A7F5BC1B91EB\\",\\n \\"Success\\": true,\\n \\"Tag\\": {\\n \\"Tags\\": [\\n \\"tag1\\"\\n ]\\n }\\n}","type":"json"}]',
],
'SendDryRunSystemEvent' => [
'summary' => 'Debugs a system event of an Alibaba Cloud service.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Product',
'in' => 'query',
'schema' => ['description' => 'The name of the cloud service.'."\n"
."\n"
.'> For information about the Alibaba Cloud services that are supported by CloudMonitor, see [Supported cloud services and their system events](~~167388~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ecs', 'title' => ''],
],
[
'name' => 'EventName',
'in' => 'query',
'schema' => ['description' => 'The name of the system event.'."\n"
."\n"
.'> For more information, see [DescribeSystemEventMetaList](~~114972~~).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Agent_Status_Stopped', 'title' => ''],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => 'The ID of the application group.', 'type' => 'string', 'required' => false, 'example' => '123456', 'title' => ''],
],
[
'name' => 'EventContent',
'in' => 'query',
'schema' => ['description' => 'The content of the system event.'."\n"
."\n"
.'> The value of this parameter is a JSON object. We recommend that you include the `product`, `resourceId`, and `regionId` fields in the JSON object.', 'type' => 'string', 'required' => false, 'example' => '{"product":"CloudMonitor","resourceId":"acs:ecs:cn-hongkong:173651113438****:instance/{instanceId}","level":"CRITICAL","instanceName":"instanceName","regionId":"cn-hangzhou","name":"Agent_Status_Stopped","content":{"ipGroup":"0.0.0.0,0.0.0.1","tianjimonVersion":"1.2.11"},"status":"stopped"}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '486029C9-53E1-44B4-85A8-16A571A043FD', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'string', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => 'Illegal parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'SendDryRunSystemEvent',
'description' => 'Tests whether a system event can be triggered as expected. Simulates a system event and verifies the response when the event triggers an alert.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SendDryRunSystemEvent'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'cms:SendDryRunSystemEvent',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"486029C9-53E1-44B4-85A8-16A571A043FD\\",\\n \\"Success\\": \\"true\\"\\n}","type":"json"}]',
],
'UninstallMonitoringAgent' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'delete', 'riskType' => 'high', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => 'The ID of the host.', 'type' => 'string', 'required' => true, 'example' => 'host-****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code.'."\n"
."\n"
.'> The status code 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The returned message.', 'type' => 'string', 'example' => 'Successfully', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '466902B9-2842-40B0-B796-00FE772B6EF3', 'title' => ''],
'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterInvalid', 'errorMessage' => '%s', 'description' => ''],
],
403 => [
['errorCode' => 'AccessForbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => ''],
],
[
['errorCode' => 'ResourceNotFound', 'errorMessage' => 'The specified resource is not found.', 'description' => 'The specified resource is not found.'],
],
412 => [
['errorCode' => 'AgentStateError', 'errorMessage' => 'Expected agent running state is stopped.', 'description' => 'Uninstall the plug-in when the status is Stopped.'],
],
500 => [
['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => ''],
],
],
'title' => 'UninstallMonitoringAgent',
'summary' => 'Uninstalls the CloudMonitor agent from a third-party host.',
'description' => '> This API operation is not applicable to Elastic Compute Service (ECS) instances. To uninstall the agent from an ECS instance, see [Install and uninstall the CloudMonitor agent](~~183482~~).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-12-27T07:31:04.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UninstallMonitoringAgent'],
],
'product' => ['code' => 'cms', 'title' => '云监控'],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'cms:UninstallMonitoringAgent',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'CloudMonitorService', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Successfully\\",\\n \\"RequestId\\": \\"466902B9-2842-40B0-B796-00FE772B6EF3\\",\\n \\"Success\\": true\\n}","type":"json"}]',
],
],
'endpoints' => [
['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.cn-beijing.aliyuncs.com', 'endpoint' => 'metrics.cn-beijing.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-beijing.aliyuncs.com'],
['regionId' => 'cn-zhengzhou-jva', 'regionName' => 'Zhengzhou (China Unicom Joint Venture)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.cn-zhengzhou-jva.aliyuncs.com', 'endpoint' => 'metrics.cn-zhengzhou-jva.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-zhengzhou-jva.aliyuncs.com'],
['regionId' => 'cn-heyuan', 'regionName' => 'China (Heyuan)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.cn-heyuan.aliyuncs.com', 'endpoint' => 'metrics.cn-heyuan.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-heyuan.aliyuncs.com'],
['regionId' => 'cn-zhangjiakou', 'regionName' => 'China (Zhangjiakou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'metrics.cn-zhangjiakou.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-zhangjiakou.aliyuncs.com'],
['regionId' => 'ap-northeast-2', 'regionName' => 'South Korea (Seoul)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.ap-northeast-2.aliyuncs.com', 'endpoint' => 'metrics.ap-northeast-2.aliyuncs.com', 'vpc' => 'metrics-vpc.ap-northeast-2.aliyuncs.com'],
['regionId' => 'ap-northeast-1', 'regionName' => 'Japan (Tokyo)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.ap-northeast-1.aliyuncs.com', 'endpoint' => 'metrics.ap-northeast-1.aliyuncs.com', 'vpc' => 'metrics-vpc.ap-northeast-1.aliyuncs.com'],
['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.ap-southeast-1.aliyuncs.com', 'endpoint' => 'metrics.ap-southeast-1.aliyuncs.com', 'vpc' => 'metrics-vpc.ap-southeast-1.aliyuncs.com'],
['regionId' => 'ap-southeast-2', 'regionName' => 'Australia (Sydney) Closed', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.ap-southeast-2.aliyuncs.com', 'endpoint' => 'metrics.ap-southeast-2.aliyuncs.com', 'vpc' => 'metrics-vpc.ap-southeast-2.aliyuncs.com'],
['regionId' => 'ap-southeast-3', 'regionName' => 'Malaysia (Kuala Lumpur)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.ap-southeast-3.aliyuncs.com', 'endpoint' => 'metrics.ap-southeast-3.aliyuncs.com', 'vpc' => 'metrics-vpc.ap-southeast-3.aliyuncs.com'],
['regionId' => 'ap-southeast-5', 'regionName' => 'Indonesia (Jakarta)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.ap-southeast-5.aliyuncs.com', 'endpoint' => 'metrics.ap-southeast-5.aliyuncs.com', 'vpc' => 'metrics-vpc.ap-southeast-5.aliyuncs.com'],
['regionId' => 'ap-southeast-6', 'regionName' => 'Philippines (Manila)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.ap-southeast-6.aliyuncs.com', 'endpoint' => 'metrics.ap-southeast-6.aliyuncs.com', 'vpc' => 'metrics-vpc.ap-southeast-6.aliyuncs.com'],
['regionId' => 'ap-southeast-7', 'regionName' => 'Thailand (Bangkok)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.ap-southeast-7.aliyuncs.com', 'endpoint' => 'metrics.ap-southeast-7.aliyuncs.com', 'vpc' => 'metrics-vpc.ap-southeast-7.aliyuncs.com'],
['regionId' => 'ap-southeast-8', 'regionName' => 'Malaysia (Johor)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.ap-southeast-8.aliyuncs.com', 'endpoint' => 'metrics.ap-southeast-8.aliyuncs.com', 'vpc' => 'cms-vpc.ap-southeast-8.aliyuncs.com'],
['regionId' => 'cn-zhongwei', 'regionName' => 'China (Zhongwei)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.cn-zhongwei.aliyuncs.com', 'endpoint' => 'metrics.cn-zhongwei.aliyuncs.com', 'vpc' => 'cms-vpc.cn-zhongwei.aliyuncs.com'],
['regionId' => 'cn-wulanchabu', 'regionName' => 'China (Ulanqab)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'metrics.cn-wulanchabu.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-wulanchabu.aliyuncs.com'],
['regionId' => 'cn-qingdao', 'regionName' => 'China (Qingdao)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.cn-qingdao.aliyuncs.com', 'endpoint' => 'metrics.cn-qingdao.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-qingdao.aliyuncs.com'],
['regionId' => 'cn-wuhan-lr', 'regionName' => 'China (Wuhan - Local Region)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.cn-wuhan-lr.aliyuncs.com', 'endpoint' => 'metrics.cn-wuhan-lr.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-wuhan-lr.aliyuncs.com'],
['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.cn-shanghai.aliyuncs.com', 'endpoint' => 'metrics.cn-shanghai.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-shanghai.aliyuncs.com'],
['regionId' => 'cn-hongkong', 'regionName' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.cn-hongkong.aliyuncs.com', 'endpoint' => 'metrics.cn-hongkong.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-hongkong.aliyuncs.com'],
['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.cn-shenzhen.aliyuncs.com', 'endpoint' => 'metrics.cn-shenzhen.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-shenzhen.aliyuncs.com'],
['regionId' => 'cn-nanjing', 'regionName' => 'China (Nanjing - Local Region)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.cn-nanjing.aliyuncs.com', 'endpoint' => 'metrics.cn-nanjing.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-nanjing.aliyuncs.com'],
['regionId' => 'cn-fuzhou', 'regionName' => 'China (Fuzhou - Local Region)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.cn-fuzhou.aliyuncs.com', 'endpoint' => 'metrics.cn-fuzhou.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-fuzhou.aliyuncs.com'],
['regionId' => 'cn-chengdu', 'regionName' => 'China (Chengdu)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.cn-chengdu.aliyuncs.com', 'endpoint' => 'metrics.cn-chengdu.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-chengdu.aliyuncs.com'],
['regionId' => 'cn-guangzhou', 'regionName' => 'China (Guangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.cn-guangzhou.aliyuncs.com', 'endpoint' => 'metrics.cn-guangzhou.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-guangzhou.aliyuncs.com'],
['regionId' => 'cn-huhehaote', 'regionName' => 'China (Hohhot)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.cn-huhehaote.aliyuncs.com', 'endpoint' => 'metrics.cn-huhehaote.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-huhehaote.aliyuncs.com'],
['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'metrics.cn-hangzhou.aliyuncs.com', 'endpoint' => 'metrics.cn-hangzhou.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-hangzhou.aliyuncs.com'],
['regionId' => 'us-southeast-1', 'regionName' => 'US(Atlanta)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'metrics.us-southeast-1.aliyuncs.com', 'endpoint' => 'metrics.us-southeast-1.aliyuncs.com', 'vpc' => 'metrics-vpc.us-southeast-1.aliyuncs.com'],
['regionId' => 'eu-west-1', 'regionName' => 'UK (London)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'metrics.eu-west-1.aliyuncs.com', 'endpoint' => 'metrics.eu-west-1.aliyuncs.com', 'vpc' => 'metrics-vpc.eu-west-1.aliyuncs.com'],
['regionId' => 'eu-west-2', 'regionName' => 'France (Paris)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'metrics.eu-west-2.aliyuncs.com', 'endpoint' => 'metrics.eu-west-2.aliyuncs.com', 'vpc' => 'cms-vpc.eu-west-2.aliyuncs.com'],
['regionId' => 'eu-central-1', 'regionName' => 'Germany (Frankfurt)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'metrics.eu-central-1.aliyuncs.com', 'endpoint' => 'metrics.eu-central-1.aliyuncs.com', 'vpc' => 'metrics-vpc.eu-central-1.aliyuncs.com'],
['regionId' => 'us-east-1', 'regionName' => 'US (Virginia)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'metrics.us-east-1.aliyuncs.com', 'endpoint' => 'metrics.us-east-1.aliyuncs.com', 'vpc' => 'metrics-vpc.us-east-1.aliyuncs.com'],
['regionId' => 'us-west-1', 'regionName' => 'US (Silicon Valley)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'metrics.us-west-1.aliyuncs.com', 'endpoint' => 'metrics.us-west-1.aliyuncs.com', 'vpc' => 'metrics-vpc.us-west-1.aliyuncs.com'],
['regionId' => 'na-south-1', 'regionName' => 'Mexico', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'metrics.na-south-1.aliyuncs.com', 'endpoint' => 'metrics.na-south-1.aliyuncs.com', 'vpc' => 'metrics-vpc.na-south-1.aliyuncs.com'],
['regionId' => 'me-east-1', 'regionName' => 'UAE (Dubai)', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'metrics.me-east-1.aliyuncs.com', 'endpoint' => 'metrics.me-east-1.aliyuncs.com', 'vpc' => 'metrics-vpc.me-east-1.aliyuncs.com'],
['regionId' => 'ap-south-1', 'regionName' => 'India (Mumbai) Closed', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'metrics.ap-south-1.aliyuncs.com', 'endpoint' => 'metrics.ap-south-1.aliyuncs.com', 'vpc' => 'metrics-vpc.ap-south-1.aliyuncs.com'],
['regionId' => 'me-central-1', 'regionName' => 'Saudi Arabia (Riyadh)', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'metrics.me-central-1.aliyuncs.com', 'endpoint' => 'metrics.me-central-1.aliyuncs.com', 'vpc' => 'metrics-vpc.me-central-1.aliyuncs.com'],
['regionId' => 'cn-hangzhou-finance', 'regionName' => 'China East 1 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'metrics.cn-hangzhou-finance.aliyuncs.com', 'endpoint' => 'metrics.cn-hangzhou-finance.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-hangzhou-finance.aliyuncs.com'],
['regionId' => 'cn-shenzhen-finance-1', 'regionName' => 'China South 1 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'metrics.cn-shenzhen-finance-1.aliyuncs.com', 'endpoint' => 'metrics.cn-shenzhen-finance-1.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-shenzhen-finance-1.aliyuncs.com'],
['regionId' => 'cn-beijing-finance-1', 'regionName' => 'China North 2 Finance (Preview)', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'metrics.cn-beijing-finance-1.aliyuncs.com', 'endpoint' => 'metrics.cn-beijing-finance-1.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-beijing-finance-1.aliyuncs.com'],
['regionId' => 'cn-shanghai-finance-1', 'regionName' => 'China East 2 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'metrics.cn-shanghai-finance-1.aliyuncs.com', 'endpoint' => 'metrics.cn-shanghai-finance-1.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-shanghai-finance-1.aliyuncs.com'],
['regionId' => 'cn-wulanchabu-gic-1', 'regionName' => 'China (Ulanqab) GIC', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'metrics.cn-wulanchabu-gic-1.aliyuncs.com', 'endpoint' => 'metrics.cn-wulanchabu-gic-1.aliyuncs.com', 'vpc' => 'cms-vpc.cn-wulanchabu-gic-1.aliyuncs.com'],
['regionId' => 'cn-heyuan-acdr-1', 'regionName' => 'Heyuan ACDR Auto', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'metrics.cn-heyuan-acdr-1.aliyuncs.com', 'endpoint' => 'metrics.cn-heyuan-acdr-1.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-heyuan-acdr-1.aliyuncs.com'],
['regionId' => 'cn-north-2-gov-1', 'regionName' => 'Beijing Government Cloud', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'metrics.cn-north-2-gov-1.aliyuncs.com', 'endpoint' => 'metrics.cn-north-2-gov-1.aliyuncs.com', 'vpc' => 'metrics-vpc.cn-north-2-gov-1.aliyuncs.com'],
],
'errorCodes' => [
['code' => 'AccessDeniedException', 'message' => 'You do not have the authority to operate this rule.', 'http_code' => 401, 'description' => 'ess rules cannot be modified in the cloud monitoring console.'],
['code' => 'AccessForbidden', 'message' => 'No permission, please use Ram for authorization.', 'http_code' => 403, 'description' => 'No permission, please use Ram for authorization.'],
['code' => 'AgentStateError', 'message' => 'Expected agent running state is stopped.', 'http_code' => 412, 'description' => 'Uninstall the plug-in when the status is Stopped.'],
['code' => 'BadRequest', 'message' => 'Bad request.', 'http_code' => 400, 'description' => 'Error Parameter Request'],
['code' => 'ContactNotExists', 'message' => 'ContactName does not exist.', 'http_code' => 404, 'description' => 'The contact name was not found.'],
['code' => 'CSS_CREATE_ORDER_ERROR', 'message' => 'Create order error', 'http_code' => 400, 'description' => 'Failed to create order'],
['code' => 'EmptyProbeList', 'message' => 'The selected probe list is empty.', 'http_code' => 400, 'description' => 'The selected probe list is empty'],
['code' => 'ExceedingQuota', 'message' => 'You have exceeded the task limit.', 'http_code' => 406, 'description' => 'You have exceeded the task limit'],
['code' => 'ExceedingQuota', 'message' => 'Exceeding quota limits.', 'http_code' => 406, 'description' => 'The number of tasks exceeds the limit'],
['code' => 'Forbidden', 'message' => 'You are not authorized to operate the specified resource.', 'http_code' => 403, 'description' => 'No permission, please use RAM to authorize'],
['code' => 'FrequencyLimit', 'message' => 'Frequency too high, please try again later.', 'http_code' => 429, 'description' => 'Frequency too high, please try again later'],
['code' => 'Illegal Task Name', 'message' => 'The task name of the sitemonitor task is illegal.', 'http_code' => 400, 'description' => 'Site monitoring task name is illegal.'],
['code' => 'IllegalAddress', 'message' => 'illegal address.', 'http_code' => 400, 'description' => 'Illegal Address'],
['code' => 'Illgeal Task Name', 'message' => 'The task name for sitemonitor task is illegal.', 'http_code' => 400, 'description' => 'Site monitoring task name is illegal'],
['code' => 'InsecureParams', 'message' => 'The params for site monitor is insecure.', 'http_code' => 400, 'description' => 'There is a security risk to the parameters of the site monitoring task'],
['code' => 'InternalError', 'message' => '%s.', 'http_code' => 500, 'description' => '%s'],
['code' => 'InternalUnknownError', 'message' => 'The request processing has failed due to some unknown error.', 'http_code' => 500, 'description' => 'A service runtime error occurred.'],
['code' => 'InternetServerError', 'message' => 'System internal error.', 'http_code' => 500, 'description' => 'System internal error'],
['code' => 'InvalidAuthorization', 'message' => 'Permission denied', 'http_code' => 403, 'description' => 'Permission denied.'],
['code' => 'InvalidAuthorization', 'message' => 'InvalidAuthorization.', 'http_code' => 403, 'description' => 'You do not have the required permissions.'],
['code' => 'InvalidAuthorization', 'message' => 'Permission denied.', 'http_code' => 403, 'description' => 'You do not have the required permissions.'],
['code' => 'InvalidAuthorizationTokenExpire', 'message' => 'Authentication token expired, please re-authenticate.', 'http_code' => 403, 'description' => 'Authentication token expired, please re-authenticate'],
['code' => 'InvalidClientTokenId', 'message' => 'not allow this operation.', 'http_code' => 403, 'description' => 'No permission'],
['code' => 'InvalidParameter', 'message' => '%s is missing or invalid.', 'http_code' => 400, 'description' => 'The request parameters are invalid or required parameters are missing (such as GroupName, WorkspaceId, GroupId, or region being empty).'],
['code' => 'InvalidParameter', 'message' => 'Invalid parameter.', 'http_code' => 400, 'description' => 'Parameter error'],
['code' => 'InvalidParameterValue', 'message' => 'Illegal parameters.', 'http_code' => 400, 'description' => 'Illegal parameters.'],
['code' => 'InvalidQueryParameter', 'message' => 'Parameter error.', 'http_code' => 400, 'description' => 'Query parameter error'],
['code' => 'InvalidQueryParameter', 'message' => 'Invalid query parameter.', 'http_code' => 400, 'description' => 'Bad query parameters'],
['code' => 'MaxRcaTimesExceed', 'message' => 'The maximum reanalysis limit has been reached.', 'http_code' => 400, 'description' => 'The maximum reanalysis limit has been reached.'],
['code' => 'NameRepeat', 'message' => 'The task name already exists.', 'http_code' => 400, 'description' => 'The task name already exists. Make sure that the task name is not used in protocol-based synthetic tests and synthetic tests for browsers.'],
['code' => 'NotAuthSLR', 'message' => 'You are not authorized role AliyunServiceRoleForCloudMonitor.', 'http_code' => 403, 'description' => 'The service-linked role AliyunServiceRoleForCloudMonitor is required.'],
['code' => 'NotFound', 'message' => 'The specified resource is not found.', 'http_code' => 404, 'description' => 'The corresponding resource was not found.'],
['code' => 'NotFound.EndpointConnector', 'message' => 'endpoint connector not found.', 'http_code' => 404, 'description' => 'endpoint connector does not exist'],
['code' => 'OperatorCityInvalid', 'message' => 'Invalid Isp.', 'http_code' => 400, 'description' => 'Invalid Isp'],
['code' => 'OperatorCityInvalid', 'message' => 'Invalid IspCity for certain probes.', 'http_code' => 400, 'description' => 'The isp or city of certain probes provided is invalid.'],
['code' => 'OperatorCityInvalid', 'message' => 'The synthetic probe info provided is incorrect. The incorrect probe info are as below. %s.', 'http_code' => 400, 'description' => 'The synthetic probe info provided is incorrect.'],
['code' => 'ParameterInvalid', 'message' => 'The parameter is missing or invalid. %s', 'http_code' => 400, 'description' => 'The parameter is invalid.'],
['code' => 'ParameterInvalid', 'message' => 'Parameter invalid.', 'http_code' => 400, 'description' => 'The parameter is invalid.'],
['code' => 'PhoneIsEmptyOrNotVerified', 'message' => 'Contact does not have a phone number configured or not verified.', 'http_code' => 400, 'description' => 'Contact does not have a phone number configured or not verified'],
['code' => 'RateLimit', 'message' => 'Service rate limit.', 'http_code' => 400, 'description' => 'Service load is high, please try again later'],
['code' => 'ResourceExist', 'message' => 'Resource already exist .', 'http_code' => 400, 'description' => 'The resource already exists.'],
['code' => 'ResourceLimit', 'message' => 'Namespace limited.', 'http_code' => 400, 'description' => 'A maximum of 30 indicator warehouses can be created for one account.'],
['code' => 'ResourceNotFound', 'message' => 'The specified resource is not found.', 'http_code' => 404, 'description' => 'The specified resource is not found.'],
['code' => 'ResourceNotFound', 'message' => 'Resource % not found.', 'http_code' => 404, 'description' => '已废弃'],
['code' => 'ResourceNotFound', 'message' => 'The specified resource %s is not found.', 'http_code' => 404, 'description' => 'The specified resource% s does not exist.'],
['code' => 'ResourceOverLimit', 'message' => 'The resource has exceeded the limit. %s', 'http_code' => 429, 'description' => 'The quantity limit has been exceeded.'],
['code' => 'RestrictedUser', 'message' => 'The user has no access to this operation. %s.', 'http_code' => 403, 'description' => 'The user does not have permission for the current action.'],
['code' => 'RmcNotEnabled', 'message' => 'ResourceCenter Service is not enabled.', 'http_code' => 403, 'description' => 'You have not activated Resource Center.'],
['code' => 'StrategyNameConflict', 'message' => 'The specified strategy name exits already.', 'http_code' => 400, 'description' => 'The specified strategy name already exists'],
['code' => 'TaskIdNotExist', 'message' => 'Task does not exist.', 'http_code' => 404, 'description' => 'Task does not exist'],
['code' => 'TaskNotExist', 'message' => 'Task does not exist.', 'http_code' => 400, 'description' => 'Site monitoring task does not exist'],
['code' => 'TaskNotExist', 'message' => 'The specified task does not exist.', 'http_code' => 404, 'description' => 'The specified task does not exist.'],
['code' => 'UnauthorizedTasks', 'message' => 'You are not permitted to operate the specified tasks.', 'http_code' => 403, 'description' => 'You are not permitted to operate the specified tasks.'],
['code' => 'UnsupportedWorkspaceRegion', 'message' => 'Synthetic monitoring is not supported in this workspace region.', 'http_code' => 400, 'description' => 'Synthetic monitoring is not supported in this workspace region.'],
['code' => 'VerifyCodeIsSent', 'message' => 'Verification code sent too often, please try again later.', 'http_code' => 400, 'description' => 'The verification code is sent too often, please try again later.'],
['code' => 'WorkspaceNotExist', 'message' => 'The specified workspace does not exist.', 'http_code' => 400, 'description' => 'The workspace does not exist.'],
['code' => 'InvalidParameter', 'message' => 'The request parameter is invalid or a required parameter is missing.', 'http_code' => 400, 'description' => 'The request parameter is invalid or a required parameter is missing.'],
['code' => 'InvalidMaxResults', 'message' => 'The MaxResults parameter is invalid.', 'http_code' => 400, 'description' => 'The MaxResults parameter is invalid, must be a positive integer within the allowed limit.'],
['code' => 'InvalidParameter.NextToken', 'message' => 'The NextToken is invalid or does not match the request parameters.', 'http_code' => 400, 'description' => 'The NextToken is invalid or does not match the request parameters.'],
['code' => 'InvalidParameter.RegionId', 'message' => 'Unable to determine the region for the observe group.', 'http_code' => 400, 'description' => 'Unable to determine the region: the account has not enabled CloudResource and no central region can be derived.'],
['code' => 'ObserveGroup.AlreadyExists', 'message' => 'An observe group with the same name already exists in the workspace.', 'http_code' => 409, 'description' => 'An observe group with the same name already exists in the workspace.'],
['code' => 'DatabaseError', 'message' => 'A database error occurred while processing the request.', 'http_code' => 500, 'description' => 'A database error occurred. Please retry later or contact the administrator.'],
['code' => 'ObserveGroup.NotFound', 'message' => 'The specified observe group does not exist.', 'http_code' => 404, 'description' => 'The specified observe group does not exist. Please check the ObserveGroupId.'],
['code' => 'InternalError', 'message' => 'An internal error occurred while processing the request.', 'http_code' => 500, 'description' => 'An internal error occurred (e.g. failed to update Diamond config or deliver MetaQ). Please retry later.'],
['code' => 'Workspace.NotFound', 'message' => 'The specified workspace does not exist or you have no permission.', 'http_code' => 404, 'description' => 'The specified workspace does not exist or you have no access.'],
],
'changeSet' => [
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'AddTags'],
],
'createdAt' => '2024-08-28T10:01:37.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorAttribute'],
],
'createdAt' => '2024-08-05T11:10:32.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorAttribute'],
],
'createdAt' => '2024-07-31T06:53:39.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorAttribute'],
],
'createdAt' => '2024-05-16T06:57:35.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorAttribute'],
],
'createdAt' => '2024-05-16T06:24:23.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DeleteCustomMetric'],
],
'createdAt' => '2024-04-23T06:11:47.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'PutResourceMetricRule'],
],
'createdAt' => '2024-04-01T02:36:55.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeDynamicTagRuleList'],
],
'createdAt' => '2024-03-13T08:11:49.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'ApplyMetricRuleTemplate'],
],
'createdAt' => '2024-02-27T07:25:34.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeMetricData'],
],
'createdAt' => '2024-01-23T02:42:44.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'CreateHybridMonitorTask'],
],
'createdAt' => '2023-12-21T08:29:24.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'CreateGroupMetricRules'],
['description' => 'Request parameters changed', 'api' => 'PutGroupMetricRule'],
],
'createdAt' => '2023-12-13T07:03:18.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'DescribeAlertLogCount'],
['description' => 'Request parameters changed', 'api' => 'DescribeAlertLogHistogram'],
['description' => 'Request parameters changed', 'api' => 'DescribeAlertLogList'],
['description' => 'Response parameters changed, Response parameters changed', 'api' => 'DescribeSystemEventAttribute'],
],
'createdAt' => '2023-12-07T03:29:22.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeMonitoringAgentStatuses'],
],
'createdAt' => '2023-11-24T04:02:02.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'CreateHybridMonitorNamespace'],
['description' => 'Response parameters changed', 'api' => 'DescribeHybridMonitorNamespaceList'],
],
'createdAt' => '2023-11-21T10:00:42.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeProductsOfActiveMetricRule'],
],
'createdAt' => '2023-10-25T07:41:42.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'DescribeAlertingMetricRuleResources'],
],
'createdAt' => '2023-10-20T09:21:18.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeMonitorResourceQuotaAttribute'],
],
'createdAt' => '2023-10-07T08:33:54.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DeleteExporterOutput'],
['description' => 'Response parameters changed', 'api' => 'PutExporterOutput'],
],
'createdAt' => '2023-09-21T02:02:14.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'DescribeEventRuleList'],
],
'createdAt' => '2023-09-19T07:38:12.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorAttribute'],
],
'createdAt' => '2023-09-04T08:23:34.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeEventRuleAttribute'],
],
'createdAt' => '2023-08-31T02:53:22.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DeleteExporterRule'],
['description' => 'Response parameters changed', 'api' => 'DescribeExporterOutputList'],
['description' => 'Response parameters changed', 'api' => 'DescribeExporterRuleList'],
['description' => 'Response parameters changed', 'api' => 'PutExporterRule'],
],
'createdAt' => '2023-08-30T08:15:06.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorAttribute'],
['description' => 'Request parameters changed', 'api' => 'DescribeSiteMonitorLog'],
],
'createdAt' => '2023-08-22T07:50:07.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'CreateSiteMonitor'],
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorAttribute'],
['description' => 'Request parameters changed', 'api' => 'ModifySiteMonitor'],
],
'createdAt' => '2023-08-04T03:00:33.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'DescribeAlertLogCount'],
['description' => 'Request parameters changed', 'api' => 'DescribeAlertLogHistogram'],
['description' => 'Request parameters changed', 'api' => 'DescribeAlertLogList'],
],
'createdAt' => '2023-07-27T09:50:34.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed, Response parameters changed', 'api' => 'DescribeMonitoringAgentStatuses'],
],
'createdAt' => '2023-07-19T08:43:59.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'DescribeMetricRuleBlackList'],
],
'createdAt' => '2023-07-11T01:55:30.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'CreateSiteMonitor'],
['description' => 'Error codes changed', 'api' => 'EnableSiteMonitors'],
['description' => 'Error codes changed', 'api' => 'ModifySiteMonitor'],
],
'createdAt' => '2023-06-19T07:12:36.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorAttribute'],
],
'createdAt' => '2023-06-15T04:29:56.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeMonitoringAgentHosts'],
],
'createdAt' => '2023-05-25T09:45:38.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorAttribute'],
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorList'],
],
'createdAt' => '2023-05-22T07:54:33.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed, Response parameters changed', 'api' => 'DescribeMonitoringAgentStatuses'],
],
'createdAt' => '2023-05-04T09:07:03.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'CreateMetricRuleBlackList'],
],
'createdAt' => '2023-04-23T03:10:12.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorAttribute'],
],
'createdAt' => '2023-04-06T11:21:43.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorLog'],
],
'createdAt' => '2023-04-03T11:31:34.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeMetricList'],
],
'createdAt' => '2023-03-24T08:24:53.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeEventRuleAttribute'],
],
'createdAt' => '2023-03-24T08:23:03.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'CreateGroupMonitoringAgentProcess'],
],
'createdAt' => '2023-03-24T08:22:35.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'CreateDynamicTagGroup'],
],
'createdAt' => '2023-03-24T08:22:29.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeMetricData'],
['description' => 'Response parameters changed', 'api' => 'DescribeMetricList'],
],
'createdAt' => '2023-01-10T11:07:35.000Z',
'description' => 'metric-master查询类API新加坡region转新加坡服务',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DeleteExporterRule'],
['description' => 'Response parameters changed', 'api' => 'PutExporterRule'],
],
'createdAt' => '2023-01-10T10:47:11.000Z',
'description' => 'metric-master海外请求转海外服务',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeMetricRuleTemplateAttribute'],
['description' => 'Request parameters changed', 'api' => 'PutResourceMetricRule'],
],
'createdAt' => '2022-12-27T11:48:08.000Z',
'description' => '报警接口字段N私有',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'CreateHybridMonitorNamespace'],
['description' => 'Error codes changed', 'api' => 'CreateHybridMonitorTask'],
['description' => 'Error codes changed', 'api' => 'CreateSiteMonitor'],
['description' => 'Error codes changed', 'api' => 'DeleteSiteMonitors'],
['description' => 'Error codes changed', 'api' => 'DescribeSiteMonitorAttribute'],
['description' => 'Error codes changed', 'api' => 'DescribeSiteMonitorQuota'],
['description' => 'Error codes changed', 'api' => 'InstallMonitoringAgent'],
['description' => 'Error codes changed', 'api' => 'PutMonitorGroupDynamicRule'],
['description' => 'Error codes changed', 'api' => 'UninstallMonitoringAgent'],
],
'createdAt' => '2022-12-27T07:33:46.000Z',
'description' => '更新默认错误码的返回信息',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeMetricRuleTemplateAttribute'],
['description' => 'Request parameters changed', 'api' => 'PutResourceMetricRule'],
],
'createdAt' => '2022-12-26T09:12:32.000Z',
'description' => '报警规则及模板相关API,支持参数N,表示累计了次数后才报警。',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeMetricRuleTemplateAttribute'],
],
'createdAt' => '2022-12-22T02:15:23.000Z',
'description' => '查询报警模板API,增加Labels的查询返回。',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'DescribeMonitoringAgentHosts'],
['description' => 'Request parameters changed', 'api' => 'DescribeMonitoringAgentStatuses'],
],
'createdAt' => '2022-11-29T02:47:37.000Z',
'description' => '增加SysOM探测任务api,并优化主机监控状态的api。',
],
[
'apis' => [
['description' => 'Request parameters changed, Response parameters changed', 'api' => 'DescribeDynamicTagRuleList'],
['description' => 'Response parameters changed', 'api' => 'DescribeMonitorGroups'],
],
'createdAt' => '2022-11-14T08:16:27.000Z',
'description' => '1、从资源组创建的动态分组,查询返回对应资源组的id。2、动态分组Tag规则,增加返回的TagKey。',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeAlertLogList'],
],
'createdAt' => '2022-09-29T06:59:38.000Z',
'description' => '报警日志详情,增加了日志Id字段。',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeAlertingMetricRuleResources'],
],
'createdAt' => '2022-09-01T02:54:22.000Z',
'description' => '正在报警展示原始的报警表达式。',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'DeleteHybridMonitorTask'],
],
'createdAt' => '2022-08-09T02:57:45.000Z',
'description' => '删除企业云监控导入任务的时候,TaskId改为非必填。',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'CreateGroupMonitoringAgentProcess'],
['description' => 'Request parameters changed', 'api' => 'CreateHostAvailability'],
['description' => 'Request parameters changed', 'api' => 'ModifyGroupMonitoringAgentProcess'],
['description' => 'Request parameters changed', 'api' => 'ModifyHostAvailability'],
['description' => 'Error codes changed', 'api' => 'PutResourceMetricRule'],
],
'createdAt' => '2022-08-05T04:06:23.000Z',
'description' => '1、可用性监控、进程监控支持MNS、SLS、FC等触发规则。2、优化报警规则超配额的错误信息。',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'CreateHybridMonitorSLSGroup'],
],
'createdAt' => '2022-08-04T08:56:16.000Z',
'description' => '优化企业云监控创建日志分组的错误提示信息。',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'ModifySiteMonitor'],
],
'createdAt' => '2022-08-03T06:49:25.000Z',
'description' => '增加站点监控断言相关api参数',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'PutResourceMetricRule'],
],
'createdAt' => '2022-07-29T09:42:21.000Z',
'description' => 'PutResourceMetricRule中Resources字段改为非必填,适应Prometheus报警。',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'BatchCreateInstantSiteMonitor'],
],
'createdAt' => '2022-07-22T08:21:08.000Z',
'description' => '优化一次性拨测api',
],
[
'apis' => [
['description' => 'OpenAPI offline', 'api' => 'BatchCreateInstantSiteMonitor'],
],
'createdAt' => '2022-07-21T06:24:36.000Z',
'description' => '增加一次性拨测api,老的拼写错误',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'DescribeHybridMonitorTaskList'],
],
'createdAt' => '2022-07-20T10:30:20.000Z',
'description' => '优化企业云监控处理阿里云数据任务的管控API。',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'PutGroupMetricRule'],
],
'createdAt' => '2022-07-20T09:53:51.000Z',
'description' => '创建分组报警规则的时候Category改为非必填。',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'CreateDynamicTagGroup'],
],
'createdAt' => '2022-07-13T10:10:24.000Z',
'description' => '1、Tag创建应用分组,支持最多3个条件2、可用性监控错误信息,会直接透传。',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'ModifyHybridMonitorTask'],
],
'createdAt' => '2022-07-11T06:45:29.000Z',
'description' => '更新企业云监控任务,TaskName调整为非必填。',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'BatchCreateIntantSiteMonitor'],
['description' => 'Error codes changed', 'api' => 'CreateInstantSiteMonitor'],
['description' => 'Error codes changed', 'api' => 'CreateSiteMonitor'],
],
'createdAt' => '2022-06-22T09:31:05.000Z',
'description' => '优化站点监控Api返回的错误信息。',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeHybridMonitorSLSGroup'],
],
'createdAt' => '2022-06-20T02:43:08.000Z',
'description' => 'DescribeHybridMonitorSLSGroup查询返回的组名称,修改为string类型。',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorAttribute'],
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorList'],
],
'createdAt' => '2022-06-17T07:35:16.000Z',
'description' => '增加是否在任务失败后自动触发对目标IP地址的MTR网络诊断是否在任务失败后自动触发对目标IP的ping网络延时检测',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'CreateHybridMonitorTask'],
['description' => 'Response parameters changed', 'api' => 'DescribeHybridMonitorTaskList'],
['description' => 'Error codes changed', 'api' => 'ModifyHybridMonitorNamespace'],
],
'createdAt' => '2022-06-09T09:39:44.000Z',
'description' => '查询企业云监控任务管控API错误码、返回值优化。',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'DescribeHybridMonitorDataList'],
],
'createdAt' => '2022-05-30T06:46:19.000Z',
'description' => '当参数或返回信息过大的时候,调整错误返回码。',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorList'],
],
'createdAt' => '2022-05-30T06:35:31.000Z',
'description' => '增加返回参数',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'CreateHybridMonitorTask'],
],
'createdAt' => '2022-05-23T04:52:13.000Z',
'description' => '创建企业云监控采集任务,导入其他账号的数据,支持传入多个用户信息',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'CreateGroupMetricRules'],
],
'createdAt' => '2022-05-19T10:19:48.000Z',
'description' => '增加对STS的支持,优化错误码。',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'CreateHybridMonitorTask'],
['description' => 'Request parameters changed', 'api' => 'ModifyHybridMonitorTask'],
],
'createdAt' => '2022-05-06T03:54:52.000Z',
'description' => '增加企业云监控采集任务管控Api。',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeMetricRuleList'],
['description' => 'Request parameters changed', 'api' => 'PutResourceMetricRule'],
],
'createdAt' => '2022-04-25T08:58:01.000Z',
'description' => '报警规则支持PromQL。',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'CreateHybridMonitorNamespace'],
['description' => 'Request parameters changed', 'api' => 'DeleteHybridMonitorNamespace'],
['description' => 'Request parameters changed', 'api' => 'DescribeHybridMonitorNamespaceList'],
['description' => 'Request parameters changed', 'api' => 'ModifyHybridMonitorNamespace'],
],
'createdAt' => '2022-04-24T08:30:40.000Z',
'description' => '增加企业云监控数据源相关API。',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeEventRuleTargetList'],
['description' => 'Request parameters changed', 'api' => 'PutEventRuleTargets'],
],
'createdAt' => '2022-04-22T10:15:21.000Z',
'description' => '报警规则target增加消息服务的target',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'DescribeMonitorGroups'],
],
'createdAt' => '2022-04-22T08:01:23.000Z',
'description' => '1、支持查询ess分组2、创建企业云监控数据归集的时候,支持传入多个账号',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'PutMonitorGroupDynamicRule'],
],
'createdAt' => '2022-04-22T06:18:29.000Z',
'description' => '在异步创建动态分组规则的时候,如果分组没有初始化结束,调整返回的错误信息。',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'PutLogMonitor'],
],
'createdAt' => '2022-04-21T07:37:29.000Z',
'description' => '调整filter数量',
],
[
'apis' => [
['description' => 'OpenAPI offline', 'api' => 'BatchCreateIntantSiteMonitor'],
],
'createdAt' => '2022-04-20T06:16:11.000Z',
'description' => '增加新版本的创建一次性api',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'CreateGroupMetricRules'],
['description' => 'Request parameters changed', 'api' => 'PutGroupMetricRule'],
['description' => 'Request parameters changed', 'api' => 'PutResourceMetricRules'],
],
'createdAt' => '2022-04-20T06:14:16.000Z',
'description' => '报警规则增加Labels。',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'PutResourceMetricRules'],
],
'createdAt' => '2022-04-20T06:13:58.000Z',
'description' => '修改label属性',
],
[
'apis' => [
['description' => 'OpenAPI offline', 'api' => 'BatchCreateOnceSiteMonitor'],
],
'createdAt' => '2022-04-18T03:06:12.000Z',
'description' => '增加一次性拨测api',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'PutLogMonitor'],
],
'createdAt' => '2022-04-11T03:35:36.000Z',
'description' => '增加上报日志监控错误信息映射。',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'PutMonitorGroupDynamicRule'],
],
'createdAt' => '2022-04-01T03:59:02.000Z',
'description' => '创建动态规则增加引导。',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeMetricRuleList'],
['description' => 'Request parameters changed', 'api' => 'PutResourceMetricRule'],
],
'createdAt' => '2022-03-24T05:52:16.000Z',
'description' => '增加了多指标监控',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'CreateHostAvailability'],
['description' => 'Request parameters changed', 'api' => 'DescribeMetricRuleTemplateList'],
],
'createdAt' => '2022-03-22T08:55:37.000Z',
'description' => '1、报警模板增加排序功能2、优化可用性监控的错误码,当达到限制的时候,会返回正确的错误信息。3、增加批量清理分组的api。',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'DescribeEventRuleAttribute'],
],
'createdAt' => '2022-03-21T07:09:30.000Z',
'description' => '增加个通道沉默',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeMetricRuleTargets'],
['description' => 'Request parameters changed', 'api' => 'PutEventRuleTargets'],
['description' => 'Request parameters changed', 'api' => 'PutMetricRuleTargets'],
],
'createdAt' => '2022-03-21T06:46:38.000Z',
'description' => '增加报警规则回调参数。',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'DescribeMetricRuleList'],
['description' => 'Error codes changed', 'api' => 'PutResourceMetricRules'],
],
'createdAt' => '2022-03-21T06:00:07.000Z',
'description' => '增加动态报警相关的api',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'PutMonitorGroupDynamicRule'],
],
'createdAt' => '2022-03-03T05:26:10.000Z',
'description' => '增加检查数量',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorAttribute'],
],
'createdAt' => '2022-02-22T11:34:11.000Z',
'description' => '站点检控详情里头增加isBase64Encode 字段',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'PutEventRule'],
],
'createdAt' => '2022-02-21T06:46:00.000Z',
'description' => '事件目标增加为20个',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeEventRuleList'],
['description' => 'Request parameters changed', 'api' => 'PutEventRule'],
],
'createdAt' => '2022-01-21T08:52:40.000Z',
'description' => '增加事件报警功能的sql过滤',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'DescribeAlertLogList'],
],
'createdAt' => '2022-01-13T07:25:23.000Z',
'description' => '报警历史查询支持RuleId参数。',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'DescribeContactGroupList'],
],
'createdAt' => '2022-01-11T11:57:53.000Z',
'description' => '增加查询不到联系人组的错误码映射。',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeEventRuleList'],
['description' => 'Request parameters changed', 'api' => 'PutEventRule'],
],
'createdAt' => '2022-01-11T11:33:01.000Z',
'description' => '控制台支持资源组权限隔离',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'PutHybridMonitorMetricData'],
],
'createdAt' => '2021-12-30T11:51:43.000Z',
'description' => '调整上报企业云监控数据的API错误提示信息,防止误解。',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'PutHybridMonitorMetricData'],
],
'createdAt' => '2021-12-24T03:58:17.000Z',
'description' => '返回值中增加对格式参数错误指标的提示信息。',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'PutEventRule'],
],
'createdAt' => '2021-12-24T03:36:44.000Z',
'description' => '修复sdk的问题',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'PutHybridMonitorMetricData'],
],
'createdAt' => '2021-12-24T03:29:57.000Z',
'description' => '调整labels的格式为repeatList。',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'PutResourceMetricRule'],
],
'createdAt' => '2021-12-24T03:21:02.000Z',
'description' => '修正生成不了sdk的问题',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'PutHybridMonitorMetricData'],
],
'createdAt' => '2021-12-24T03:09:23.000Z',
'description' => '调整labels的格式,从map改为List的Key-Value。',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeEventRuleTargetList'],
],
'createdAt' => '2021-12-22T08:43:39.000Z',
'description' => '查询targetapi增加新的方式',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'PutEventRuleTargets'],
],
'createdAt' => '2021-12-22T07:45:45.000Z',
'description' => '增加一个target',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeEventRuleList'],
['description' => 'Request parameters changed', 'api' => 'PutEventRule'],
],
'createdAt' => '2021-12-09T10:17:44.000Z',
'description' => '事件增加沉默周期',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'CreateInstantSiteMonitor'],
],
'createdAt' => '2021-12-07T15:36:24.000Z',
'description' => '修复一次性探测探测问题',
],
[
'apis' => [
['description' => 'OpenAPI offline', 'api' => 'DescribeSiteInstantMonitorLog'],
],
'createdAt' => '2021-12-01T09:57:33.000Z',
'description' => '增加了一次性拨测探测日志查询功能。',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorAttribute'],
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorList'],
],
'createdAt' => '2021-11-18T05:37:00.000Z',
'description' => 'dns探测匹配类型, dns_match_rule, 原先和http共享了一个参数,类型不一样。',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'InstallMonitoringAgent'],
],
'createdAt' => '2021-11-18T05:36:49.000Z',
'description' => 'agent安装支持对用户的全量agent进行操作',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'CreateDynamicTagGroup'],
],
'createdAt' => '2021-11-04T06:31:02.000Z',
'description' => '创建tag组express参数为必须参数选项',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeDynamicTagRuleList'],
],
'createdAt' => '2021-11-04T06:05:13.000Z',
'description' => '查询动态tag组增加报警联系人的返回',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'CreateSiteMonitor'],
],
'createdAt' => '2021-11-03T13:42:17.000Z',
'description' => '修改一个不用的单位参数',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeAlertLogList'],
],
'createdAt' => '2021-10-29T08:11:11.000Z',
'description' => '移除了total字段,增加了sendresult',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'PutResourceMetricRule'],
['description' => 'Request parameters changed', 'api' => 'PutResourceMetricRules'],
],
'createdAt' => '2021-10-28T09:57:48.000Z',
'description' => '增加多指标监控和无数据监控参数设置',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'CreateGroupMetricRules'],
['description' => 'Response parameters changed', 'api' => 'DescribeMetricRuleList'],
['description' => 'Request parameters changed', 'api' => 'PutGroupMetricRule'],
],
'createdAt' => '2021-10-28T09:45:49.000Z',
'description' => '增加多指标相关的参数和返回',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorISPCityList'],
['description' => 'Response parameters changed', 'api' => 'DescribeSiteMonitorISPCityList'],
],
'createdAt' => '2021-10-28T09:21:47.000Z',
'description' => '修复问题',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'CreateDynamicTagGroup'],
['description' => 'Response parameters changed', 'api' => 'CreateMonitorGroupByResourceGroupId'],
],
'createdAt' => '2021-10-25T13:10:51.000Z',
'description' => '创建分组,增加返回id',
],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeHybridMonitorNamespaceList'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteHybridMonitorSLSGroup'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableHostAvailability'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutContact'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteCustomMetric'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitoringAgentStatuses'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDynamicTagGroup'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeProjectMeta'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutCustomMetricRule'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyHostAvailability'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMetricRules'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyMonitorGroupInstances'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeAlertLogList'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricMetaList'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteContactGroup'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteHybridMonitorNamespace'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeUnhealthyHostAvailability'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteEventRuleTargets'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateHybridMonitorSLSGroup'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricTop'],
['threshold' => '60', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeEventRuleTargetList'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMonitorGroupDynamicRule'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeCustomEventCount'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMonitorAgentProcess'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeActiveMetricRuleList'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutEventRule'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSiteMonitorISPCityList'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyMetricRuleTemplate'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableMetricRuleBlackList'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutCustomMetric'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeEventRuleAttribute'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricRuleBlackList'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMonitoringAgentProcess'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMetricRuleTemplate'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMetricRuleBlackList'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitoringConfig'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableEventRules'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeHybridMonitorDataList'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutContactGroup'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSystemEventCount'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableMetricRules'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMonitorGroupInstances'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMonitorGroupNotifyPolicy'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitorGroupDynamicRules'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSiteMonitorList'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyMetricRuleBlackList'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMetricRuleResources'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSyntheticProbeList'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyHostInfo'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMonitoringAgentProcess'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitoringAgentConfig'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteGroupMonitoringAgentProcess'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeGroupMonitoringAgentProcess'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeAlertingMetricRuleResources'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSystemEventAttribute'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyHybridMonitorSLSGroup'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSystemEventMetaList'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricRuleTemplateList'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitorGroupNotifyPolicyList'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutResourceMetricRules'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutCustomEventRule'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDynamicTagGroup'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeContactListByContactGroup'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeLogMonitorAttribute'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitorGroupInstances'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMetricRuleTargets'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricRuleTemplateAttribute'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSiteMonitorData'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableSiteMonitors'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSystemEventHistogram'],
['threshold' => '200', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutHybridMonitorMetricData'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeHybridMonitorTaskList'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricRuleList'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMonitorGroup'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutLogMonitor'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeCustomMetricList'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyHybridMonitorNamespace'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutCustomEvent'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateInstantSiteMonitor'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeTagValueList'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateHybridMonitorTask'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableMetricRules'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutMetricRuleTargets'],
['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'Cursor'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricData'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteHostAvailability'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RemoveTags'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'BatchCreateInstantSiteMonitor'],
['threshold' => '1000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'BatchExport'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeCustomEventHistogram'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDynamicTagRuleList'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeContactGroupList'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeAlertLogCount'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeAlertLogHistogram'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyHybridMonitorTask'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSiteMonitorStatistics'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UninstallMonitoringAgent'],
['threshold' => '60', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitorGroups'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeCustomEventAttribute'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMetricRuleTemplate'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeProductResourceTagKeyList'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyMonitorGroup'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutResourceMetricRule'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMetricRuleBlackList'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeContactList'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteEventRules'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableActiveMetricRule'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitoringAgentProcesses'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableSiteMonitors'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutEventRuleTargets'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SendDryRunSystemEvent'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateGroupMonitoringAgentProcess'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitoringAgentHosts'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableEventRules'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeLogMonitorList'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateGroupMetricRules'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSiteMonitorAttribute'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteSiteMonitors'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateSiteMonitor'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableHostAvailability'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutGroupMetricRule'],
['threshold' => '60', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitorGroupCategories'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeProductsOfActiveMetricRule'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisableActiveMetricRule'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeHostAvailabilityList'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeHybridMonitorSLSGroup'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricRuleCount'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutMonitorGroupDynamicRule'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitorResourceQuotaAttribute'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PutMonitoringConfig'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricRuleTargets'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteHybridMonitorTask'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteLogMonitor'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSiteMonitorLog'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMetricRuleResources'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMonitorGroupByResourceGroupId'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifySiteMonitor'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMonitorGroup'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMonitorGroupInstances'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitoringAgentAccessKey'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'InstallMonitoringAgent'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateHybridMonitorNamespace'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeTagKeyList'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ApplyMetricRuleTemplate'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteContact'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeEventRuleList'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateHostAvailability'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricList'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddTags'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeSiteMonitorQuota'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyGroupMonitoringAgentProcess'],
['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMonitorGroupNotifyPolicy'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMonitorGroupInstanceAttribute'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeMetricLast'],
],
'product' => ['code' => 'cms', 'title' => 'Cms'],
],
'ram' => [
'productCode' => 'CloudMonitorService',
'productName' => 'Cloud Monitor',
'ramCodes' => ['cms', 'log', 'arms'],
'ramLevel' => 'SERVICE',
'ramConditions' => [],
'ramActions' => [],
'resourceTypes' => [],
],
];