public final class AutoscalingEvent extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Dataflow API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
AutoscalingEvent() |
Modifier and Type | Method and Description |
---|---|
AutoscalingEvent |
clone() |
Long |
getCurrentNumWorkers()
The current number of workers the job has.
|
StructuredMessage |
getDescription()
A message describing why the system decided to adjust the current number of workers, why it
failed, or why the system decided to not make any changes to the number of workers.
|
String |
getEventType()
The type of autoscaling event to report.
|
Long |
getTargetNumWorkers()
The target number of workers the worker pool wants to resize to use.
|
String |
getTime()
The time this event was emitted to indicate a new target or current num_workers value.
|
String |
getWorkerPool()
A short and friendly name for the worker pool this event refers to, populated from the value of
PoolStageRelation::user_pool_name.
|
AutoscalingEvent |
set(String fieldName,
Object value) |
AutoscalingEvent |
setCurrentNumWorkers(Long currentNumWorkers)
The current number of workers the job has.
|
AutoscalingEvent |
setDescription(StructuredMessage description)
A message describing why the system decided to adjust the current number of workers, why it
failed, or why the system decided to not make any changes to the number of workers.
|
AutoscalingEvent |
setEventType(String eventType)
The type of autoscaling event to report.
|
AutoscalingEvent |
setTargetNumWorkers(Long targetNumWorkers)
The target number of workers the worker pool wants to resize to use.
|
AutoscalingEvent |
setTime(String time)
The time this event was emitted to indicate a new target or current num_workers value.
|
AutoscalingEvent |
setWorkerPool(String workerPool)
A short and friendly name for the worker pool this event refers to, populated from the value of
PoolStageRelation::user_pool_name.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Long getCurrentNumWorkers()
null
for nonepublic AutoscalingEvent setCurrentNumWorkers(Long currentNumWorkers)
currentNumWorkers
- currentNumWorkers or null
for nonepublic StructuredMessage getDescription()
null
for nonepublic AutoscalingEvent setDescription(StructuredMessage description)
description
- description or null
for nonepublic String getEventType()
null
for nonepublic AutoscalingEvent setEventType(String eventType)
eventType
- eventType or null
for nonepublic Long getTargetNumWorkers()
null
for nonepublic AutoscalingEvent setTargetNumWorkers(Long targetNumWorkers)
targetNumWorkers
- targetNumWorkers or null
for nonepublic String getTime()
null
for nonepublic AutoscalingEvent setTime(String time)
time
- time or null
for nonepublic String getWorkerPool()
null
for nonepublic AutoscalingEvent setWorkerPool(String workerPool)
workerPool
- workerPool or null
for nonepublic AutoscalingEvent set(String fieldName, Object value)
set
in class GenericJson
public AutoscalingEvent clone()
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.