Class: Azure::AlertsManagement::Mgmt::V2019_05_05_preview::Models::SuppressionConfig

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/suppression_config.rb

Overview

Suppression logic for a given action rule

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#recurrence_typeSuppressionType

applied. Possible values include: ‘Always’, ‘Once’, ‘Daily’, ‘Weekly’, ‘Monthly’

Returns:



18
19
20
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/suppression_config.rb', line 18

def recurrence_type
  @recurrence_type
end

#scheduleSuppressionSchedule

Returns suppression schedule configuration.

Returns:



21
22
23
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/suppression_config.rb', line 21

def schedule
  @schedule
end

Class Method Details

.mapperObject

Mapper for SuppressionConfig class as Ruby Hash. This will be used for serialization/deserialization.



28
29
30
31
32
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
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/suppression_config.rb', line 28

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SuppressionConfig',
    type: {
      name: 'Composite',
      class_name: 'SuppressionConfig',
      model_properties: {
        recurrence_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'recurrenceType',
          type: {
            name: 'String'
          }
        },
        schedule: {
          client_side_validation: true,
          required: false,
          serialized_name: 'schedule',
          type: {
            name: 'Composite',
            class_name: 'SuppressionSchedule'
          }
        }
      }
    }
  }
end