Send
Send messages to an 'events' channel command

Synopsis

Send command allows to send (publish) one or many messages to an 'events' channel
1
kubemqctl events send [flags]
Copied!

Examples

1
# Send (Publish) message to a 'events' channel
2
kubemqctl events send some-channel some-message
3
4
# Send (Publish) message to a 'events' channel with metadata
5
kubemqctl events send some-channel some-message --metadata some-metadata
6
7
# Send (Publish) batch of 10 messages to a 'events' channel
8
kubemqctl events send some-channel some-message -m 10
9
10
# Send (Publish) batch of 100 messages to a 'events' channel in stream mode
11
kubemqctl events send some-channel some-message -m 100 -s
Copied!

Options

1
-h, --help help for send
2
-m, --messages int set how many 'events' messages to send (default 1)
3
--metadata string set message metadata field
4
-s, --stream set stream of all messages at once
Copied!

Options inherited from parent commands

1
--config string set kubemqctl configuration file (default "./.kubemqctl.yaml")
Copied!
Last modified 1yr ago