Class: Google::Apis::DataflowV1b3::CounterUpdate
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::CounterUpdate
- 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
An update to a Counter sent from a worker.
Instance Attribute Summary collapse
-
#boolean ⇒ Boolean
(also: #boolean?)
Boolean value for And, Or.
-
#cumulative ⇒ Boolean
(also: #cumulative?)
True if this counter is reported as the total cumulative aggregate value accumulated since the worker started working on this WorkItem.
-
#distribution ⇒ Google::Apis::DataflowV1b3::DistributionUpdate
A metric value representing a distribution.
-
#floating_point ⇒ Float
Floating point value for Sum, Max, Min.
-
#floating_point_list ⇒ Google::Apis::DataflowV1b3::FloatingPointList
A metric value representing a list of floating point numbers.
-
#floating_point_mean ⇒ Google::Apis::DataflowV1b3::FloatingPointMean
A representation of a floating point mean metric contribution.
-
#integer ⇒ Google::Apis::DataflowV1b3::SplitInt64
A representation of an int64, n, that is immune to precision loss when encoded in JSON.
-
#integer_list ⇒ Google::Apis::DataflowV1b3::IntegerList
A metric value representing a list of integers.
-
#integer_mean ⇒ Google::Apis::DataflowV1b3::IntegerMean
A representation of an integer mean metric contribution.
-
#internal ⇒ Object
Value for internally-defined counters used by the Dataflow service.
-
#name_and_kind ⇒ Google::Apis::DataflowV1b3::NameAndKind
Basic metadata about a counter.
-
#short_id ⇒ Fixnum
The service-generated short identifier for this counter.
-
#string_list ⇒ Google::Apis::DataflowV1b3::StringList
A metric value representing a list of strings.
-
#structured_name_and_metadata ⇒ Google::Apis::DataflowV1b3::CounterStructuredNameAndMetadata
A single message which encapsulates structured name and metadata for a given counter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CounterUpdate
constructor
A new instance of CounterUpdate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CounterUpdate
Returns a new instance of CounterUpdate
2740 2741 2742 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2740 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boolean ⇒ Boolean Also known as: boolean?
Boolean value for And, Or.
Corresponds to the JSON property boolean
2722 2723 2724 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2722 def boolean @boolean end |
#cumulative ⇒ Boolean Also known as: cumulative?
True if this counter is reported as the total cumulative aggregate
value accumulated since the worker started working on this WorkItem.
By default this is false, indicating that this counter is reported
as a delta.
Corresponds to the JSON property cumulative
2711 2712 2713 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2711 def cumulative @cumulative end |
#distribution ⇒ Google::Apis::DataflowV1b3::DistributionUpdate
A metric value representing a distribution.
Corresponds to the JSON property distribution
2738 2739 2740 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2738 def distribution @distribution end |
#floating_point ⇒ Float
Floating point value for Sum, Max, Min.
Corresponds to the JSON property floatingPoint
2693 2694 2695 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2693 def floating_point @floating_point end |
#floating_point_list ⇒ Google::Apis::DataflowV1b3::FloatingPointList
A metric value representing a list of floating point numbers.
Corresponds to the JSON property floatingPointList
2671 2672 2673 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2671 def floating_point_list @floating_point_list end |
#floating_point_mean ⇒ Google::Apis::DataflowV1b3::FloatingPointMean
A representation of a floating point mean metric contribution.
Corresponds to the JSON property floatingPointMean
2717 2718 2719 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2717 def floating_point_mean @floating_point_mean end |
#integer ⇒ Google::Apis::DataflowV1b3::SplitInt64
A representation of an int64, n, that is immune to precision loss when
encoded in JSON.
Corresponds to the JSON property integer
2677 2678 2679 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2677 def integer @integer end |
#integer_list ⇒ Google::Apis::DataflowV1b3::IntegerList
A metric value representing a list of integers.
Corresponds to the JSON property integerList
2688 2689 2690 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2688 def integer_list @integer_list end |
#integer_mean ⇒ Google::Apis::DataflowV1b3::IntegerMean
A representation of an integer mean metric contribution.
Corresponds to the JSON property integerMean
2698 2699 2700 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2698 def integer_mean @integer_mean end |
#internal ⇒ Object
Value for internally-defined counters used by the Dataflow service.
Corresponds to the JSON property internal
2703 2704 2705 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2703 def internal @internal end |
#name_and_kind ⇒ Google::Apis::DataflowV1b3::NameAndKind
Basic metadata about a counter.
Corresponds to the JSON property nameAndKind
2728 2729 2730 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2728 def name_and_kind @name_and_kind end |
#short_id ⇒ Fixnum
The service-generated short identifier for this counter.
The short_id -> (name, metadata) mapping is constant for the lifetime of
a job.
Corresponds to the JSON property shortId
2666 2667 2668 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2666 def short_id @short_id end |
#string_list ⇒ Google::Apis::DataflowV1b3::StringList
A metric value representing a list of strings.
Corresponds to the JSON property stringList
2733 2734 2735 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2733 def string_list @string_list end |
#structured_name_and_metadata ⇒ Google::Apis::DataflowV1b3::CounterStructuredNameAndMetadata
A single message which encapsulates structured name and metadata for a given
counter.
Corresponds to the JSON property structuredNameAndMetadata
2683 2684 2685 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2683 def @structured_name_and_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2745 def update!(**args) @short_id = args[:short_id] if args.key?(:short_id) @floating_point_list = args[:floating_point_list] if args.key?(:floating_point_list) @integer = args[:integer] if args.key?(:integer) @structured_name_and_metadata = args[:structured_name_and_metadata] if args.key?(:structured_name_and_metadata) @integer_list = args[:integer_list] if args.key?(:integer_list) @floating_point = args[:floating_point] if args.key?(:floating_point) @integer_mean = args[:integer_mean] if args.key?(:integer_mean) @internal = args[:internal] if args.key?(:internal) @cumulative = args[:cumulative] if args.key?(:cumulative) @floating_point_mean = args[:floating_point_mean] if args.key?(:floating_point_mean) @boolean = args[:boolean] if args.key?(:boolean) @name_and_kind = args[:name_and_kind] if args.key?(:name_and_kind) @string_list = args[:string_list] if args.key?(:string_list) @distribution = args[:distribution] if args.key?(:distribution) end |