java.lang.Object
com.azure.resourcemanager.datadog.models.LogRules

public final class LogRules extends Object
Set of rules for sending logs for the Monitor resource.
  • Constructor Details

    • LogRules

      public LogRules()
      Creates an instance of LogRules class.
  • Method Details

    • sendAadLogs

      public Boolean sendAadLogs()
      Get the sendAadLogs property: Flag specifying if AAD logs should be sent for the Monitor resource.
      Returns:
      the sendAadLogs value.
    • withSendAadLogs

      public LogRules withSendAadLogs(Boolean sendAadLogs)
      Set the sendAadLogs property: Flag specifying if AAD logs should be sent for the Monitor resource.
      Parameters:
      sendAadLogs - the sendAadLogs value to set.
      Returns:
      the LogRules object itself.
    • sendSubscriptionLogs

      public Boolean sendSubscriptionLogs()
      Get the sendSubscriptionLogs property: Flag specifying if Azure subscription logs should be sent for the Monitor resource.
      Returns:
      the sendSubscriptionLogs value.
    • withSendSubscriptionLogs

      public LogRules withSendSubscriptionLogs(Boolean sendSubscriptionLogs)
      Set the sendSubscriptionLogs property: Flag specifying if Azure subscription logs should be sent for the Monitor resource.
      Parameters:
      sendSubscriptionLogs - the sendSubscriptionLogs value to set.
      Returns:
      the LogRules object itself.
    • sendResourceLogs

      public Boolean sendResourceLogs()
      Get the sendResourceLogs property: Flag specifying if Azure resource logs should be sent for the Monitor resource.
      Returns:
      the sendResourceLogs value.
    • withSendResourceLogs

      public LogRules withSendResourceLogs(Boolean sendResourceLogs)
      Set the sendResourceLogs property: Flag specifying if Azure resource logs should be sent for the Monitor resource.
      Parameters:
      sendResourceLogs - the sendResourceLogs value to set.
      Returns:
      the LogRules object itself.
    • filteringTags

      public List<FilteringTag> filteringTags()
      Get the filteringTags property: List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
      Returns:
      the filteringTags value.
    • withFilteringTags

      public LogRules withFilteringTags(List<FilteringTag> filteringTags)
      Set the filteringTags property: List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
      Parameters:
      filteringTags - the filteringTags value to set.
      Returns:
      the LogRules object itself.
    • validate

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