Class: Google::Apis::DataflowV1b3::PerStepNamespaceMetrics

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

Metrics for a particular unfused step and namespace. A metric is uniquely identified by the metrics_namespace, original_step, metric name and metric_labels.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PerStepNamespaceMetrics

Returns a new instance of PerStepNamespaceMetrics.



4103
4104
4105
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4103

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

Instance Attribute Details

#metric_valuesArray<Google::Apis::DataflowV1b3::MetricValue>

Optional. Metrics that are recorded for this namespace and unfused step. Corresponds to the JSON property metricValues



4090
4091
4092
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4090

def metric_values
  @metric_values
end

#metrics_namespaceString

The namespace of these metrics on the worker. Corresponds to the JSON property metricsNamespace

Returns:

  • (String)


4095
4096
4097
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4095

def metrics_namespace
  @metrics_namespace
end

#original_stepString

The original system name of the unfused step that these metrics are reported from. Corresponds to the JSON property originalStep

Returns:

  • (String)


4101
4102
4103
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4101

def original_step
  @original_step
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4108
4109
4110
4111
4112
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4108

def update!(**args)
  @metric_values = args[:metric_values] if args.key?(:metric_values)
  @metrics_namespace = args[:metrics_namespace] if args.key?(:metrics_namespace)
  @original_step = args[:original_step] if args.key?(:original_step)
end