Udostępnij za pośrednictwem


LogSearchRuleResource Class

Definition

The Log Search Rule resource.

[Microsoft.Rest.Serialization.JsonTransformation]
public class LogSearchRuleResource : Microsoft.Azure.Management.Monitor.Models.Resource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type LogSearchRuleResource = class
    inherit Resource
Public Class LogSearchRuleResource
Inherits Resource
Inheritance
LogSearchRuleResource
Attributes

Constructors

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.

Properties

Action

Gets or sets action needs to be taken on rule execution.

AutoMitigate

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

CreatedWithApiVersion

Gets the api-version used when creating this alert rule

Description

Gets or sets the description of the Log Search rule.

DisplayName

Gets or sets the display name of the alert rule

Enabled

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

Etag

Gets 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.

(Inherited from Resource)
Id

Gets azure resource Id

(Inherited from Resource)
IsLegacyLogAnalyticsRule

Gets true if alert rule is legacy Log Analytic rule

Kind

Gets 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.

(Inherited from Resource)
LastUpdatedTime

Gets last time the rule was updated in IS08601 format.

Location

Gets or sets resource location

(Inherited from Resource)
Name

Gets azure resource name

(Inherited from Resource)
ProvisioningState

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

Schedule

Gets or sets schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction

Source

Gets or sets data Source against which rule will Query Data

Tags

Gets or sets resource tags

(Inherited from Resource)
Type

Gets azure resource type

(Inherited from Resource)

Methods

Validate()

Validate the object.

Applies to