Class: Azure::ARM::Monitor::Models::ActivityLogAlertLeafCondition

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

Overview

An Activity Log alert condition that is met by comparing an activity log field and value.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#equalsString

(case-insensitive) to determine if the condition is met.

Returns:

  • (String)

    The field value will be compared to this value



26
27
28
# File 'lib/generated/azure_mgmt_monitor/models/activity_log_alert_leaf_condition.rb', line 26

def equals
  @equals
end

#fieldString

examine. The possible values for this field are (case-insensitive): ‘resourceId’, ‘category’, ‘caller’, ‘level’, ‘operationName’, ‘resourceGroup’, ‘resourceProvider’, ‘status’, ‘subStatus’, ‘resourceType’, or anything beginning with ‘properties.’.

Returns:

  • (String)

    The name of the field that this condition will



22
23
24
# File 'lib/generated/azure_mgmt_monitor/models/activity_log_alert_leaf_condition.rb', line 22

def field
  @field
end

Class Method Details

.mapperObject

Mapper for ActivityLogAlertLeafCondition 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
# File 'lib/generated/azure_mgmt_monitor/models/activity_log_alert_leaf_condition.rb', line 33

def self.mapper()
  {
    required: false,
    serialized_name: 'ActivityLogAlertLeafCondition',
    type: {
      name: 'Composite',
      class_name: 'ActivityLogAlertLeafCondition',
      model_properties: {
        field: {
          required: true,
          serialized_name: 'field',
          type: {
            name: 'String'
          }
        },
        equals: {
          required: true,
          serialized_name: 'equals',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end