Kafka ui contract: Updated schemas required props. (#119)

* Updated schemas required props.

* Renamed long to int64 params

Co-authored-by: Sofia Shnaidman <sshnaidman@provectus.com>
Co-authored-by: German Osin <german.osin@gmail.com>
This commit is contained in:
soffest 2020-11-19 15:38:28 +03:00 committed by GitHub
parent d593e6f70e
commit 9fd3697062
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 6 deletions

View file

@ -150,7 +150,7 @@ public class ClusterService {
.flatMap(client -> ClusterUtil.toMono(client.getAdminClient().describeCluster().nodes()) .flatMap(client -> ClusterUtil.toMono(client.getAdminClient().describeCluster().nodes())
.map(n -> n.stream().map(node -> { .map(n -> n.stream().map(node -> {
Broker broker = new Broker(); Broker broker = new Broker();
broker.setId(node.idString()); broker.setId(node.id());
broker.setHost(node.host()); broker.setHost(node.host());
return broker; return broker;
}).collect(Collectors.toList()))) }).collect(Collectors.toList())))

View file

@ -409,6 +409,8 @@ components:
format: int64 format: int64
segmentCount: segmentCount:
type: integer type: integer
required:
- brokerId
BrokerMetrics: BrokerMetrics:
type: object type: object
@ -448,6 +450,8 @@ components:
type: array type: array
items: items:
$ref: "#/components/schemas/Partition" $ref: "#/components/schemas/Partition"
required:
- name
Replica: Replica:
type: object type: object
@ -488,6 +492,8 @@ components:
type: integer type: integer
underReplicatedPartitions: underReplicatedPartitions:
type: integer type: integer
required:
- name
TopicConfig: TopicConfig:
type: object type: object
@ -498,6 +504,8 @@ components:
type: string type: string
defaultValue: defaultValue:
type: string type: string
required:
- name
TopicFormData: TopicFormData:
type: object type: object
@ -512,14 +520,18 @@ components:
type: object type: object
additionalProperties: additionalProperties:
type: string type: string
required:
- name
Broker: Broker:
type: object type: object
properties: properties:
id: id:
type: string type: integer
host: host:
type: string type: string
required:
- id
ConsumerGroup: ConsumerGroup:
type: object type: object
@ -532,6 +544,9 @@ components:
type: integer type: integer
numTopics: numTopics:
type: integer type: integer
required:
- clusterId
- consumerGroupId
TopicMessage: TopicMessage:
type: object type: object
@ -605,11 +620,16 @@ components:
partition: partition:
type: integer type: integer
currentOffset: currentOffset:
type: long type: integer
format: int64
endOffset: endOffset:
type: long type: integer
format: int64
messagesBehind: messagesBehind:
type: long type: integer
format: int64
required:
- consumerId
ConsumerGroupDetails: ConsumerGroupDetails:
type: object type: object
@ -620,6 +640,8 @@ components:
type: array type: array
items: items:
$ref: '#/components/schemas/ConsumerTopicPartitionDetail' $ref: '#/components/schemas/ConsumerTopicPartitionDetail'
required:
- consumerGroupId
Metric: Metric:
type: object type: object