diff --git a/docs/reference/rest-api/usage.asciidoc b/docs/reference/rest-api/usage.asciidoc index b57d2aee9d190..b284e1eb00e7e 100644 --- a/docs/reference/rest-api/usage.asciidoc +++ b/docs/reference/rest-api/usage.asciidoc @@ -207,16 +207,8 @@ GET /_xpack/usage "inference": { "available" : true, "enabled" : true, - "models" : [{ - "service": "elasticsearch", - "task_type": "SPARSE_EMBEDDING", - "count": 1 - }, - { - "service": "elasticsearch", - "task_type": "TEXT_EMBEDDING", - "count": 1 - }, + "models" : [ + ... ] }, "logstash" : { @@ -523,7 +515,10 @@ GET /_xpack/usage "available": true, "enabled": false, "indices_count": 0, - "indices_with_synthetic_source": 0 + "indices_with_synthetic_source": 0, + "num_docs": 0, + "size_in_bytes": 0, + "has_custom_cutoff_date": false } } ------------------------------------------------------------ @@ -535,6 +530,7 @@ GET /_xpack/usage // TESTRESPONSE[s/"policy_stats" : \[[^\]]*\]/"policy_stats" : $body.$_path/] // TESTRESPONSE[s/"slm" : \{[^\}]*\},/"slm" : $body.$_path,/] // TESTRESPONSE[s/"health_api" : \{[^\}]*\}\s*\}/"health_api" : $body.$_path/] +// TESTRESPONSE[s/"models" : \[[^\]]*\]/"models" : $body.$_path/] // TESTRESPONSE[s/"data_streams" : \{[^\}]*\},/"data_streams" : $body.$_path,/] // TESTRESPONSE[s/ : true/ : $body.$_path/] // TESTRESPONSE[s/ : false/ : $body.$_path/] @@ -551,4 +547,5 @@ GET /_xpack/usage // 5. All of the numbers and strings on the right hand side of *every* field in // the response are ignored. So we're really only asserting things about the // the shape of this response, not the values in it. -// 6. Ignore the contents of data streams until the failure store is tech preview. +// 6. Ignore the contents of the `inference.models` array because the models might not yet have been initialized +// 7. Ignore the contents of data streams until the failure store is tech preview. diff --git a/muted-tests.yml b/muted-tests.yml index b86aad0d091d6..a59c3a0dc7b8a 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -64,9 +64,6 @@ tests: - class: org.elasticsearch.xpack.inference.TextEmbeddingCrudIT method: testPutE5Small_withPlatformSpecificVariant issue: https://github.com/elastic/elasticsearch/issues/113950 -- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT - method: test {yaml=reference/rest-api/usage/line_38} - issue: https://github.com/elastic/elasticsearch/issues/113694 - class: org.elasticsearch.xpack.remotecluster.RemoteClusterSecurityWithApmTracingRestIT method: testTracingCrossCluster issue: https://github.com/elastic/elasticsearch/issues/112731