Private
Public Access
1
0

scores: json handler
Some checks failed
continuous-integration/drone/push Build was killed

This commit is contained in:
2023-12-10 21:42:15 -08:00
parent 61245cc77c
commit f6b0f96a34
7 changed files with 358 additions and 85 deletions

View File

@@ -52,7 +52,18 @@ select * from monitors where tls_name = ?;
-- name: GetMonitorsByID :many
select * from monitors
where id in (sqlc.slice('ids'));
where id in (sqlc.slice('MonitorIDs'));
-- name: GetServerScores :many
select
m.id, m.name, m.tls_name, m.location, m.type,
ss.score_raw, ss.score_ts, ss.status
from server_scores ss
inner join monitors m
on (m.id=ss.monitor_id)
where
server_id = ? AND
monitor_id in (sqlc.slice('MonitorIDs'));
-- name: GetServerLogScores :many
select * from log_scores