34 lines
899 B
Plaintext
34 lines
899 B
Plaintext
[[api-rest-info]]
|
|
==== Info API
|
|
|
|
The watcher info API gives basic version information on the watcher plugin that is installed.
|
|
|
|
The following example queries the `info` API.
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
GET _watcher
|
|
--------------------------------------------------
|
|
// AUTOSENSE
|
|
|
|
A successful call returns a JSON structure similar to the following example:
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
{
|
|
"version": {
|
|
"name": "2.0.0",
|
|
"number": "2.0.0", <1>
|
|
"build_hash": "41f64213d2d370bf66f0e9b839a30a19", <2>
|
|
"build_timestamp": "2015-04-07T13:34:42Z", <3>
|
|
"build_snapshot": true <4>
|
|
}
|
|
}
|
|
--------------------------------------------------
|
|
|
|
<1> The build number of the plugin
|
|
<2> The build hash of the plugin
|
|
<3> The time the plugin was built
|
|
<4> Whether or not this plugin was a development snapshot build
|
|
|