class Azure::ARM::Insights::Models::ManagementEventRuleCondition
A management event rule condition.
Attributes
aggregation[RW]
@return [ManagementEventAggregationCondition] How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate.
data_source[RW]
@return [RuleDataSource] the resource from which the rule collects its data. For this type dataSource will always be of type RuleManagementEventDataSource
.
odata[RW]
Public Class Methods
mapper()
click to toggle source
Mapper for ManagementEventRuleCondition
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/generated/azure_mgmt_insights/models/management_event_rule_condition.rb, line 38 def self.mapper() { required: false, serialized_name: 'Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition', type: { name: 'Composite', class_name: 'ManagementEventRuleCondition', model_properties: { odata.type: { required: true, serialized_name: 'odata\\.type', type: { name: 'String' } }, data_source: { required: false, serialized_name: 'dataSource', type: { name: 'Composite', polymorphic_discriminator: 'odata.type', uber_parent: 'RuleDataSource', class_name: 'RuleDataSource' } }, aggregation: { required: false, serialized_name: 'aggregation', type: { name: 'Composite', class_name: 'ManagementEventAggregationCondition' } } } } } end
new()
click to toggle source
# File lib/generated/azure_mgmt_insights/models/management_event_rule_condition.rb, line 16 def initialize @odata.type = "Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition" end