Class: Google::Apis::DataflowV1b3::CounterUpdate

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

An update to a Counter sent from a worker.

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

Returns a new instance of CounterUpdate



4172
4173
4174
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4172

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

Instance Attribute Details

#booleanBoolean Also known as: boolean?

Boolean value for And, Or. Corresponds to the JSON property boolean

Returns:

  • (Boolean)


4154
4155
4156
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4154

def boolean
  @boolean
end

#cumulativeBoolean 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

Returns:

  • (Boolean)


4138
4139
4140
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4138

def cumulative
  @cumulative
end

#distributionGoogle::Apis::DataflowV1b3::DistributionUpdate

A metric value representing a distribution. Corresponds to the JSON property distribution



4170
4171
4172
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4170

def distribution
  @distribution
end

#floating_pointFloat

Floating point value for Sum, Max, Min. Corresponds to the JSON property floatingPoint

Returns:

  • (Float)


4130
4131
4132
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4130

def floating_point
  @floating_point
end

#floating_point_listGoogle::Apis::DataflowV1b3::FloatingPointList

A metric value representing a list of floating point numbers. Corresponds to the JSON property floatingPointList



4103
4104
4105
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4103

def floating_point_list
  @floating_point_list
end

#floating_point_meanGoogle::Apis::DataflowV1b3::FloatingPointMean

A representation of a floating point mean metric contribution. Corresponds to the JSON property floatingPointMean



4149
4150
4151
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4149

def floating_point_mean
  @floating_point_mean
end

#integerGoogle::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



4109
4110
4111
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4109

def integer
  @integer
end

#integer_listGoogle::Apis::DataflowV1b3::IntegerList

A metric value representing a list of integers. Corresponds to the JSON property integerList



4120
4121
4122
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4120

def integer_list
  @integer_list
end

#integer_meanGoogle::Apis::DataflowV1b3::IntegerMean

A representation of an integer mean metric contribution. Corresponds to the JSON property integerMean



4125
4126
4127
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4125

def integer_mean
  @integer_mean
end

#internalObject

Value for internally-defined counters used by the Dataflow service. Corresponds to the JSON property internal

Returns:

  • (Object)


4144
4145
4146
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4144

def internal
  @internal
end

#name_and_kindGoogle::Apis::DataflowV1b3::NameAndKind

Basic metadata about a counter. Corresponds to the JSON property nameAndKind



4160
4161
4162
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4160

def name_and_kind
  @name_and_kind
end

#short_idFixnum

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

Returns:

  • (Fixnum)


4098
4099
4100
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4098

def short_id
  @short_id
end

#string_listGoogle::Apis::DataflowV1b3::StringList

A metric value representing a list of strings. Corresponds to the JSON property stringList



4165
4166
4167
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4165

def string_list
  @string_list
end

#structured_name_and_metadataGoogle::Apis::DataflowV1b3::CounterStructuredNameAndMetadata

A single message which encapsulates structured name and metadata for a given counter. Corresponds to the JSON property structuredNameAndMetadata



4115
4116
4117
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4115

def 
  @structured_name_and_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4177

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)
  @integer_mean = args[:integer_mean] if args.key?(:integer_mean)
  @floating_point = args[:floating_point] if args.key?(:floating_point)
  @cumulative = args[:cumulative] if args.key?(:cumulative)
  @internal = args[:internal] if args.key?(:internal)
  @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