public class TopicInfoPojo extends HealthAndAlertInfoPojo
HealthAndAlertInfoPojo
as well as an alert list
that provides reasons of the current health.Modifier and Type | Field and Description |
---|---|
String |
cluster |
ZonedDateTime |
earliest_ts
The timestamp associated with the earliest message remaining in the kafka topic.
|
ZonedDateTime |
latest_ts
The timestamp associated with the latest message written into the kafka topic.
|
int |
partitionsCount
The actual number of partitions in the topic (may not be the same as the count specified in a channel configuration)
|
Long |
stored_message_count
The number of messages that are currently stored in the Kafka Topic (i.e.
|
String |
topic
The name of the kafka topic as appearing when listing topics using the kafka tools.
|
alerts, health, health_code, tenant, TYPE_PROPERTY_NAME, update_ts
Constructor and Description |
---|
TopicInfoPojo(String tenant,
KafkaTopicPojo topic) |
Modifier and Type | Method and Description |
---|---|
String |
getAsKeyValuesStringForLogs()
Must be provided by concrete subclasses, in order to include all appropriate
fields to the user for
troubleshooting purpose
health level and alerts should not be reported, because their logging is usually
sufficiently done through the addAlert(Health, String, Object...) method.
|
public String cluster
public String topic
public ZonedDateTime earliest_ts
This timestamp is generated by Kafka at write time (this is the default : timestamp=write time) or explicitly provided by the writer, in which case, it may be some earlier date, related to the business content of the message.
public ZonedDateTime latest_ts
This timestamp is generated by Kafka at write time (this is the default : timestamp=write time) or explicitly provided by the writer, in which case, it may be some earlier date, related to the business content of the message.
public Long stored_message_count
public int partitionsCount
public TopicInfoPojo(String tenant, KafkaTopicPojo topic)
public String getAsKeyValuesStringForLogs()
HealthAndAlertInfoPojo
getAsKeyValuesStringForLogs
in class HealthAndAlertInfoPojo
Copyright © 2014–2022. All rights reserved.