public class CreateHybridMonitorTaskRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
List<CreateHybridMonitorTaskRequest.CreateHybridMonitorTaskRequestAttachLabels> |
attachLabels
The tags of the metric.
|
List<String> |
cloudAccessId |
String |
collectInterval
The collection period of the metric.
|
String |
collectTargetType
The type of the collection target.
|
String |
description
The description of the metric import task.
|
String |
groupId
The ID of the application group.
|
String |
namespace
The name of the namespace.
|
String |
regionId |
CreateHybridMonitorTaskRequest.CreateHybridMonitorTaskRequestSLSProcessConfig |
SLSProcessConfig
The configurations of the logs that are imported from Simple Log Service.
|
String |
targetUserId
The ID of the member account.
|
String |
targetUserIdList
The IDs of the member accounts.
|
String |
taskName
The name of the metric import task.
|
String |
taskType
The type of the metric import task.
|
String |
YARMConfig
The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring.
|
| 构造器和说明 |
|---|
CreateHybridMonitorTaskRequest() |
@NameInMap(value="AttachLabels") public List<CreateHybridMonitorTaskRequest.CreateHybridMonitorTaskRequestAttachLabels> attachLabels
The tags of the metric.
This parameter is required only if the
TaskTypeparameter is set toaliyun_sls.
@NameInMap(value="CollectInterval") public 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
@NameInMap(value="CollectTargetType") public 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
@NameInMap(value="Description") public String description
The description of the metric import task.
@NameInMap(value="GroupId") public 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****
@NameInMap(value="Namespace") public 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
@NameInMap(value="RegionId") public String regionId
@NameInMap(value="SLSProcessConfig") public CreateHybridMonitorTaskRequest.CreateHybridMonitorTaskRequestSLSProcessConfig 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.
@NameInMap(value="TargetUserId") public 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****
@NameInMap(value="TargetUserIdList") public 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****
@NameInMap(value="TaskName") public 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
@NameInMap(value="TaskType") public String taskType
The type of the metric import task. Valid values:
This parameter is required.
example:aliyun_fc
@NameInMap(value="YARMConfig") public 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 static CreateHybridMonitorTaskRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateHybridMonitorTaskRequest setAttachLabels(List<CreateHybridMonitorTaskRequest.CreateHybridMonitorTaskRequestAttachLabels> attachLabels)
public List<CreateHybridMonitorTaskRequest.CreateHybridMonitorTaskRequestAttachLabels> getAttachLabels()
public CreateHybridMonitorTaskRequest setCloudAccessId(List<String> cloudAccessId)
public CreateHybridMonitorTaskRequest setCollectInterval(String collectInterval)
public String getCollectInterval()
public CreateHybridMonitorTaskRequest setCollectTargetType(String collectTargetType)
public String getCollectTargetType()
public CreateHybridMonitorTaskRequest setDescription(String description)
public String getDescription()
public CreateHybridMonitorTaskRequest setGroupId(String groupId)
public String getGroupId()
public CreateHybridMonitorTaskRequest setNamespace(String namespace)
public String getNamespace()
public CreateHybridMonitorTaskRequest setRegionId(String regionId)
public String getRegionId()
public CreateHybridMonitorTaskRequest setSLSProcessConfig(CreateHybridMonitorTaskRequest.CreateHybridMonitorTaskRequestSLSProcessConfig SLSProcessConfig)
public CreateHybridMonitorTaskRequest.CreateHybridMonitorTaskRequestSLSProcessConfig getSLSProcessConfig()
public CreateHybridMonitorTaskRequest setTargetUserId(String targetUserId)
public String getTargetUserId()
public CreateHybridMonitorTaskRequest setTargetUserIdList(String targetUserIdList)
public String getTargetUserIdList()
public CreateHybridMonitorTaskRequest setTaskName(String taskName)
public String getTaskName()
public CreateHybridMonitorTaskRequest setTaskType(String taskType)
public String getTaskType()
public CreateHybridMonitorTaskRequest setYARMConfig(String YARMConfig)
public String getYARMConfig()
Copyright © 2026. All rights reserved.