Send
Send messages to a 'queries' channel command

Synopsis

Send command allow to send messages to 'queries' channel with an option to set query time-out and caching parameters
1
kubemqctl queries send [flags]
Copied!

Examples

1
# Send query to a 'queries' channel
2
kubemqctl queries send some-channel some-query
3
4
# Send query to a 'queries' channel with metadata
5
kubemqctl queries send some-channel some-message -m some-metadata
6
7
# Send query to a 'queries' channel with 120 seconds timeout
8
kubemqctl queries send some-channel some-message -o 120
9
10
# Send query to a 'queries' channel with cache-key and cache duration of 1m
11
kubemqctl queries send some-channel some-message -c cache-key -d 1m
Copied!

Options

1
-d, --cache-duration duration set cache duration timeout (default 10m0s)
2
-c, --cache-key string set query cache key
3
-h, --help help for send
4
-m, --metadata string set query message metadata field
5
-o, --timeout int set query timeout (default 30)
Copied!

Options inherited from parent commands

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