mirror of
https://github.com/clearlinux/cloud-native-setup.git
synced 2026-08-19 05:27:26 +00:00
metrics: scaling: store json int results as non-strings
We were storing some JSON data (such as NUM_PODS) as strings. This would default their type into the Elastic DB as strings, and not ints. May as well store ints as ints, so make that so. Signed-off-by: Graham Whaley <graham.whaley@intel.com>
This commit is contained in:
committed by
David Lyle
parent
5c9a5df264
commit
42359e1f8e
@@ -148,10 +148,10 @@ save_config(){
|
||||
local json="$(cat << EOF
|
||||
{
|
||||
"testname": "${TEST_NAME}",
|
||||
"NUM_PODS": "${NUM_PODS}",
|
||||
"STEP": "${STEP}",
|
||||
"wait_time": "${wait_time}",
|
||||
"delete_wait_time": "${delete_wait_time}"
|
||||
"NUM_PODS": ${NUM_PODS},
|
||||
"STEP": ${STEP},
|
||||
"wait_time": ${wait_time},
|
||||
"delete_wait_time": ${delete_wait_time}
|
||||
}
|
||||
EOF
|
||||
)"
|
||||
|
||||
@@ -114,11 +114,11 @@ save_config(){
|
||||
local json="$(cat << EOF
|
||||
{
|
||||
"testname": "${TEST_NAME}",
|
||||
"NUM_PODS": "${NUM_PODS}",
|
||||
"STEP": "${STEP}",
|
||||
"wait_time": "${wait_time}",
|
||||
"delete_wait_time": "${delete_wait_time}",
|
||||
"settle_time": "${settle_time}"
|
||||
"NUM_PODS": ${NUM_PODS},
|
||||
"STEP": ${STEP},
|
||||
"wait_time": ${wait_time},
|
||||
"delete_wait_time": ${delete_wait_time},
|
||||
"settle_time": ${settle_time}
|
||||
}
|
||||
EOF
|
||||
)"
|
||||
|
||||
Reference in New Issue
Block a user