167 lines
4.4 KiB
JSON
167 lines
4.4 KiB
JSON
{
|
|
"client_requirement": "client_is_nothing+",
|
|
"items": [
|
|
{
|
|
"type": "auth_wrapper",
|
|
"client_requirement": "client_is_nothing=",
|
|
"items": [
|
|
{
|
|
"type": "auth_card",
|
|
"items": [
|
|
{
|
|
"type": "h1",
|
|
"text": "Routlin Dashboard"
|
|
},
|
|
{
|
|
"type": "p",
|
|
"text": "Log in to monitor and manage your network."
|
|
},
|
|
{
|
|
"type": "spacer"
|
|
},
|
|
{
|
|
"type": "button_primary",
|
|
"action": "/accountlogin",
|
|
"text": "Log In"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "header_page_title",
|
|
"client_requirement": "client_is_viewer+",
|
|
"items": [
|
|
{
|
|
"type": "h1",
|
|
"text": "Overview"
|
|
},
|
|
{
|
|
"type": "p",
|
|
"text": "Current network status at a glance."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "stat_card_grid",
|
|
"client_requirement": "client_is_viewer+",
|
|
"items": [
|
|
{
|
|
"type": "stat_card",
|
|
"label": "DHCP Leases",
|
|
"value": "%STAT_LEASE_COUNT%",
|
|
"sub": "%STAT_LEASES_LINK%",
|
|
"variant": "accent"
|
|
},
|
|
{
|
|
"type": "stat_card",
|
|
"label": "DNS Queries",
|
|
"value": "%DNS_STAT_QUERIES%",
|
|
"sub": "since %DNS_METRICS_SINCE%"
|
|
},
|
|
{
|
|
"type": "stat_card",
|
|
"label": "DNS Cache",
|
|
"value": "%DNS_STAT_HITS% (%DNS_STAT_HIT_RATE% hit rate)",
|
|
"sub": "cache size: %DNS_CACHE_SIZE%, evictions: %DNS_STAT_CACHE_EVICTIONS%"
|
|
},
|
|
{
|
|
"type": "stat_card",
|
|
"label": "Queries Blocked",
|
|
"value": "%STAT_BLOCKED_ALLTIME%",
|
|
"sub": "all time",
|
|
"variant": "warning",
|
|
"data_requirement": "HAS_QUERY_LOGGING"
|
|
},
|
|
{
|
|
"type": "stat_card",
|
|
"label": "Public IP",
|
|
"value": "%STAT_PUBLIC_IP%",
|
|
"sub": "%STAT_DDNS_HOSTNAME%"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "card",
|
|
"label": "DNS Statistics",
|
|
"client_requirement": "client_is_viewer+",
|
|
"items": [
|
|
{
|
|
"type": "grid",
|
|
"rows": [
|
|
{
|
|
"cells": [
|
|
{"type": "grid_label", "text": "Tracking Since"},
|
|
{"type": "grid_value", "text": "%DNS_METRICS_SINCE%"}
|
|
]
|
|
},
|
|
{
|
|
"cells": [
|
|
{"type": "grid_label", "text": "Last Updated"},
|
|
{"type": "grid_value", "text": "%DNS_METRICS_UPDATED%"}
|
|
]
|
|
},
|
|
{
|
|
"cells": [
|
|
{"type": "grid_label", "text": "Total Queries"},
|
|
{"type": "grid_value", "text": "%DNS_STAT_QUERIES%"}
|
|
]
|
|
},
|
|
{
|
|
"cells": [
|
|
{"type": "grid_label", "text": "Cache Hits"},
|
|
{"type": "grid_value", "text": "%DNS_STAT_HITS% (%DNS_STAT_HIT_RATE% hit rate)"}
|
|
]
|
|
},
|
|
{
|
|
"cells": [
|
|
{"type": "grid_label", "text": "Forwarded to Upstream"},
|
|
{"type": "grid_value", "text": "%DNS_STAT_FORWARDED%"}
|
|
]
|
|
},
|
|
{
|
|
"cells": [
|
|
{"type": "grid_label", "text": "Cache Capacity"},
|
|
{"type": "grid_value", "text": "%DNS_CACHE_SIZE% entries"}
|
|
]
|
|
},
|
|
{
|
|
"cells": [
|
|
{"type": "grid_label", "text": "Cache Evictions"},
|
|
{"type": "grid_value", "text": "%DNS_STAT_CACHE_EVICTIONS%"}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "raw_html",
|
|
"html": "%DNS_PROVIDERS_TABLE%"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "card",
|
|
"label": "Blocked Domains",
|
|
"client_requirement": "client_is_viewer+",
|
|
"data_requirement": "HAS_QUERY_LOGGING",
|
|
"items": [
|
|
{
|
|
"type": "raw_html",
|
|
"html": "%BLOCKED_DOMAINS_TABLE%"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "card",
|
|
"label": "Client Activity",
|
|
"client_requirement": "client_is_viewer+",
|
|
"data_requirement": "HAS_QUERY_LOGGING",
|
|
"items": [
|
|
{
|
|
"type": "raw_html",
|
|
"html": "%CLIENT_ACTIVITY_TABLE%"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|