Skip to content

Commit d838d02

Browse files
Auto-generated API code (#3075)
1 parent 70ebf8b commit d838d02

File tree

3 files changed

+23
-18
lines changed

3 files changed

+23
-18
lines changed

docs/reference/api-reference.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6612,6 +6612,8 @@ To target all data streams use `*` or `_all`.
66126612
Any time after this duration the document could be deleted.
66136613
When empty, every document in this data stream will be stored indefinitely.
66146614
- **`downsampling` (Optional, { after, fixed_interval }[])**: The downsampling configuration to execute for the managed backing index after rollover.
6615+
- **`downsampling_method` (Optional, Enum("aggregate" \| "last_value"))**: The method used to downsample the data. There are two options `aggregate` and `last_value`. It requires
6616+
`downsampling` to be defined. Defaults to `aggregate`.
66156617
- **`enabled` (Optional, boolean)**: If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle
66166618
that's disabled (enabled: `false`) will have no effect on the data stream.
66176619
- **`expand_wildcards` (Optional, Enum("all" \| "open" \| "closed" \| "hidden" \| "none") \| Enum("all" \| "open" \| "closed" \| "hidden" \| "none")[])**: Type of data stream that wildcard patterns can match.

src/api/api/indices.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@ export default class Indices {
631631
body: [
632632
'data_retention',
633633
'downsampling',
634+
'downsampling_method',
634635
'enabled'
635636
],
636637
query: [
@@ -3941,6 +3942,7 @@ export default class Indices {
39413942
'name',
39423943
'data_retention',
39433944
'downsampling',
3945+
'downsampling_method',
39443946
'enabled',
39453947
'expand_wildcards',
39463948
'master_timeout',

src/api/types.ts

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19822,18 +19822,16 @@ export interface IndicesDataStreamLifecycle {
1982219822
* Any time after this duration the document could be deleted.
1982319823
* When empty, every document in this data stream will be stored indefinitely. */
1982419824
data_retention?: Duration
19825-
/** The downsampling configuration to execute for the managed backing index after rollover. */
19826-
downsampling?: IndicesDataStreamLifecycleDownsampling
19825+
/** The list of downsampling rounds to execute as part of this downsampling configuration */
19826+
downsampling?: IndicesDownsamplingRound[]
19827+
/** The method used to downsample the data. There are two options `aggregate` and `last_value`. It requires
19828+
* `downsampling` to be defined. Defaults to `aggregate`. */
19829+
downsampling_method?: IndicesSamplingMethod
1982719830
/** If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle
1982819831
* that's disabled (enabled: `false`) will have no effect on the data stream. */
1982919832
enabled?: boolean
1983019833
}
1983119834

19832-
export interface IndicesDataStreamLifecycleDownsampling {
19833-
/** The list of downsampling rounds to execute as part of this downsampling configuration */
19834-
rounds: IndicesDownsamplingRound[]
19835-
}
19836-
1983719835
export interface IndicesDataStreamLifecycleRolloverConditions {
1983819836
min_age?: Duration
1983919837
max_age?: string
@@ -21952,13 +21950,16 @@ export interface IndicesPutDataLifecycleRequest extends RequestBase {
2195221950
data_retention?: Duration
2195321951
/** The downsampling configuration to execute for the managed backing index after rollover. */
2195421952
downsampling?: IndicesDownsamplingRound[]
21953+
/** The method used to downsample the data. There are two options `aggregate` and `last_value`. It requires
21954+
* `downsampling` to be defined. Defaults to `aggregate`. */
21955+
downsampling_method?: IndicesSamplingMethod
2195521956
/** If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle
2195621957
* that's disabled (enabled: `false`) will have no effect on the data stream. */
2195721958
enabled?: boolean
2195821959
/** All values in `body` will be added to the request body. */
21959-
body?: string | { [key: string]: any } & { name?: never, expand_wildcards?: never, master_timeout?: never, timeout?: never, data_retention?: never, downsampling?: never, enabled?: never }
21960+
body?: string | { [key: string]: any } & { name?: never, expand_wildcards?: never, master_timeout?: never, timeout?: never, data_retention?: never, downsampling?: never, downsampling_method?: never, enabled?: never }
2196021961
/** All values in `querystring` will be added to the request querystring. */
21961-
querystring?: { [key: string]: any } & { name?: never, expand_wildcards?: never, master_timeout?: never, timeout?: never, data_retention?: never, downsampling?: never, enabled?: never }
21962+
querystring?: { [key: string]: any } & { name?: never, expand_wildcards?: never, master_timeout?: never, timeout?: never, data_retention?: never, downsampling?: never, downsampling_method?: never, enabled?: never }
2196221963
}
2196321964

2196421965
export type IndicesPutDataLifecycleResponse = AcknowledgedResponseBase
@@ -23564,7 +23565,7 @@ export interface InferenceAzureAiStudioServiceSettings {
2356423565
* Note that some providers may support only certain task types.
2356523566
* Supported providers include:
2356623567
*
23567-
* * `cohere` - available for `text_embedding` and `completion` task types
23568+
* * `cohere` - available for `text_embedding`, `rerank` and `completion` task types
2356823569
* * `databricks` - available for `completion` task type only
2356923570
* * `meta` - available for `completion` task type only
2357023571
* * `microsoft_phi` - available for `completion` task type only
@@ -39049,19 +39050,19 @@ export interface TransformGetNodeStatsRequest extends RequestBase {
3904939050
querystring?: { [key: string]: any }
3905039051
}
3905139052

39052-
export type TransformGetNodeStatsResponse = TransformGetNodeStatsTransformNodeStats
39053+
export type TransformGetNodeStatsResponse = TransformGetNodeStatsTransformNodeFullStats
3905339054

39054-
export interface TransformGetNodeStatsScheduler {
39055-
scheduler: TransformGetNodeStatsTransformNodeStatsDetails
39055+
export interface TransformGetNodeStatsTransformNodeFullStatsKeys {
39056+
total: TransformGetNodeStatsTransformNodeStats
3905639057
}
39058+
export type TransformGetNodeStatsTransformNodeFullStats = TransformGetNodeStatsTransformNodeFullStatsKeys
39059+
& { [property: string]: TransformGetNodeStatsTransformNodeStats }
3905739060

39058-
export interface TransformGetNodeStatsTransformNodeStatsKeys {
39059-
total: TransformGetNodeStatsScheduler
39061+
export interface TransformGetNodeStatsTransformNodeStats {
39062+
scheduler: TransformGetNodeStatsTransformSchedulerStats
3906039063
}
39061-
export type TransformGetNodeStatsTransformNodeStats = TransformGetNodeStatsTransformNodeStatsKeys
39062-
& { [property: string]: TransformGetNodeStatsScheduler }
3906339064

39064-
export interface TransformGetNodeStatsTransformNodeStatsDetails {
39065+
export interface TransformGetNodeStatsTransformSchedulerStats {
3906539066
registered_transform_count: integer
3906639067
peek_transform?: string
3906739068
}

0 commit comments

Comments
 (0)