spotf stream egress-route create-or-update event-hub
Create/Update Azure Event Hub Egress Route
Arguments
None.
Options
--stream-group-name
: Stream Group name
- Required.
- Value = [string]
--stream-name
: Stream name
- Required.
- Value = [string]
--egress-route-name
: Egress Route name
- Required.
- Value = [string]
--disable-payload-embedding
: If set, the payload of messages routed to the Event Hub will never be embedded, even if it would fit. Instead, the payload will be always sent in the a form of a link to a blob within stream storage. Thanks to that, the volume of data sent through the Event Hub can be significantly reduced.
--with-partition-key-pattern
: Custom partition key pattern. You can customize the partition key that will be used for each notification sent to the Event Hub egress. It's an interpolated string. Example: '{WorkspaceId}_{streamGroupName}_{deviceId}'.
- Value = [string]
--without-partition-key-pattern
: Do not use custom partition key pattern.
--egress-sink-name
: Egress Sink name. (Must be provided for a new Egress Route.)
- Value = [string]
--notification-input
: Notification input type. (Message notifications - Contains payload and metadata of individual messages. Batch completion notification - Contains a link to the blob prefix in the stream storage where all messages from the batch are stored.)
- Value = [Messages|BatchCompletions]
--is-enabled
: Specifies whether to enable or disable the routing of notifications to the Egress Sink. By default, the routing of notifications to the Egress Sink is enabled when creating a new Egress Route.To disable it, use the option '--is-enabled false'.
--with-filter
: Specifies the condition to filter notifications sent to the Egress Sink. For example, by enabling the next condition 'starts_with(metadata.deviceId, 'test_') OR metadata.deviceId = 'my_awesome_device'', the platform will send to Egress Sink only those notifications, which coming from devices with IDs like 'test_device_1', 'my_awesome_device' etc. By default, the filtering is disabled for new routes. To disable already enabled one, use the option '--without-filter'.
- Value = [string]
--without-filter
: Do not use filtering.
--instance-label
: Label for IoT Platform instance
- Value = [string]
--workspace
: Workspace ID / Name
- Value = [string]