def valuespec(self): return SetupSiteChoice( title=_("Monitored on site"), help=_("Specify the site that should monitor this host."), invalid_choice_error=_("The configured site is not known to this site. In case you " "are configuring in a distributed slave, this may be a host " "monitored by another site. If you want to modify this " "host, you will have to change the site attribute to the " "local site. But this may make the host be monitored from " "multiple sites."), )
def __init__(self): super(LockedByValuespec, self).__init__( orientation="horizontal", title_br=False, elements=[ SetupSiteChoice(), ID(title=_("Program"),), ID(title=_("Connection ID"),), ], title=_("Locked by"), help=_("The host is (partially) managed by an automatic data source like the " "Dynamic Configuration."), )
def site_valuespec(self) -> SetupSiteChoice: return SetupSiteChoice()
def site_valuespec(self) -> Union[DualListChoice, SetupSiteChoice]: return SetupSiteChoice()