mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-12 06:51:31 +08:00

* added more changes to query builder * added types for composite queries * (feat): added edit rules and create rules forms * (feat): added chart preview for alert metric ui * (feat): added threshold in chart, translations in alert form and a few fixes * feat: added a link for alert name in list alerts page and source for each rule update Co-authored-by: Pranshu Chittora <pranshu@signoz.io>
23 lines
475 B
TypeScript
23 lines
475 B
TypeScript
import { Form } from 'antd';
|
|
import FormAlertRules from 'container/FormAlertRules';
|
|
import React from 'react';
|
|
import { AlertDef } from 'types/api/alerts/def';
|
|
|
|
function CreateRules({ initialValue }: CreateRulesProps): JSX.Element {
|
|
const [formInstance] = Form.useForm();
|
|
|
|
return (
|
|
<FormAlertRules
|
|
formInstance={formInstance}
|
|
initialValue={initialValue}
|
|
ruleId={0}
|
|
/>
|
|
);
|
|
}
|
|
|
|
interface CreateRulesProps {
|
|
initialValue: AlertDef;
|
|
}
|
|
|
|
export default CreateRules;
|