diff --git a/specification/_doc_ids/table.csv b/specification/_doc_ids/table.csv index fa13d8c872..5aa2aabe5e 100644 --- a/specification/_doc_ids/table.csv +++ b/specification/_doc_ids/table.csv @@ -263,6 +263,7 @@ get-features-api,https://www.elastic.co/docs/api/doc/elasticsearch/operation/ope get-global-checkpoints,https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-fleet,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/fleet-apis.html, get-license,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-get,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-license.html, get-ml-info,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-info,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-ml-info.html, +get-node-stats,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-get-node-stats,, get-pipeline-api,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-get-pipeline,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-pipeline-api.html, get-repositories-metering-api,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-get-repositories-metering-info,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-repositories-metering-api.html, get-synonym-rule,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-get-synonym-rule,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-synonym-rule.html, diff --git a/specification/transform/get_node_stats/GetNodeStatsRequest.ts b/specification/transform/get_node_stats/GetNodeStatsRequest.ts new file mode 100644 index 0000000000..a9d95ad8e3 --- /dev/null +++ b/specification/transform/get_node_stats/GetNodeStatsRequest.ts @@ -0,0 +1,38 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { RequestBase } from '@_types/Base' + +/** + * Get node stats. + * + * Get per-node information about transform usage. + * @rest_spec_name transform.get_node_stats + * @availability stack since=8.15.0 stability=stable + * @availability serverless stability=stable visibility=public + * @doc_id get-node-stats + */ +export interface Request extends RequestBase { + urls: [ + { + path: '/_transform/_node_stats' + methods: ['GET'] + } + ] +} diff --git a/specification/transform/get_node_stats/GetNodeStatsResponse.ts b/specification/transform/get_node_stats/GetNodeStatsResponse.ts new file mode 100644 index 0000000000..8749b2139e --- /dev/null +++ b/specification/transform/get_node_stats/GetNodeStatsResponse.ts @@ -0,0 +1,25 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { TransformNodeStats } from './types' + +export class Response { + /** @codegen_name stats */ + body: TransformNodeStats +} diff --git a/specification/transform/get_node_stats/types.ts b/specification/transform/get_node_stats/types.ts new file mode 100644 index 0000000000..17d5e9deba --- /dev/null +++ b/specification/transform/get_node_stats/types.ts @@ -0,0 +1,40 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { NodeId } from '@_types/common' +import { integer } from '@_types/Numeric' +import { AdditionalProperties } from '@spec_utils/behaviors' + +/** + * @behavior_meta AdditionalProperties fieldname=nodes description="Per node statistics" + */ +export class TransformNodeStats + implements AdditionalProperties +{ + total: Scheduler +} + +export interface Scheduler { + scheduler: TransformNodeStatsDetails +} + +export interface TransformNodeStatsDetails { + registered_transform_count: integer + peek_transform?: string +}