Class: Google::Apis::DataflowV1b3::MetricStructuredName
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DataflowV1b3::MetricStructuredName
 
- 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
Identifies a metric, by describing the source which generated the metric.
Instance Attribute Summary collapse
- 
  
    
      #context  ⇒ Hash<String,String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    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. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Worker-defined metric name. 
- 
  
    
      #origin  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Origin (namespace) of metric name. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ MetricStructuredName 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of MetricStructuredName. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ MetricStructuredName
Returns a new instance of MetricStructuredName
| 2221 2222 2223 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2221 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#context ⇒ Hash<String,String>
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['step'] = context
| 2208 2209 2210 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2208 def context @context end | 
#name ⇒ String
Worker-defined metric name.
Corresponds to the JSON property name
| 2213 2214 2215 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2213 def name @name end | 
#origin ⇒ String
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
| 2219 2220 2221 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2219 def origin @origin end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2226 2227 2228 2229 2230 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2226 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 |