Share via


LogRules Class

Definition

Set of rules for sending logs for the Monitor resource.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20210901.LogRulesTypeConverter))]
public class LogRules : Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20210901.ILogRules
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20210901.LogRulesTypeConverter))>]
type LogRules = class
    interface ILogRules
    interface IJsonSerializable
Public Class LogRules
Implements ILogRules
Inheritance
LogRules
Attributes
Implements

Constructors

LogRules()

Creates an new LogRules instance.

Properties

FilteringTag

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.

SendAadLog

Flag specifying if AAD logs should be sent for the Monitor resource.

SendActivityLog

Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.

SendSubscriptionLog

Flag specifying if subscription logs should be sent for the Monitor resource.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of LogRules.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of LogRules.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20210901.ILogRules.

FromJsonString(String)

Creates a new instance of LogRules, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of LogRules into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to