Class: Google::Apis::DataflowV1b3::CounterMetadata

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

CounterMetadata includes all static non-name non-value counter attributes.

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

Returns a new instance of CounterMetadata



4885
4886
4887
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4885

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

Instance Attribute Details

#descriptionString

Human-readable description of the counter semantics. Corresponds to the JSON property description

Returns:

  • (String)


4883
4884
4885
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4883

def description
  @description
end

#kindString

Counter aggregation kind. Corresponds to the JSON property kind

Returns:

  • (String)


4878
4879
4880
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4878

def kind
  @kind
end

#other_unitsString

A string referring to the unit type. Corresponds to the JSON property otherUnits

Returns:

  • (String)


4873
4874
4875
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4873

def other_units
  @other_units
end

#standard_unitsString

System defined Units, see above enum. Corresponds to the JSON property standardUnits

Returns:

  • (String)


4868
4869
4870
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4868

def standard_units
  @standard_units
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4890
4891
4892
4893
4894
4895
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4890

def update!(**args)
  @standard_units = args[:standard_units] if args.key?(:standard_units)
  @other_units = args[:other_units] if args.key?(:other_units)
  @kind = args[:kind] if args.key?(:kind)
  @description = args[:description] if args.key?(:description)
end