Skip to content

Commit

Permalink
Try to fix escapes
Browse files Browse the repository at this point in the history
Signed-off-by: Jeroen van Erp <[email protected]>
  • Loading branch information
hierynomus committed Sep 17, 2024
1 parent 6fff2f0 commit 2175068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/observability/stql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ observability_get_component_snapshot() {

local req=$(cat <<EOF
{
"query": "$stql",
"queryVersion": "1.0",
"metadata": {
"groupingEnabled": false,
Expand All @@ -55,5 +54,6 @@ observability_get_component_snapshot() {
}
EOF
)
req=$(echo $req | jq --arg stql "$stql" '.query = "\($stql)"')
curl -s -k -H "Authorization: ApiKey $service_token" -H "Content-Type: application/json" -X POST -d "$req" $url/api/snapshot
}

0 comments on commit 2175068

Please sign in to comment.