Class DataCollectionRule

java.lang.Object
com.azure.resourcemanager.monitor.models.DataCollectionRule
Direct Known Subclasses:
DataCollectionRuleResourceProperties

public class DataCollectionRule extends Object
Definition of what monitoring data to collect and where that data should be sent.
  • Constructor Details

    • DataCollectionRule

      public DataCollectionRule()
  • Method Details

    • description

      public String description()
      Get the description property: Description of the data collection rule.
      Returns:
      the description value.
    • withDescription

      public DataCollectionRule withDescription(String description)
      Set the description property: Description of the data collection rule.
      Parameters:
      description - the description value to set.
      Returns:
      the DataCollectionRule object itself.
    • immutableId

      public String immutableId()
      Get the immutableId property: The immutable ID of this data collection rule. This property is READ-ONLY.
      Returns:
      the immutableId value.
    • dataSources

      public DataCollectionRuleDataSources dataSources()
      Get the dataSources property: The specification of data sources. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
      Returns:
      the dataSources value.
    • withDataSources

      public DataCollectionRule withDataSources(DataCollectionRuleDataSources dataSources)
      Set the dataSources property: The specification of data sources. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
      Parameters:
      dataSources - the dataSources value to set.
      Returns:
      the DataCollectionRule object itself.
    • destinations

      public DataCollectionRuleDestinations destinations()
      Get the destinations property: The specification of destinations.
      Returns:
      the destinations value.
    • withDestinations

      public DataCollectionRule withDestinations(DataCollectionRuleDestinations destinations)
      Set the destinations property: The specification of destinations.
      Parameters:
      destinations - the destinations value to set.
      Returns:
      the DataCollectionRule object itself.
    • dataFlows

      public List<DataFlow> dataFlows()
      Get the dataFlows property: The specification of data flows.
      Returns:
      the dataFlows value.
    • withDataFlows

      public DataCollectionRule withDataFlows(List<DataFlow> dataFlows)
      Set the dataFlows property: The specification of data flows.
      Parameters:
      dataFlows - the dataFlows value to set.
      Returns:
      the DataCollectionRule object itself.
    • provisioningState

      public KnownDataCollectionRuleProvisioningState provisioningState()
      Get the provisioningState property: The resource provisioning state.
      Returns:
      the provisioningState value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.