def single_spec(self): return [('hostgroup', TextUnicode(title=_('Host Group Name'), ))]
def spec(self): return Dictionary( title=_("Create notification with the following parameters"), optional_keys=[ 'priority', 'resolution', 'host_summary', 'service_summary', 'ignore_ssl', 'timeout', 'label' ], elements=[ ("url", HTTPUrl( title=_("JIRA URL"), help=_("Configure the JIRA URL here."), )), ("ignore_ssl", FixedValue( True, title=_("Disable SSL certificate verification"), totext=_("Disable SSL certificate verification"), help=_("Ignore unverified HTTPS request warnings. Use with caution."), )), ("username", TextAscii( title=_("User Name"), help=_("Configure the user name here."), size=40, allow_empty=False, )), ("password", Password( title=_("Password"), help=_( "You need to provide a valid password to be able to send notifications."), size=40, allow_empty=False, )), ("project", TextAscii( title=_("Project ID"), help=_( "The numerical JIRA project ID. If not set, it will be retrieved from a " "custom user attribute named <tt>jiraproject</tt>. " "If that is not set, the notification will fail."), size=10, )), ("issuetype", TextAscii( title=_("Issue type ID"), help=_( "The numerical JIRA issue type ID. If not set, it will be retrieved from a " "custom user attribute named <tt>jiraissuetype</tt>. " "If that is not set, the notification will fail."), size=10, )), ("host_customid", TextAscii( title=_("Host custom field ID"), help=_("The numerical JIRA custom field ID for host problems."), size=10, )), ("service_customid", TextAscii( title=_("Service custom field ID"), help=_("The numerical JIRA custom field ID for service problems."), size=10, )), ("monitoring", HTTPUrl( title=_("Monitoring URL"), help=_( "Configure the base URL for the Monitoring Web-GUI here. Include the site name. " "Used for link to check_mk out of jira."), )), ("priority", TextAscii( title=_("Priority ID"), help=_( "The numerical JIRA priority ID. If not set, it will be retrieved from a " "custom user attribute named <tt>jirapriority</tt>. " "If that is not set, the standard priority will be used."), size=10, )), ("host_summary", TextUnicode( title=_("Summary for host notifications"), help=_("Here you are allowed to use all macros that are defined in the " "notification context."), default_value="Check_MK: $HOSTNAME$ - $HOSTSHORTSTATE$", size=64, )), ("service_summary", TextUnicode( title=_("Summary for service notifications"), help=_("Here you are allowed to use all macros that are defined in the " "notification context."), default_value="Check_MK: $HOSTNAME$/$SERVICEDESC$ $SERVICESHORTSTATE$", size=64, )), ("label", TextUnicode( title=_("Label"), help=_("Here you can set a custom label for new issues. " "If not set, 'monitoring' will be used."), size=16, )), ("resolution", TextAscii( title=_("Activate resolution with following resolution transition ID"), help=_("The numerical JIRA resolution transition ID. " "11 - 'To Do', 21 - 'In Progress', 31 - 'Done'"), size=3, )), ("timeout", TextAscii( title=_("Set optional timeout for connections to JIRA"), help=_("Here you can configure timeout settings."), default_value=10, )), ], )
def single_spec(self): return [ ('crash_id', TextUnicode(title=_('Crash ID'), )), ]
def single_spec(self): return [('service', TextUnicode(title=_('Service Description'), ))]
def single_spec(self): return [ ('aggr_group', TextUnicode(title=_('Aggregation group'), )), ]
def single_spec(self): return [('host', TextUnicode(title=_('Hostname'), ))]
def single_spec(self): return [ ('aggr_name', TextUnicode(title=_('Aggregation Name'), )), ]
def single_spec(self): return [ ('command_name', TextUnicode(title=_('Command Name'), )), ]
def single_spec(self): return [ ('log_contact_name', TextUnicode(title=_('Contact Name'), )), ]
def single_spec(self): return [ ('servicegroup', TextUnicode(title=_('Service Group Name'), )), ]
def valuespec(self): return Dictionary( elements=[ ( "start", Alternative( title=_("Started"), elements=[ FixedValue( None, totext=_("No scan has been started yet."), ), AbsoluteDate( include_time=True, default_value=0, ), ], ), ), ( "end", Alternative( title=_("Finished"), elements=[ FixedValue( None, totext=_("No scan has finished yet."), ), FixedValue( True, totext="", # currently running ), AbsoluteDate( include_time=True, default_value=0, ), ], ), ), ( "state", Alternative( title=_("State"), elements=[ FixedValue( None, totext="", # Not started or currently running ), FixedValue( True, totext=_("Succeeded"), ), FixedValue( False, totext=_("Failed"), ), ], ), ), ("output", TextUnicode(title=_("Output"), )), ], title=_("Last Scan Result"), optional_keys=[], default_text=_("No scan performed yet."), )