Class LogRules
java.lang.Object
com.azure.resourcemanager.logz.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 sendActivityLogs property: Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.Get the sendSubscriptionLogs property: Flag specifying if 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.withSendActivityLogs
(Boolean sendActivityLogs) Set the sendActivityLogs property: Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.withSendSubscriptionLogs
(Boolean sendSubscriptionLogs) Set the sendSubscriptionLogs property: Flag specifying if 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 subscription logs should be sent for the Monitor resource.- Returns:
- the sendSubscriptionLogs value.
-
withSendSubscriptionLogs
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
Get the sendActivityLogs property: Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.- Returns:
- the sendActivityLogs value.
-
withSendActivityLogs
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
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
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.
-