public static final class CreateHybridMonitorTaskRequest.Builder extends Object
public CreateHybridMonitorTaskRequest.Builder attachLabels(List<CreateHybridMonitorTaskRequest.AttachLabels> attachLabels)
> This parameter is required only if the `TaskType` parameter is set to `aliyun_sls`.
public CreateHybridMonitorTaskRequest.Builder cloudAccessId(List<String> cloudAccessId)
public CreateHybridMonitorTaskRequest.Builder collectInterval(String collectInterval)
* 15 * 60 (default) Unit: seconds. > This parameter is required only if the `TaskType` parameter is set to `aliyun_sls`.
public CreateHybridMonitorTaskRequest.Builder collectTargetType(String collectTargetType)
* If the `TaskType` parameter is set to `aliyun_fc`, enter `aliyun_fc`. * If the `TaskType` parameter is set to `aliyun_sls`, enter the name of the Logstore group.
public CreateHybridMonitorTaskRequest.Builder description(String description)
public CreateHybridMonitorTaskRequest.Builder groupId(String groupId)
For information about how to obtain the ID of an application group, see [DescribeMonitorGroups](~~115032~~). > This parameter is required only if the `TaskType` parameter is set to `aliyun_sls`.
public CreateHybridMonitorTaskRequest.Builder namespace(String namespace)
For information about how to obtain the name of a namespace, see [DescribeHybridMonitorNamespaceList](~~428880~~).
public CreateHybridMonitorTaskRequest.Builder SLSProcessConfig(CreateHybridMonitorTaskRequest.SLSProcessConfig SLSProcessConfig)
> This parameter is required only if the `TaskType` parameter is set to `aliyun_sls`.
public CreateHybridMonitorTaskRequest.Builder targetUserId(String targetUserId)
If you call this operation by using the management account of a resource directory, you can connect the Alibaba Cloud services that are activated for all members in the resource directory to Hybrid Cloud Monitoring. You can use the resource directory to monitor Alibaba Cloud services across enterprise accounts. > This parameter is required only if the `TaskType` parameter is set to `aliyun_fc`.
public CreateHybridMonitorTaskRequest.Builder targetUserIdList(String targetUserIdList)
> This parameter is required only if you call this operation by using the management account.
public CreateHybridMonitorTaskRequest.Builder taskName(String taskName)
* If the `TaskType` parameter is set to `aliyun_fc`, enter the name of the metric import task. * If the `TaskType` parameter is set to `aliyun_sls`, enter the name of the metric for logs imported from Simple Log Service.
public CreateHybridMonitorTaskRequest.Builder taskType(String taskType)
* aliyun_fc: metric import tasks for Alibaba Cloud services. * aliyun_sls: metrics for logs imported from Simple Log Service.
public CreateHybridMonitorTaskRequest.Builder YARMConfig(String YARMConfig)
* namespace: the namespace of the Alibaba Cloud service. For information about how to query the namespace of an Alibaba Cloud service, see [DescribeMetricMetaList](~~98846~~). * 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~~). The following code shows a sample configuration file: products: - namespace: acs_ecs_dashboard metric_info: - metric_list: - cpu_total - cpu_idle - diskusage_utilization - CPUUtilization - DiskReadBPS - InternetOut - IntranetOut - cpu_system - namespace: acs_rds_dashboard metric_info: - metric_list: - MySQL_QPS - MySQL_TPS > This parameter is required only if the `TaskType` parameter is set to `aliyun_fc`.
public CreateHybridMonitorTaskRequest build()
Copyright © 2024. All rights reserved.