Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/reference/api-reference.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---

Check notice on line 1 in docs/reference/api-reference.md

View workflow job for this annotation

GitHub Actions / docs-preview / build

Irregular space detected. Run 'docs-builder format --write' to automatically fix all instances.
mapped_pages:
- https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference.html
comment: |
Expand Down Expand Up @@ -6612,6 +6612,8 @@
Any time after this duration the document could be deleted.
When empty, every document in this data stream will be stored indefinitely.
- **`downsampling` (Optional, { after, fixed_interval }[])**: The downsampling configuration to execute for the managed backing index after rollover.
- **`downsampling_method` (Optional, Enum("aggregate" \| "last_value"))**: The method used to downsample the data. There are two options `aggregate` and `last_value`. It requires
`downsampling` to be defined. Defaults to `aggregate`.
- **`enabled` (Optional, boolean)**: If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle
that's disabled (enabled: `false`) will have no effect on the data stream.
- **`expand_wildcards` (Optional, Enum("all" \| "open" \| "closed" \| "hidden" \| "none") \| Enum("all" \| "open" \| "closed" \| "hidden" \| "none")[])**: Type of data stream that wildcard patterns can match.
Expand Down
2 changes: 2 additions & 0 deletions src/api/api/indices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ export default class Indices {
body: [
'data_retention',
'downsampling',
'downsampling_method',
'enabled'
],
query: [
Expand Down Expand Up @@ -3941,6 +3942,7 @@ export default class Indices {
'name',
'data_retention',
'downsampling',
'downsampling_method',
'enabled',
'expand_wildcards',
'master_timeout',
Expand Down
37 changes: 19 additions & 18 deletions src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19822,18 +19822,16 @@ export interface IndicesDataStreamLifecycle {
* Any time after this duration the document could be deleted.
* When empty, every document in this data stream will be stored indefinitely. */
data_retention?: Duration
/** The downsampling configuration to execute for the managed backing index after rollover. */
downsampling?: IndicesDataStreamLifecycleDownsampling
/** The list of downsampling rounds to execute as part of this downsampling configuration */
downsampling?: IndicesDownsamplingRound[]
/** The method used to downsample the data. There are two options `aggregate` and `last_value`. It requires
* `downsampling` to be defined. Defaults to `aggregate`. */
downsampling_method?: IndicesSamplingMethod
/** If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle
* that's disabled (enabled: `false`) will have no effect on the data stream. */
enabled?: boolean
}

export interface IndicesDataStreamLifecycleDownsampling {
/** The list of downsampling rounds to execute as part of this downsampling configuration */
rounds: IndicesDownsamplingRound[]
}

export interface IndicesDataStreamLifecycleRolloverConditions {
min_age?: Duration
max_age?: string
Expand Down Expand Up @@ -21952,13 +21950,16 @@ export interface IndicesPutDataLifecycleRequest extends RequestBase {
data_retention?: Duration
/** The downsampling configuration to execute for the managed backing index after rollover. */
downsampling?: IndicesDownsamplingRound[]
/** The method used to downsample the data. There are two options `aggregate` and `last_value`. It requires
* `downsampling` to be defined. Defaults to `aggregate`. */
downsampling_method?: IndicesSamplingMethod
/** If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle
* that's disabled (enabled: `false`) will have no effect on the data stream. */
enabled?: boolean
/** All values in `body` will be added to the request body. */
body?: string | { [key: string]: any } & { name?: never, expand_wildcards?: never, master_timeout?: never, timeout?: never, data_retention?: never, downsampling?: never, enabled?: never }
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 }
/** All values in `querystring` will be added to the request querystring. */
querystring?: { [key: string]: any } & { name?: never, expand_wildcards?: never, master_timeout?: never, timeout?: never, data_retention?: never, downsampling?: never, enabled?: never }
querystring?: { [key: string]: any } & { name?: never, expand_wildcards?: never, master_timeout?: never, timeout?: never, data_retention?: never, downsampling?: never, downsampling_method?: never, enabled?: never }
}

export type IndicesPutDataLifecycleResponse = AcknowledgedResponseBase
Expand Down Expand Up @@ -23564,7 +23565,7 @@ export interface InferenceAzureAiStudioServiceSettings {
* Note that some providers may support only certain task types.
* Supported providers include:
*
* * `cohere` - available for `text_embedding` and `completion` task types
* * `cohere` - available for `text_embedding`, `rerank` and `completion` task types
* * `databricks` - available for `completion` task type only
* * `meta` - available for `completion` task type only
* * `microsoft_phi` - available for `completion` task type only
Expand Down Expand Up @@ -39049,19 +39050,19 @@ export interface TransformGetNodeStatsRequest extends RequestBase {
querystring?: { [key: string]: any }
}

export type TransformGetNodeStatsResponse = TransformGetNodeStatsTransformNodeStats
export type TransformGetNodeStatsResponse = TransformGetNodeStatsTransformNodeFullStats

export interface TransformGetNodeStatsScheduler {
scheduler: TransformGetNodeStatsTransformNodeStatsDetails
export interface TransformGetNodeStatsTransformNodeFullStatsKeys {
total: TransformGetNodeStatsTransformNodeStats
}
export type TransformGetNodeStatsTransformNodeFullStats = TransformGetNodeStatsTransformNodeFullStatsKeys
& { [property: string]: TransformGetNodeStatsTransformNodeStats }

export interface TransformGetNodeStatsTransformNodeStatsKeys {
total: TransformGetNodeStatsScheduler
export interface TransformGetNodeStatsTransformNodeStats {
scheduler: TransformGetNodeStatsTransformSchedulerStats
}
export type TransformGetNodeStatsTransformNodeStats = TransformGetNodeStatsTransformNodeStatsKeys
& { [property: string]: TransformGetNodeStatsScheduler }

export interface TransformGetNodeStatsTransformNodeStatsDetails {
export interface TransformGetNodeStatsTransformSchedulerStats {
registered_transform_count: integer
peek_transform?: string
}
Expand Down
Loading