Merge pull request #3501 from influxdata/fixes/saving-topic-kafka

Fixes topic saving for kafka handler
pull/10616/head
Brandon Farmer 2018-05-21 19:13:00 -07:00 committed by GitHub
commit 6a650260af
3 changed files with 3 additions and 3 deletions

View File

@ -140,7 +140,7 @@ type Talk struct{}
// Kafka sends alerts to any Kafka brokers specified in the handler config
type Kafka struct {
Cluster string `json:"cluster"`
Topic string `json:"topic"`
Topic string `json:"kafka-topic"`
Template string `json:"template"`
}

View File

@ -61,7 +61,7 @@ const KafkaHandler: SFC<Props> = ({
<HandlerInput
selectedHandler={handler}
handleModifyHandler={handleModifyHandler}
fieldName="topic"
fieldName="kafka-topic"
fieldDisplay="Topic"
placeholder=""
/>

View File

@ -242,7 +242,7 @@ export const HANDLERS_TO_RULE_THEM_ALL: FieldsFromAllAlerts = {
'service',
],
hipChat: ['room'],
kafka: ['id', 'cluster', 'topic', 'template'],
kafka: ['id', 'cluster', 'kafka-topic', 'template'],
opsGenie: ['teams', 'recipients'],
opsGenie2: ['teams', 'recipients'],
pagerDuty: [],