Compare commits

...

1 Commits

Author SHA1 Message Date
Taylor McKinnon b841061dad add debug version 2021-06-23 09:08:27 -07:00
1 changed files with 15 additions and 3 deletions

View File

@ -1,6 +1,6 @@
// @endpoint http://localhost:4802/api/v0/exec // @endpoint http://localhost:4802/api/v0/exec
{ {
'name' 'utapi/getMetricsAt' 'name' 'debug/getMetricsAt'
'desc' 'desc'
<' <'
@ -290,18 +290,30 @@
'load_reindex' SECTION 'load_reindex' SECTION
// Only load the latest reindex for the current node // Only load the latest reindex for the current node
$labels UNMAP 'node' $nodeID } 'filterLabels' STORE $labels UNMAP 'node' $nodeID } 'filterLabels' STORE
[
$read_token
$reindex_class
$filterLabels
] FIND
DUP SIZE TOSTRING 'FIND size: ' SWAP + LOGMSG
->JSON 'FIND: ' SWAP + LOGMSG
{ {
'token' $read_token 'token' $read_token
'class' $reindex_class 'class' $reindex_class
'labels' $filterLabels 'labels' $filterLabels
'end' $endTimestamp 'end' $endTimestamp
'count' 1 'count' 1
} FETCH }
DUP 'reindex query: ' SWAP ->JSON + LOGMSG
FETCH
DUP SIZE TOSTRING 'FETCH size: ' SWAP + LOGMSG
<% // Handle multiple GTS <% // Handle multiple GTS
VALUES VALUES
<% // For each reindex correction <% // For each reindex correction
@utapi/decodeRecord @utapi/decodeRecord
// DUP 'Loaded reindex correction ' SWAP ->JSON + LOGMSG DUP 'Loaded reindex correction ' SWAP ->JSON + LOGMSG
$results @util/sumRecord 'results' STORE $results @util/sumRecord 'results' STORE
%> FOREACH %> FOREACH
%> FOREACH %> FOREACH