elasticsearch/docs/reference/rest-api
Lee Hinman f9511f477e
Add SLM support to xpack usage and info APIs (#48096)
* Add SLM support to xpack usage and info APIs

This adds the missing xpack usage and info information into the
`/_xpack` and `/_xpack/usage` APIs. The output now looks like:

```
GET /_xpack/usage
{
  ...
  "slm" : {
    "available" : true,
    "enabled" : true,
    "policy_count" : 1,
    "policy_stats" : {
      "retention_runs" : 0,
      ...
    }
  }
```

and

```
GET /_xpack
{
  ...
  "features" : {
    ...
    "slm" : {
      "available" : true,
      "enabled" : true
    },
    ...
  }
}
```

Relates to #43663

* Fix test expectation

* Fix docs test
2019-10-16 09:00:15 -06:00
..
common-parms.asciidoc Added request and response body sections. Closes #16035 (#48032) 2019-10-15 11:27:46 -07:00
defs.asciidoc [DOCS] Update data frame transform URLs (#46940) 2019-09-20 13:26:57 -07:00
index.asciidoc Merge remote-tracking branch 'es/master' into enrich 2019-09-23 09:34:53 +02:00
info.asciidoc Add SLM support to xpack usage and info APIs (#48096) 2019-10-16 09:00:15 -06:00