Interface: UseMonitorFieldsResult
Defined in: src/hooks/useMonitorFields.ts:52
Result interface for the useMonitorFields hook
Propertiesโ
error?โ
optional
error:string
Defined in: src/hooks/useMonitorFields.ts:54
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error message if loading failed
getFields()โ
getFields: (
monitorType
:string
) =>MonitorFieldDefinition
[]
Defined in: src/hooks/useMonitorFields.ts:56
Get field definitions for a specific monitor type
Parametersโ
monitorTypeโ
string
Returnsโ
getRequiredFields()โ
getRequiredFields: (
monitorType
:string
) =>string
[]
Defined in: src/hooks/useMonitorFields.ts:58
Get required fields for a specific monitor type
Parametersโ
monitorTypeโ
string
Returnsโ
string
[]
isFieldRequired()โ
isFieldRequired: (
monitorType
:string
,fieldName
:string
) =>boolean
Defined in: src/hooks/useMonitorFields.ts:60
Check if a field is required for a monitor type
Parametersโ
monitorTypeโ
string
fieldNameโ
string
Returnsโ
boolean
isLoadedโ
isLoaded:
boolean
Defined in: src/hooks/useMonitorFields.ts:62
Whether field definitions are loaded