Skip to content

Commit bfd0f24

Browse files
authored
Validated watcher.stats Response (#242)
1 parent 1332ae7 commit bfd0f24

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

output/schema/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125158,7 +125158,7 @@
125158125158
"properties": [
125159125159
{
125160125160
"name": "current_watches",
125161-
"required": true,
125161+
"required": false,
125162125162
"type": {
125163125163
"kind": "array_of",
125164125164
"value": {
@@ -125183,7 +125183,7 @@
125183125183
},
125184125184
{
125185125185
"name": "queued_watches",
125186-
"required": true,
125186+
"required": false,
125187125187
"type": {
125188125188
"kind": "array_of",
125189125189
"value": {

output/typescript/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13165,9 +13165,9 @@ export interface WatcherActionsUsage {
1316513165
}
1316613166

1316713167
export interface WatcherNodeStats {
13168-
current_watches: Array<WatchRecordStats>
13168+
current_watches?: Array<WatchRecordStats>
1316913169
execution_thread_pool: ExecutionThreadPool
13170-
queued_watches: Array<WatchRecordQueuedStats>
13170+
queued_watches?: Array<WatchRecordQueuedStats>
1317113171
watch_count: long
1317213172
watcher_state: WatcherState
1317313173
node_id: Id

specification/specs/x_pack/watcher/watcher_stats/WatcherNodeStats.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
*/
1919

2020
class WatcherNodeStats {
21-
current_watches: WatchRecordStats[]
21+
current_watches?: WatchRecordStats[]
2222
execution_thread_pool: ExecutionThreadPool
23-
queued_watches: WatchRecordQueuedStats[]
23+
queued_watches?: WatchRecordQueuedStats[]
2424
watch_count: long
2525
watcher_state: WatcherState
2626
node_id: Id

0 commit comments

Comments
 (0)