Skip to content

Commit e4cbd9f

Browse files
authored
[DOCS] Adds descriptions for Enrich APIs (#2215)
1 parent 666f446 commit e4cbd9f

File tree

7 files changed

+65
-16
lines changed

7 files changed

+65
-16
lines changed

output/schema/schema.json

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

specification/enrich/delete_policy/DeleteEnrichPolicyRequest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@ import { RequestBase } from '@_types/Base'
2121
import { Name } from '@_types/common'
2222

2323
/**
24+
* Deletes an existing enrich policy and its enrich index.
2425
* @rest_spec_name enrich.delete_policy
2526
* @availability stack since=7.5.0 stability=stable
2627
* @availability serverless stability=stable visibility=public
2728
*/
2829
export interface Request extends RequestBase {
2930
path_parts: {
31+
/**
32+
* Enrich policy to delete.
33+
*/
3034
name: Name
3135
}
3236
}

specification/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,24 @@ import { RequestBase } from '@_types/Base'
2121
import { Name } from '@_types/common'
2222

2323
/**
24+
* Creates the enrich index for an existing enrich policy.
25+
* @doc_id execute-enrich-policy-api
2426
* @rest_spec_name enrich.execute_policy
2527
* @availability stack since=7.5.0 stability=stable
2628
* @availability serverless stability=stable visibility=public
2729
*/
2830
export interface Request extends RequestBase {
2931
path_parts: {
32+
/**
33+
* Enrich policy to execute.
34+
*/
3035
name: Name
3136
}
3237
query_parameters: {
38+
/**
39+
* If `true`, the request blocks other enrich policy execution requests until complete.
40+
* @server_default true
41+
*/
3342
wait_for_completion?: boolean
3443
}
3544
}

specification/enrich/get_policy/GetEnrichPolicyRequest.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,17 @@ import { RequestBase } from '@_types/Base'
2121
import { Names } from '@_types/common'
2222

2323
/**
24+
* Returns information about an enrich policy.
2425
* @rest_spec_name enrich.get_policy
2526
* @availability stack since=7.5.0 stability=stable
2627
* @availability serverless stability=stable visibility=public
2728
*/
2829
export interface Request extends RequestBase {
2930
path_parts: {
31+
/**
32+
* Comma-separated list of enrich policy names used to limit the request.
33+
* To return information for all enrich policies, omit this parameter.
34+
*/
3035
name?: Names
3136
}
3237
}

specification/enrich/put_policy/PutEnrichPolicyRequest.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,31 @@ import { RequestBase } from '@_types/Base'
2222
import { Name } from '@_types/common'
2323

2424
/**
25+
* Creates an enrich policy.
26+
* @doc_id put-enrich-policy-api
2527
* @rest_spec_name enrich.put_policy
2628
* @availability stack since=7.5.0 stability=stable
2729
* @availability serverless stability=stable visibility=public
2830
*/
2931
export interface Request extends RequestBase {
3032
path_parts: {
33+
/**
34+
* Name of the enrich policy to create or update.
35+
*/
3136
name: Name
3237
}
3338
body: {
39+
/**
40+
* Matches enrich data to incoming documents based on a `geo_shape` query.
41+
*/
3442
geo_match?: Policy
43+
/**
44+
* Matches enrich data to incoming documents based on a `term` query.
45+
*/
3546
match?: Policy
47+
/**
48+
* Matches a number, date, or IP address in incoming documents to a range in the enrich index based on a `term` query.
49+
*/
3650
range?: Policy
3751
}
3852
}

specification/enrich/stats/EnrichStatsRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import { RequestBase } from '@_types/Base'
2121

2222
/**
23+
* Returns enrich coordinator statistics and information about enrich policies that are currently executing.
2324
* @rest_spec_name enrich.stats
2425
* @availability stack since=7.5.0 stability=stable
2526
* @availability serverless stability=stable visibility=public

specification/enrich/stats/EnrichStatsResponse.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,16 @@ import { ExecutingPolicy, CoordinatorStats, CacheStats } from './types'
2121

2222
export class Response {
2323
body: {
24+
/**
25+
* Objects containing information about each coordinating ingest node for configured enrich processors.
26+
*/
2427
coordinator_stats: CoordinatorStats[]
28+
/**
29+
* Objects containing information about each enrich policy that is currently executing.
30+
*/
2531
executing_policies: ExecutingPolicy[]
2632
/**
33+
* Objects containing information about the enrich cache stats on each ingest node.
2734
* @availability stack since=7.16.0
2835
* @availability serverless
2936
*/

0 commit comments

Comments
 (0)