class Azure::Monitor::Mgmt::V2019_03_01::Models::SingleMetricBaseline

The baseline results of a single metric.

Attributes

baselines[RW]

@return [Array<TimeSeriesBaseline>] The baseline for each time series that was queried.

id[RW]

@return [String] The metric baseline Id.

interval[RW]

@return [Duration] The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made.

name[RW]

@return [String] The name of the metric for which the baselines were retrieved.

namespace[RW]

@return [String] The namespace of the metrics been queried.

timespan[RW]

@return [String] The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested.

type[RW]

@return [String] The resource type of the metric baseline resource.

Private Class Methods

mapper() click to toggle source

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

# File lib/2019-03-01/generated/azure_mgmt_monitor/models/single_metric_baseline.rb, line 49
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SingleMetricBaseline',
    type: {
      name: 'Composite',
      class_name: 'SingleMetricBaseline',
      model_properties: {
        id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        timespan: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.timespan',
          type: {
            name: 'String'
          }
        },
        interval: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.interval',
          type: {
            name: 'TimeSpan'
          }
        },
        namespace: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.namespace',
          type: {
            name: 'String'
          }
        },
        baselines: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.baselines',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'TimeSeriesBaselineElementType',
                type: {
                  name: 'Composite',
                  class_name: 'TimeSeriesBaseline'
                }
            }
          }
        }
      }
    }
  }
end