Skip to content

Commit 64f7520

Browse files
authored
Fix ccr.follow_stats Response (#244)
1 parent 3b80f8c commit 64f7520

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

output/schema/schema.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55220,7 +55220,7 @@
5522055220
},
5522155221
{
5522255222
"name": "fatal_exception",
55223-
"required": true,
55223+
"required": false,
5522455224
"type": {
5522555225
"kind": "instance_of",
5522655226
"type": {
@@ -55447,7 +55447,7 @@
5544755447
"type": {
5544855448
"kind": "instance_of",
5544955449
"type": {
55450-
"name": "long",
55450+
"name": "EpochMillis",
5545155451
"namespace": "internal"
5545255452
}
5545355453
}
@@ -55458,7 +55458,7 @@
5545855458
"type": {
5545955459
"kind": "instance_of",
5546055460
"type": {
55461-
"name": "long",
55461+
"name": "EpochMillis",
5546255462
"namespace": "internal"
5546355463
}
5546455464
}
@@ -55469,7 +55469,7 @@
5546955469
"type": {
5547055470
"kind": "instance_of",
5547155471
"type": {
55472-
"name": "long",
55472+
"name": "EpochMillis",
5547355473
"namespace": "internal"
5547455474
}
5547555475
}
@@ -55480,7 +55480,7 @@
5548055480
"type": {
5548155481
"kind": "instance_of",
5548255482
"type": {
55483-
"name": "long",
55483+
"name": "EpochMillis",
5548455484
"namespace": "internal"
5548555485
}
5548655486
}
@@ -55502,7 +55502,7 @@
5550255502
"type": {
5550355503
"kind": "instance_of",
5550455504
"type": {
55505-
"name": "long",
55505+
"name": "ByteSize",
5550655506
"namespace": "internal"
5550755507
}
5550855508
}
@@ -55522,7 +55522,7 @@
5552255522
"type": {
5552355523
"kind": "instance_of",
5552455524
"type": {
55525-
"name": "string",
55525+
"name": "IndexName",
5552655526
"namespace": "internal"
5552755527
}
5552855528
}

output/typescript/types.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5436,7 +5436,7 @@ export interface FollowIndexShardStats {
54365436
bytes_read: long
54375437
failed_read_requests: long
54385438
failed_write_requests: long
5439-
fatal_exception: ErrorCause
5439+
fatal_exception?: ErrorCause
54405440
follower_aliases_version: long
54415441
follower_global_checkpoint: long
54425442
follower_index: string
@@ -5456,16 +5456,16 @@ export interface FollowIndexShardStats {
54565456
shard_id: integer
54575457
successful_read_requests: long
54585458
successful_write_requests: long
5459-
time_since_last_read_millis: long
5460-
total_read_remote_exec_time_millis: long
5461-
total_read_time_millis: long
5462-
total_write_time_millis: long
5459+
time_since_last_read_millis: EpochMillis
5460+
total_read_remote_exec_time_millis: EpochMillis
5461+
total_read_time_millis: EpochMillis
5462+
total_write_time_millis: EpochMillis
54635463
write_buffer_operation_count: long
5464-
write_buffer_size_in_bytes: long
5464+
write_buffer_size_in_bytes: ByteSize
54655465
}
54665466

54675467
export interface FollowIndexStats {
5468-
index: string
5468+
index: IndexName
54695469
shards: Array<FollowIndexShardStats>
54705470
}
54715471

specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexShardStats.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class FollowIndexShardStats {
2121
bytes_read: long
2222
failed_read_requests: long
2323
failed_write_requests: long
24-
fatal_exception: ErrorCause
24+
fatal_exception?: ErrorCause
2525
follower_aliases_version: long
2626
follower_global_checkpoint: long
2727
follower_index: string
@@ -41,10 +41,10 @@ class FollowIndexShardStats {
4141
shard_id: integer
4242
successful_read_requests: long
4343
successful_write_requests: long
44-
time_since_last_read_millis: long
45-
total_read_remote_exec_time_millis: long
46-
total_read_time_millis: long
47-
total_write_time_millis: long
44+
time_since_last_read_millis: EpochMillis
45+
total_read_remote_exec_time_millis: EpochMillis
46+
total_read_time_millis: EpochMillis
47+
total_write_time_millis: EpochMillis
4848
write_buffer_operation_count: long
49-
write_buffer_size_in_bytes: long
49+
write_buffer_size_in_bytes: ByteSize
5050
}

specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexStats.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
*/
1919

2020
class FollowIndexStats {
21-
index: string
21+
index: IndexName
2222
shards: FollowIndexShardStats[]
2323
}

0 commit comments

Comments
 (0)