@ -7,6 +7,11 @@ const widget = {
mappings: {
"request/count": {
endpoint: "request/count",
validate: [
"pending",
"approved",
"available"
]
},
};
"available",
],
"api.php": {
endpoint: "api.php",
"dns_queries_today",
"ads_blocked_today",
"domains_being_blocked"
@ -16,6 +16,9 @@ const widget = {
"queue/status": {
endpoint: "queue/status",
"totalCount"
@ -7,6 +7,9 @@ const widget = {
queue: {
endpoint: "queue",
"queue"
@ -11,12 +11,21 @@ const widget = {
map: (data) => ({
total: asJson(data).length,
}),
"total"
"totalRecords"
"wanted/missing": {
endpoint: "wanted/missing",
"speedtest/latest": {
endpoint: "speedtest/latest",
"data"
status: {
endpoint: "status",
"numActiveSessions",
"numConnections",
"bytesProxied"
overview: {
endpoint: "overview",
"http"