|
| 1 | +openapi: 3.1.0 |
| 2 | +info: |
| 3 | + title: OpenSearch ML API |
| 4 | + description: OpenSearch ML API. |
| 5 | + version: 1.0.0 |
| 6 | +paths: |
| 7 | + /_plugins/_ltr/stats: |
| 8 | + get: |
| 9 | + operationId: ltr.stats.0 |
| 10 | + x-operation-group: ltr.stats |
| 11 | + x-version-added: '1.0' |
| 12 | + description: Provides information about the current status of the LTR plugin. |
| 13 | + parameters: |
| 14 | + - $ref: '#/components/parameters/ltr.stats::query.timeout' |
| 15 | + responses: |
| 16 | + '200': |
| 17 | + $ref: '#/components/responses/ltr.stats@200' |
| 18 | + |
| 19 | + /_plugins/_ltr/stats/{stat}: |
| 20 | + get: |
| 21 | + operationId: ltr.stats.1 |
| 22 | + x-operation-group: ltr.stats |
| 23 | + x-version-added: '1.0' |
| 24 | + description: Provides information about the current status of the LTR plugin. |
| 25 | + parameters: |
| 26 | + - $ref: '#/components/parameters/ltr.stats::path.stat' |
| 27 | + - $ref: '#/components/parameters/ltr.stats::query.timeout' |
| 28 | + responses: |
| 29 | + '200': |
| 30 | + $ref: '#/components/responses/ltr.stats@200' |
| 31 | + |
| 32 | + /_plugins/_ltr/{node_id}/stats: |
| 33 | + get: |
| 34 | + operationId: ltr.stats.2 |
| 35 | + x-operation-group: ltr.stats |
| 36 | + x-version-added: '1.0' |
| 37 | + description: Provides information about the current status of the LTR plugin. |
| 38 | + parameters: |
| 39 | + - $ref: '#/components/parameters/ltr.stats::path.node_id' |
| 40 | + - $ref: '#/components/parameters/ltr.stats::query.timeout' |
| 41 | + responses: |
| 42 | + '200': |
| 43 | + $ref: '#/components/responses/ltr.stats@200' |
| 44 | + |
| 45 | + /_plugins/_ltr/{node_id}/stats/{stat}: |
| 46 | + get: |
| 47 | + operationId: ltr.stats.3 |
| 48 | + x-operation-group: ltr.stats |
| 49 | + x-version-added: '1.0' |
| 50 | + description: Provides information about the current status of the LTR plugin. |
| 51 | + parameters: |
| 52 | + - $ref: '#/components/parameters/ltr.stats::path.node_id' |
| 53 | + - $ref: '#/components/parameters/ltr.stats::path.stat' |
| 54 | + - $ref: '#/components/parameters/ltr.stats::query.timeout' |
| 55 | + responses: |
| 56 | + '200': |
| 57 | + $ref: '#/components/responses/ltr.stats@200' |
| 58 | + |
| 59 | + |
| 60 | +components: |
| 61 | + parameters: |
| 62 | + ltr.stats::query.timeout: |
| 63 | + name: timeout |
| 64 | + in: query |
| 65 | + description: The time in milliseconds to wait for a response. |
| 66 | + schema: |
| 67 | + $ref: '../schemas/_common.yaml#/components/schemas/Duration' |
| 68 | + ltr.stats::path.stat: |
| 69 | + name: stat |
| 70 | + in: path |
| 71 | + description: Comma-separated list of stats to retrieve; use `_all` or empty string to retrieve all stats. |
| 72 | + schema: |
| 73 | + type: array |
| 74 | + description: Comma-separated list of stats to retrieve; use `_all` or empty string to retrieve all stats. |
| 75 | + items: |
| 76 | + type: string |
| 77 | + enum: |
| 78 | + - cache |
| 79 | + - request_error_count |
| 80 | + - request_total_count |
| 81 | + required: true |
| 82 | + ltr.stats::path.node_id: |
| 83 | + name: node_id |
| 84 | + in: path |
| 85 | + description: Comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes. |
| 86 | + schema: |
| 87 | + type: array |
| 88 | + description: Comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes. |
| 89 | + items: |
| 90 | + type: string |
| 91 | + required: true |
| 92 | + |
| 93 | + responses: |
| 94 | + ltr.stats@200: |
| 95 | + content: |
| 96 | + application/json: |
| 97 | + schema: |
| 98 | + $ref: '../schemas/ltr._common.yaml#/components/schemas/Stats' |
0 commit comments