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 `TaskType` parameter is set to `aliyun_sls`.
@NameInMap(value="CollectInterval") public String collectInterval
The collection period of the metric. Valid values:
* 15
* 60 (default)
Unit: seconds.
> This parameter is required only if the `TaskType` parameter is set to `aliyun_sls`.
@NameInMap(value="CollectTargetType") public String collectTargetType
The type of the collection target.
* 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.
@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](~~115032~~).
> This parameter is required only if the `TaskType` parameter is set to `aliyun_sls`.
@NameInMap(value="Namespace") public String namespace
The name of the namespace.
For information about how to obtain the name of a namespace, see [DescribeHybridMonitorNamespaceList](~~428880~~).
@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 `TaskType` parameter is set to `aliyun_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.
> This parameter is required only if the `TaskType` parameter is set to `aliyun_fc`.
@NameInMap(value="TargetUserIdList") public String targetUserIdList
The IDs of the member accounts. Separate multiple member account IDs with commas (,).
> This parameter is required only if you call this operation by using the management account.
@NameInMap(value="TaskName") public String taskName
The name of the metric import task.
* 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.
@NameInMap(value="TaskType") public String taskType
The type of the metric import task. Valid values:
* aliyun_fc: metric import tasks for Alibaba Cloud services.
* aliyun_sls: metrics for logs imported from Simple Log Service.
@NameInMap(value="YARMConfig") public String YARMConfig
The configuration file of the Alibaba Cloud service that you want to monitor by using Hybrid Cloud Monitoring.
* 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 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 © 2024. All rights reserved.