target.apidocs.com.google.api.services.dataflow.model.AutoscalingEvent.html Maven / Gradle / Ivy
AutoscalingEvent (Dataflow API v1b3-rev20231112-2.0.0)
com.google.api.services.dataflow.model
Class AutoscalingEvent
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.dataflow.model.AutoscalingEvent
-
public final class AutoscalingEvent
extends com.google.api.client.json.GenericJson
A structured message reporting an autoscaling decision made by the Dataflow service.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
AutoscalingEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
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.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getCurrentNumWorkers
public Long getCurrentNumWorkers()
The current number of workers the job has.
- Returns:
- value or
null
for none
-
setCurrentNumWorkers
public AutoscalingEvent setCurrentNumWorkers(Long currentNumWorkers)
The current number of workers the job has.
- Parameters:
currentNumWorkers
- currentNumWorkers or null
for none
-
getDescription
public 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.
- Returns:
- value or
null
for none
-
setDescription
public 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.
- Parameters:
description
- description or null
for none
-
getEventType
public String getEventType()
The type of autoscaling event to report.
- Returns:
- value or
null
for none
-
setEventType
public AutoscalingEvent setEventType(String eventType)
The type of autoscaling event to report.
- Parameters:
eventType
- eventType or null
for none
-
getTargetNumWorkers
public Long getTargetNumWorkers()
The target number of workers the worker pool wants to resize to use.
- Returns:
- value or
null
for none
-
setTargetNumWorkers
public AutoscalingEvent setTargetNumWorkers(Long targetNumWorkers)
The target number of workers the worker pool wants to resize to use.
- Parameters:
targetNumWorkers
- targetNumWorkers or null
for none
-
getTime
public String getTime()
The time this event was emitted to indicate a new target or current num_workers value.
- Returns:
- value or
null
for none
-
setTime
public AutoscalingEvent setTime(String time)
The time this event was emitted to indicate a new target or current num_workers value.
- Parameters:
time
- time or null
for none
-
getWorkerPool
public String getWorkerPool()
A short and friendly name for the worker pool this event refers to.
- Returns:
- value or
null
for none
-
setWorkerPool
public AutoscalingEvent setWorkerPool(String workerPool)
A short and friendly name for the worker pool this event refers to.
- Parameters:
workerPool
- workerPool or null
for none
-
set
public AutoscalingEvent set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public AutoscalingEvent clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2023 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy