AlertingDialogMeasure()
Beta API. Mostly stable, but details may change in a minor release, outside SemVer. See API maturity.
The alerting dialog’s measure field (“Metric”: the measure the condition targets), connected to the dialog’s state and rendered as a labelled form row.
Renders DefaultAlertingDialogMeasure() inside AutomationDialogFormField() with the props of useAlertingDialogMeasureProps(); every prop passed here replaces the hook’s value for that prop wholesale. Renders nothing while useAlertingDialogContext().isLoading is true. The row’s label is the default dialog’s — a shell that wants its own label renders the hook and the render component inside its own AutomationDialogFormField.
export declare function AlertingDialogMeasure(overrides: Partial<IAlertingDialogMeasureProps>): ReactElement;
Parameters
Parameter | Type | Description |
|---|---|---|
overrides | Partial<IAlertingDialogMeasureProps> |
Returns
ReactElement
Example
function MyAlertingDialog(props: IAlertingDialogProps) {
return (
<MyShell onClose={props.onCancel}>
<AlertingDialogMeasure />
<AlertingDialogComparisonOperator />
<AlertingDialogThreshold />
</MyShell>
);
}
<Dashboard AlertingDialogComponent={MyAlertingDialog} />;