예제 #1
0
 def _vs_diagnostics(self) -> Dictionary:
     return Dictionary(
         title=_("Collect diagnostic dump"),
         render="form",
         elements=[
             ("site", DropdownChoice(
                 title=_("Site"),
                 choices=config.get_wato_site_choices(),
             )),
             ("general",
              FixedValue(True,
                         title=_("General information"),
                         totext=_("Collect information about OS and Checkmk version"),
                         help=_("Collect information about OS, Checkmk version and edition, "
                                "Time, Core, Python version and paths, Architecture"))),
             ("opt_info",
              Dictionary(
                  title=_("Optional information"),
                  elements=self._get_optional_information_elements(),
              )),
             ("comp_specific",
              ListOf(
                  title=_("Component specific information"),
                  valuespec=CascadingDropdown(choices=self._get_component_specific_choices()),
              )),
         ],
         optional_keys=False,
     )
예제 #2
0
 def _vs_diagnostics(self):
     # type: () -> ValueSpec
     return Dictionary(
         title=_("Collect diagnostic dump"),
         render="form",
         elements=[
             ("site",
              DropdownChoice(
                  title=_("Site"),
                  choices=config.get_wato_site_choices(),
              )),
             ("general",
              FixedValue(
                  None,
                  totext=_(
                      "Collect information about OS and Checkmk version"),
                  title=_("General information"))),
             ("opt_info",
              ListChoice(
                  title=_("Optional information"),
                  choices=[],
              )),
         ],
         optional_keys=False,
     )