This repository has been archived by the owner on Jan 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow passing a full json file (#164)
* Allow passing a full json file Signed-off-by: Emerson Knapp <eknapp@amazon.com>
- Loading branch information
1 parent
73198be
commit a0c8a62
Showing
6 changed files
with
271 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
set -euxo pipefail | ||
|
||
now=$(date +%s) | ||
|
||
cat << EOF > metrics.json | ||
[ | ||
{ | ||
"MetricName": "test-bytes-metric", | ||
"Timestamp": ${now}, | ||
"Unit": "Bytes", | ||
"Value": 20 | ||
}, | ||
{ | ||
"MetricName": "test-seconds-metric", | ||
"Timestamp": ${now}, | ||
"Unit": "Seconds", | ||
"Value": 11 | ||
} | ||
] | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters