Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad23d12
commit c48a658
Showing
4 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import React, {SFC} from 'react' | ||
|
||
import HandlerInput from 'src/kapacitor/components/HandlerInput' | ||
|
||
interface Handler { | ||
alias: string | ||
enabled: boolean | ||
headerKey: string | ||
headerValue: string | ||
headers: { | ||
[key: string]: string | ||
} | ||
text: string | ||
type: string | ||
url: string | ||
} | ||
|
||
interface Props { | ||
selectedHandler: object | ||
handleModifyHandler: ( | ||
selectedHandler: Handler, | ||
fieldName: string, | ||
parseToArray: string | ||
) => void | ||
} | ||
|
||
const KafkaHandler: SFC<Props> = ({selectedHandler, handleModifyHandler}) => ( | ||
<div className="endpoint-tab-contents"> | ||
<div className="endpoint-tab--parameters"> | ||
<h4>Parameters for this Alert Handler</h4> | ||
<div className="faux-form"> | ||
<HandlerInput | ||
selectedHandler={selectedHandler} | ||
handleModifyHandler={handleModifyHandler} | ||
fieldName="cluster" | ||
fieldDisplay="Cluster" | ||
placeholder="" | ||
fieldColumns="col-md-12" | ||
/> | ||
<HandlerInput | ||
selectedHandler={selectedHandler} | ||
handleModifyHandler={handleModifyHandler} | ||
fieldName="topic" | ||
fieldDisplay="Topic" | ||
placeholder="" | ||
/> | ||
<HandlerInput | ||
selectedHandler={selectedHandler} | ||
handleModifyHandler={handleModifyHandler} | ||
fieldName="template" | ||
fieldDisplay="Template" | ||
placeholder="" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
|
||
export default KafkaHandler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters