Class: Azure::Security::Mgmt::V2017_08_01_preview::Models::CustomAlertRule

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb

Overview

A custom alert rule

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#descriptionString

Returns The description of the custom alert.

Returns:

  • (String)

    The description of the custom alert.



19
20
21
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb', line 19

def description
  @description
end

#display_nameString

Returns The display name of the custom alert.

Returns:

  • (String)

    The display name of the custom alert.



16
17
18
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb', line 16

def display_name
  @display_name
end

#is_enabledBoolean

Returns Whether the custom alert is enabled.

Returns:

  • (Boolean)

    Whether the custom alert is enabled.



22
23
24
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb', line 22

def is_enabled
  @is_enabled
end

#rule_typeString

Returns The type of the custom alert rule.

Returns:

  • (String)

    The type of the custom alert rule.



25
26
27
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb', line 25

def rule_type
  @rule_type
end

Class Method Details

.mapperObject

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



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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb', line 32

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CustomAlertRule',
    type: {
      name: 'Composite',
      class_name: 'CustomAlertRule',
      model_properties: {
        display_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'displayName',
          type: {
            name: 'String'
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'description',
          type: {
            name: 'String'
          }
        },
        is_enabled: {
          client_side_validation: true,
          required: true,
          serialized_name: 'isEnabled',
          type: {
            name: 'Boolean'
          }
        },
        rule_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'ruleType',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end