diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index d23f7e9c9b..6e7a4fe5be 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -95529,6 +95529,9 @@ "create_time": { "$ref": "#/components/schemas/_types:EpochTimeUnitMillis" }, + "create_time_string": { + "$ref": "#/components/schemas/_types:DateTime" + }, "description": { "description": "Free text description of the transform.", "type": "string" @@ -95782,7 +95785,7 @@ "changes_last_detected_at": { "type": "number" }, - "changes_last_detected_at_date_time": { + "changes_last_detected_at_string": { "$ref": "#/components/schemas/_types:DateTime" }, "last": { @@ -95796,6 +95799,9 @@ }, "last_search_time": { "type": "number" + }, + "last_search_time_string": { + "$ref": "#/components/schemas/_types:DateTime" } }, "required": [ @@ -95857,12 +95863,51 @@ "properties": { "status": { "$ref": "#/components/schemas/_types:HealthStatus" + }, + "issues": { + "description": "If a non-healthy status is returned, contains a list of issues of the transform.", + "type": "array", + "items": { + "$ref": "#/components/schemas/transform.get_transform_stats:TransformHealthIssue" + } } }, "required": [ "status" ] }, + "transform.get_transform_stats:TransformHealthIssue": { + "type": "object", + "properties": { + "type": { + "description": "The type of the issue", + "type": "string" + }, + "issue": { + "description": "A description of the issue", + "type": "string" + }, + "details": { + "description": "Details about the issue", + "type": "string" + }, + "count": { + "description": "Number of times this issue has occurred since it started", + "type": "number" + }, + "first_occurrence": { + "$ref": "#/components/schemas/_types:EpochTimeUnitMillis" + }, + "first_occurence_string": { + "$ref": "#/components/schemas/_types:DateTime" + } + }, + "required": [ + "type", + "issue", + "count" + ] + }, "transform.get_transform_stats:TransformIndexerStats": { "type": "object", "properties": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 19e01d82de..7d120997e8 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -59589,6 +59589,9 @@ "create_time": { "$ref": "#/components/schemas/_types:EpochTimeUnitMillis" }, + "create_time_string": { + "$ref": "#/components/schemas/_types:DateTime" + }, "description": { "description": "Free text description of the transform.", "type": "string" @@ -59839,7 +59842,7 @@ "changes_last_detected_at": { "type": "number" }, - "changes_last_detected_at_date_time": { + "changes_last_detected_at_string": { "$ref": "#/components/schemas/_types:DateTime" }, "last": { @@ -59853,6 +59856,9 @@ }, "last_search_time": { "type": "number" + }, + "last_search_time_string": { + "$ref": "#/components/schemas/_types:DateTime" } }, "required": [ @@ -59914,12 +59920,51 @@ "properties": { "status": { "$ref": "#/components/schemas/_types:HealthStatus" + }, + "issues": { + "description": "If a non-healthy status is returned, contains a list of issues of the transform.", + "type": "array", + "items": { + "$ref": "#/components/schemas/transform.get_transform_stats:TransformHealthIssue" + } } }, "required": [ "status" ] }, + "transform.get_transform_stats:TransformHealthIssue": { + "type": "object", + "properties": { + "type": { + "description": "The type of the issue", + "type": "string" + }, + "issue": { + "description": "A description of the issue", + "type": "string" + }, + "details": { + "description": "Details about the issue", + "type": "string" + }, + "count": { + "description": "Number of times this issue has occurred since it started", + "type": "number" + }, + "first_occurrence": { + "$ref": "#/components/schemas/_types:EpochTimeUnitMillis" + }, + "first_occurence_string": { + "$ref": "#/components/schemas/_types:DateTime" + } + }, + "required": [ + "type", + "issue", + "count" + ] + }, "transform.get_transform_stats:TransformIndexerStats": { "type": "object", "properties": { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 1d02dd3795..36eae06151 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -146776,6 +146776,17 @@ } } }, + { + "name": "create_time_string", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "DateTime", + "namespace": "_types" + } + } + }, { "description": "Free text description of the transform.", "name": "description", @@ -146916,7 +146927,7 @@ } } ], - "specLocation": "transform/get_transform/types.ts#L33-L61" + "specLocation": "transform/get_transform/types.ts#L33-L62" }, { "kind": "interface", @@ -147480,7 +147491,7 @@ } }, { - "name": "changes_last_detected_at_date_time", + "name": "changes_last_detected_at_string", "required": false, "type": { "kind": "instance_of", @@ -147533,9 +147544,20 @@ "namespace": "_types" } } + }, + { + "name": "last_search_time_string", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "DateTime", + "namespace": "_types" + } + } } ], - "specLocation": "transform/get_transform_stats/types.ts#L85-L92" + "specLocation": "transform/get_transform_stats/types.ts#L102-L110" }, { "kind": "interface", @@ -147629,7 +147651,7 @@ } } ], - "specLocation": "transform/get_transform_stats/types.ts#L76-L83" + "specLocation": "transform/get_transform_stats/types.ts#L93-L100" }, { "kind": "interface", @@ -147694,7 +147716,7 @@ } } ], - "specLocation": "transform/get_transform_stats/types.ts#L48-L54" + "specLocation": "transform/get_transform_stats/types.ts#L65-L71" }, { "kind": "interface", @@ -147713,9 +147735,114 @@ "namespace": "_types" } } + }, + { + "description": "If a non-healthy status is returned, contains a list of issues of the transform.", + "name": "issues", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "TransformHealthIssue", + "namespace": "transform.get_transform_stats" + } + } + } + } + ], + "specLocation": "transform/get_transform_stats/types.ts#L44-L49" + }, + { + "kind": "interface", + "name": { + "name": "TransformHealthIssue", + "namespace": "transform.get_transform_stats" + }, + "properties": [ + { + "description": "The type of the issue", + "name": "type", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "description": "A description of the issue", + "name": "issue", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "description": "Details about the issue", + "name": "details", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "description": "Number of times this issue has occurred since it started", + "name": "count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "description": "The timestamp this issue occurred for for the first time", + "name": "first_occurrence", + "required": false, + "type": { + "generics": [ + { + "kind": "instance_of", + "type": { + "name": "UnitMillis", + "namespace": "_types" + } + } + ], + "kind": "instance_of", + "type": { + "name": "EpochTime", + "namespace": "_types" + } + } + }, + { + "name": "first_occurence_string", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "DateTime", + "namespace": "_types" + } + } } ], - "specLocation": "transform/get_transform_stats/types.ts#L44-L46" + "specLocation": "transform/get_transform_stats/types.ts#L51-L63" }, { "kind": "interface", @@ -147957,7 +148084,7 @@ } } ], - "specLocation": "transform/get_transform_stats/types.ts#L56-L74" + "specLocation": "transform/get_transform_stats/types.ts#L73-L91" }, { "kind": "interface", diff --git a/output/schema/schema.json b/output/schema/schema.json index 2d6a186fa7..579d3d6411 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -230080,6 +230080,17 @@ } } }, + { + "name": "create_time_string", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "DateTime", + "namespace": "_types" + } + } + }, { "description": "Free text description of the transform.", "name": "description", @@ -230220,7 +230231,7 @@ } } ], - "specLocation": "transform/get_transform/types.ts#L33-L61" + "specLocation": "transform/get_transform/types.ts#L33-L62" }, { "kind": "interface", @@ -230314,7 +230325,7 @@ } } ], - "specLocation": "transform/get_transform_stats/types.ts#L76-L83" + "specLocation": "transform/get_transform_stats/types.ts#L93-L100" }, { "kind": "interface", @@ -230335,7 +230346,7 @@ } }, { - "name": "changes_last_detected_at_date_time", + "name": "changes_last_detected_at_string", "required": false, "type": { "kind": "instance_of", @@ -230388,9 +230399,20 @@ "namespace": "_types" } } + }, + { + "name": "last_search_time_string", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "DateTime", + "namespace": "_types" + } + } } ], - "specLocation": "transform/get_transform_stats/types.ts#L85-L92" + "specLocation": "transform/get_transform_stats/types.ts#L102-L110" }, { "kind": "request", @@ -230524,6 +230546,96 @@ }, "specLocation": "transform/get_transform_stats/GetTransformStatsResponse.ts#L23-L25" }, + { + "kind": "interface", + "name": { + "name": "TransformHealthIssue", + "namespace": "transform.get_transform_stats" + }, + "properties": [ + { + "description": "The type of the issue", + "name": "type", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "description": "A description of the issue", + "name": "issue", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "description": "Details about the issue", + "name": "details", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "description": "Number of times this issue has occurred since it started", + "name": "count", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "description": "The timestamp this issue occurred for for the first time", + "name": "first_occurrence", + "required": false, + "type": { + "kind": "instance_of", + "generics": [ + { + "kind": "instance_of", + "type": { + "name": "UnitMillis", + "namespace": "_types" + } + } + ], + "type": { + "name": "EpochTime", + "namespace": "_types" + } + } + }, + { + "name": "first_occurence_string", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "DateTime", + "namespace": "_types" + } + } + } + ], + "specLocation": "transform/get_transform_stats/types.ts#L51-L63" + }, { "kind": "interface", "name": { @@ -230764,7 +230876,7 @@ } } ], - "specLocation": "transform/get_transform_stats/types.ts#L56-L74" + "specLocation": "transform/get_transform_stats/types.ts#L73-L91" }, { "kind": "interface", @@ -230829,7 +230941,7 @@ } } ], - "specLocation": "transform/get_transform_stats/types.ts#L48-L54" + "specLocation": "transform/get_transform_stats/types.ts#L65-L71" }, { "kind": "interface", @@ -230938,9 +231050,24 @@ "namespace": "_types" } } + }, + { + "description": "If a non-healthy status is returned, contains a list of issues of the transform.", + "name": "issues", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "TransformHealthIssue", + "namespace": "transform.get_transform_stats" + } + } + } } ], - "specLocation": "transform/get_transform_stats/types.ts#L44-L46" + "specLocation": "transform/get_transform_stats/types.ts#L44-L49" }, { "kind": "request", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index c7f14ab89f..e109263529 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -21326,6 +21326,7 @@ export interface TransformGetTransformResponse { export interface TransformGetTransformTransformSummary { authorization?: MlTransformAuthorization create_time?: EpochTime + create_time_string?: DateTime description?: string dest: ReindexDestination frequency?: Duration @@ -21351,11 +21352,12 @@ export interface TransformGetTransformStatsCheckpointStats { export interface TransformGetTransformStatsCheckpointing { changes_last_detected_at?: long - changes_last_detected_at_date_time?: DateTime + changes_last_detected_at_string?: DateTime last: TransformGetTransformStatsCheckpointStats next?: TransformGetTransformStatsCheckpointStats operations_behind?: long last_search_time?: long + last_search_time_string?: DateTime } export interface TransformGetTransformStatsRequest extends RequestBase { @@ -21371,6 +21373,15 @@ export interface TransformGetTransformStatsResponse { transforms: TransformGetTransformStatsTransformStats[] } +export interface TransformGetTransformStatsTransformHealthIssue { + type: string + issue: string + details?: string + count: integer + first_occurrence?: EpochTime + first_occurence_string?: DateTime +} + export interface TransformGetTransformStatsTransformIndexerStats { delete_time_in_ms?: EpochTime documents_indexed: long @@ -21411,6 +21422,7 @@ export interface TransformGetTransformStatsTransformStats { export interface TransformGetTransformStatsTransformStatsHealth { status: HealthStatus + issues?: TransformGetTransformStatsTransformHealthIssue[] } export interface TransformPreviewTransformRequest extends RequestBase { diff --git a/specification/transform/get_transform/types.ts b/specification/transform/get_transform/types.ts index a97902bac1..3ceb41563f 100644 --- a/specification/transform/get_transform/types.ts +++ b/specification/transform/get_transform/types.ts @@ -28,7 +28,7 @@ import { SyncContainer } from '@transform/_types/Transform' import { Id, Metadata, VersionString } from '@_types/common' -import { Duration, EpochTime, UnitMillis } from '@_types/Time' +import { DateTime, Duration, EpochTime, UnitMillis } from '@_types/Time' export class TransformSummary { /** @@ -37,6 +37,7 @@ export class TransformSummary { authorization?: TransformAuthorization /** The time the transform was created. */ create_time?: EpochTime + create_time_string?: DateTime /** Free text description of the transform. */ description?: string /** The destination for the transform. */ diff --git a/specification/transform/get_transform_stats/types.ts b/specification/transform/get_transform_stats/types.ts index 9e65cf5333..5e57632acf 100644 --- a/specification/transform/get_transform_stats/types.ts +++ b/specification/transform/get_transform_stats/types.ts @@ -19,7 +19,7 @@ import { HealthStatus, Id } from '@_types/common' import { NodeAttributes } from '@_types/Node' -import { double, long } from '@_types/Numeric' +import { double, integer, long } from '@_types/Numeric' import { DateTime, DurationValue, @@ -42,7 +42,24 @@ export class TransformStats { } export class TransformStatsHealth { + /* Health status of this transform. */ status: HealthStatus + /** If a non-healthy status is returned, contains a list of issues of the transform. */ + issues?: TransformHealthIssue[] +} + +export class TransformHealthIssue { + /** The type of the issue */ + type: string + /** A description of the issue */ + issue: string + /** Details about the issue */ + details?: string + /** Number of times this issue has occurred since it started */ + count: integer + /** The timestamp this issue occurred for for the first time */ + first_occurrence?: EpochTime + first_occurence_string?: DateTime } export class TransformProgress { @@ -84,9 +101,10 @@ export class CheckpointStats { export class Checkpointing { changes_last_detected_at?: long - changes_last_detected_at_date_time?: DateTime + changes_last_detected_at_string?: DateTime last: CheckpointStats next?: CheckpointStats operations_behind?: long last_search_time?: long + last_search_time_string?: DateTime }