Class: HTTPConfig

.StreamManager~HTTPConfig(identifier, uri, batchSize, batchIntervalMillis, priority, startSequenceNumber, disabled, exportFormat)

This export destination is not supported! The interface may change at any time without notice and should not be relied on for any production use. There are no guarantees around its correctness. This configures an HTTP endpoint which sends a POST request to the provided URI. Each request contains a single message in the body of the request.

Constructor

new HTTPConfig(identifier, uri, batchSize, batchIntervalMillis, priority, startSequenceNumber, disabled, exportFormat)

Parameters:
Name Type Default Description
identifier String null A unique identifier to identify this individual upload stream. Must be an alphanumeric string including spaces, commas, periods, hyphens, and underscores with length between 1 and 255.
uri String null URL for HTTP endpoint which should receive the POST requests for export.
batchSize Number null The maximum size of a batch to send to the destination. Messages will be queued until the batch size is reached, after which they will then be uploaded. If unspecified the default will be 500. If both batchSize and batchIntervalMillis are specified, then messages will be eligible for upload when either condition is met. The minimum batch size is 1 and the maximum is 500.
batchIntervalMillis Number null The time in milliseconds between the earliest un-uploaded message and the current time. If this time is exceeded, messages will be uploaded in the next batch. If unspecified messages will be eligible for upload immediately. If both batchSize and batchIntervalMillis are specified, then messages will be eligible for upload when either condition is met. The minimum value is 60000 milliseconds and the maximum is 9223372036854 milliseconds.
priority Number null Priority for this upload stream. Lower values are higher priority. If not specified it will have the lowest priority.
startSequenceNumber Number null The sequence number of the message to use as the starting message in the export. Default is 0. The sequence number provided should be less than the newest sequence number in the stream, i.e., sequence number of the last messaged appended. To find the newest sequence number, describe the stream and then check the storage status of the returned MessageStreamInfo object.
disabled Boolean null Enable or disable this export. Default is false.
exportFormat aws-greengrass-core-sdk.StreamManager.ExportFormat null Defines how messages are batched and formatted in the export payload.
Source:

Members

batchIntervalMillis

The time in milliseconds between the earliest un-uploaded message and the current time. If this time is exceeded, messages will be uploaded in the next batch. If unspecified messages will be eligible for upload immediately. If both batchSize and batchIntervalMillis are specified, then messages will be eligible for upload when either condition is met. The minimum value is 60000 milliseconds and the maximum is 9223372036854 milliseconds.
Source:

batchIntervalMillis

Source:

batchSize

The maximum size of a batch to send to the destination. Messages will be queued until the batch size is reached, after which they will then be uploaded. If unspecified the default will be 500. If both batchSize and batchIntervalMillis are specified, then messages will be eligible for upload when either condition is met. The minimum batch size is 1 and the maximum is 500.
Source:

batchSize

Source:

disabled

Enable or disable this export. Default is false.
Source:

disabled

Source:

exportFormat

Defines how messages are batched and formatted in the export payload.
Source:

exportFormat

Source:

identifier

A unique identifier to identify this individual upload stream. Must be an alphanumeric string including spaces, commas, periods, hyphens, and underscores with length between 1 and 255.
Source:

identifier

Source:

priority

Priority for this upload stream. Lower values are higher priority. If not specified it will have the lowest priority.
Source:

priority

Source:

startSequenceNumber

The sequence number of the message to use as the starting message in the export. Default is 0. The sequence number provided should be less than the newest sequence number in the stream, i.e., sequence number of the last messaged appended. To find the newest sequence number, describe the stream and then check the storage status of the returned MessageStreamInfo object.
Source:

startSequenceNumber

Source:

uri

URL for HTTP endpoint which should receive the POST requests for export.
Source:

uri

Source:

Methods

withBatchIntervalMillis(value) → {aws-greengrass-core-sdk.StreamManager.HTTPConfig}

Parameters:
Name Type Description
value Number The time in milliseconds between the earliest un-uploaded message and the current time. If this time is exceeded, messages will be uploaded in the next batch. If unspecified messages will be eligible for upload immediately. If both batchSize and batchIntervalMillis are specified, then messages will be eligible for upload when either condition is met. The minimum value is 60000 milliseconds and the maximum is 9223372036854 milliseconds.
Source:
Returns:
Type
aws-greengrass-core-sdk.StreamManager.HTTPConfig

withBatchSize(value) → {aws-greengrass-core-sdk.StreamManager.HTTPConfig}

Parameters:
Name Type Description
value Number The maximum size of a batch to send to the destination. Messages will be queued until the batch size is reached, after which they will then be uploaded. If unspecified the default will be 500. If both batchSize and batchIntervalMillis are specified, then messages will be eligible for upload when either condition is met. The minimum batch size is 1 and the maximum is 500.
Source:
Returns:
Type
aws-greengrass-core-sdk.StreamManager.HTTPConfig

withDisabled(value) → {aws-greengrass-core-sdk.StreamManager.HTTPConfig}

Parameters:
Name Type Description
value Boolean Enable or disable this export. Default is false.
Source:
Returns:
Type
aws-greengrass-core-sdk.StreamManager.HTTPConfig

withExportFormat(value) → {aws-greengrass-core-sdk.StreamManager.HTTPConfig}

Parameters:
Name Type Description
value aws-greengrass-core-sdk.StreamManager.ExportFormat Defines how messages are batched and formatted in the export payload.
Source:
Returns:
Type
aws-greengrass-core-sdk.StreamManager.HTTPConfig

withIdentifier(value) → {aws-greengrass-core-sdk.StreamManager.HTTPConfig}

Parameters:
Name Type Description
value String A unique identifier to identify this individual upload stream. Must be an alphanumeric string including spaces, commas, periods, hyphens, and underscores with length between 1 and 255.
Source:
Returns:
Type
aws-greengrass-core-sdk.StreamManager.HTTPConfig

withPriority(value) → {aws-greengrass-core-sdk.StreamManager.HTTPConfig}

Parameters:
Name Type Description
value Number Priority for this upload stream. Lower values are higher priority. If not specified it will have the lowest priority.
Source:
Returns:
Type
aws-greengrass-core-sdk.StreamManager.HTTPConfig

withStartSequenceNumber(value) → {aws-greengrass-core-sdk.StreamManager.HTTPConfig}

Parameters:
Name Type Description
value Number The sequence number of the message to use as the starting message in the export. Default is 0. The sequence number provided should be less than the newest sequence number in the stream, i.e., sequence number of the last messaged appended. To find the newest sequence number, describe the stream and then check the storage status of the returned MessageStreamInfo object.
Source:
Returns:
Type
aws-greengrass-core-sdk.StreamManager.HTTPConfig

withUri(value) → {aws-greengrass-core-sdk.StreamManager.HTTPConfig}

Parameters:
Name Type Description
value String URL for HTTP endpoint which should receive the POST requests for export.
Source:
Returns:
Type
aws-greengrass-core-sdk.StreamManager.HTTPConfig