add python script that can translate a CWMS codahale metrics file to curl requests#108
Conversation
MikeNeilson
left a comment
There was a problem hiding this comment.
Have you considered setting up some Postman tests? or adding to the postman tests here: https://github.com/USACE/cwms-radar-api-performance-tests
| echo Start Time: | ||
| date +"%r" | ||
| echo Running cURL requests | ||
| curl -k --write-out '%{http_code}' --silent --output /dev/null https://leary:8443/swt-data/catalog/timeseries/?pageSize=5000 --header "Accept:application/json;version=2" & |
There was a problem hiding this comment.
Hard Coded URLS and context; these should be arguments to the script.
There was a problem hiding this comment.
This file is the output of the python script
There was a problem hiding this comment.
ah, I see. debatable then whether or not it should be under source control.
Postman, VSCode REST Client, and IntelliJ HTTP all support importing from cURL so that's where I wanted to start. |
|
oh, that's cool. Didn't actually know that. Learn something new every day. |
|




The intent of this python script is to parse through metrics collected by CWMS and to be able to run a single shell script executing multiple cURL requests. The example simulates the requests made by CWMSVue on initial load when using a CWMS Data API data source.