All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.infobip.kafkistry.metric.LagMetricsAdditionalLabels.kt Maven / Gradle / Ivy

The newest version!
package com.infobip.kafkistry.metric

import com.infobip.kafkistry.model.ConsumerGroupId
import com.infobip.kafkistry.model.KafkaClusterIdentifier
import com.infobip.kafkistry.model.TopicName
import com.infobip.kafkistry.service.consumers.ConsumerTopicPartitionMember

interface LagMetricsAdditionalLabels {

    fun labelNames(): List

    fun labelValues(
        clusterIdentifier: KafkaClusterIdentifier,
        topic: TopicName,
        consumerGroupId: ConsumerGroupId,
        partitionMember: ConsumerTopicPartitionMember,
    ): List
}

class EmptyLagMetricsAdditionalLabels : LagMetricsAdditionalLabels {

    override fun labelNames(): List = emptyList()

    override fun labelValues(
        clusterIdentifier: KafkaClusterIdentifier,
        topic: TopicName,
        consumerGroupId: ConsumerGroupId,
        partitionMember: ConsumerTopicPartitionMember,
    ): List = emptyList()

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy