Class: Google::Apis::DataflowV1b3::MetricShortId

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

Overview

The metric short id is returned to the user alongside an offset into ReportWorkItemStatusRequest

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MetricShortId

Returns a new instance of MetricShortId.



2385
2386
2387
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2385

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

Instance Attribute Details

#metric_indexFixnum

The index of the corresponding metric in the ReportWorkItemStatusRequest. Required. Corresponds to the JSON property metricIndex

Returns:

  • (Fixnum)


2378
2379
2380
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2378

def metric_index
  @metric_index
end

#short_idString

The service-generated short identifier for the metric. Corresponds to the JSON property shortId

Returns:

  • (String)


2383
2384
2385
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2383

def short_id
  @short_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2390
2391
2392
2393
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2390

def update!(**args)
  @metric_index = args[:metric_index] if args.key?(:metric_index)
  @short_id = args[:short_id] if args.key?(:short_id)
end