Skip to content

Commit d0027f5

Browse files
authored
Update cat datafeeds specification (#1304)
1 parent cb25f03 commit d0027f5

File tree

5 files changed

+306
-11
lines changed

5 files changed

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