def get_service_conditions(cls): return [ ("service_regex", TextAscii( title=_("Service Regex"), help=_("Subexpressions enclosed in <tt>(</tt> and <tt>)</tt> will be available " "as arguments <tt>$2$</tt>, <tt>$3$</tt>, etc."), size=80, )), ("service_labels", LabelCondition(title=_("Service Labels"), help_txt="")), ]
def get_host_conditions(cls): return [ ("host_folder", DropdownChoice( title=_("Folder"), help=_("The rule is only applied to hosts directly in or below this folder."), choices=watolib.Folder.folder_choices(), encode_value=False, )), ("host_tags", DictHostTagCondition(title=_("Host Tags"), help_txt="")), ("host_labels", LabelCondition(title=_("Host Labels"), help_txt="")), ("host_choice", _bi_host_choice_vs(_("Filter Host"))), ]