Class: Azure::ARM::Insights::Models::ManagementEventAggregationCondition

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_insights/models/management_event_aggregation_condition.rb

Overview

How the data that is collected should be combined over time.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#operatorConditionOperator

include: ‘GreaterThan’, ‘GreaterThanOrEqual’, ‘LessThan’, ‘LessThanOrEqual’

Returns:



18
19
20
# File 'lib/generated/azure_mgmt_insights/models/management_event_aggregation_condition.rb', line 18

def operator
  @operator
end

#thresholdFloat

Returns The threshold value that activates the alert.

Returns:

  • (Float)

    The threshold value that activates the alert.



21
22
23
# File 'lib/generated/azure_mgmt_insights/models/management_event_aggregation_condition.rb', line 21

def threshold
  @threshold
end

#window_sizeDuration

that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.

Returns:

  • (Duration)

    the period of time (in ISO 8601 duration format)



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

.mapperObject

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