Skip to content

Commit b794e97

Browse files
committed
[ML] schema comments.
1 parent 8eedef2 commit b794e97

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

x-pack/plugins/ml/server/routes/schemas/data_visualizer_schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const indexPatternTitleSchema = schema.object({
1414
export const dataVisualizerFieldHistogramsSchema = schema.object({
1515
/** Query to match documents in the index. */
1616
query: schema.any(),
17+
/** The fields to return histogram data. */
1718
fields: schema.arrayOf(schema.any()),
1819
/** Number of documents to be collected in the sample processed on each shard, or -1 for no sampling. */
1920
samplerShardSize: schema.number(),

x-pack/plugins/transform/server/routes/api/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { schema } from '@kbn/config-schema';
88
export const fieldHistogramsSchema = schema.object({
99
/** Query to match documents in the index. */
1010
query: schema.any(),
11+
/** The fields to return histogram data. */
1112
fields: schema.arrayOf(schema.any()),
1213
/** Number of documents to be collected in the sample processed on each shard, or -1 for no sampling. */
1314
samplerShardSize: schema.number(),

0 commit comments

Comments
 (0)