public ProducerTopicMetrics(ClientIdAndTopic metricId) { this.MessageRate = MetersFactory.NewMeter(metricId + "MessagesPerSec", "messages", TimeSpan.FromSeconds(1)); this.ByteRate = MetersFactory.NewMeter(metricId + "BytesPerSec", "bytes", TimeSpan.FromSeconds(1)); this.DroppedMessageRate = MetersFactory.NewMeter( metricId + "DroppedMessagesPerSec", "drops", TimeSpan.FromSeconds(1)); }
protected bool Equals(ClientIdAndTopic other) { return this.ClientId == other.ClientId && this.Topic == other.Topic; }
protected bool Equals(ClientIdAndTopic other) { return(this.ClientId == other.ClientId && this.Topic == other.Topic); }