public final class DefaultAsyncClient extends Object implements AsyncClient
Main client.
| 限定符和类型 | 字段和说明 |
|---|---|
protected Map<String,String> |
endpointMap |
protected String |
endpointRule |
protected darabonba.core.TeaAsyncHandler |
handler |
protected String |
product |
protected darabonba.core.TeaRequest |
REQUEST |
protected String |
version |
| 限定符 | 构造器和说明 |
|---|---|
protected |
DefaultAsyncClient(darabonba.core.client.ClientConfiguration configuration) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilder, createprotected final String product
protected final String version
protected final String endpointRule
protected final darabonba.core.TeaRequest REQUEST
protected final darabonba.core.TeaAsyncHandler handler
protected DefaultAsyncClient(darabonba.core.client.ClientConfiguration configuration)
public void close()
close 在接口中 com.aliyun.core.utils.SdkAutoCloseableclose 在接口中 AutoCloseablepublic CompletableFuture<AddTagsResponse> addTags(AddTagsRequest request)
This topic provides an example on how to add a tag to an application group whose ID is 7301****. In this example, the key of the tag is key1 and the value of the tag is value1.
addTags 在接口中 AsyncClientrequest - the request parameters of AddTags AddTagsRequestpublic CompletableFuture<ApplyMetricRuleTemplateResponse> applyMetricRuleTemplate(ApplyMetricRuleTemplateRequest request)
In this example, the 700**** alert template is applied to the 123456 application group. For the generated alert rule, the ID is applyTemplate8ab74c6b-9f27-47ab-8841-de01dc08****, and the name is test123.
applyMetricRuleTemplate 在接口中 AsyncClientrequest - the request parameters of ApplyMetricRuleTemplate ApplyMetricRuleTemplateRequestpublic CompletableFuture<BatchCreateInstantSiteMonitorResponse> batchCreateInstantSiteMonitor(BatchCreateInstantSiteMonitorRequest request)
This topic provides an example on how to create a site monitoring task named HangZhou_ECS1. The URL that is monitored by the task is https://www.aliyun.com and the type of the task is HTTP. The returned result shows that the site monitoring task is created. The name of the site monitoring task is HangZhou_ECS1 and the task ID is 679fbe4f-b80b-4706-91b2-5427b43e****.
batchCreateInstantSiteMonitor 在接口中 AsyncClientrequest - the request parameters of BatchCreateInstantSiteMonitor BatchCreateInstantSiteMonitorRequestpublic CompletableFuture<BatchExportResponse> batchExport(BatchExportRequest request)
The Cursor information is returned by calling the Cursor operation.
This topic provides an example on how to export the monitoring data of the cpu_idle metric for Elastic Compute Service (ECS). The namespace of ECS is acs_ecs_dashboard. The Cursor information is specified. A maximum of 1,000 data entries can be returned in each response.
batchExport 在接口中 AsyncClientrequest - the request parameters of BatchExport BatchExportRequestpublic CompletableFuture<CreateDynamicTagGroupResponse> createDynamicTagGroup(CreateDynamicTagGroupRequest request)
This operation is available for Elastic Compute Service (ECS), ApsaraDB RDS, and Server Load Balancer (SLB).
This topic provides an example to show how to create an application group for resources whose tag key is ecs_instance. In this example, the alert contact group of the application group is ECS_Group.
createDynamicTagGroup 在接口中 AsyncClientrequest - the request parameters of CreateDynamicTagGroup CreateDynamicTagGroupRequestpublic CompletableFuture<CreateGroupMetricRulesResponse> createGroupMetricRules(CreateGroupMetricRulesRequest request)
This topic provides an example to show how to create an alert rule for the cpu_total metric of Elastic Compute Service (ECS) in the 123456 application group. The ID of the alert rule is 456789. The name of the alert rule is ECS_Rule1. The alert level is Critical. The statistical method is Average. The comparison operator is GreaterThanOrEqualToThreshold. The alert threshold is 90. The number of alert retries is 3. The response shows that the alert rule named ECS_Rule1 is created.
createGroupMetricRules 在接口中 AsyncClientrequest - the request parameters of CreateGroupMetricRules CreateGroupMetricRulesRequestpublic CompletableFuture<CreateGroupMonitoringAgentProcessResponse> createGroupMonitoringAgentProcess(CreateGroupMonitoringAgentProcessRequest request)
createGroupMonitoringAgentProcess 在接口中 AsyncClientrequest - the request parameters of CreateGroupMonitoringAgentProcess CreateGroupMonitoringAgentProcessRequestpublic CompletableFuture<CreateHostAvailabilityResponse> createHostAvailability(CreateHostAvailabilityRequest request)
This topic provides an example on how to create an availability monitoring task named task1 in an application group named 123456. The TaskType parameter of the task is set to HTTP. After you start the task, the system sends alerts by using the specified email address and DingTalk chatbot.
createHostAvailability 在接口中 AsyncClientrequest - the request parameters of CreateHostAvailability CreateHostAvailabilityRequestpublic CompletableFuture<CreateHybridMonitorNamespaceResponse> createHybridMonitorNamespace(CreateHybridMonitorNamespaceRequest request)
Hybrid Cloud Monitoring is activated. For more information, see Activate Hybrid Cloud Monitoring.
This topic provides an example on how to create a namespace named aliyun. In this example, the data retention period of the namespace is set to cms.s1.3xlarge. The returned result indicates that the namespace is created.
createHybridMonitorNamespace 在接口中 AsyncClientrequest - the request parameters of CreateHybridMonitorNamespace CreateHybridMonitorNamespaceRequestpublic CompletableFuture<CreateHybridMonitorSLSGroupResponse> createHybridMonitorSLSGroup(CreateHybridMonitorSLSGroupRequest request)
Simple Log Service is activated. A project and a Logstore are created in Simple Log Service. For more information, see Getting Started.
This topic provides an example on how to create a Logstore group named Logstore_test. The region ID is cn-hangzhou. The project is aliyun-project. The Logstore is Logstore-ECS. The response shows that the Logstore group is created.
createHybridMonitorSLSGroup 在接口中 AsyncClientrequest - the request parameters of CreateHybridMonitorSLSGroup CreateHybridMonitorSLSGroupRequestpublic CompletableFuture<CreateHybridMonitorTaskResponse> createHybridMonitorTask(CreateHybridMonitorTaskRequest request)
This topic provides an example on how to create a metric import task named aliyun_task for Elastic Compute Service (ECS). The task imports the cpu_total metric to the aliyun namespace. The response shows that the metric import task is created.
createHybridMonitorTask 在接口中 AsyncClientrequest - the request parameters of CreateHybridMonitorTask CreateHybridMonitorTaskRequestpublic CompletableFuture<CreateInstantSiteMonitorResponse> createInstantSiteMonitor(CreateInstantSiteMonitorRequest request)
You can create an instant test task only by using the Alibaba Cloud account that you used to enable Network Analysis and Monitoring.
This topic provides an example to show how to create an instant test task. The name of the task is task1. The tested address is http://www.aliyun.com. The test type is HTTP. The number of detection points is 1.
createInstantSiteMonitor 在接口中 AsyncClientrequest - the request parameters of CreateInstantSiteMonitor CreateInstantSiteMonitorRequestpublic CompletableFuture<CreateMetricRuleBlackListResponse> createMetricRuleBlackList(CreateMetricRuleBlackListRequest request)
createMetricRuleBlackList 在接口中 AsyncClientrequest - the request parameters of CreateMetricRuleBlackList CreateMetricRuleBlackListRequestpublic CompletableFuture<CreateMetricRuleResourcesResponse> createMetricRuleResources(CreateMetricRuleResourcesRequest request)
createMetricRuleResources 在接口中 AsyncClientrequest - the request parameters of CreateMetricRuleResources CreateMetricRuleResourcesRequestpublic CompletableFuture<CreateMetricRuleTemplateResponse> createMetricRuleTemplate(CreateMetricRuleTemplateRequest request)
createMetricRuleTemplate 在接口中 AsyncClientrequest - the request parameters of CreateMetricRuleTemplate CreateMetricRuleTemplateRequestpublic CompletableFuture<CreateMonitorAgentProcessResponse> createMonitorAgentProcess(CreateMonitorAgentProcessRequest request)
createMonitorAgentProcess 在接口中 AsyncClientrequest - the request parameters of CreateMonitorAgentProcess CreateMonitorAgentProcessRequestpublic CompletableFuture<CreateMonitorGroupResponse> createMonitorGroup(CreateMonitorGroupRequest request)
In this example, an application group named ECS_Group is created.
createMonitorGroup 在接口中 AsyncClientrequest - the request parameters of CreateMonitorGroup CreateMonitorGroupRequestpublic CompletableFuture<CreateMonitorGroupByResourceGroupIdResponse> createMonitorGroupByResourceGroupId(CreateMonitorGroupByResourceGroupIdRequest request)
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.
createMonitorGroupByResourceGroupId 在接口中 AsyncClientrequest - the request parameters of CreateMonitorGroupByResourceGroupId CreateMonitorGroupByResourceGroupIdRequestpublic CompletableFuture<CreateMonitorGroupInstancesResponse> createMonitorGroupInstances(CreateMonitorGroupInstancesRequest request)
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.
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.
createMonitorGroupInstances 在接口中 AsyncClientrequest - the request parameters of CreateMonitorGroupInstances CreateMonitorGroupInstancesRequestpublic CompletableFuture<CreateMonitorGroupNotifyPolicyResponse> createMonitorGroupNotifyPolicy(CreateMonitorGroupNotifyPolicyRequest request)
If the policy is valid, no alert notifications are sent for the application group.
This topic describes how to create a PauseNotify policy to pause alert notifications for the 7301**** application group. The StartTime parameter is set to 1622949300000 and the EndTime parameter is set to 1623208500000. This indicates that the policy is valid from 2021-06-06 11:15:00 UTC+8 to 2021-06-09 11:15:00 UTC+8.
createMonitorGroupNotifyPolicy 在接口中 AsyncClientrequest - the request parameters of CreateMonitorGroupNotifyPolicy CreateMonitorGroupNotifyPolicyRequestpublic CompletableFuture<CreateMonitoringAgentProcessResponse> createMonitoringAgentProcess(CreateMonitoringAgentProcessRequest request)
createMonitoringAgentProcess 在接口中 AsyncClientrequest - the request parameters of CreateMonitoringAgentProcess CreateMonitoringAgentProcessRequestpublic CompletableFuture<CreateSiteMonitorResponse> createSiteMonitor(CreateSiteMonitorRequest request)
This topic provides an example on how to create a site monitoring task named HanZhou_ECS1. The URL that is monitored by the task is https://www.aliyun.com and the type of the task is HTTPS.
createSiteMonitor 在接口中 AsyncClientrequest - the request parameters of CreateSiteMonitor CreateSiteMonitorRequestpublic CompletableFuture<CursorResponse> cursor(CursorRequest request)
Hybrid Cloud Monitoring is activated. For more information, see Activate Hybrid Cloud Monitoring.
You can call this operation to obtain the Cursor information and then call the BatchExport operation to export the monitoring data.
This topic provides an example on how to define the monitoring data of a specified metric for a specified cloud service. In this example, the namespace of the cloud service is set to acs_ecs_dashboard, the metric is set to cpu_idle, the start time is set to 1641627000000, and the end time is set to 1641645000000. The number of idle CPU cores on your Elastic Compute Service (ECS) instances is measured every 60 seconds from 15:30:00, January 8, 2022 to 20:30:00, January 8, 2022. The Cursor information is returned.
cursor 在接口中 AsyncClientrequest - the request parameters of Cursor CursorRequestpublic CompletableFuture<DeleteContactResponse> deleteContact(DeleteContactRequest request)
deleteContact 在接口中 AsyncClientrequest - the request parameters of DeleteContact DeleteContactRequestpublic CompletableFuture<DeleteContactGroupResponse> deleteContactGroup(DeleteContactGroupRequest request)
deleteContactGroup 在接口中 AsyncClientrequest - the request parameters of DeleteContactGroup DeleteContactGroupRequestpublic CompletableFuture<DeleteCustomMetricResponse> deleteCustomMetric(DeleteCustomMetricRequest request)
deleteCustomMetric 在接口中 AsyncClientrequest - the request parameters of DeleteCustomMetric DeleteCustomMetricRequestpublic CompletableFuture<DeleteDynamicTagGroupResponse> deleteDynamicTagGroup(DeleteDynamicTagGroupRequest request)
deleteDynamicTagGroup 在接口中 AsyncClientrequest - the request parameters of DeleteDynamicTagGroup DeleteDynamicTagGroupRequestpublic CompletableFuture<DeleteEventRuleTargetsResponse> deleteEventRuleTargets(DeleteEventRuleTargetsRequest request)
deleteEventRuleTargets 在接口中 AsyncClientrequest - the request parameters of DeleteEventRuleTargets DeleteEventRuleTargetsRequestpublic CompletableFuture<DeleteEventRulesResponse> deleteEventRules(DeleteEventRulesRequest request)
deleteEventRules 在接口中 AsyncClientrequest - the request parameters of DeleteEventRules DeleteEventRulesRequestpublic CompletableFuture<DeleteExporterOutputResponse> deleteExporterOutput(DeleteExporterOutputRequest request)
deleteExporterOutput 在接口中 AsyncClientrequest - the request parameters of DeleteExporterOutput DeleteExporterOutputRequestpublic CompletableFuture<DeleteExporterRuleResponse> deleteExporterRule(DeleteExporterRuleRequest request)
deleteExporterRule 在接口中 AsyncClientrequest - the request parameters of DeleteExporterRule DeleteExporterRuleRequestpublic CompletableFuture<DeleteGroupMonitoringAgentProcessResponse> deleteGroupMonitoringAgentProcess(DeleteGroupMonitoringAgentProcessRequest request)
deleteGroupMonitoringAgentProcess 在接口中 AsyncClientrequest - the request parameters of DeleteGroupMonitoringAgentProcess DeleteGroupMonitoringAgentProcessRequestpublic CompletableFuture<DeleteHostAvailabilityResponse> deleteHostAvailability(DeleteHostAvailabilityRequest request)
deleteHostAvailability 在接口中 AsyncClientrequest - the request parameters of DeleteHostAvailability DeleteHostAvailabilityRequestpublic CompletableFuture<DeleteHybridMonitorNamespaceResponse> deleteHybridMonitorNamespace(DeleteHybridMonitorNamespaceRequest request)
If a metric import task is created for metrics in a namespace, you cannot delete the namespace unless you delete the task first. This topic provides an example on how to delete a namespace named
aliyun. The response shows that the namespace is deleted.
deleteHybridMonitorNamespace 在接口中 AsyncClientrequest - the request parameters of DeleteHybridMonitorNamespace DeleteHybridMonitorNamespaceRequestpublic CompletableFuture<DeleteHybridMonitorSLSGroupResponse> deleteHybridMonitorSLSGroup(DeleteHybridMonitorSLSGroupRequest request)
This topic provides an example on how to delete a Logstore group named Logstore_test. The response shows that the Logstore group is deleted.
deleteHybridMonitorSLSGroup 在接口中 AsyncClientrequest - the request parameters of DeleteHybridMonitorSLSGroup DeleteHybridMonitorSLSGroupRequestpublic CompletableFuture<DeleteHybridMonitorTaskResponse> deleteHybridMonitorTask(DeleteHybridMonitorTaskRequest request)
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.
deleteHybridMonitorTask 在接口中 AsyncClientrequest - the request parameters of DeleteHybridMonitorTask DeleteHybridMonitorTaskRequestpublic CompletableFuture<DeleteLogMonitorResponse> deleteLogMonitor(DeleteLogMonitorRequest request)
deleteLogMonitor 在接口中 AsyncClientrequest - the request parameters of DeleteLogMonitor DeleteLogMonitorRequestpublic CompletableFuture<DeleteMetricRuleBlackListResponse> deleteMetricRuleBlackList(DeleteMetricRuleBlackListRequest request)
deleteMetricRuleBlackList 在接口中 AsyncClientrequest - the request parameters of DeleteMetricRuleBlackList DeleteMetricRuleBlackListRequestpublic CompletableFuture<DeleteMetricRuleResourcesResponse> deleteMetricRuleResources(DeleteMetricRuleResourcesRequest request)
deleteMetricRuleResources 在接口中 AsyncClientrequest - the request parameters of DeleteMetricRuleResources DeleteMetricRuleResourcesRequestpublic CompletableFuture<DeleteMetricRuleTargetsResponse> deleteMetricRuleTargets(DeleteMetricRuleTargetsRequest request)
deleteMetricRuleTargets 在接口中 AsyncClientrequest - the request parameters of DeleteMetricRuleTargets DeleteMetricRuleTargetsRequestpublic CompletableFuture<DeleteMetricRuleTemplateResponse> deleteMetricRuleTemplate(DeleteMetricRuleTemplateRequest request)
deleteMetricRuleTemplate 在接口中 AsyncClientrequest - the request parameters of DeleteMetricRuleTemplate DeleteMetricRuleTemplateRequestpublic CompletableFuture<DeleteMetricRulesResponse> deleteMetricRules(DeleteMetricRulesRequest request)
deleteMetricRules 在接口中 AsyncClientrequest - the request parameters of DeleteMetricRules DeleteMetricRulesRequestpublic CompletableFuture<DeleteMonitorGroupResponse> deleteMonitorGroup(DeleteMonitorGroupRequest request)
deleteMonitorGroup 在接口中 AsyncClientrequest - the request parameters of DeleteMonitorGroup DeleteMonitorGroupRequestpublic CompletableFuture<DeleteMonitorGroupDynamicRuleResponse> deleteMonitorGroupDynamicRule(DeleteMonitorGroupDynamicRuleRequest request)
deleteMonitorGroupDynamicRule 在接口中 AsyncClientrequest - the request parameters of DeleteMonitorGroupDynamicRule DeleteMonitorGroupDynamicRuleRequestpublic CompletableFuture<DeleteMonitorGroupInstancesResponse> deleteMonitorGroupInstances(DeleteMonitorGroupInstancesRequest request)
deleteMonitorGroupInstances 在接口中 AsyncClientrequest - the request parameters of DeleteMonitorGroupInstances DeleteMonitorGroupInstancesRequestpublic CompletableFuture<DeleteMonitorGroupNotifyPolicyResponse> deleteMonitorGroupNotifyPolicy(DeleteMonitorGroupNotifyPolicyRequest request)
deleteMonitorGroupNotifyPolicy 在接口中 AsyncClientrequest - the request parameters of DeleteMonitorGroupNotifyPolicy DeleteMonitorGroupNotifyPolicyRequestpublic CompletableFuture<DeleteMonitoringAgentProcessResponse> deleteMonitoringAgentProcess(DeleteMonitoringAgentProcessRequest request)
deleteMonitoringAgentProcess 在接口中 AsyncClientrequest - the request parameters of DeleteMonitoringAgentProcess DeleteMonitoringAgentProcessRequestpublic CompletableFuture<DeleteSiteMonitorsResponse> deleteSiteMonitors(DeleteSiteMonitorsRequest request)
deleteSiteMonitors 在接口中 AsyncClientrequest - the request parameters of DeleteSiteMonitors DeleteSiteMonitorsRequestpublic CompletableFuture<DescribeActiveMetricRuleListResponse> describeActiveMetricRuleList(DescribeActiveMetricRuleListRequest request)
describeActiveMetricRuleList 在接口中 AsyncClientrequest - the request parameters of DescribeActiveMetricRuleList DescribeActiveMetricRuleListRequest@Deprecated public CompletableFuture<DescribeAlertHistoryListResponse> describeAlertHistoryList(DescribeAlertHistoryListRequest request)
describeAlertHistoryList 在接口中 AsyncClientrequest - the request parameters of DescribeAlertHistoryList DescribeAlertHistoryListRequestpublic CompletableFuture<DescribeAlertLogCountResponse> describeAlertLogCount(DescribeAlertLogCountRequest request)
Queries the statistics of alert logs.
This topic provides an example on how to query the statistics of alert logs for Elastic Compute Service (ECS) based on the product dimension.
describeAlertLogCount 在接口中 AsyncClientrequest - the request parameters of DescribeAlertLogCount DescribeAlertLogCountRequestpublic CompletableFuture<DescribeAlertLogHistogramResponse> describeAlertLogHistogram(DescribeAlertLogHistogramRequest request)
This topic provides an example on how to query the number of alert logs for Elastic Compute Service (ECS) based on the product dimension.
describeAlertLogHistogram 在接口中 AsyncClientrequest - the request parameters of DescribeAlertLogHistogram DescribeAlertLogHistogramRequestpublic CompletableFuture<DescribeAlertLogListResponse> describeAlertLogList(DescribeAlertLogListRequest request)
You can call the operation to query only the alert logs within the last year.
This topic provides an example to show how to query the alert logs of Elastic Compute Service (ECS) based on the product dimension.
describeAlertLogList 在接口中 AsyncClientrequest - the request parameters of DescribeAlertLogList DescribeAlertLogListRequestpublic CompletableFuture<DescribeAlertingMetricRuleResourcesResponse> describeAlertingMetricRuleResources(DescribeAlertingMetricRuleResourcesRequest request)
describeAlertingMetricRuleResources 在接口中 AsyncClientrequest - the request parameters of DescribeAlertingMetricRuleResources DescribeAlertingMetricRuleResourcesRequestpublic CompletableFuture<DescribeContactGroupListResponse> describeContactGroupList(DescribeContactGroupListRequest request)
describeContactGroupList 在接口中 AsyncClientrequest - the request parameters of DescribeContactGroupList DescribeContactGroupListRequestpublic CompletableFuture<DescribeContactListResponse> describeContactList(DescribeContactListRequest request)
describeContactList 在接口中 AsyncClientrequest - the request parameters of DescribeContactList DescribeContactListRequestpublic CompletableFuture<DescribeContactListByContactGroupResponse> describeContactListByContactGroup(DescribeContactListByContactGroupRequest request)
describeContactListByContactGroup 在接口中 AsyncClientrequest - the request parameters of DescribeContactListByContactGroup DescribeContactListByContactGroupRequestpublic CompletableFuture<DescribeCustomEventAttributeResponse> describeCustomEventAttribute(DescribeCustomEventAttributeRequest request)
describeCustomEventAttribute 在接口中 AsyncClientrequest - the request parameters of DescribeCustomEventAttribute DescribeCustomEventAttributeRequestpublic CompletableFuture<DescribeCustomEventCountResponse> describeCustomEventCount(DescribeCustomEventCountRequest request)
This operation queries the number of times that a custom event occurred for each service.
describeCustomEventCount 在接口中 AsyncClientrequest - the request parameters of DescribeCustomEventCount DescribeCustomEventCountRequestpublic CompletableFuture<DescribeCustomEventHistogramResponse> describeCustomEventHistogram(DescribeCustomEventHistogramRequest request)
describeCustomEventHistogram 在接口中 AsyncClientrequest - the request parameters of DescribeCustomEventHistogram DescribeCustomEventHistogramRequestpublic CompletableFuture<DescribeCustomMetricListResponse> describeCustomMetricList(DescribeCustomMetricListRequest request)
You can call the DescribeMetricList operation to query the metrics of cloud services. For more information, see DescribeMetricList.
describeCustomMetricList 在接口中 AsyncClientrequest - the request parameters of DescribeCustomMetricList DescribeCustomMetricListRequestpublic CompletableFuture<DescribeDynamicTagRuleListResponse> describeDynamicTagRuleList(DescribeDynamicTagRuleListRequest request)
This topic provides an example to show how to query tag rules that are related to tagkey1. The sample responses indicate that two tag rules are found. The rule IDs are 1536df65-a719-429d-8813-73cc40d7**** and 56e8cebb-b3d7-4a91-9880-78a8c84f****.
describeDynamicTagRuleList 在接口中 AsyncClientrequest - the request parameters of DescribeDynamicTagRuleList DescribeDynamicTagRuleListRequestpublic CompletableFuture<DescribeEventRuleAttributeResponse> describeEventRuleAttribute(DescribeEventRuleAttributeRequest request)
This topic provides an example to show how to query the details of an event-triggered alert rule named testRule.
describeEventRuleAttribute 在接口中 AsyncClientrequest - the request parameters of DescribeEventRuleAttribute DescribeEventRuleAttributeRequestpublic CompletableFuture<DescribeEventRuleListResponse> describeEventRuleList(DescribeEventRuleListRequest request)
describeEventRuleList 在接口中 AsyncClientrequest - the request parameters of DescribeEventRuleList DescribeEventRuleListRequestpublic CompletableFuture<DescribeEventRuleTargetListResponse> describeEventRuleTargetList(DescribeEventRuleTargetListRequest request)
This topic provides an example to show how to query the details of an event-triggered alert rule named testRule.
describeEventRuleTargetList 在接口中 AsyncClientrequest - the request parameters of DescribeEventRuleTargetList DescribeEventRuleTargetListRequestpublic CompletableFuture<DescribeExporterOutputListResponse> describeExporterOutputList(DescribeExporterOutputListRequest request)
describeExporterOutputList 在接口中 AsyncClientrequest - the request parameters of DescribeExporterOutputList DescribeExporterOutputListRequestpublic CompletableFuture<DescribeExporterRuleListResponse> describeExporterRuleList(DescribeExporterRuleListRequest request)
describeExporterRuleList 在接口中 AsyncClientrequest - the request parameters of DescribeExporterRuleList DescribeExporterRuleListRequestpublic CompletableFuture<DescribeGroupMonitoringAgentProcessResponse> describeGroupMonitoringAgentProcess(DescribeGroupMonitoringAgentProcessRequest request)
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.
describeGroupMonitoringAgentProcess 在接口中 AsyncClientrequest - the request parameters of DescribeGroupMonitoringAgentProcess DescribeGroupMonitoringAgentProcessRequestpublic CompletableFuture<DescribeHostAvailabilityListResponse> describeHostAvailabilityList(DescribeHostAvailabilityListRequest request)
This topic provides an example to show how to query all the availability monitoring tasks of your Alibaba Cloud account. The sample responses indicate that the account has one availability monitoring task named ecs_instance.
describeHostAvailabilityList 在接口中 AsyncClientrequest - the request parameters of DescribeHostAvailabilityList DescribeHostAvailabilityListRequestpublic CompletableFuture<DescribeHybridMonitorDataListResponse> describeHybridMonitorDataList(DescribeHybridMonitorDataListRequest request)
Hybrid Cloud Monitoring is activated. For more information, see Activate Hybrid Cloud Monitoring.
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.
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).
describeHybridMonitorDataList 在接口中 AsyncClientrequest - the request parameters of DescribeHybridMonitorDataList DescribeHybridMonitorDataListRequestpublic CompletableFuture<DescribeHybridMonitorNamespaceListResponse> describeHybridMonitorNamespaceList(DescribeHybridMonitorNamespaceListRequest request)
In this example, all namespaces within the current account are queried. The response shows that the current account has only one namespace named aliyun-test.
describeHybridMonitorNamespaceList 在接口中 AsyncClientrequest - the request parameters of DescribeHybridMonitorNamespaceList DescribeHybridMonitorNamespaceListRequestpublic CompletableFuture<DescribeHybridMonitorSLSGroupResponse> describeHybridMonitorSLSGroup(DescribeHybridMonitorSLSGroupRequest request)
In this example, all Logstore groups within the current account are queried. The response shows that the current account has two Logstore groups: Logstore_test and Logstore_aliyun.
describeHybridMonitorSLSGroup 在接口中 AsyncClientrequest - the request parameters of DescribeHybridMonitorSLSGroup DescribeHybridMonitorSLSGroupRequestpublic CompletableFuture<DescribeHybridMonitorTaskListResponse> describeHybridMonitorTaskList(DescribeHybridMonitorTaskListRequest request)
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.
describeHybridMonitorTaskList 在接口中 AsyncClientrequest - the request parameters of DescribeHybridMonitorTaskList DescribeHybridMonitorTaskListRequestpublic CompletableFuture<DescribeLogMonitorAttributeResponse> describeLogMonitorAttribute(DescribeLogMonitorAttributeRequest request)
describeLogMonitorAttribute 在接口中 AsyncClientrequest - the request parameters of DescribeLogMonitorAttribute DescribeLogMonitorAttributeRequestpublic CompletableFuture<DescribeLogMonitorListResponse> describeLogMonitorList(DescribeLogMonitorListRequest request)
describeLogMonitorList 在接口中 AsyncClientrequest - the request parameters of DescribeLogMonitorList DescribeLogMonitorListRequestpublic CompletableFuture<DescribeMetricDataResponse> describeMetricData(DescribeMetricDataRequest request)
Different from DescribeMetricList, the DescribeMetricData operation provides statistical features. You can set the Dimension parameter to
{"instanceId": "i-abcdefgh12****"}to aggregate all data of your Alibaba Cloud account. This topic provides an example on how to query the monitoring data of thecpu_idlemetric for Elastic Compute Service (ECS). The namespace of ECS isacs_ecs_dashboard.
describeMetricData 在接口中 AsyncClientrequest - the request parameters of DescribeMetricData DescribeMetricDataRequestpublic CompletableFuture<DescribeMetricLastResponse> describeMetricLast(DescribeMetricLastRequest request)
If
Throttling.UserorRequest was denied due to user flow controlis returned when you call an API operation, the API operation is throttled. For more information about how to handle the issue, see How do I handle the throttling of a query API?
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:
Period parameter is less than 60 seconds.Period parameter is 60 seconds.Period parameter is greater than or equal to 300 seconds.This topic provides an example on how to query the latest monitoring data of the CPUUtilization metric for Elastic Compute Service (ECS). The namespace of ECS is acs_ecs_dashboard. The returned result indicates that the monitoring data for the instance i-abcdefgh12**** of the account 123456789876**** is queried at an interval of 60 seconds. The maximum, minimum, and average values of the metric are 100, 93.1, and 99.52.
describeMetricLast 在接口中 AsyncClientrequest - the request parameters of DescribeMetricLast DescribeMetricLastRequestpublic CompletableFuture<DescribeMetricListResponse> describeMetricList(DescribeMetricListRequest request)
Each API operation can be called up to 50 times per second. An Alibaba Cloud account and the RAM users within the account share the quota.
This topic provides an example to show how to query the monitoring data of the
cpu_idlemetric for Elastic Compute Service (ECS). The namespace of ECS isacs_ecs_dashboard. The returned result indicates that the monitoring data for the instancei-abcdefgh12****of the account120886317861****is queried at an interval of 60 seconds. The maximum, minimum, and average values of the metric are 100, 93.1, and 99.52.
describeMetricList 在接口中 AsyncClientrequest - the request parameters of DescribeMetricList DescribeMetricListRequestpublic CompletableFuture<DescribeMetricMetaListResponse> describeMetricMetaList(DescribeMetricMetaListRequest request)
This operation is used together with DescribeMetricList and DescribeMetricLast. For more information, see DescribeMetricList and DescribeMetricLast.
describeMetricMetaList 在接口中 AsyncClientrequest - the request parameters of DescribeMetricMetaList DescribeMetricMetaListRequestpublic CompletableFuture<DescribeMetricRuleBlackListResponse> describeMetricRuleBlackList(DescribeMetricRuleBlackListRequest request)
describeMetricRuleBlackList 在接口中 AsyncClientrequest - the request parameters of DescribeMetricRuleBlackList DescribeMetricRuleBlackListRequestpublic CompletableFuture<DescribeMetricRuleCountResponse> describeMetricRuleCount(DescribeMetricRuleCountRequest request)
describeMetricRuleCount 在接口中 AsyncClientrequest - the request parameters of DescribeMetricRuleCount DescribeMetricRuleCountRequestpublic CompletableFuture<DescribeMetricRuleListResponse> describeMetricRuleList(DescribeMetricRuleListRequest request)
This topic provides an example on how to query all alert rules within your Alibaba Cloud account. The returned result shows that only one alert rule is found. The name of the alert rule is Rule_01 and the ID is applyTemplate344cfd42-0f32-4fd6-805a-88d7908a****.
describeMetricRuleList 在接口中 AsyncClientrequest - the request parameters of DescribeMetricRuleList DescribeMetricRuleListRequestpublic CompletableFuture<DescribeMetricRuleTargetsResponse> describeMetricRuleTargets(DescribeMetricRuleTargetsRequest request)
This operation supports only Message Service (MNS) resources.
This topic provides an example on how to query the resources that are associated with an alert rule whose ID is
ae06917_75a8c43178ab66****.
describeMetricRuleTargets 在接口中 AsyncClientrequest - the request parameters of DescribeMetricRuleTargets DescribeMetricRuleTargetsRequestpublic CompletableFuture<DescribeMetricRuleTemplateAttributeResponse> describeMetricRuleTemplateAttribute(DescribeMetricRuleTemplateAttributeRequest request)
This topic provides an example on how to query the details of an alert template whose ID is 70****.
describeMetricRuleTemplateAttribute 在接口中 AsyncClientrequest - the request parameters of DescribeMetricRuleTemplateAttribute DescribeMetricRuleTemplateAttributeRequestpublic CompletableFuture<DescribeMetricRuleTemplateListResponse> describeMetricRuleTemplateList(DescribeMetricRuleTemplateListRequest request)
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.
describeMetricRuleTemplateList 在接口中 AsyncClientrequest - the request parameters of DescribeMetricRuleTemplateList DescribeMetricRuleTemplateListRequestpublic CompletableFuture<DescribeMetricTopResponse> describeMetricTop(DescribeMetricTopRequest request)
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:
Period parameter is less than 60 seconds.Period parameter is 60 seconds.Period is greater than or equal to 300 seconds.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.
describeMetricTop 在接口中 AsyncClientrequest - the request parameters of DescribeMetricTop DescribeMetricTopRequestpublic CompletableFuture<DescribeMonitorGroupCategoriesResponse> describeMonitorGroupCategories(DescribeMonitorGroupCategoriesRequest request)
describeMonitorGroupCategories 在接口中 AsyncClientrequest - the request parameters of DescribeMonitorGroupCategories DescribeMonitorGroupCategoriesRequestpublic CompletableFuture<DescribeMonitorGroupDynamicRulesResponse> describeMonitorGroupDynamicRules(DescribeMonitorGroupDynamicRulesRequest request)
describeMonitorGroupDynamicRules 在接口中 AsyncClientrequest - the request parameters of DescribeMonitorGroupDynamicRules DescribeMonitorGroupDynamicRulesRequestpublic CompletableFuture<DescribeMonitorGroupInstanceAttributeResponse> describeMonitorGroupInstanceAttribute(DescribeMonitorGroupInstanceAttributeRequest request)
describeMonitorGroupInstanceAttribute 在接口中 AsyncClientrequest - the request parameters of DescribeMonitorGroupInstanceAttribute DescribeMonitorGroupInstanceAttributeRequestpublic CompletableFuture<DescribeMonitorGroupInstancesResponse> describeMonitorGroupInstances(DescribeMonitorGroupInstancesRequest request)
describeMonitorGroupInstances 在接口中 AsyncClientrequest - the request parameters of DescribeMonitorGroupInstances DescribeMonitorGroupInstancesRequestpublic CompletableFuture<DescribeMonitorGroupNotifyPolicyListResponse> describeMonitorGroupNotifyPolicyList(DescribeMonitorGroupNotifyPolicyListRequest request)
describeMonitorGroupNotifyPolicyList 在接口中 AsyncClientrequest - the request parameters of DescribeMonitorGroupNotifyPolicyList DescribeMonitorGroupNotifyPolicyListRequestpublic CompletableFuture<DescribeMonitorGroupsResponse> describeMonitorGroups(DescribeMonitorGroupsRequest request)
This topic provides an example of how to query the application groups of the current account. The response shows that the current account has two application groups: testGroup124 and test123.
describeMonitorGroups 在接口中 AsyncClientrequest - the request parameters of DescribeMonitorGroups DescribeMonitorGroupsRequestpublic CompletableFuture<DescribeMonitorResourceQuotaAttributeResponse> describeMonitorResourceQuotaAttribute(DescribeMonitorResourceQuotaAttributeRequest request)
describeMonitorResourceQuotaAttribute 在接口中 AsyncClientrequest - the request parameters of DescribeMonitorResourceQuotaAttribute DescribeMonitorResourceQuotaAttributeRequestpublic CompletableFuture<DescribeMonitoringAgentAccessKeyResponse> describeMonitoringAgentAccessKey(DescribeMonitoringAgentAccessKeyRequest request)
describeMonitoringAgentAccessKey 在接口中 AsyncClientrequest - the request parameters of DescribeMonitoringAgentAccessKey DescribeMonitoringAgentAccessKeyRequestpublic CompletableFuture<DescribeMonitoringAgentConfigResponse> describeMonitoringAgentConfig(DescribeMonitoringAgentConfigRequest request)
describeMonitoringAgentConfig 在接口中 AsyncClientrequest - the request parameters of DescribeMonitoringAgentConfig DescribeMonitoringAgentConfigRequestpublic CompletableFuture<DescribeMonitoringAgentHostsResponse> describeMonitoringAgentHosts(DescribeMonitoringAgentHostsRequest request)
describeMonitoringAgentHosts 在接口中 AsyncClientrequest - the request parameters of DescribeMonitoringAgentHosts DescribeMonitoringAgentHostsRequestpublic CompletableFuture<DescribeMonitoringAgentProcessesResponse> describeMonitoringAgentProcesses(DescribeMonitoringAgentProcessesRequest request)
Before you call this operation, call the CreateMonitoringAgentProcess operation to create processes. For more information, see CreateMonitoringAgentProcess. This topic provides an example of how to query the processes of the
i-hp3hl3cx1pbahzy8****instance. The response indicates the details of theNGINXandHTTPprocesses.
describeMonitoringAgentProcesses 在接口中 AsyncClientrequest - the request parameters of DescribeMonitoringAgentProcesses DescribeMonitoringAgentProcessesRequestpublic CompletableFuture<DescribeMonitoringAgentStatusesResponse> describeMonitoringAgentStatuses(DescribeMonitoringAgentStatusesRequest request)
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.
describeMonitoringAgentStatuses 在接口中 AsyncClientrequest - the request parameters of DescribeMonitoringAgentStatuses DescribeMonitoringAgentStatusesRequestpublic CompletableFuture<DescribeMonitoringConfigResponse> describeMonitoringConfig(DescribeMonitoringConfigRequest request)
describeMonitoringConfig 在接口中 AsyncClientrequest - the request parameters of DescribeMonitoringConfig DescribeMonitoringConfigRequestpublic CompletableFuture<DescribeProductResourceTagKeyListResponse> describeProductResourceTagKeyList(DescribeProductResourceTagKeyListRequest request)
If a tag is attached to multiple cloud resources in the region, the key of the tag is returned only once.
describeProductResourceTagKeyList 在接口中 AsyncClientrequest - the request parameters of DescribeProductResourceTagKeyList DescribeProductResourceTagKeyListRequestpublic CompletableFuture<DescribeProductsOfActiveMetricRuleResponse> describeProductsOfActiveMetricRule(DescribeProductsOfActiveMetricRuleRequest request)
describeProductsOfActiveMetricRule 在接口中 AsyncClientrequest - the request parameters of DescribeProductsOfActiveMetricRule DescribeProductsOfActiveMetricRuleRequestpublic CompletableFuture<DescribeProjectMetaResponse> describeProjectMeta(DescribeProjectMetaRequest request)
The information obtained by this operation includes the service description, namespace, and tags.
describeProjectMeta 在接口中 AsyncClientrequest - the request parameters of DescribeProjectMeta DescribeProjectMetaRequestpublic CompletableFuture<DescribeSiteMonitorAttributeResponse> describeSiteMonitorAttribute(DescribeSiteMonitorAttributeRequest request)
This topic provides an example on how to query the details of a site monitoring task whose ID is cc641dff-c19d-45f3-ad0a-818a0c4f****. The returned result indicates that the task name is test123, the URL that is monitored by the task is https://aliyun.com, and the name of the carrier is Alibaba.
describeSiteMonitorAttribute 在接口中 AsyncClientrequest - the request parameters of DescribeSiteMonitorAttribute DescribeSiteMonitorAttributeRequestpublic CompletableFuture<DescribeSiteMonitorDataResponse> describeSiteMonitorData(DescribeSiteMonitorDataRequest request)
describeSiteMonitorData 在接口中 AsyncClientrequest - the request parameters of DescribeSiteMonitorData DescribeSiteMonitorDataRequestpublic CompletableFuture<DescribeSiteMonitorISPCityListResponse> describeSiteMonitorISPCityList(DescribeSiteMonitorISPCityListRequest request)
This topic provides an example on how to query the detection points that are provided by China Unicom in Guiyang.
describeSiteMonitorISPCityList 在接口中 AsyncClientrequest - the request parameters of DescribeSiteMonitorISPCityList DescribeSiteMonitorISPCityListRequestpublic CompletableFuture<DescribeSiteMonitorListResponse> describeSiteMonitorList(DescribeSiteMonitorListRequest request)
This topic provides an example on how to query all the site monitoring tasks of your Alibaba Cloud account. In this example, the returned result indicates that the Alibaba Cloud account has one site monitoring task named HanZhou_ECS2.
describeSiteMonitorList 在接口中 AsyncClientrequest - the request parameters of DescribeSiteMonitorList DescribeSiteMonitorListRequestpublic CompletableFuture<DescribeSiteMonitorLogResponse> describeSiteMonitorLog(DescribeSiteMonitorLogRequest request)
You can create an instant test task only by using the Alibaba Cloud account that you used to enable Network Analysis and Monitoring.
This topic provides an example to show how to query the logs of an instant test task whose ID is afa5c3ce-f944-4363-9edb-ce919a29****.
describeSiteMonitorLog 在接口中 AsyncClientrequest - the request parameters of DescribeSiteMonitorLog DescribeSiteMonitorLogRequestpublic CompletableFuture<DescribeSiteMonitorQuotaResponse> describeSiteMonitorQuota(DescribeSiteMonitorQuotaRequest request)
describeSiteMonitorQuota 在接口中 AsyncClientrequest - the request parameters of DescribeSiteMonitorQuota DescribeSiteMonitorQuotaRequestpublic CompletableFuture<DescribeSiteMonitorStatisticsResponse> describeSiteMonitorStatistics(DescribeSiteMonitorStatisticsRequest request)
This topic provides an example on how to query the statistics of the Availability metric for a site monitoring task whose ID is ef4cdc8b-9dc7-43e7-810e-f950e56c****. The result indicates that the availability rate of the site is 100%.
describeSiteMonitorStatistics 在接口中 AsyncClientrequest - the request parameters of DescribeSiteMonitorStatistics DescribeSiteMonitorStatisticsRequestpublic CompletableFuture<DescribeSyntheticProbeListResponse> describeSyntheticProbeList(DescribeSyntheticProbeListRequest request)
describeSyntheticProbeList 在接口中 AsyncClientrequest - the request parameters of DescribeSyntheticProbeList DescribeSyntheticProbeListRequestpublic CompletableFuture<DescribeSystemEventAttributeResponse> describeSystemEventAttribute(DescribeSystemEventAttributeRequest request)
describeSystemEventAttribute 在接口中 AsyncClientrequest - the request parameters of DescribeSystemEventAttribute DescribeSystemEventAttributeRequestpublic CompletableFuture<DescribeSystemEventCountResponse> describeSystemEventCount(DescribeSystemEventCountRequest request)
You can call the DescribeSystemEventMetaList operation to query the cloud services supported by CloudMonitor and their system events.
This topic provides an example on how to query the number of times that a system event of Elastic Compute Service (ECS) has occurred. The returned result shows that the specified system event has occurred three times.
describeSystemEventCount 在接口中 AsyncClientrequest - the request parameters of DescribeSystemEventCount DescribeSystemEventCountRequestpublic CompletableFuture<DescribeSystemEventHistogramResponse> describeSystemEventHistogram(DescribeSystemEventHistogramRequest request)
describeSystemEventHistogram 在接口中 AsyncClientrequest - the request parameters of DescribeSystemEventHistogram DescribeSystemEventHistogramRequestpublic CompletableFuture<DescribeSystemEventMetaListResponse> describeSystemEventMetaList(DescribeSystemEventMetaListRequest request)
describeSystemEventMetaList 在接口中 AsyncClientrequest - the request parameters of DescribeSystemEventMetaList DescribeSystemEventMetaListRequestpublic CompletableFuture<DescribeTagKeyListResponse> describeTagKeyList(DescribeTagKeyListRequest request)
describeTagKeyList 在接口中 AsyncClientrequest - the request parameters of DescribeTagKeyList DescribeTagKeyListRequestpublic CompletableFuture<DescribeTagValueListResponse> describeTagValueList(DescribeTagValueListRequest request)
This topic provides an example of how to query the tag values corresponding to tagKey1. The return results are tagValue1 and tagValue2.
describeTagValueList 在接口中 AsyncClientrequest - the request parameters of DescribeTagValueList DescribeTagValueListRequestpublic CompletableFuture<DescribeUnhealthyHostAvailabilityResponse> describeUnhealthyHostAvailability(DescribeUnhealthyHostAvailabilityRequest request)
describeUnhealthyHostAvailability 在接口中 AsyncClientrequest - the request parameters of DescribeUnhealthyHostAvailability DescribeUnhealthyHostAvailabilityRequestpublic CompletableFuture<DisableActiveMetricRuleResponse> disableActiveMetricRule(DisableActiveMetricRuleRequest request)
disableActiveMetricRule 在接口中 AsyncClientrequest - the request parameters of DisableActiveMetricRule DisableActiveMetricRuleRequestpublic CompletableFuture<DisableEventRulesResponse> disableEventRules(DisableEventRulesRequest request)
disableEventRules 在接口中 AsyncClientrequest - the request parameters of DisableEventRules DisableEventRulesRequestpublic CompletableFuture<DisableHostAvailabilityResponse> disableHostAvailability(DisableHostAvailabilityRequest request)
disableHostAvailability 在接口中 AsyncClientrequest - the request parameters of DisableHostAvailability DisableHostAvailabilityRequestpublic CompletableFuture<DisableMetricRulesResponse> disableMetricRules(DisableMetricRulesRequest request)
disableMetricRules 在接口中 AsyncClientrequest - the request parameters of DisableMetricRules DisableMetricRulesRequestpublic CompletableFuture<DisableSiteMonitorsResponse> disableSiteMonitors(DisableSiteMonitorsRequest request)
disableSiteMonitors 在接口中 AsyncClientrequest - the request parameters of DisableSiteMonitors DisableSiteMonitorsRequestpublic CompletableFuture<EnableActiveMetricRuleResponse> enableActiveMetricRule(EnableActiveMetricRuleRequest request)
enableActiveMetricRule 在接口中 AsyncClientrequest - the request parameters of EnableActiveMetricRule EnableActiveMetricRuleRequestpublic CompletableFuture<EnableEventRulesResponse> enableEventRules(EnableEventRulesRequest request)
enableEventRules 在接口中 AsyncClientrequest - the request parameters of EnableEventRules EnableEventRulesRequestpublic CompletableFuture<EnableHostAvailabilityResponse> enableHostAvailability(EnableHostAvailabilityRequest request)
enableHostAvailability 在接口中 AsyncClientrequest - the request parameters of EnableHostAvailability EnableHostAvailabilityRequestpublic CompletableFuture<EnableMetricRuleBlackListResponse> enableMetricRuleBlackList(EnableMetricRuleBlackListRequest request)
enableMetricRuleBlackList 在接口中 AsyncClientrequest - the request parameters of EnableMetricRuleBlackList EnableMetricRuleBlackListRequestpublic CompletableFuture<EnableMetricRulesResponse> enableMetricRules(EnableMetricRulesRequest request)
enableMetricRules 在接口中 AsyncClientrequest - the request parameters of EnableMetricRules EnableMetricRulesRequestpublic CompletableFuture<EnableSiteMonitorsResponse> enableSiteMonitors(EnableSiteMonitorsRequest request)
enableSiteMonitors 在接口中 AsyncClientrequest - the request parameters of EnableSiteMonitors EnableSiteMonitorsRequestpublic CompletableFuture<InstallMonitoringAgentResponse> installMonitoringAgent(InstallMonitoringAgentRequest request)
The Cloud Assistant client is installed on an ECS instance. For more information about how to install the Cloud Assistant client, see Overview.
installMonitoringAgent 在接口中 AsyncClientrequest - the request parameters of InstallMonitoringAgent InstallMonitoringAgentRequestpublic CompletableFuture<ModifyGroupMonitoringAgentProcessResponse> modifyGroupMonitoringAgentProcess(ModifyGroupMonitoringAgentProcessRequest request)
modifyGroupMonitoringAgentProcess 在接口中 AsyncClientrequest - the request parameters of ModifyGroupMonitoringAgentProcess ModifyGroupMonitoringAgentProcessRequestpublic CompletableFuture<ModifyHostAvailabilityResponse> modifyHostAvailability(ModifyHostAvailabilityRequest request)
This topic provides an example on how to change the name of an availability monitoring task named 12345 in an application group named 123456 to task2.
modifyHostAvailability 在接口中 AsyncClientrequest - the request parameters of ModifyHostAvailability ModifyHostAvailabilityRequestpublic CompletableFuture<ModifyHostInfoResponse> modifyHostInfo(ModifyHostInfoRequest request)
modifyHostInfo 在接口中 AsyncClientrequest - the request parameters of ModifyHostInfo ModifyHostInfoRequestpublic CompletableFuture<ModifyHybridMonitorNamespaceResponse> modifyHybridMonitorNamespace(ModifyHybridMonitorNamespaceRequest request)
This topic provides an example on how to change the data retention period of the aliyun namespace to cms.s1.2xlarge. The response shows that the namespace is modified.
modifyHybridMonitorNamespace 在接口中 AsyncClientrequest - the request parameters of ModifyHybridMonitorNamespace ModifyHybridMonitorNamespaceRequestpublic CompletableFuture<ModifyHybridMonitorSLSGroupResponse> modifyHybridMonitorSLSGroup(ModifyHybridMonitorSLSGroupRequest request)
In this example, a Logstore group named Logstore_test is modified. The Logstore of the aliyun-project project in the cn-hangzhou region is changed to Logstore-aliyun-all. The response shows that the Logstore group is modified.
modifyHybridMonitorSLSGroup 在接口中 AsyncClientrequest - the request parameters of ModifyHybridMonitorSLSGroup ModifyHybridMonitorSLSGroupRequestpublic CompletableFuture<ModifyHybridMonitorTaskResponse> modifyHybridMonitorTask(ModifyHybridMonitorTaskRequest request)
This topic provides an example on how to change the collection period of a metric import task whose ID is 36**** to 15 seconds. The task is used to monitor the logs that are imported from Log Service. The returned result indicates that the metric is modified.
modifyHybridMonitorTask 在接口中 AsyncClientrequest - the request parameters of ModifyHybridMonitorTask ModifyHybridMonitorTaskRequestpublic CompletableFuture<ModifyMetricRuleBlackListResponse> modifyMetricRuleBlackList(ModifyMetricRuleBlackListRequest request)
modifyMetricRuleBlackList 在接口中 AsyncClientrequest - the request parameters of ModifyMetricRuleBlackList ModifyMetricRuleBlackListRequestpublic CompletableFuture<ModifyMetricRuleTemplateResponse> modifyMetricRuleTemplate(ModifyMetricRuleTemplateRequest request)
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.
modifyMetricRuleTemplate 在接口中 AsyncClientrequest - the request parameters of ModifyMetricRuleTemplate ModifyMetricRuleTemplateRequestpublic CompletableFuture<ModifyMonitorGroupResponse> modifyMonitorGroup(ModifyMonitorGroupRequest request)
modifyMonitorGroup 在接口中 AsyncClientrequest - the request parameters of ModifyMonitorGroup ModifyMonitorGroupRequestpublic CompletableFuture<ModifyMonitorGroupInstancesResponse> modifyMonitorGroupInstances(ModifyMonitorGroupInstancesRequest request)
modifyMonitorGroupInstances 在接口中 AsyncClientrequest - the request parameters of ModifyMonitorGroupInstances ModifyMonitorGroupInstancesRequestpublic CompletableFuture<ModifySiteMonitorResponse> modifySiteMonitor(ModifySiteMonitorRequest request)
The number of site monitoring tasks.
modifySiteMonitor 在接口中 AsyncClientrequest - the request parameters of ModifySiteMonitor ModifySiteMonitorRequestpublic CompletableFuture<PutContactResponse> putContact(PutContactRequest request)
putContact 在接口中 AsyncClientrequest - the request parameters of PutContact PutContactRequestpublic CompletableFuture<PutContactGroupResponse> putContactGroup(PutContactGroupRequest request)
This topic provides an example on how to create an alert contact group named ECS_Group.
putContactGroup 在接口中 AsyncClientrequest - the request parameters of PutContactGroup PutContactGroupRequestpublic CompletableFuture<PutCustomEventResponse> putCustomEvent(PutCustomEventRequest request)
putCustomEvent 在接口中 AsyncClientrequest - the request parameters of PutCustomEvent PutCustomEventRequestpublic CompletableFuture<PutCustomEventRuleResponse> putCustomEventRule(PutCustomEventRuleRequest request)
Before you call this operation, call the PutCustomEvent operation to report the monitoring data of the custom event. For more information, see PutCustomEvent.
putCustomEventRule 在接口中 AsyncClientrequest - the request parameters of PutCustomEventRule PutCustomEventRuleRequestpublic CompletableFuture<PutCustomMetricResponse> putCustomMetric(PutCustomMetricRequest request)
We recommend that you call the PutHybridMonitorMetricData operation of Hybrid Cloud Monitoring to report monitoring data.
putCustomMetric 在接口中 AsyncClientrequest - the request parameters of PutCustomMetric PutCustomMetricRequestpublic CompletableFuture<PutCustomMetricRuleResponse> putCustomMetricRule(PutCustomMetricRuleRequest request)
Before you call this operation, call the PutCustomMetric operation to report custom monitoring data. For more information, see PutCustomMetric.
putCustomMetricRule 在接口中 AsyncClientrequest - the request parameters of PutCustomMetricRule PutCustomMetricRuleRequestpublic CompletableFuture<PutEventRuleResponse> putEventRule(PutEventRuleRequest request)
If the specified rule name does not exist, an event-triggered alert rule is created. If the specified rule name exists, the specified event-triggered alert rule is modified.
In this example, the myRuleName alert rule is created for the ecs cloud service.
putEventRule 在接口中 AsyncClientrequest - the request parameters of PutEventRule PutEventRuleRequestpublic CompletableFuture<PutEventRuleTargetsResponse> putEventRuleTargets(PutEventRuleTargetsRequest request)
putEventRuleTargets 在接口中 AsyncClientrequest - the request parameters of PutEventRuleTargets PutEventRuleTargetsRequestpublic CompletableFuture<PutExporterOutputResponse> putExporterOutput(PutExporterOutputRequest request)
The monitoring data can be exported only to Log Service. More services will be supported in the future.
putExporterOutput 在接口中 AsyncClientrequest - the request parameters of PutExporterOutput PutExporterOutputRequestpublic CompletableFuture<PutExporterRuleResponse> putExporterRule(PutExporterRuleRequest request)
putExporterRule 在接口中 AsyncClientrequest - the request parameters of PutExporterRule PutExporterRuleRequestpublic CompletableFuture<PutGroupMetricRuleResponse> putGroupMetricRule(PutGroupMetricRuleRequest request)
This topic provides an example on how to create an alert rule for the cpu_total metric of Elastic Compute Service (ECS) in the 17285**** application group. The ID of the alert rule is 123456. The name of the alert rule is Rule_test. The alert level is Critical. The statistical method is Average. The alert threshold comparator is GreaterThanOrEqualToThreshold. The alert threshold is 90. The number of alert retries is 3. The returned result shows that the alert rule is created and the alert rule ID is 123456.
putGroupMetricRule 在接口中 AsyncClientrequest - the request parameters of PutGroupMetricRule PutGroupMetricRuleRequestpublic CompletableFuture<PutHybridMonitorMetricDataResponse> putHybridMonitorMetricData(PutHybridMonitorMetricDataRequest request)
Hybrid Cloud Monitoring is activated. For more information, see Activate Hybrid Cloud Monitoring.
The size of the monitoring data that you import at a time must be less than or equal to 1 MB.
This topic provides an example on how to import the monitoring data of the CPU_Usage metric to the default-aliyun namespace of Hybrid Cloud Monitoring.
putHybridMonitorMetricData 在接口中 AsyncClientrequest - the request parameters of PutHybridMonitorMetricData PutHybridMonitorMetricDataRequestpublic CompletableFuture<PutLogMonitorResponse> putLogMonitor(PutLogMonitorRequest request)
In the example of this topic, the cpu_total log monitoring metric is created. The response shows that the log monitoring metric is created and the metric ID is 16****.
putLogMonitor 在接口中 AsyncClientrequest - the request parameters of PutLogMonitor PutLogMonitorRequestpublic CompletableFuture<PutMetricRuleTargetsResponse> putMetricRuleTargets(PutMetricRuleTargetsRequest request)
This topic provides an example on how to associate an alert rule with a resource. In this example, the alert rule is ae06917_75a8c43178ab66****, the resource is acs:mns:cn-hangzhou:120886317861****:/queues/test/message, and the ID of the resource for which alerts are triggered is 1. The response indicates that the resource is associated with the specified alert rule.
putMetricRuleTargets 在接口中 AsyncClientrequest - the request parameters of PutMetricRuleTargets PutMetricRuleTargetsRequestpublic CompletableFuture<PutMonitorGroupDynamicRuleResponse> putMonitorGroupDynamicRule(PutMonitorGroupDynamicRuleRequest request)
putMonitorGroupDynamicRule 在接口中 AsyncClientrequest - the request parameters of PutMonitorGroupDynamicRule PutMonitorGroupDynamicRuleRequestpublic CompletableFuture<PutMonitoringConfigResponse> putMonitoringConfig(PutMonitoringConfigRequest request)
putMonitoringConfig 在接口中 AsyncClientrequest - the request parameters of PutMonitoringConfig PutMonitoringConfigRequestpublic CompletableFuture<PutResourceMetricRuleResponse> putResourceMetricRule(PutResourceMetricRuleRequest request)
This topic provides an example on how to create a threshold-triggered alert rule for the cpu_total metric of an Elastic Compute Service (ECS) instance whose ID is i-uf6j91r34rnwawoo****. The namespace of ECS metrics is acs_ecs_dashboard. The alert contact group of the alert rule is ECS_Group. The name of the alert rule is test123. The ID of the alert rule is a151cd6023eacee2f0978e03863cc1697c89508****. The statistical method for Critical-level alerts is Average. The comparison operator for Critical-level alerts is GreaterThanOrEqualToThreshold. The threshold for Critical-level alerts is 90. The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered is 3.
Statistics verification was added on August 15, 2024. Only the statistical value of the corresponding metric can be set for the Statistics parameter. For more information about how to obtain the value of this parameter, see Appendix 1: Metrics.
putResourceMetricRule 在接口中 AsyncClientrequest - the request parameters of PutResourceMetricRule PutResourceMetricRuleRequestpublic CompletableFuture<PutResourceMetricRulesResponse> putResourceMetricRules(PutResourceMetricRulesRequest request)
This topic provides an example on how to create a threshold-triggered alert rule for the cpu_total metric of an Elastic Compute Service (ECS) instance whose ID is i-uf6j91r34rnwawoo****. The namespace of ECS metrics is acs_ecs_dashboard. The alert contact group of the alert rule is ECS_Group. The name of the alert rule is test123. The ID of the alert rule is a151cd6023eacee2f0978e03863cc1697c89508****. The statistical method for Critical-level alerts is Average. The comparison operator for Critical-level alerts is GreaterThanOrEqualToThreshold. The threshold for Critical-level alerts is 90. The consecutive number of times for which the metric value meets the trigger condition before a Critical-level alert is triggered is 3.
Statistics verification was added on August 15, 2024. Only the statistical value of the corresponding metric can be set for the Statistics parameter. For more information about how to obtain the value of this parameter, see Appendix 1: Metrics.
putResourceMetricRules 在接口中 AsyncClientrequest - the request parameters of PutResourceMetricRules PutResourceMetricRulesRequestpublic CompletableFuture<RemoveTagsResponse> removeTags(RemoveTagsRequest request)
removeTags 在接口中 AsyncClientrequest - the request parameters of RemoveTags RemoveTagsRequestpublic CompletableFuture<SendDryRunSystemEventResponse> sendDryRunSystemEvent(SendDryRunSystemEventRequest request)
This operation is used to test whether a system event can be triggered as expected. You can call this operation to simulate a system event and check whether an expected response is returned after the system event triggers an alert.
sendDryRunSystemEvent 在接口中 AsyncClientrequest - the request parameters of SendDryRunSystemEvent SendDryRunSystemEventRequestpublic CompletableFuture<UninstallMonitoringAgentResponse> uninstallMonitoringAgent(UninstallMonitoringAgentRequest request)
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.
uninstallMonitoringAgent 在接口中 AsyncClientrequest - the request parameters of UninstallMonitoringAgent UninstallMonitoringAgentRequestCopyright © 2026. All rights reserved.