Config
Availability table
Module |
Available |
|---|---|
config controller
Provides access of configuration elements like dashboard, severities, …
- config.getDashboards()
Get all dashboards defined in the web module
- Returns:
Contains a list of dashboards, each with its associated properties. The result includes a content key, which contains a dashboards key holding a list of
Dashboard()objects. EachDashboard()object includes properties such as id, description, tags and folders.
- config.getSeverities()
Get all severity levels defined in the web module
- Returns:
Contains a list of severity levels, each with all its associated properties. The result includes a content key, which contains a severities key holding a list of
Severity()objects. EachSeverity()object includes properties such as id, name, description and severity.
Color
Dashboard
- class config.Dashboard()
Object representing a dashboard.
- Dashboard.id
The id of the dashboard.
The type of the field is string.
- Dashboard.title
The title of the dashboard.
The type of the field is string.
- Dashboard.description
The description of the dashboard.
The type of the field is string.
- Dashboard.tags
The tags of the dashboard.
The type of the field is string[].
- Dashboard.folders
The folders of the dashboard.
The type of the field is string[].
- Dashboard.searchBehavior
The search behavior of the dashboard.
The type of the field is string.
- Dashboard.getDescription()
Get the description of the dashboard
Deprecated since version 2.1.0: Use
config.Dashboard.descriptioninstead.
- Returns:
A string representing the description of the dashboard
- Dashboard.getFolders()
Get the tags of the folders
Deprecated since version 2.1.0: Use
config.Dashboard.foldersinstead.
- Returns:
A list of string representing the folders of the dashboard
- Dashboard.getId()
Get the id of the dashboard
Deprecated since version 2.1.0: Use
config.Dashboard.idinstead.
- Returns:
A string representing the id of the dashboard
- Dashboard.getTags()
Get the tags of the dashboard
Deprecated since version 2.1.0: Use
config.Dashboard.tagsinstead.
- Returns:
A list of string representing the tags of the dashboard
Severity
- class config.Severity()
Object representing a severity.
- Severity.id
The id of the severity.
The type of the field is string.
- Severity.name
The name of the severity.
The type of the field is string.
- Severity.description
The description of the severity.
The type of the field is string.
- Severity.severity
The value of the severity.
The type of the field is number.
- Severity.fallback
The fallback status of the severity. If true, this severity will be used when an unknown severity is encounter.
The type of the field is boolean.
- Severity.fgColor
The foreground color of the severity. See
config.Color().The type of the field is Color.
- Severity.bgColor
The background color of the severity. See
config.Color().The type of the field is Color.
- Severity.fgHiColor
The highlighted foreground color of the severity. See
config.Color().The type of the field is Color.
- Severity.bgHiColor
The highlighted background color of the severity. See
config.Color().The type of the field is Color.
- Severity.getBgColor()
Get the background color
Deprecated since version 2.1.0: Use
config.Severity.bgColorinstead.
- Returns:
A string representing the foreground color used by the severity. See
config.Color().
- Severity.getBgHiColor()
Get the background color when highlighted
Deprecated since version 2.1.0: Use
config.Severity.bgHiColorinstead.
- Returns:
A string representing the highlighted background color used by the severity. See
config.Color().
- Severity.getDescription()
Get the description of the severity
Deprecated since version 2.1.0: Use
config.Severity.descriptioninstead.
- Returns:
A string representing the description of the severity
- Severity.getFgColor()
Get the foreground color
Deprecated since version 2.1.0: Use
config.Severity.fgColorinstead.
- Returns:
A string representing the foreground color used by the severity. See
config.Color().
- Severity.getFgHiColor()
Get the foreground color when highlighted
Deprecated since version 2.1.0: Use
config.Severity.fgHiColorinstead.
- Returns:
A string representing the highlighted foreground color used by the severity. See
config.Color().
- Severity.getId()
Get the id of the severity
Deprecated since version 2.1.0: Use
config.Severity.idinstead.
- Returns:
A string representing the id of the severity
- Severity.getName()
Get the name of the severity
Deprecated since version 2.1.0: Use
config.Severity.nameinstead.
- Returns:
A string representing the name of the severity
- Severity.getSeverity()
Get the severity value
Deprecated since version 2.1.0: Use
config.Severity.severityinstead.
- Returns:
An number representing the value of the severity
- Severity.isFallback()
Get the severity fallback status
Deprecated since version 2.1.0: Use
config.Severity.fallbackinstead.
- Returns:
true if the severity is the fallback one (aka default)