bansho/app/components/config/config.json
aviau 57f2ebd3d4 Allow for multiple table input sources
Change-Id: I7d5bbfd2991462eacc47d4f0a2ded46da2cb8f9d
2015-05-22 11:34:13 -04:00

262 lines
8.8 KiB
JSON

{
"dashboardConfig": {
"title": "Unhandled service problems",
"refreshInterval": 0,
"template": "dashboard",
"components": [
{
"type": "tactical",
"config": {
"title": "Tactical Overview",
"components": {
"statusOverview": true,
"currentHealth": true,
"topAlertProducers": false
}
}
},
{
"type": "table",
"config": {
"title": "Open Hosts problems",
"cells": {
"text": [
"Host",
"Address",
"Duration",
"Last check",
"Host status"
],
"name": [
"status_host",
"status_host_address",
"status_duration",
"status_last_check",
"status_host_status"
]
},
"inputSource": {
"service": "surveilStatus",
"config": {
"apiName": "hosts",
"filters": {
"is": {
"acknowledged": [
false
],
"state": [
"DOWN",
"UNREACHABLE"
]
}
}
}
},
"isWrappable": false,
"noRepeatCell": ""
}
},
{
"type": "table",
"config": {
"title": "Open Service problems",
"cells": {
"text": [
"Host",
"Service check",
"Duration",
"Last check"
],
"name": [
"status_host",
"status_service_check",
"status_duration",
"status_last_check"
]
},
"inputSource": {
"service": "surveilStatus",
"config": {
"apiName": "services",
"filters": {
"isnot": {
"state": [
"OK"
],
"host_state": [
"DOWN",
"UNREACHABLE"
]
},
"is": {
"acknowledged": [
false
]
}
}
}
},
"isWrappable": true,
"noRepeatCell": "host"
}
},
{
"type": "table",
"config": {
"title": "Hosts problems",
"cells": {
"text": [
"Host",
"Address",
"Duration",
"Last check",
"Host status"
],
"name": [
"status_host",
"status_host_address",
"status_duration",
"status_last_check",
"status_host_status"
]
},
"inputSource": {
"service": "surveilStatus",
"config": {
"apiName": "hosts",
"filters": {
"isnot": {
"state": [
"UP"
]
}
}
}
},
"isWrappable": false,
"noRepeatCell": ""
}
},
{
"type": "table",
"config": {
"title": "Services problems",
"cells": {
"text": [
"Host",
"Service check",
"Duration",
"Last check"
],
"name": [
"status_host",
"status_service_check",
"status_duration",
"status_last_check"
]
},
"inputSource": {
"service": "surveilStatus",
"config": {
"apiName": "services",
"filters": {
"isnot": {
"state": [
"OK"
]
}
}
}
},
"isWrappable": true,
"noRepeatCell": "host"
}
}
]
},
"liveHosts": {
"title": "Hosts",
"refreshInterval": 0,
"template": "single_table",
"components": [
{
"type": "table",
"config": {
"title": "Hosts",
"cells": {
"text": [
"Host",
"Address",
"Duration",
"Last check",
"Host status"
],
"name": [
"status_host",
"status_host_address",
"status_duration",
"status_last_check",
"status_host_status"
]
},
"inputSource": {
"service": "surveilStatus",
"config": {
"apiName": "hosts",
"filters": {}
}
},
"isWrappable": false,
"noRepeatCell": ""
}
}
]
},
"liveServices": {
"title": "Services",
"refreshInterval": 0,
"template": "single_table",
"components": [
{
"type": "table",
"config": {
"title": "Services",
"cells": {
"text": [
"Host",
"Service check",
"Duration",
"Last check"
],
"name": [
"status_host",
"status_service_check",
"status_duration",
"status_last_check"
]
},
"inputSource": {
"service": "surveilStatus",
"config": {
"apiName": "services",
"filters": {}
}
},
"isWrappable": false,
"noRepeatCell": "host"
}
}
]
},
"host": {
"title": "Host",
"refreshInterval": 0,
"template": "host"
},
"service": {
"title": "Service",
"refreshInterval": 0,
"template": "service"
}
}