ArmMonitorModelFactory.AlertRulePatch 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.
Initializes a new instance of AlertRulePatch.
public static Azure.ResourceManager.Monitor.Models.AlertRulePatch AlertRulePatch(System.Collections.Generic.IDictionary<string,string> tags = default, string name = default, string description = default, string provisioningState = default, bool? isEnabled = default, Azure.ResourceManager.Monitor.Models.AlertRuleCondition condition = default, Azure.ResourceManager.Monitor.Models.AlertRuleAction action = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.AlertRuleAction> actions = default, DateTimeOffset? lastUpdatedOn = default);
static member AlertRulePatch : System.Collections.Generic.IDictionary<string, string> * string * string * string * Nullable<bool> * Azure.ResourceManager.Monitor.Models.AlertRuleCondition * Azure.ResourceManager.Monitor.Models.AlertRuleAction * seq<Azure.ResourceManager.Monitor.Models.AlertRuleAction> * Nullable<DateTimeOffset> -> Azure.ResourceManager.Monitor.Models.AlertRulePatch
Public Shared Function AlertRulePatch (Optional tags As IDictionary(Of String, String) = Nothing, Optional name As String = Nothing, Optional description As String = Nothing, Optional provisioningState As String = Nothing, Optional isEnabled As Nullable(Of Boolean) = Nothing, Optional condition As AlertRuleCondition = Nothing, Optional action As AlertRuleAction = Nothing, Optional actions As IEnumerable(Of AlertRuleAction) = Nothing, Optional lastUpdatedOn As Nullable(Of DateTimeOffset) = Nothing) As AlertRulePatch
Parameters
- tags
- IDictionary<String,String>
Resource tags.
- name
- String
the name of the alert rule.
- description
- String
the description of the alert rule that will be included in the alert email.
- provisioningState
- String
the provisioning state.
- condition
- AlertRuleCondition
the condition that results in the alert rule being activated. Please note AlertRuleCondition is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include LocationThresholdRuleCondition, ManagementEventRuleCondition and ThresholdRuleCondition.
- action
- AlertRuleAction
action that is performed when the alert rule becomes active, and when an alert condition is resolved. Please note AlertRuleAction is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include RuleEmailAction and RuleWebhookAction.
- actions
- IEnumerable<AlertRuleAction>
the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. Please note AlertRuleAction is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include RuleEmailAction and RuleWebhookAction.
- lastUpdatedOn
- Nullable<DateTimeOffset>
Last time the rule was updated in ISO8601 format.
Returns
A new AlertRulePatch instance for mocking.