Class: StatusMessage

.StreamManager~StatusMessage(eventType, statusLevel, status, statusContext, message, timestampEpochMs)

Status object appended to a status-stream.

Constructor

new StatusMessage(eventType, statusLevel, status, statusContext, message, timestampEpochMs)

Parameters:
Name Type Default Description
eventType aws-greengrass-core-sdk.StreamManager.EventType null
statusLevel aws-greengrass-core-sdk.StreamManager.StatusLevel null
status aws-greengrass-core-sdk.StreamManager.Status null
statusContext aws-greengrass-core-sdk.StreamManager.StatusContext null
message String null String describing the status message.
timestampEpochMs Number null The time this status was added to the status-stream (in milliseconds since epoch).
Source:

Members

eventType

Source:

eventType

Source:

message

String describing the status message.
Source:

message

Source:

status

Source:

status

Source:

statusContext

Source:

statusContext

Source:

statusLevel

Source:

statusLevel

Source:

timestampEpochMs

The time this status was added to the status-stream (in milliseconds since epoch).
Source:

timestampEpochMs

Source:

Methods

withEventType(value) → {aws-greengrass-core-sdk.StreamManager.StatusMessage}

Parameters:
Name Type Description
value aws-greengrass-core-sdk.StreamManager.EventType
Source:
Returns:
Type
aws-greengrass-core-sdk.StreamManager.StatusMessage

withMessage(value) → {aws-greengrass-core-sdk.StreamManager.StatusMessage}

Parameters:
Name Type Description
value String String describing the status message.
Source:
Returns:
Type
aws-greengrass-core-sdk.StreamManager.StatusMessage

withStatus(value) → {aws-greengrass-core-sdk.StreamManager.StatusMessage}

Parameters:
Name Type Description
value aws-greengrass-core-sdk.StreamManager.Status
Source:
Returns:
Type
aws-greengrass-core-sdk.StreamManager.StatusMessage

withStatusContext(value) → {aws-greengrass-core-sdk.StreamManager.StatusMessage}

Parameters:
Name Type Description
value aws-greengrass-core-sdk.StreamManager.StatusContext
Source:
Returns:
Type
aws-greengrass-core-sdk.StreamManager.StatusMessage

withStatusLevel(value) → {aws-greengrass-core-sdk.StreamManager.StatusMessage}

Parameters:
Name Type Description
value aws-greengrass-core-sdk.StreamManager.StatusLevel
Source:
Returns:
Type
aws-greengrass-core-sdk.StreamManager.StatusMessage

withTimestampEpochMs(value) → {aws-greengrass-core-sdk.StreamManager.StatusMessage}

Parameters:
Name Type Description
value Number The time this status was added to the status-stream (in milliseconds since epoch).
Source:
Returns:
Type
aws-greengrass-core-sdk.StreamManager.StatusMessage