11/* eslint-disable camelcase */
22
3+ import { IProtobufTimeObject } from './common' ;
4+
35/**
46 * endpoint: /json/describe_consumer
57 *
@@ -65,27 +67,27 @@ interface PartitionConsumerStats {
6567 *
6668 * Timestamp of providing this partition to this session by server.
6769 */
68- partition_read_session_create_time ?: string ;
70+ partition_read_session_create_time ?: string | IProtobufTimeObject ;
6971
7072 /**
7173 * google.protobuf.Timestamp
7274 *
7375 * Timestamp of last read from this partition. */
74- last_read_time ?: string ;
76+ last_read_time ?: string | IProtobufTimeObject ;
7577
7678 /**
7779 * google.protobuf.Duration
7880 *
7981 * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
8082 */
81- max_read_time_lag ?: string ;
83+ max_read_time_lag ?: string | IProtobufTimeObject ;
8284
8385 /**
8486 * google.protobuf.Duration
8587 *
8688 * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
8789 */
88- max_write_time_lag ?: string ;
90+ max_write_time_lag ?: string | IProtobufTimeObject ;
8991
9092 /** How much bytes were read during several windows statistics from this partiton. */
9193 bytes_read ?: MultipleWindowsStat ;
@@ -113,14 +115,14 @@ export interface PartitionStats {
113115 *
114116 * Timestamp of last write.
115117 */
116- last_write_time ?: string ;
118+ last_write_time ?: string | IProtobufTimeObject ;
117119
118120 /**
119121 * google.protobuf.Duration
120122 *
121123 * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
122124 */
123- max_write_time_lag ?: string ;
125+ max_write_time_lag ?: string | IProtobufTimeObject ;
124126
125127 /** How much bytes were written during several windows in this partition. */
126128 bytes_written ?: MultipleWindowsStat ;
@@ -148,7 +150,7 @@ export interface Consumer {
148150 *
149151 * All messages with smaller server written_at timestamp will be skipped.
150152 */
151- read_from ?: string ;
153+ read_from ?: string | IProtobufTimeObject ;
152154
153155 /**
154156 * List of supported codecs by this consumer.
@@ -170,21 +172,21 @@ interface ConsumerStats {
170172 *
171173 * Minimal timestamp of last read from partitions.
172174 */
173- min_partitions_last_read_time ?: string ;
175+ min_partitions_last_read_time ?: string | IProtobufTimeObject ;
174176
175177 /**
176178 * google.protobuf.Duration
177179 *
178180 * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
179181 */
180- max_read_time_lag ?: string ;
182+ max_read_time_lag ?: string | IProtobufTimeObject ;
181183
182184 /**
183185 * google.protobuf.Duration
184186 *
185187 * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
186188 */
187- max_write_time_lag ?: string ;
189+ max_write_time_lag ?: string | IProtobufTimeObject ;
188190
189191 /** Bytes read stastics. */
190192 bytes_read ?: MultipleWindowsStat ;
0 commit comments