Class: Google::Apis::DataflowV1b3::MetricValue

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataflow_v1b3/classes.rb,
lib/google/apis/dataflow_v1b3/representations.rb,
lib/google/apis/dataflow_v1b3/representations.rb

Overview

The value of a metric along with its name and labels.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MetricValue

Returns a new instance of MetricValue.



3452
3453
3454
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3452

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#metricString

Base name for this metric. Corresponds to the JSON property metric

Returns:

  • (String)


3432
3433
3434
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3432

def metric
  @metric
end

#metric_labelsHash<String,String>

Optional. Set of metric labels for this metric. Corresponds to the JSON property metricLabels

Returns:

  • (Hash<String,String>)


3437
3438
3439
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3437

def metric_labels
  @metric_labels
end

#value_histogramGoogle::Apis::DataflowV1b3::DataflowHistogramValue

Summary statistics for a population of values. HistogramValue contains a sequence of buckets and gives a count of values that fall into each bucket. Bucket boundares are defined by a formula and bucket widths are either fixed or exponentially increasing. Corresponds to the JSON property valueHistogram



3445
3446
3447
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3445

def value_histogram
  @value_histogram
end

#value_int64Fixnum

Integer value of this metric. Corresponds to the JSON property valueInt64

Returns:

  • (Fixnum)


3450
3451
3452
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3450

def value_int64
  @value_int64
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3457
3458
3459
3460
3461
3462
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3457

def update!(**args)
  @metric = args[:metric] if args.key?(:metric)
  @metric_labels = args[:metric_labels] if args.key?(:metric_labels)
  @value_histogram = args[:value_histogram] if args.key?(:value_histogram)
  @value_int64 = args[:value_int64] if args.key?(:value_int64)
end