Class: Google::Apis::DataflowV1b3::JobMetrics

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

JobMetrics contains a collection of metrics descibing the detailed progress of a Dataflow job. Metrics correspond to user-defined and system-defined metrics in the job. This resource captures only the most recent values of each metric; time-series data can be queried for them (under the same metric names) from Cloud Monitoring.

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) ⇒ JobMetrics

Returns a new instance of JobMetrics



2058
2059
2060
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2058

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

Instance Attribute Details

#metric_timeString

Timestamp as of which metric values are current. Corresponds to the JSON property metricTime

Returns:

  • (String)


2051
2052
2053
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2051

def metric_time
  @metric_time
end

#metricsArray<Google::Apis::DataflowV1b3::MetricUpdate>

All metrics for this job. Corresponds to the JSON property metrics



2056
2057
2058
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2056

def metrics
  @metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2063
2064
2065
2066
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2063

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