diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index b67f39842f..d3a1d0bc33 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -39767,7 +39767,7 @@ "policy_stats": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/slm._types.SnapshotPolicyStats" } } }, @@ -98508,6 +98508,33 @@ } } }, + "slm._types.SnapshotPolicyStats": { + "type": "object", + "properties": { + "policy": { + "type": "string" + }, + "snapshots_taken": { + "type": "number" + }, + "snapshots_failed": { + "type": "number" + }, + "snapshots_deleted": { + "type": "number" + }, + "snapshot_deletion_failures": { + "type": "number" + } + }, + "required": [ + "policy", + "snapshots_taken", + "snapshots_failed", + "snapshots_deleted", + "snapshot_deletion_failures" + ] + }, "snapshot.cleanup_repository.CleanupRepositoryResults": { "type": "object", "properties": { diff --git a/output/schema/schema.json b/output/schema/schema.json index ab3cb2c0ae..5f3f2142e4 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -223431,6 +223431,71 @@ ], "specLocation": "slm/_types/SnapshotLifecycle.ts#L38-L59" }, + { + "kind": "interface", + "name": { + "name": "SnapshotPolicyStats", + "namespace": "slm._types" + }, + "properties": [ + { + "name": "policy", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "snapshots_taken", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "snapshots_failed", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "snapshots_deleted", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "snapshot_deletion_failures", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + } + ], + "specLocation": "slm/_types/SnapshotLifecycle.ts#L153-L159" + }, { "kind": "interface", "name": { @@ -224089,8 +224154,8 @@ "value": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "SnapshotPolicyStats", + "namespace": "slm._types" } } } @@ -224108,7 +224173,7 @@ "name": "Response", "namespace": "slm.get_stats" }, - "specLocation": "slm/get_stats/GetSnapshotLifecycleStatsResponse.ts#L23-L36" + "specLocation": "slm/get_stats/GetSnapshotLifecycleStatsResponse.ts#L24-L37" }, { "kind": "request", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 1d5184e64a..ca9e02fde5 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -20544,6 +20544,14 @@ export interface SlmSnapshotLifecycle { stats: SlmStatistics } +export interface SlmSnapshotPolicyStats { + policy: string + snapshots_taken: long + snapshots_failed: long + snapshots_deleted: long + snapshot_deletion_failures: long +} + export interface SlmStatistics { retention_deletion_time?: Duration retention_deletion_time_millis?: DurationValue @@ -20609,7 +20617,7 @@ export interface SlmGetStatsResponse { total_snapshot_deletion_failures: long total_snapshots_failed: long total_snapshots_taken: long - policy_stats: string[] + policy_stats: SlmSnapshotPolicyStats[] } export interface SlmGetStatusRequest extends RequestBase {