Class: Azure::CostManagement::Mgmt::V2019_04_01_preview::Models::KpiProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/kpi_properties.rb

Overview

Each KPI must contain a ‘type’ and ‘enabled’ key.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#enabledBoolean

Returns show the KPI in the UI?.

Returns:

  • (Boolean)

    show the KPI in the UI?



23
24
25
# File 'lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/kpi_properties.rb', line 23

def enabled
  @enabled
end

#idString

Returns ID of resource related to metric (budget).

Returns:

  • (String)

    ID of resource related to metric (budget).



20
21
22
# File 'lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/kpi_properties.rb', line 20

def id
  @id
end

#typeKpiTypeType

include: ‘Forecast’, ‘Budget’

Returns:

  • (KpiTypeType)

    KPI type (Forecast, Budget). Possible values



17
18
19
# File 'lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/kpi_properties.rb', line 17

def type
  @type
end

Class Method Details

.mapperObject

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



30
31
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
# File 'lib/2019-04-01-preview/generated/azure_mgmt_cost_management/models/kpi_properties.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'KpiProperties',
    type: {
      name: 'Composite',
      class_name: 'KpiProperties',
      model_properties: {
        type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        enabled: {
          client_side_validation: true,
          required: false,
          serialized_name: 'enabled',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end