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.



1444
1445
1446
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1444

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)


1411
1412
1413
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1411

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)


1394
1395
1396
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1394

def cumulative
  @cumulative
end

#floating_pointFloat

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

Returns:

  • (Float)


1406
1407
1408
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1406

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



1432
1433
1434
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1432

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



1422
1423
1424
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1422

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



1401
1402
1403
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1401

def integer
  @integer
end

#integer_listGoogle::Apis::DataflowV1b3::IntegerList

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



1427
1428
1429
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1427

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



1417
1418
1419
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1417

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)


1442
1443
1444
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1442

def internal
  @internal
end

#name_and_kindGoogle::Apis::DataflowV1b3::NameAndKind

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



1375
1376
1377
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1375

def name_and_kind
  @name_and_kind
end

#short_idString

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:

  • (String)


1381
1382
1383
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1381

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



1437
1438
1439
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1437

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



1387
1388
1389
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1387

def 
  @structured_name_and_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1449

def update!(**args)
  @name_and_kind = args[:name_and_kind] if args.key?(:name_and_kind)
  @short_id = args[:short_id] if args.key?(:short_id)
  @structured_name_and_metadata = args[:structured_name_and_metadata] if args.key?(:structured_name_and_metadata)
  @cumulative = args[:cumulative] if args.key?(:cumulative)
  @integer = args[:integer] if args.key?(:integer)
  @floating_point = args[:floating_point] if args.key?(:floating_point)
  @boolean = args[:boolean] if args.key?(:boolean)
  @integer_mean = args[:integer_mean] if args.key?(:integer_mean)
  @floating_point_mean = args[:floating_point_mean] if args.key?(:floating_point_mean)
  @integer_list = args[:integer_list] if args.key?(:integer_list)
  @floating_point_list = args[:floating_point_list] if args.key?(:floating_point_list)
  @string_list = args[:string_list] if args.key?(:string_list)
  @internal = args[:internal] if args.key?(:internal)
end