DataCollectionRuleArgs

data class DataCollectionRuleArgs(val dataCollectionEndpointId: Output<String>? = null, val dataFlows: Output<List<DataCollectionRuleDataFlowArgs>>? = null, val dataSources: Output<DataCollectionRuleDataSourcesArgs>? = null, val description: Output<String>? = null, val destinations: Output<DataCollectionRuleDestinationsArgs>? = null, val identity: Output<DataCollectionRuleIdentityArgs>? = null, val kind: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val streamDeclarations: Output<List<DataCollectionRuleStreamDeclarationArgs>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<DataCollectionRuleArgs>

Manages a Data Collection Rule.

Import

Data Collection Rules can be imported using the resource id, e.g.

$ pulumi import azure:monitoring/dataCollectionRule:DataCollectionRule example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.Insights/dataCollectionRules/rule1

Constructors

Link copied to clipboard
constructor(dataCollectionEndpointId: Output<String>? = null, dataFlows: Output<List<DataCollectionRuleDataFlowArgs>>? = null, dataSources: Output<DataCollectionRuleDataSourcesArgs>? = null, description: Output<String>? = null, destinations: Output<DataCollectionRuleDestinationsArgs>? = null, identity: Output<DataCollectionRuleIdentityArgs>? = null, kind: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, streamDeclarations: Output<List<DataCollectionRuleStreamDeclarationArgs>>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val dataCollectionEndpointId: Output<String>? = null

The resource ID of the Data Collection Endpoint that this rule can be used with.

Link copied to clipboard

One or more data_flow blocks as defined below.

Link copied to clipboard

A data_sources block as defined below. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.

Link copied to clipboard
val description: Output<String>? = null

The description of the Data Collection Rule.

Link copied to clipboard

A destinations block as defined below.

Link copied to clipboard

An identity block as defined below.

Link copied to clipboard
val kind: Output<String>? = null

The kind of the Data Collection Rule. Possible values are Linux, Windows, AgentDirectToStore and WorkspaceTransforms. A rule of kind Linux does not allow for windows_event_log data sources. And a rule of kind Windows does not allow for syslog data sources. If kind is not specified, all kinds of data sources are allowed.

Link copied to clipboard
val location: Output<String>? = null

The Azure Region where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.

Link copied to clipboard
val name: Output<String>? = null

The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the Resource Group where the Data Collection Rule should exist. Changing this forces a new Data Collection Rule to be created.

Link copied to clipboard

A stream_declaration block as defined below.

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

A mapping of tags which should be assigned to the Data Collection Rule.

Functions

Link copied to clipboard
open override fun toJava(): DataCollectionRuleArgs