Show / Hide Table of Contents

    Class LogSearchRuleResource

    The Log Search Rule resource.

    Inheritance
    Object
    Resource
    LogSearchRuleResource
    Inherited Members
    Resource.Id
    Resource.Location
    Resource.Name
    Resource.Tags
    Resource.Type
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Monitor.dll
    Syntax
    [Microsoft.Rest.Serialization.JsonTransformation]
    public class LogSearchRuleResource : Microsoft.Azure.Management.Monitor.Models.Resource

    Constructors

    LogSearchRuleResource()

    Initializes a new instance of the LogSearchRuleResource class.

    Declaration
    public LogSearchRuleResource ();

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

    Initializes a new instance of the LogSearchRuleResource class.

    Declaration
    public LogSearchRuleResource (string location, Microsoft.Azure.Management.Monitor.Models.Source source, Microsoft.Azure.Management.Monitor.Models.Action action, string id = null, string name = null, string type = null, System.Collections.Generic.IDictionary<string,string> tags = null, string description = null, string enabled = null, Nullable<DateTime> lastUpdatedTime = null, string provisioningState = null, Microsoft.Azure.Management.Monitor.Models.Schedule schedule = null);
    Parameters
    String location

    Resource location

    Source source

    Data Source against which rule will Query Data

    Action action

    Action needs to be taken on rule execution.

    String id

    Azure resource Id

    String name

    Azure resource name

    String type

    Azure resource type

    IDictionary<String,String> tags

    Resource tags

    String description

    The description of the Log Search rule.

    String enabled

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

    Nullable<DateTime> lastUpdatedTime

    Last time the rule was updated in IS08601 format.

    String provisioningState

    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

    Properties

    Action

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.action")]
    public Microsoft.Azure.Management.Monitor.Models.Action Action { get; set; }
    Property Value
    Action

    Description

    Gets or sets the description of the Log Search rule.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.description")]
    public string Description { get; set; }
    Property Value
    String

    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'

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.enabled")]
    public string Enabled { get; set; }
    Property Value
    String

    LastUpdatedTime

    Gets last time the rule was updated in IS08601 format.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.lastUpdatedTime")]
    public Nullable<DateTime> LastUpdatedTime { get; }
    Property Value
    Nullable<DateTime>

    ProvisioningState

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.provisioningState")]
    public string ProvisioningState { get; }
    Property Value
    String

    Schedule

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.schedule")]
    public Microsoft.Azure.Management.Monitor.Models.Schedule Schedule { get; set; }
    Property Value
    Schedule

    Source

    Gets or sets data Source against which rule will Query Data

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.source")]
    public Microsoft.Azure.Management.Monitor.Models.Source Source { get; set; }
    Property Value
    Source

    Methods

    Validate()

    Validate the object.

    Declaration
    public override void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net