CollectionPolicyPolicyConfig

data class CollectionPolicyPolicyConfig(val instanceIds: List<String>? = null, val regions: List<String>? = null, val resourceMode: String, val resourceTags: Map<String, String>? = null)

Constructors

Link copied to clipboard
constructor(instanceIds: List<String>? = null, regions: List<String>? = null, resourceMode: String, resourceTags: Map<String, String>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val instanceIds: List<String>? = null

A collection of instance IDs, valid only if resourceMode is instanceMode. Only instances whose instance ID is in the instance ID collection are collected.

Link copied to clipboard
val regions: List<String>? = null

The region collection to which the instance belongs. Valid only when resourceMode is set to attributeMode. Wildcard characters are supported. If the region collection filter item is an empty array, it means that you do not need to filter by region, and all instances meet the filtering condition of the region collection. Otherwise, only instances with region attributes in the region collection are collected. The region collection and resource label of the instance. The instance objects are collected only when all of them are met.

Link copied to clipboard

Resource collection mode. If all is configured, all instances under the account will be collected to the default logstore. If attributeMode is configured, filtering will be performed according to the region attribute and resource label of the instance. If instanceMode is configured, filtering will be performed according to the instance ID.

Link copied to clipboard
val resourceTags: Map<String, String>? = null

Resource label, valid if and only if resourceMode is attributeMode. If the resource label filter item is empty, it means that you do not need to filter by resource label, and all instances meet the resource label filter condition. Otherwise, only instances whose resource label attributes meet the resource label configuration are collected. The resource tag and the region collection to which the instance belongs work together. The instance objects are collected only when all of them are met.