Documentation ¶
Index ¶
Constants ¶
View Source
const QuotaLimit = 62914560
View Source
const QuotasTemplate = `{{ range . }}
- clientId: {{ .ClientID }}
perBrokerProducerByteRate: {{ .Quota }} # {{ .HumanReadableQuota }}
{{ end }}`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaClient ¶
func GetAllClients ¶
func GetAllClients(nrAPIKey string) []KafkaClient
type KafkaQuota ¶
type KafkaQuota struct { ClientID string `json:"clientId"` Quota int `json:"perBrokerProducerByteRate"` HumanReadableQuota string }
func GenerateQuotasForClients ¶
func GenerateQuotasForClients(clients []KafkaClient, throughputMultiplier int) []KafkaQuota
Click to show internal directories.
Click to hide internal directories.