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:
Abhishek Katiyar
2020-12-22 13:35:53 +05:30
committed by GitHub Enterprise
2 changed files with 4 additions and 1 deletions

View File

@@ -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>
)

View File

@@ -331,7 +331,7 @@ export const newKafkaAlert = () => {
}
export const newCustomAlert = () => {
return {}
return {type: 'custom'}
}
export const withEnvironmentVarOutsideDeployment = (manifest: any) => {