public final class AutoscalingEvent
extends com.google.api.client.json.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 Google Dataflow API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
AutoscalingEvent() |
| Modifier and Type | Method and Description |
|---|---|
AutoscalingEvent |
clone() |
java.lang.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.
|
java.lang.String |
getEventType()
The type of autoscaling event to report.
|
java.lang.Long |
getTargetNumWorkers()
The target number of workers the worker pool wants to resize to use.
|
java.lang.String |
getTime()
The time this event was emitted to indicate a new target or current num_workers value.
|
AutoscalingEvent |
set(java.lang.String fieldName,
java.lang.Object value) |
AutoscalingEvent |
setCurrentNumWorkers(java.lang.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(java.lang.String eventType)
The type of autoscaling event to report.
|
AutoscalingEvent |
setTargetNumWorkers(java.lang.Long targetNumWorkers)
The target number of workers the worker pool wants to resize to use.
|
AutoscalingEvent |
setTime(java.lang.String time)
The time this event was emitted to indicate a new target or current num_workers value.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.Long getCurrentNumWorkers()
null for nonepublic AutoscalingEvent setCurrentNumWorkers(java.lang.Long currentNumWorkers)
currentNumWorkers - currentNumWorkers or null for nonepublic StructuredMessage getDescription()
null for nonepublic AutoscalingEvent setDescription(StructuredMessage description)
description - description or null for nonepublic java.lang.String getEventType()
null for nonepublic AutoscalingEvent setEventType(java.lang.String eventType)
eventType - eventType or null for nonepublic java.lang.Long getTargetNumWorkers()
null for nonepublic AutoscalingEvent setTargetNumWorkers(java.lang.Long targetNumWorkers)
targetNumWorkers - targetNumWorkers or null for nonepublic java.lang.String getTime()
null for nonepublic AutoscalingEvent setTime(java.lang.String time)
time - time or null for nonepublic AutoscalingEvent set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic AutoscalingEvent clone()
clone in class com.google.api.client.json.GenericJson