Class: Google::Apis::DataflowV1b3::JobMetrics
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::JobMetrics
- 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
JobMetrics contains a collection of metrics describing the detailed progress of a Dataflow job. Metrics correspond to user-defined and system-defined metrics in the job. For more information, see Dataflow job metrics. 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
-
#metric_time ⇒ String
Timestamp as of which metric values are current.
-
#metrics ⇒ Array<Google::Apis::DataflowV1b3::MetricUpdate>
All metrics for this job.
Instance Method Summary collapse
-
#initialize(**args) ⇒ JobMetrics
constructor
A new instance of JobMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ JobMetrics
Returns a new instance of JobMetrics.
2710 2711 2712 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2710 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metric_time ⇒ String
Timestamp as of which metric values are current.
Corresponds to the JSON property metricTime
2703 2704 2705 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2703 def metric_time @metric_time end |
#metrics ⇒ Array<Google::Apis::DataflowV1b3::MetricUpdate>
All metrics for this job.
Corresponds to the JSON property metrics
2708 2709 2710 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2708 def metrics @metrics end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2715 2716 2717 2718 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2715 def update!(**args) @metric_time = args[:metric_time] if args.key?(:metric_time) @metrics = args[:metrics] if args.key?(:metrics) end |