Class: Azure::ARM::Insights::Models::ManagementEventAggregationCondition
- Inherits:
-
Object
- Object
- Azure::ARM::Insights::Models::ManagementEventAggregationCondition
- Includes:
- MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_insights/models/management_event_aggregation_condition.rb
Overview
A management event aggregation condition.
Instance Attribute Summary collapse
-
#operator ⇒ ConditionOperator
include: ‘GreaterThan’, ‘GreaterThanOrEqual’, ‘LessThan’, ‘LessThanOrEqual’.
-
#threshold ⇒ Float
The condition threshold.
-
#window_size ⇒ Duration
that is used to monitor alert activity based on the threshold.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ManagementEventAggregationCondition class as Ruby Hash.
Instance Attribute Details
#operator ⇒ ConditionOperator
include: ‘GreaterThan’, ‘GreaterThanOrEqual’, ‘LessThan’, ‘LessThanOrEqual’
18 19 20 |
# File 'lib/generated/azure_mgmt_insights/models/management_event_aggregation_condition.rb', line 18 def operator @operator end |
#threshold ⇒ Float
Returns the condition threshold.
21 22 23 |
# File 'lib/generated/azure_mgmt_insights/models/management_event_aggregation_condition.rb', line 21 def threshold @threshold end |
#window_size ⇒ Duration
that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
26 27 28 |
# File 'lib/generated/azure_mgmt_insights/models/management_event_aggregation_condition.rb', line 26 def window_size @window_size end |
Class Method Details
.mapper ⇒ Object
Mapper for ManagementEventAggregationCondition class as Ruby Hash. This will be used for serialization/deserialization.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/generated/azure_mgmt_insights/models/management_event_aggregation_condition.rb', line 33 def self.mapper() { required: false, serialized_name: 'ManagementEventAggregationCondition', type: { name: 'Composite', class_name: 'ManagementEventAggregationCondition', model_properties: { operator: { required: false, serialized_name: 'operator', type: { name: 'Enum', module: 'ConditionOperator' } }, threshold: { required: false, serialized_name: 'threshold', type: { name: 'Double' } }, window_size: { required: false, serialized_name: 'windowSize', type: { name: 'TimeSpan' } } } } } end |