diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 4ceace402b..85db1e9edb 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -95564,6 +95564,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" @@ -95817,7 +95820,7 @@ "changes_last_detected_at": { "type": "number" }, - "changes_last_detected_at_date_time": { + "changes_last_detected_at_string": { "$ref": "#/components/schemas/_types:DateTime" }, "last": { @@ -95831,6 +95834,9 @@ }, "last_search_time": { "type": "number" + }, + "last_search_time_string": { + "$ref": "#/components/schemas/_types:DateTime" } }, "required": [ @@ -95892,12 +95898,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 9c22fbc9ca..7c17eea5ae 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -59614,6 +59614,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" @@ -59864,7 +59867,7 @@ "changes_last_detected_at": { "type": "number" }, - "changes_last_detected_at_date_time": { + "changes_last_detected_at_string": { "$ref": "#/components/schemas/_types:DateTime" }, "last": { @@ -59878,6 +59881,9 @@ }, "last_search_time": { "type": "number" + }, + "last_search_time_string": { + "$ref": "#/components/schemas/_types:DateTime" } }, "required": [ @@ -59939,12 +59945,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 39cfa27cd2..711d5c531b 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -146806,6 +146806,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", @@ -146946,7 +146957,7 @@ } } ], - "specLocation": "transform/get_transform/types.ts#L33-L61" + "specLocation": "transform/get_transform/types.ts#L33-L62" }, { "kind": "interface", @@ -147510,7 +147521,7 @@ } }, { - "name": "changes_last_detected_at_date_time", + "name": "changes_last_detected_at_string", "required": false, "type": { "kind": "instance_of", @@ -147563,9 +147574,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", @@ -147659,7 +147681,7 @@ } } ], - "specLocation": "transform/get_transform_stats/types.ts#L76-L83" + "specLocation": "transform/get_transform_stats/types.ts#L93-L100" }, { "kind": "interface", @@ -147724,7 +147746,7 @@ } } ], - "specLocation": "transform/get_transform_stats/types.ts#L48-L54" + "specLocation": "transform/get_transform_stats/types.ts#L65-L71" }, { "kind": "interface", @@ -147743,9 +147765,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", @@ -147987,7 +148114,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 66c141368f..6848e78e11 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -230124,6 +230124,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", @@ -230264,7 +230275,7 @@ } } ], - "specLocation": "transform/get_transform/types.ts#L33-L61" + "specLocation": "transform/get_transform/types.ts#L33-L62" }, { "kind": "interface", @@ -230358,7 +230369,7 @@ } } ], - "specLocation": "transform/get_transform_stats/types.ts#L76-L83" + "specLocation": "transform/get_transform_stats/types.ts#L93-L100" }, { "kind": "interface", @@ -230379,7 +230390,7 @@ } }, { - "name": "changes_last_detected_at_date_time", + "name": "changes_last_detected_at_string", "required": false, "type": { "kind": "instance_of", @@ -230432,9 +230443,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", @@ -230568,6 +230590,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": { @@ -230808,7 +230920,7 @@ } } ], - "specLocation": "transform/get_transform_stats/types.ts#L56-L74" + "specLocation": "transform/get_transform_stats/types.ts#L73-L91" }, { "kind": "interface", @@ -230873,7 +230985,7 @@ } } ], - "specLocation": "transform/get_transform_stats/types.ts#L48-L54" + "specLocation": "transform/get_transform_stats/types.ts#L65-L71" }, { "kind": "interface", @@ -230982,9 +231094,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 974928bfba..efbfa65b6f 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -21329,6 +21329,7 @@ export interface TransformGetTransformResponse { export interface TransformGetTransformTransformSummary { authorization?: MlTransformAuthorization create_time?: EpochTime + create_time_string?: DateTime description?: string dest: ReindexDestination frequency?: Duration @@ -21354,11 +21355,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 { @@ -21374,6 +21376,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 @@ -21414,6 +21425,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 }