java.lang.Object
com.azure.resourcemanager.elastic.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 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 subscription logs should be sent for the Monitor resource.
      Parameters:
      sendSubscriptionLogs - the sendSubscriptionLogs value to set.
      Returns:
      the LogRules object itself.
    • sendActivityLogs

      public Boolean sendActivityLogs()
      Get the sendActivityLogs property: Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
      Returns:
      the sendActivityLogs value.
    • withSendActivityLogs

      public LogRules withSendActivityLogs(Boolean sendActivityLogs)
      Set the sendActivityLogs property: Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
      Parameters:
      sendActivityLogs - the sendActivityLogs 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 SendActivityLogs 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 SendActivityLogs 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.