AlertingDialogThreshold()
Beta API. Mostly stable, but details may change in a minor release, outside SemVer. See API maturity.
The alerting dialog’s threshold field (the value a fixed-threshold, change or difference condition is compared against), connected to the dialog’s state and rendered as a labelled form row.
Renders DefaultAlertingDialogThreshold() inside AutomationDialogFormField() with the props of useAlertingDialogThresholdProps(); every prop passed here replaces the hook’s value for that prop wholesale. **The one useAlertThreshold mount**: useAlertingDialogThresholdProps() owns the field’s state and writes the draft (auto-computing a new alert’s threshold), so place this block once per dialog and do not also call the hook. Renders nothing while the draft uses anomaly detection (that condition has no threshold); the hook stays mounted behind the gate, so the field’s touched state survives a switch to anomaly detection and back. Renders nothing while useAlertingDialogContext().isLoading is true.
export declare function AlertingDialogThreshold(overrides: Partial<IAlertingDialogThresholdProps>): ReactElement;
Parameters
Parameter | Type | Description |
|---|---|---|
overrides | Partial<IAlertingDialogThresholdProps> |
Returns
ReactElement