@@ -73,44 +73,44 @@ $ kn event build \
73
73
74
74
To send and event you should utilize ` send ` subcommand. The ` send ` command
75
75
leverages the same builder-like interface as ` build ` command does. You could
76
- send an event to public address of your application by using ` --to-url ` option,
77
- or to supported in-cluster resources by using ` --to ` option.
76
+ send an event to public address of your application or to supported
77
+ in-cluster resources by using ` --to ` option.
78
78
79
79
#### Sending to public address
80
80
81
- To send event to public address you use ` --to-url ` option:
81
+ To send event to public address you use pass it to the ` --to ` option:
82
82
83
83
``` sh
84
84
$ kn event send \
85
85
--field player.id=6354aa60-ddb1-452e-8c13-24893667de20 \
86
86
--field player.game=2345 \
87
87
--field points=456 \
88
88
--type org.example.gaming.foo \
89
- --to-url http://ce-api.foo.example.org/
89
+ --to http://ce-api.foo.example.org/
90
90
```
91
91
92
- > ** NOTE** : All argument, except ` --to-url ` are optional. Use
92
+ > ** NOTE** : All argument, except ` --to ` are optional. Use
93
93
> ` kn event send --help ` to see full usage information.
94
94
95
95
#### Sending to in-cluster resources
96
96
97
- Sending event to in-cluster resources is done with a companion Job that is
98
- deployed on your cluster. In that way ` kn-event ` and send your event even to
97
+ Sending events to in-cluster resources is done with a companion * Job* that
98
+ is deployed on your cluster. This allows ` kn-event ` to send your events to
99
99
resources that are not publicly accessible.
100
100
101
- Send an event to a Knative service ` event-display ` in namespace ` default ` :
101
+ Send an event to a Knative service ` showcase ` in current namespace :
102
102
103
103
``` sh
104
104
$ kn event send \
105
105
--type org.example.kn.ping \
106
106
--id $( uuidgen) \
107
107
--field event.type=test \
108
108
--field event.data=98765 \
109
- --to Service:serving.knative.dev/v1:event-display
109
+ --to showcase
110
110
```
111
111
112
- > ** NOTE** : All argument, except ` --to-url ` are optional. Use
113
- > ` kn event send --help ` to see full usage information .
112
+ > ** NOTE** : The --to option follow [ the Kn sink format ] ( https://github.com/knative/client/blob/main/docs/cmd/kn_trigger_create.md#options ) .
113
+ > Use ` kn event send --help ` to see full format description .
114
114
115
115
## Install
116
116
0 commit comments