<model>
    <mount>//OPNsense/rmmagent</mount>
    <version>1.0.0</version>
    <description>RMM Agent Settings</description>
    <items>
        <general>
            <Enabled type="BooleanField">
                <Default>0</Default>
                <Required>Y</Required>
            </Enabled>
            <BackendUrl type="TextField">
                <Required>Y</Required>
                <Mask>/^https?:\/\/.+/</Mask>
                <ValidationMessage>Gueltige URL erforderlich (https://host:port)</ValidationMessage>
            </BackendUrl>
            <ApiKey type="TextField">
                <Required>Y</Required>
                <Mask>/^.{8,}$/</Mask>
                <ValidationMessage>API-Key muss mindestens 8 Zeichen lang sein</ValidationMessage>
            </ApiKey>
            <AgentName type="TextField">
                <Required>N</Required>
                <ValidationMessage>Optionaler Agent-Name</ValidationMessage>
            </AgentName>
            <Interval type="IntegerField">
                <Default>60</Default>
                <MinimumValue>10</MinimumValue>
                <MaximumValue>3600</MaximumValue>
                <ValidationMessage>Intervall zwischen 10 und 3600 Sekunden</ValidationMessage>
            </Interval>
            <Insecure type="BooleanField">
                <Default>1</Default>
                <Required>Y</Required>
            </Insecure>
        </general>
    </items>
</model>
