Class: Google::Apis::DataflowV1b3::CounterStructuredNameAndMetadata

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

A single message which encapsulates structured name and metadata for a given counter.

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

Returns a new instance of CounterStructuredNameAndMetadata



5000
5001
5002
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 5000

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

Instance Attribute Details

#metadataGoogle::Apis::DataflowV1b3::CounterMetadata

CounterMetadata includes all static non-name non-value counter attributes. Corresponds to the JSON property metadata



4998
4999
5000
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4998

def 
  @metadata
end

#nameGoogle::Apis::DataflowV1b3::CounterStructuredName

Identifies a counter within a per-job namespace. Counters whose structured names are the same get merged into a single value for the job. Corresponds to the JSON property name



4993
4994
4995
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4993

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5005
5006
5007
5008
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 5005

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