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

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CounterMetadata

Returns a new instance of CounterMetadata.



516
517
518
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 516

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)


499
500
501
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 499

def description
  @description
end

#kindString

Counter aggregation kind. Corresponds to the JSON property kind

Returns:

  • (String)


504
505
506
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 504

def kind
  @kind
end

#other_unitsString

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

Returns:

  • (String)


509
510
511
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 509

def other_units
  @other_units
end

#standard_unitsString

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

Returns:

  • (String)


514
515
516
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 514

def standard_units
  @standard_units
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



521
522
523
524
525
526
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 521

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