class Google::Apis::DataflowV1b3::MetricStructuredName

Identifies a metric, by describing the source which generated the metric.

Attributes

context[RW]

Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection. For example, built- in counters associated with steps will have context = . Counters associated with PCollections in the SDK will have context = . Corresponds to the JSON property `context` @return [Hash<String,String>]

name[RW]

Worker-defined metric name. Corresponds to the JSON property `name` @return [String]

origin[RW]

Origin (namespace) of metric name. May be blank for user-define metrics; will be “dataflow” for metrics defined by the Dataflow service or SDK. Corresponds to the JSON property `origin` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dataflow_v1b3/classes.rb, line 2946
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dataflow_v1b3/classes.rb, line 2951
def update!(**args)
  @context = args[:context] if args.key?(:context)
  @name = args[:name] if args.key?(:name)
  @origin = args[:origin] if args.key?(:origin)
end