Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions api/consumers.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,9 @@ type JSApiConsumerListRequest struct {
type JSApiConsumerListResponse struct {
JSApiResponse
JSApiIterableResponse
Consumers []*ConsumerInfo `json:"consumers"`
Missing []string `json:"missing,omitempty"`
Consumers []*ConsumerInfo `json:"consumers"`
Missing []string `json:"missing,omitempty"`
Offline map[string]string `json:"offline,omitempty"`
}

// io.nats.jetstream.api.v1.consumer_leader_stepdown_request
Expand Down
5 changes: 3 additions & 2 deletions api/streams.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ type JSApiStreamNamesResponse struct {
type JSApiStreamListResponse struct {
JSApiResponse
JSApiIterableResponse
Streams []*StreamInfo `json:"streams"`
Missing []string `json:"missing,omitempty"`
Streams []*StreamInfo `json:"streams"`
Missing []string `json:"missing,omitempty"`
Offline map[string]string `json:"offline,omitempty"`
}

// io.nats.jetstream.api.v1.stream_list_request
Expand Down
7 changes: 7 additions & 0 deletions schema_source/jetstream/api/v1/consumer_list_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
"type": "array",
"items": {
"type": "string"
},
"offline": {
"description": "List of streams that are offline and reasons for being offline",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions schema_source/jetstream/api/v1/stream_list_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
"items": {
"type": "string"
}
},
"offline": {
"description": "List of streams that are offline and reasons for being offline",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions schemas/jetstream/api/v1/consumer_list_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,13 @@
"type": "array",
"items": {
"type": "string"
},
"offline": {
"description": "List of streams that are offline and reasons for being offline",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions schemas/jetstream/api/v1/stream_list_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,13 @@
"items": {
"type": "string"
}
},
"offline": {
"description": "List of streams that are offline and reasons for being offline",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
Expand Down