Fix 'kafka-topic' JSON key to be 'topic'
parent
6edceb0b32
commit
08681c2795
|
@ -138,9 +138,9 @@ type Talk struct{}
|
|||
|
||||
// Kafka sends alerts to any Kafka brokers specified in the handler config
|
||||
type Kafka struct {
|
||||
Cluster string `json:"cluster"`
|
||||
KafkaTopic string `json:"kafka-topic"`
|
||||
Template string `json:"template"`
|
||||
Cluster string `json:"cluster"`
|
||||
Topic string `json:"topic"`
|
||||
Template string `json:"template"`
|
||||
}
|
||||
|
||||
// MarshalJSON converts AlertNodes to JSON
|
||||
|
|
|
@ -40,7 +40,7 @@ const KafkaHandler: SFC<Props> = ({selectedHandler, handleModifyHandler}) => (
|
|||
<HandlerInput
|
||||
selectedHandler={selectedHandler}
|
||||
handleModifyHandler={handleModifyHandler}
|
||||
fieldName="kafka-topic"
|
||||
fieldName="topic"
|
||||
fieldDisplay="Topic"
|
||||
placeholder=""
|
||||
/>
|
||||
|
|
|
@ -173,7 +173,7 @@ export const HANDLERS_TO_RULE = {
|
|||
'service',
|
||||
],
|
||||
hipChat: ['room'],
|
||||
kafka: ['cluster', 'kafka-topic', 'template'],
|
||||
kafka: ['cluster', 'topic', 'template'],
|
||||
opsGenie: ['teams', 'recipients'],
|
||||
opsGenie2: ['teams', 'recipients'],
|
||||
pagerDuty: [],
|
||||
|
|
Loading…
Reference in New Issue