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

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 metric short id is returned to the user alongside an offset into ReportWorkItemStatusRequest

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MetricShortId

Returns a new instance of MetricShortId.



3115
3116
3117
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3115

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)


3108
3109
3110
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3108

def metric_index
  @metric_index
end

#short_idFixnum

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

Returns:

  • (Fixnum)


3113
3114
3115
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3113

def short_id
  @short_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3120
3121
3122
3123
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3120

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