Class: Azure::Cosmosdb::Mgmt::V2019_12_12::Models::MetricDefinition

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definition.rb

Overview

The definition of a metric.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#metric_availabilitiesArray<MetricAvailability>

for the account.

Returns:



17
18
19
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definition.rb', line 17

def metric_availabilities
  @metric_availabilities
end

#nameMetricName

Returns The name information for the metric.

Returns:

  • (MetricName)

    The name information for the metric.



33
34
35
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definition.rb', line 33

def name
  @name
end

#primary_aggregation_typePrimaryAggregationType

metric. Possible values include: ‘None’, ‘Average’, ‘Total’, ‘Minimum’, ‘Maximum’, ‘Last’

Returns:



22
23
24
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definition.rb', line 22

def primary_aggregation_type
  @primary_aggregation_type
end

#resource_uriString

Returns The resource uri of the database.

Returns:

  • (String)

    The resource uri of the database.



30
31
32
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definition.rb', line 30

def resource_uri
  @resource_uri
end

#unitUnitType

‘Count’, ‘Bytes’, ‘Seconds’, ‘Percent’, ‘CountPerSecond’, ‘BytesPerSecond’, ‘Milliseconds’

Returns:

  • (UnitType)

    The unit of the metric. Possible values include:



27
28
29
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definition.rb', line 27

def unit
  @unit
end

Class Method Details

.mapperObject

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



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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definition.rb', line 40

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MetricDefinition',
    type: {
      name: 'Composite',
      class_name: 'MetricDefinition',
      model_properties: {
        metric_availabilities: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'metricAvailabilities',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'MetricAvailabilityElementType',
                type: {
                  name: 'Composite',
                  class_name: 'MetricAvailability'
                }
            }
          }
        },
        primary_aggregation_type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'primaryAggregationType',
          type: {
            name: 'String'
          }
        },
        unit: {
          client_side_validation: true,
          required: false,
          serialized_name: 'unit',
          type: {
            name: 'String'
          }
        },
        resource_uri: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'resourceUri',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'Composite',
            class_name: 'MetricName'
          }
        }
      }
    }
  }
end