Merge pull request #36 from navi-infra/fix-custom-alert
* | Abhishek | Fix custom alerts section to send type and severity
This commit is contained in:
@@ -97,6 +97,9 @@ const CustomAlert = () => {
|
||||
<FixWidthTextField label="Summary" name={`deployment.alerts.${alertType}.${i}.summary`} />
|
||||
<FixWidthTextField label="Duration" name={`deployment.alerts.${alertType}.${i}.duration`} />
|
||||
<FixWidthTextField label="Expression" name={`deployment.alerts.${alertType}.${i}.expression`} />
|
||||
<FixWidthTextField select label="Severity" name={`deployment.alerts.${alertType}.${i}.severity`}>
|
||||
{toMenuItems(severity)}
|
||||
</FixWidthTextField>
|
||||
</>)}
|
||||
</FormikCardList>
|
||||
)
|
||||
|
||||
@@ -331,7 +331,7 @@ export const newKafkaAlert = () => {
|
||||
}
|
||||
|
||||
export const newCustomAlert = () => {
|
||||
return {}
|
||||
return {type: 'custom'}
|
||||
}
|
||||
|
||||
export const withEnvironmentVarOutsideDeployment = (manifest: any) => {
|
||||
|
||||
Reference in New Issue
Block a user