ArmElasticModelFactory.ElasticLogRules Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.Elastic.Models.ElasticLogRules ElasticLogRules(bool? shouldAadLogsBeSent = default, bool? shouldSubscriptionLogsBeSent = default, bool? shouldActivityLogsBeSent = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Elastic.Models.ElasticFilteringTag> filteringTags = default);
static member ElasticLogRules : Nullable<bool> * Nullable<bool> * Nullable<bool> * seq<Azure.ResourceManager.Elastic.Models.ElasticFilteringTag> -> Azure.ResourceManager.Elastic.Models.ElasticLogRules
Public Shared Function ElasticLogRules (Optional shouldAadLogsBeSent As Nullable(Of Boolean) = Nothing, Optional shouldSubscriptionLogsBeSent As Nullable(Of Boolean) = Nothing, Optional shouldActivityLogsBeSent As Nullable(Of Boolean) = Nothing, Optional filteringTags As IEnumerable(Of ElasticFilteringTag) = Nothing) As ElasticLogRules
Parameters
Flag specifying if AAD logs should be sent for the Monitor resource.
Flag specifying if subscription logs should be sent for the Monitor resource.
Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
- filteringTags
- IEnumerable<ElasticFilteringTag>
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
A new ElasticLogRules instance for mocking.