LogSearchRuleResource Constructors

Definition

Overloads

LogSearchRuleResource()

Initializes a new instance of the LogSearchRuleResource class.

LogSearchRuleResource(String, Source, Action, String, String, String, IDictionary<String,String>, String, String, String, Nullable<Boolean>, String, String, Nullable<Boolean>, String, Nullable<DateTime>, String, Schedule)

Initializes a new instance of the LogSearchRuleResource class.

LogSearchRuleResource()

Initializes a new instance of the LogSearchRuleResource class.

public LogSearchRuleResource ();
Public Sub New ()

Applies to

LogSearchRuleResource(String, Source, Action, String, String, String, IDictionary<String,String>, String, String, String, Nullable<Boolean>, String, String, Nullable<Boolean>, String, Nullable<DateTime>, String, Schedule)

Initializes a new instance of the LogSearchRuleResource class.

public LogSearchRuleResource (string location, Microsoft.Azure.Management.Monitor.Models.Source source, Microsoft.Azure.Management.Monitor.Models.Action action, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string kind = default, string etag = default, string createdWithApiVersion = default, bool? isLegacyLogAnalyticsRule = default, string description = default, string displayName = default, bool? autoMitigate = default, string enabled = default, DateTime? lastUpdatedTime = default, string provisioningState = default, Microsoft.Azure.Management.Monitor.Models.Schedule schedule = default);
new Microsoft.Azure.Management.Monitor.Models.LogSearchRuleResource : string * Microsoft.Azure.Management.Monitor.Models.Source * Microsoft.Azure.Management.Monitor.Models.Action * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * string * string * Nullable<bool> * string * string * Nullable<bool> * string * Nullable<DateTime> * string * Microsoft.Azure.Management.Monitor.Models.Schedule -> Microsoft.Azure.Management.Monitor.Models.LogSearchRuleResource
Public Sub New (location As String, source As Source, action As Action, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional kind As String = Nothing, Optional etag As String = Nothing, Optional createdWithApiVersion As String = Nothing, Optional isLegacyLogAnalyticsRule As Nullable(Of Boolean) = Nothing, Optional description As String = Nothing, Optional displayName As String = Nothing, Optional autoMitigate As Nullable(Of Boolean) = Nothing, Optional enabled As String = Nothing, Optional lastUpdatedTime As Nullable(Of DateTime) = Nothing, Optional provisioningState As String = Nothing, Optional schedule As Schedule = Nothing)

Parameters

location
String

Resource location

source
Source

Data Source against which rule will Query Data

action
Action

Action needs to be taken on rule execution.

id
String

Azure resource Id

name
String

Azure resource name

type
String

Azure resource type

tags
IDictionary<String,String>

Resource tags

kind
String

Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.

etag
String

The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.

createdWithApiVersion
String

The api-version used when creating this alert rule

isLegacyLogAnalyticsRule
Nullable<Boolean>

True if alert rule is legacy Log Analytic rule

description
String

The description of the Log Search rule.

displayName
String

The display name of the alert rule

autoMitigate
Nullable<Boolean>

The flag that indicates whether the alert should be automatically resolved or not. The default is false.

enabled
String

The flag which indicates whether the Log Search rule is enabled. Value should be true or false. Possible values include: 'true', 'false'

lastUpdatedTime
Nullable<DateTime>

Last time the rule was updated in IS08601 format.

provisioningState
String

Provisioning state of the scheduled query rule. Possible values include: 'Succeeded', 'Deploying', 'Canceled', 'Failed'

schedule
Schedule

Schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction

Applies to