ScheduledQueryRulePatch Class
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.
The scheduled query rule resource for patch operations.
public class ScheduledQueryRulePatch : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Monitor.Models.ScheduledQueryRulePatch>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Monitor.Models.ScheduledQueryRulePatch>
type ScheduledQueryRulePatch = class
interface IJsonModel<ScheduledQueryRulePatch>
interface IPersistableModel<ScheduledQueryRulePatch>
Public Class ScheduledQueryRulePatch
Implements IJsonModel(Of ScheduledQueryRulePatch), IPersistableModel(Of ScheduledQueryRulePatch)
- Inheritance
-
ScheduledQueryRulePatch
- Implements
Constructors
ScheduledQueryRulePatch() |
Initializes a new instance of ScheduledQueryRulePatch. |
Properties
Actions |
Actions to invoke when the alert fires. |
AutoMitigate |
The flag that indicates whether the alert should be automatically resolved or not. The default is true. Relevant only for rules of the kind LogAlert. |
CheckWorkspaceAlertsStorageConfigured |
The flag which indicates whether this scheduled query rule should be stored in the customer's storage. The default is false. Relevant only for rules of the kind LogAlert. |
CreatedWithApiVersion |
The api-version used when creating this alert rule. |
CriteriaAllOf |
A list of conditions to evaluate against the specified scopes. |
Description |
The description of the scheduled query rule. |
DisplayName |
The display name of the alert rule. |
EvaluationFrequency |
How often the scheduled query rule is evaluated represented in ISO 8601 duration format. Relevant and required only for rules of the kind LogAlert. |
IsEnabled |
The flag which indicates whether this scheduled query rule is enabled. Value should be true or false. |
IsLegacyLogAnalyticsRule |
True if alert rule is legacy Log Analytic rule. |
IsWorkspaceAlertsStorageConfigured |
The flag which indicates whether this scheduled query rule has been configured to be stored in the customer's storage. The default is false. |
MuteActionsDuration |
Mute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired. Relevant only for rules of the kind LogAlert. |
OverrideQueryTimeRange |
If specified then overrides the query time range (default is WindowSize*NumberOfEvaluationPeriods). Relevant only for rules of the kind LogAlert. |
Scopes |
The list of resource id's that this scheduled query rule is scoped to. |
Severity |
Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest. Relevant and required only for rules of the kind LogAlert. |
SkipQueryValidation |
The flag which indicates whether the provided query should be validated or not. The default is false. Relevant only for rules of the kind LogAlert. |
Tags |
Resource tags. |
TargetResourceTypes |
List of resource type of the target resource(s) on which the alert is created/updated. For example if the scope is a resource group and targetResourceTypes is Microsoft.Compute/virtualMachines, then a different alert will be fired for each virtual machine in the resource group which meet the alert criteria. Relevant only for rules of the kind LogAlert. |
WindowSize |
The period of time (in ISO 8601 duration format) on which the Alert query will be executed (bin size). Relevant and required only for rules of the kind LogAlert. |
Explicit Interface Implementations
IJsonModel<ScheduledQueryRulePatch>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<ScheduledQueryRulePatch>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<ScheduledQueryRulePatch>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<ScheduledQueryRulePatch>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<ScheduledQueryRulePatch>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |
Applies to
Azure SDK for .NET