ThresholdRuleCondition 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.
A rule condition based on a metric crossing a threshold.
public class ThresholdRuleCondition : Azure.ResourceManager.Monitor.Models.AlertRuleCondition, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Monitor.Models.ThresholdRuleCondition>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Monitor.Models.ThresholdRuleCondition>
public class ThresholdRuleCondition : Azure.ResourceManager.Monitor.Models.AlertRuleCondition
type ThresholdRuleCondition = class
inherit AlertRuleCondition
interface IJsonModel<ThresholdRuleCondition>
interface IPersistableModel<ThresholdRuleCondition>
type ThresholdRuleCondition = class
inherit AlertRuleCondition
Public Class ThresholdRuleCondition
Inherits AlertRuleCondition
Implements IJsonModel(Of ThresholdRuleCondition), IPersistableModel(Of ThresholdRuleCondition)
Public Class ThresholdRuleCondition
Inherits AlertRuleCondition
- Inheritance
- Implements
Constructors
ThresholdRuleCondition(MonitorConditionOperator, Double) |
Initializes a new instance of ThresholdRuleCondition. |
Properties
DataSource |
the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource. Please note RuleDataSource 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 RuleManagementEventDataSource and RuleMetricDataSource. (Inherited from AlertRuleCondition) |
Operator |
the operator used to compare the data and the threshold. |
Threshold |
the threshold value that activates the alert. |
TimeAggregation |
the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric. |
WindowSize |
the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day. |
Explicit Interface Implementations
Applies to
Azure SDK for .NET
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro