Class: Azure::ARM::Monitor::Models::ActivityLogAlertResource

Inherits:
MsRestAzure::Resource
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb

Overview

An activity log alert resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#actionsActivityLogAlertActionList

when the condition is met.



33
34
35
# File 'lib/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb', line 33

def actions
  @actions
end

#conditionActivityLogAlertAllOfCondition

this alert to activate.



29
30
31
# File 'lib/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb', line 29

def condition
  @condition
end

#descriptionString



36
37
38
# File 'lib/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb', line 36

def description
  @description
end

#enabledBoolean

If an activity log alert is not enabled, then none of its actions will be activated. Default value: true .



25
26
27
# File 'lib/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb', line 25

def enabled
  @enabled
end

#scopesArray<String>

prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item.



20
21
22
# File 'lib/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb', line 20

def scopes
  @scopes
end

Class Method Details

.mapperObject

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



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'lib/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb', line 43

def self.mapper()
  {
    required: false,
    serialized_name: 'ActivityLogAlertResource',
    type: {
      name: 'Composite',
      class_name: 'ActivityLogAlertResource',
      model_properties: {
        id: {
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        scopes: {
          required: true,
          serialized_name: 'properties.scopes',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        enabled: {
          required: false,
          serialized_name: 'properties.enabled',
          default_value: true,
          type: {
            name: 'Boolean'
          }
        },
        condition: {
          required: true,
          serialized_name: 'properties.condition',
          type: {
            name: 'Composite',
            class_name: 'ActivityLogAlertAllOfCondition'
          }
        },
        actions: {
          required: true,
          serialized_name: 'properties.actions',
          type: {
            name: 'Composite',
            class_name: 'ActivityLogAlertActionList'
          }
        },
        description: {
          required: false,
          serialized_name: 'properties.description',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end