class Azure::ARM::Insights::Models::MetricTrigger
The trigger that results in a scaling action.
Attributes
@return [String] the name of the metric that defines what the rule monitors.
@return [String] the resource identifier of the resource the rule monitors.
@return [ComparisonOperationType] the operator that is used to compare the metric data and the threshold. Possible values include: ‘Equals’, ‘NotEquals’, ‘GreaterThan’, ‘GreaterThanOrEqual’, ‘LessThan’, ‘LessThanOrEqual’
@return [MetricStatisticType] the metric statistic type. How the metrics from multiple instances are combined. Possible values include: ‘Average’, ‘Min’, ‘Max’, ‘Sum’
@return [Float] the threshold of the metric that triggers the scale action.
@return [TimeAggregationType] time aggregation type. How the data that is collected should be combined over time. The default value is Average. Possible values include: ‘Average’, ‘Minimum’, ‘Maximum’, ‘Total’, ‘Count’
@return [Duration] the granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute.
@return [Duration] the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes.
Public Class Methods
Mapper for MetricTrigger
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/generated/azure_mgmt_insights/models/metric_trigger.rb, line 60 def self.mapper() { required: false, serialized_name: 'MetricTrigger', type: { name: 'Composite', class_name: 'MetricTrigger', model_properties: { metric_name: { required: true, serialized_name: 'metricName', type: { name: 'String' } }, metric_resource_uri: { required: true, serialized_name: 'metricResourceUri', type: { name: 'String' } }, time_grain: { required: true, serialized_name: 'timeGrain', type: { name: 'TimeSpan' } }, statistic: { required: true, serialized_name: 'statistic', type: { name: 'Enum', module: 'MetricStatisticType' } }, time_window: { required: true, serialized_name: 'timeWindow', type: { name: 'TimeSpan' } }, time_aggregation: { required: true, serialized_name: 'timeAggregation', type: { name: 'Enum', module: 'TimeAggregationType' } }, operator: { required: true, serialized_name: 'operator', type: { name: 'Enum', module: 'ComparisonOperationType' } }, threshold: { required: true, serialized_name: 'threshold', type: { name: 'Double' } } } } } end