Class LogRules
java.lang.Object
com.azure.resourcemanager.datadog.models.LogRules
Set of rules for sending logs for the Monitor resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the filteringTags property: List of filtering tags to be used for capturing logs.Get the sendAadLogs property: Flag specifying if AAD logs should be sent for the Monitor resource.Get the sendResourceLogs property: Flag specifying if Azure resource logs should be sent for the Monitor resource.Get the sendSubscriptionLogs property: Flag specifying if Azure subscription logs should be sent for the Monitor resource.void
validate()
Validates the instance.withFilteringTags
(List<FilteringTag> filteringTags) Set the filteringTags property: List of filtering tags to be used for capturing logs.withSendAadLogs
(Boolean sendAadLogs) Set the sendAadLogs property: Flag specifying if AAD logs should be sent for the Monitor resource.withSendResourceLogs
(Boolean sendResourceLogs) Set the sendResourceLogs property: Flag specifying if Azure resource logs should be sent for the Monitor resource.withSendSubscriptionLogs
(Boolean sendSubscriptionLogs) Set the sendSubscriptionLogs property: Flag specifying if Azure subscription logs should be sent for the Monitor resource.
-
Constructor Details
-
LogRules
public LogRules()Creates an instance of LogRules class.
-
-
Method Details
-
sendAadLogs
Get the sendAadLogs property: Flag specifying if AAD logs should be sent for the Monitor resource.- Returns:
- the sendAadLogs value.
-
withSendAadLogs
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
Get the sendSubscriptionLogs property: Flag specifying if Azure subscription logs should be sent for the Monitor resource.- Returns:
- the sendSubscriptionLogs value.
-
withSendSubscriptionLogs
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
Get the sendResourceLogs property: Flag specifying if Azure resource logs should be sent for the Monitor resource.- Returns:
- the sendResourceLogs value.
-
withSendResourceLogs
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
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
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.
-