Class: Azure::ARM::DevTestLabs::Models::CostThresholdProperties

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/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:



26
27
28
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb', line 26

def display_on_chart
  @display_on_chart
end

#notification_sentString

sent for this threshold.

Returns:

  • (String)

    Indicates the datetime when notifications were last



35
36
37
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb', line 35

def notification_sent
  @notification_sent
end

#percentage_thresholdPercentageCostThresholdProperties

cost threshold.

Returns:



21
22
23
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb', line 21

def percentage_threshold
  @percentage_threshold
end

#send_notification_when_exceededCostThresholdStatus

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

Returns:



31
32
33
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb', line 31

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.



17
18
19
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb', line 17

def threshold_id
  @threshold_id
end

Class Method Details

.mapperObject

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



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
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb', line 42

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