vertx / io.vertx.ext.consul / Watch / key

# key

`open static fun key(key: String, vertx: Vertx): Watch<KeyValue>`

Creates `Watch` to monitoring a specific key in the KV store. The underlying Consul client will be created with default options. This maps to the /v1/kv/ API internally.

### Parameters

`key` - the key

`vertx` - the `Vertx` instance

Return
the `Watch` instance

`open static fun key(key: String, vertx: Vertx, options: ConsulClientOptions): Watch<KeyValue>`

Creates `Watch` to monitoring a specific key in the KV store. This maps to the /v1/kv/ API internally.

### Parameters

`key` - the key

`vertx` - the `Vertx` instance

`options` - the options to create underlying Consul client

Return
the `Watch` instance