public static final class CreateHybridMonitorTaskRequest.Builder extends Object
public CreateHybridMonitorTaskRequest.Builder attachLabels(List<CreateHybridMonitorTaskRequest.AttachLabels> attachLabels)
The tags of the metric.
This parameter is required only if the
TaskTypeparameter is set toaliyun_sls.
public CreateHybridMonitorTaskRequest.Builder cloudAccessId(List<String> cloudAccessId)
public CreateHybridMonitorTaskRequest.Builder collectInterval(String collectInterval)
The collection period of the metric. Valid values:
Unit: seconds.
example:This parameter is required only if the
TaskTypeparameter is set toaliyun_sls.
60
public CreateHybridMonitorTaskRequest.Builder collectTargetType(String collectTargetType)
The type of the collection target.
TaskType parameter is set to aliyun_fc, enter aliyun_fc.TaskType parameter is set to aliyun_sls, enter the name of the Logstore group.This parameter is required.
example:aliyun_fc
public CreateHybridMonitorTaskRequest.Builder description(String description)
The description of the metric import task.
public CreateHybridMonitorTaskRequest.Builder groupId(String groupId)
The ID of the application group.
For information about how to obtain the ID of an application group, see DescribeMonitorGroups.
example:This parameter is required only if the
TaskTypeparameter is set toaliyun_sls.
3607****
public CreateHybridMonitorTaskRequest.Builder namespace(String namespace)
The name of the namespace.
For information about how to obtain the name of a namespace, see DescribeHybridMonitorNamespaceList.
This parameter is required.
example:aliyun
public CreateHybridMonitorTaskRequest.Builder SLSProcessConfig(CreateHybridMonitorTaskRequest.SLSProcessConfig SLSProcessConfig)
The configurations of the logs that are imported from Simple Log Service.
This parameter is required only if the
TaskTypeparameter is set toaliyun_sls.
public CreateHybridMonitorTaskRequest.Builder targetUserId(String targetUserId)
The ID of the member account.
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.
example:This parameter is required only if the
TaskTypeparameter is set toaliyun_fc.
120886317861****
public CreateHybridMonitorTaskRequest.Builder targetUserIdList(String targetUserIdList)
The IDs of the member accounts. Separate multiple member account IDs with commas (,).
example:This parameter is required only if you call this operation by using the management account.
120886317861****
public CreateHybridMonitorTaskRequest.Builder taskName(String taskName)
The name of the metric import task.
TaskType parameter is set to aliyun_fc, enter the name of the metric import task.TaskType parameter is set to aliyun_sls, enter the name of the metric for logs imported from Simple Log Service.aliyun_task
public CreateHybridMonitorTaskRequest.Builder taskType(String taskType)
The type of the metric import task. Valid values:
This parameter is required.
example:aliyun_fc
public CreateHybridMonitorTaskRequest.Builder YARMConfig(String YARMConfig)
The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring.
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
example:This parameter is required only if the
TaskTypeparameter is set toaliyun_fc.
products:- namespace: acs_ecs_dashboard metric_info: - metric_list: - cpu_total
public CreateHybridMonitorTaskRequest build()
Copyright © 2026. All rights reserved.