mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:01:09 +02:00
fix(status-json): strip /health path before .mana.how suffix for correct service keys
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
bf49b95319
commit
a6560a3227
1 changed files with 3 additions and 1 deletions
|
|
@ -386,8 +386,10 @@ echo "$SUCCESS_JSON" | jq \
|
|||
key: (
|
||||
.metric.instance
|
||||
| ltrimstr("https://")
|
||||
| rtrimstr("/health")
|
||||
| rtrimstr("/")
|
||||
| if . == "mana.how" then "manacore"
|
||||
else (. | rtrimstr(".mana.how") | rtrimstr("/health"))
|
||||
else rtrimstr(".mana.how")
|
||||
end
|
||||
),
|
||||
value: (.value[1] == "1")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue