Skip to content

Commit d3bab2c

Browse files
authored
[8.0] Update cat datafeeds specification (#1304) (#1332)
1 parent 3b0b88a commit d3bab2c

File tree

5 files changed

+307
-11
lines changed

5 files changed

+307
-11
lines changed

output/schema/schema.json

Lines changed: 203 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/cat/_types/CatBase.ts

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,3 +402,73 @@ export enum CatAnonalyDetectorColumn {
402402
export type CatAnonalyDetectorColumns =
403403
| CatAnonalyDetectorColumn
404404
| CatAnonalyDetectorColumn[]
405+
406+
export enum CatDatafeedColumn {
407+
/**
408+
* For started datafeeds only, contains messages relating to the selection of
409+
* a node.
410+
* @aliases assignment_explanation
411+
*/
412+
ae = 0,
413+
/**
414+
* The number of buckets processed.
415+
* @aliases buckets.count, bucketsCount
416+
*/
417+
bc = 1,
418+
/** A numerical character string that uniquely identifies the datafeed. */
419+
id = 2,
420+
/**
421+
* For started datafeeds only, the network address of the node where the
422+
* datafeed is started.
423+
* @aliases node.address, nodeAddress
424+
*/
425+
na = 3,
426+
/**
427+
* For started datafeeds only, the ephemeral ID of the node where the
428+
* datafeed is started.
429+
* @aliases node.ephemeral_id, nodeEphemeralId
430+
*/
431+
ne = 4,
432+
/**
433+
* For started datafeeds only, the unique identifier of the node where the
434+
* datafeed is started.
435+
* @aliases node.id, nodeId
436+
*/
437+
ni = 5,
438+
/**
439+
* For started datafeeds only, the name of the node where the datafeed is
440+
* started.
441+
* @aliases node.name, nodeName
442+
*/
443+
nn = 6,
444+
/**
445+
* The average search time per bucket, in milliseconds.
446+
* @aliases search.bucket_avg, searchBucketAvg
447+
*/
448+
sba = 7,
449+
/**
450+
* The number of searches run by the datafeed.
451+
* @aliases search.count, searchCount */
452+
sc = 8,
453+
/**
454+
* The exponential average search time per hour, in milliseconds.
455+
* @aliases search.exp_avg_hour, searchExpAvgHour
456+
*/
457+
seah = 9,
458+
/**
459+
* The total time the datafeed spent searching, in milliseconds.
460+
* @aliases search.time, searchTime */
461+
st = 10,
462+
/**
463+
* The status of the datafeed: `starting`, `started`, `stopping`, or `stopped`.
464+
* If `starting`, the datafeed has been requested to start but has not yet
465+
* started. If `started`, the datafeed is actively receiving data. If
466+
* `stopping`, the datafeed has been requested to stop gracefully and is
467+
* completing its final action. If `stopped`, the datafeed is stopped and will
468+
* not receive data until it is re-started.
469+
* @aliases state
470+
*/
471+
s = 11
472+
}
473+
474+
export type CatDatafeedColumns = CatDatafeedColumn | CatDatafeedColumn[]

specification/cat/ml_datafeeds/CatDatafeedsRequest.ts

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
import { CatRequestBase } from '@cat/_types/CatBase'
20+
import { CatRequestBase, CatDatafeedColumns } from '@cat/_types/CatBase'
2121
import { Id } from '@_types/common'
2222
import { TimeUnit } from '@_types/Time'
2323

@@ -35,9 +35,7 @@ import { TimeUnit } from '@_types/Time'
3535
export interface Request extends CatRequestBase {
3636
path_parts: {
3737
/**
38-
* A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase
39-
* alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric
40-
* characters.
38+
* A numerical character string that uniquely identifies the datafeed.
4139
*/
4240
datafeed_id?: Id
4341
}
@@ -55,9 +53,27 @@ export interface Request extends CatRequestBase {
5553
* @server_default true
5654
*/
5755
allow_no_match?: boolean
56+
/** Short version of the HTTP accept header. Valid values include JSON, YAML, for example. */
57+
format?: string
58+
/**
59+
* Comma-separated list of column names to display.
60+
* @server_default bc,id,sc,s
61+
*/
62+
h?: CatDatafeedColumns
63+
/** If `true`, the response includes help information.
64+
* @server_default false
65+
*/
66+
help?: boolean
67+
/** Comma-separated list of column names or column aliases used to sort the response. */
68+
s?: CatDatafeedColumns
5869
/**
5970
* The unit used to display time values.
6071
*/
6172
time?: TimeUnit
73+
/**
74+
* If `true`, the response includes column headings.
75+
* @server_default false
76+
*/
77+
v?: boolean
6278
}
6379
}

0 commit comments

Comments
 (0)