ArmMonitorModelFactory.ScheduledQueryRulePatch Method
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.
public static Azure.ResourceManager.Monitor.Models.ScheduledQueryRulePatch ScheduledQueryRulePatch(Azure.ResourceManager.Models.ManagedServiceIdentity identity = default, System.Collections.Generic.IDictionary<string,string> tags = default, string createdWithApiVersion = default, bool? isLegacyLogAnalyticsRule = default, string description = default, string displayName = default, Azure.ResourceManager.Monitor.Models.AlertSeverity? severity = default, bool? isEnabled = default, System.Collections.Generic.IEnumerable<string> scopes = default, TimeSpan? evaluationFrequency = default, TimeSpan? windowSize = default, TimeSpan? overrideQueryTimeRange = default, System.Collections.Generic.IEnumerable<string> targetResourceTypes = default, TimeSpan? muteActionsDuration = default, Azure.ResourceManager.Monitor.Models.ScheduledQueryRuleActions actions = default, bool? isWorkspaceAlertsStorageConfigured = default, bool? checkWorkspaceAlertsStorageConfigured = default, bool? skipQueryValidation = default, bool? autoMitigate = default, Azure.ResourceManager.Monitor.Models.RuleResolveConfiguration resolveConfiguration = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.ScheduledQueryRuleCondition> criteriaAllOf = default);
static member ScheduledQueryRulePatch : Azure.ResourceManager.Models.ManagedServiceIdentity * System.Collections.Generic.IDictionary<string, string> * string * Nullable<bool> * string * string * Nullable<Azure.ResourceManager.Monitor.Models.AlertSeverity> * Nullable<bool> * seq<string> * Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<TimeSpan> * seq<string> * Nullable<TimeSpan> * Azure.ResourceManager.Monitor.Models.ScheduledQueryRuleActions * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Azure.ResourceManager.Monitor.Models.RuleResolveConfiguration * seq<Azure.ResourceManager.Monitor.Models.ScheduledQueryRuleCondition> -> Azure.ResourceManager.Monitor.Models.ScheduledQueryRulePatch
Public Shared Function ScheduledQueryRulePatch (Optional identity As ManagedServiceIdentity = Nothing, Optional tags As IDictionary(Of String, 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 severity As Nullable(Of AlertSeverity) = Nothing, Optional isEnabled As Nullable(Of Boolean) = Nothing, Optional scopes As IEnumerable(Of String) = Nothing, Optional evaluationFrequency As Nullable(Of TimeSpan) = Nothing, Optional windowSize As Nullable(Of TimeSpan) = Nothing, Optional overrideQueryTimeRange As Nullable(Of TimeSpan) = Nothing, Optional targetResourceTypes As IEnumerable(Of String) = Nothing, Optional muteActionsDuration As Nullable(Of TimeSpan) = Nothing, Optional actions As ScheduledQueryRuleActions = Nothing, Optional isWorkspaceAlertsStorageConfigured As Nullable(Of Boolean) = Nothing, Optional checkWorkspaceAlertsStorageConfigured As Nullable(Of Boolean) = Nothing, Optional skipQueryValidation As Nullable(Of Boolean) = Nothing, Optional autoMitigate As Nullable(Of Boolean) = Nothing, Optional resolveConfiguration As RuleResolveConfiguration = Nothing, Optional criteriaAllOf As IEnumerable(Of ScheduledQueryRuleCondition) = Nothing) As ScheduledQueryRulePatch
Parameters
- identity
- ManagedServiceIdentity
The identity of the resource.
- tags
- IDictionary<String,String>
Resource tags.
- createdWithApiVersion
- String
The api-version used when creating this alert rule.
- description
- String
The description of the scheduled query rule.
- displayName
- String
The display name of the alert rule.
- severity
- Nullable<AlertSeverity>
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.
The flag which indicates whether this scheduled query rule is enabled. Value should be true or false.
- scopes
- IEnumerable<String>
The list of resource id's that this scheduled query rule is scoped to.
How often the scheduled query rule is evaluated represented in ISO 8601 duration format. Relevant and required only for rules of the kind LogAlert.
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.
If specified then overrides the query time range (default is WindowSize*NumberOfEvaluationPeriods). Relevant only for rules of the kind LogAlert.
- targetResourceTypes
- IEnumerable<String>
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.
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.
- actions
- ScheduledQueryRuleActions
Actions to invoke when the alert fires.
The flag which indicates whether this scheduled query rule has been configured to be stored in the customer's storage. The default is false.
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.
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.
The flag that indicates whether the alert should be automatically resolved or not. The default is true. Relevant only for rules of kinds LogAlert and SimpleLogAlert.
- resolveConfiguration
- RuleResolveConfiguration
Defines the configuration for resolving fired alerts. Relevant only for rules of kinds LogAlert and SimpleLogAlert.
- criteriaAllOf
- IEnumerable<ScheduledQueryRuleCondition>
A list of conditions to evaluate against the specified scopes.
Returns
A new ScheduledQueryRulePatch instance for mocking.