Class: Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CostThresholdProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb

Overview

Properties of a cost threshold item.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#display_on_chartCostThresholdStatus

displayed on cost charts. Possible values include: ‘Enabled’, ‘Disabled’

Returns:



25
26
27
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb', line 25

def display_on_chart
  @display_on_chart
end

#notification_sentString

sent for this threshold.

Returns:

  • (String)

    Indicates the datetime when notifications were last



34
35
36
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb', line 34

def notification_sent
  @notification_sent
end

#percentage_thresholdPercentageCostThresholdProperties

cost threshold.

Returns:



20
21
22
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb', line 20

def percentage_threshold
  @percentage_threshold
end

#send_notification_when_exceededCostThresholdStatus

sent when this threshold is exceeded. Possible values include: ‘Enabled’, ‘Disabled’

Returns:



30
31
32
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb', line 30

def send_notification_when_exceeded
  @send_notification_when_exceeded
end

#threshold_idString

Returns The ID of the cost threshold item.

Returns:

  • (String)

    The ID of the cost threshold item.



16
17
18
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb', line 16

def threshold_id
  @threshold_id
end

Class Method Details

.mapperObject

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



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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb', line 41

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CostThresholdProperties',
    type: {
      name: 'Composite',
      class_name: 'CostThresholdProperties',
      model_properties: {
        threshold_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'thresholdId',
          type: {
            name: 'String'
          }
        },
        percentage_threshold: {
          client_side_validation: true,
          required: false,
          serialized_name: 'percentageThreshold',
          type: {
            name: 'Composite',
            class_name: 'PercentageCostThresholdProperties'
          }
        },
        display_on_chart: {
          client_side_validation: true,
          required: false,
          serialized_name: 'displayOnChart',
          type: {
            name: 'String'
          }
        },
        send_notification_when_exceeded: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sendNotificationWhenExceeded',
          type: {
            name: 'String'
          }
        },
        notification_sent: {
          client_side_validation: true,
          required: false,
          serialized_name: 'notificationSent',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end