dataflow
v1b3
|
#include <worker_lifecycle_event.h>
Public Member Functions | |
WorkerLifecycleEvent (const Json::Value &storage) | |
WorkerLifecycleEvent (Json::Value *storage) | |
virtual | ~WorkerLifecycleEvent () |
const StringPiece | GetTypeName () const |
bool | has_container_start_time () const |
void | clear_container_start_time () |
const StringPiece | get_container_start_time () const |
void | set_container_start_time (const StringPiece &value) |
bool | has_event () const |
void | clear_event () |
const StringPiece | get_event () const |
void | set_event (const StringPiece &value) |
bool | has_metadata () const |
void | clear_metadata () |
const client::JsonCppAssociativeArray< string > | get_metadata () const |
client::JsonCppAssociativeArray< string > | mutable_metadata () |
Static Public Member Functions | |
static WorkerLifecycleEvent * | New () |
A report of an event in a worker's lifecycle. The proto contains one event, because the worker is expected to asynchronously send each message immediately after the event. Due to this asynchrony, messages may arrive out of order (or missing), and it is up to the consumer to interpret. The timestamp of the event is in the enclosing WorkerMessage proto.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'containerStartTime
' attribute.
|
inline |
Clears the 'event
' attribute.
|
inline |
Clears the 'metadata
' attribute.
|
inline |
Get the value of the 'containerStartTime
' attribute.
|
inline |
Get the value of the 'event
' attribute.
|
inline |
Get a reference to the value of the 'metadata
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'containerStartTime
' attribute was set.
containerStartTime
' attribute was set.
|
inline |
Determine if the 'event
' attribute was set.
event
' attribute was set.
|
inline |
Determine if the 'metadata
' attribute was set.
metadata
' attribute was set.
|
inline |
Gets a reference to a mutable value of the 'metadata
' property.
Other stats that can accompany an event. E.g. { "downloaded_bytes" : "123456" }.
|
static |
Creates a new default instance.
|
inline |
Change the 'containerStartTime
' attribute.
The start time of this container. All events will report this so that events can be grouped together across container/VM restarts.
[in] | value | The new value. |
|
inline |
Change the 'event
' attribute.
The event being reported.
[in] | value | The new value. |