Dashboard Schema¶
Dashboard¶
type |
object |
||
properties |
|||
|
rows |
||
The rows of the dashboard. |
|||
type |
array |
||
examples |
|
||
items |
type |
object |
|
additionalProperties |
False |
Row¶
type |
object |
||
properties |
|||
|
name |
||
The name of the row; shown as title above the row. |
|||
type |
string |
||
examples |
CVEs |
||
|
panels |
||
The panels to show in the row. |
|||
type |
array |
||
examples |
|
||
items |
type |
object |
|
additionalProperties |
False |
Panel¶
type |
object |
||
properties |
|||
|
_type |
||
The type of panel to use. |
|||
type |
string |
||
enum |
table, vertical-table, count, bar, pie, progress, oncall-table, markdown |
||
examples |
table |
||
|
Settings specific to bar panels. |
||
type |
object |
||
examples |
|
||
default |
legend |
null |
|
|
caption |
||
The caption to use for the panel. |
|||
type |
string / null |
||
examples |
Critical CVEs |
||
default |
null |
||
|
cypher |
||
A reference to a cypher from the cypher section of the configuration. |
|||
type |
string / null |
||
examples |
cves |
||
default |
null |
||
|
details_cypher |
||
A reference to a cypher from the cypher section of the configuration. Must return |
|||
type |
string / null |
||
examples |
cves-details |
||
default |
null |
||
|
markdown |
||
The markdown to use for the panel. Only used for type |
|||
type |
string / null |
||
examples |
|
||
default |
null |
||
|
Settings specific to markdown panels. |
||
type |
object |
||
examples |
|
||
default |
variables |
||
|
metric |
||
The statsd metric to send from the panel data. Only used for |
|||
type |
string / null |
||
examples |
cves.severity |
||
default |
null |
||
|
params |
||
A list of parameters to send into the query. The parameters can directly have values, or can be a reference to an input. |
|||
type |
array |
||
examples |
|
||
items |
type |
object |
|
|
Settings specific to pie panels. |
||
type |
object |
||
examples |
|
||
default |
legend |
null |
|
|
size |
||
The size of the panel. |
|||
type |
number / null |
||
examples |
2.0 |
||
default |
2.0 |
||
format |
float |
||
|
table_id |
||
The cypher attribute to use for the table’s unique ID, if using a type of table or vertical-table. If not set, a random ID will be generated. A table_id should be set for |
|||
type |
string / null |
||
examples |
cve_id |
||
default |
null |
||
|
threshold |
||
The size of the panel. |
|||
type |
number / null |
||
examples |
70 |
||
default |
null |
||
format |
float |
||
additionalProperties |
False |
BarPanelSettings¶
type |
object |
|
properties |
||
|
legend |
|
The type of legend to use; |
||
type |
string / null |
|
default |
null |
|
additionalProperties |
False |
MarkdownPanelSettings¶
type |
object |
||
properties |
|||
|
variables |
||
Variables to inject into markdoc, for use within the markdown. |
|||
type |
array |
||
items |
type |
object |
|
additionalProperties |
False |
MarkdownPanelSettingsVariables¶
type |
object |
||
properties |
|||
|
cypher |
||
A reference to a cypher from the cypher section of the configuration. |
|||
type |
string |
||
examples |
cves |
||
|
name |
||
The variable name to be used within the markdown. |
|||
type |
string |
||
|
params |
||
A list of parameters to send into the query. The parameters can directly have values. Currently does not support inputs. |
|||
type |
array |
||
examples |
|
||
items |
type |
object |
|
additionalProperties |
False |
PanelParam¶
type |
object |
|
properties |
||
|
input_id |
|
Reference to the query in the inputs section. |
||
type |
string / null |
|
examples |
cve_base_severity |
|
default |
null |
|
|
name |
|
The parameter name to use when passing this input into the query. |
||
type |
string |
|
examples |
severity |
|
|
The parameter value to pass into the query. |
|
examples |
|
|
additionalProperties |
False |
PiePanelSettings¶
type |
object |
|
properties |
||
|
legend |
|
The type of legend to use; |
||
type |
string / null |
|
default |
null |
|
additionalProperties |
False |
Report¶
type |
object |
||
properties |
|||
|
inputs |
||
The inputs to use for the report. |
|||
type |
array |
||
examples |
|
||
items |
type |
object |
|
|
name |
||
The name of the report. |
|||
type |
string |
||
examples |
CVEs |
||
|
rows |
||
The rows of the report. |
|||
type |
array |
||
examples |
|
||
items |
type |
object |
|
additionalProperties |
False |
Input¶
type |
object |
|
properties |
||
|
_type |
|
The type of input to use. |
||
type |
string |
|
enum |
autocomplete, text |
|
examples |
autocomplete |
|
|
cypher |
|
The Cypher query to execute. Must return |
||
type |
string / null |
|
examples |
|
|
default |
null |
|
|
The default value to set if no value is selected. |
|
type |
object |
|
examples |
|
|
default |
||
|
input_id |
|
Reference to the query in the inputs section. |
||
type |
string |
|
examples |
cve_base_severity |
|
|
label |
|
The label to use for the select element. |
||
type |
string |
|
examples |
CVE base severity |
|
|
size |
|
The size of the input element. |
||
type |
number / null |
|
examples |
2.0 |
|
default |
2.0 |
|
format |
float |
|
additionalProperties |
False |
InputDefault¶
type |
object |
|
properties |
||
|
label |
|
The label for the default. |
||
type |
string |
|
|
value |
|
The value for the default. |
||
type |
string |
|
additionalProperties |
False |
ScheduledQuery¶
type |
object |
||
properties |
|||
|
actions |
||
The actions to perform when the scheduled query is triggered. |
|||
type |
array |
||
examples |
|
||
items |
type |
object |
|
|
cypher |
||
The cypher to use for the scheduled query. |
|||
type |
string |
||
examples |
recent-cves |
||
|
enabled |
||
Whether the scheduled query should be enabled. If not set, the scheduled query will be enabled. |
|||
type |
boolean / null |
||
examples |
true |
||
default |
True |
||
|
frequency |
||
The frequency of the scheduled query in minutes. Mutually exclusive with |
|||
type |
integer / null |
||
examples |
1440 |
||
default |
null |
||
|
name |
||
The name of the scheduled query. |
|||
type |
string |
||
examples |
Recently published HIGH/CRITICAL CVEs |
||
|
params |
||
A dictionary of parameters to pass to the cypher query. The keys are the variable names, and the values are the values to pass. |
|||
type |
array |
||
examples |
|
||
items |
type |
object |
|
|
watch_scans |
||
The scans to watch for the scheduled query. Based on SyncMetadata. Query will triger if any of the watched scans listed are updated. Mutually exclusive with |
|||
type |
array |
||
examples |
|
||
items |
type |
object |
|
additionalProperties |
False |
ScheduledQueryAction¶
type |
object |
|
properties |
||
|
The configuration for the action. See the documentation for the relevant scheduled query module for information about the configuration needed for each action type. |
|
examples |
|
|
additionalProperties |
action_config |
|
|
action_type |
|
The type of action to perform. |
||
type |
string |
|
examples |
slack |
|
sqs |
||
additionalProperties |
False |
ScheduledQueryParam¶
type |
object |
|
properties |
||
|
name |
|
The parameter name to use when passing this input into the query. |
||
type |
string |
|
examples |
severity |
|
|
The parameter value to pass into the query. |
|
examples |
|
|
additionalProperties |
False |
ScheduledQueryWatchScan¶
type |
object |
|
properties |
||
|
groupid |
|
Match against the groupid attribute of the SyncMetadata node, as a regex. If not set, the query will match against |
||
type |
string / null |
|
examples |
2019 |
|
default |
.* |
|
|
grouptype |
|
Match against the grouptype attribute of the SyncMetadata node, as a regex. If not set, the query will match against |
||
type |
string / null |
|
examples |
CVE |
|
default |
.* |
|
|
syncedtype |
|
Match against the syncedtype attribute of the SyncMetadata node, as a regex. If not set, the query will match against |
||
type |
string / null |
|
examples |
year |
|
default |
.* |
|
additionalProperties |
False |
ReportingConfig¶
type |
object |
||
properties |
|||
|
version |
||
The configuration file format version. |
|||
type |
integer / null |
||
default |
1 |
||
|
queries |
||
The queries to use for the report. |
|||
type |
object |
||
examples |
|
||
additionalProperties |
queries |
||
type |
string |
||
|
The dashboard to use for the report. |
||
type |
object |
||
examples |
|
||
|
reports |
||
The reports to use for the report. |
|||
type |
object |
||
examples |
|
||
additionalProperties |
type |
object |
|
|
scheduled_queries |
||
The scheduled queries to use for the report. |
|||
type |
object |
||
examples |
|
||
additionalProperties |
type |
object |
|
additionalProperties |
False |