stackit-argus-cli's People
stackit-argus-cli's Issues
empty elements are creating during unmarshaling
Grafana annotations
provide possibility to create Grafana annotations with the CLI
output flag
define update command structure
validate config file
tab writer
test command calling
get command
update command
delete command
define_structure
define structure of the commands/subcommands
define_get_command_structure
file flag
define create command structure
yaml requests
Unhelpful error message "something went wrong"
The CLI tool hides error messages from the API and replaces them with an unhelpful message like
Error: something went wrong creating the alert config receiver
Even the debug mode with -d
doesn't output the error message or response body. I have to manually use curl in order to get the correct output
hahnpa@SIT-SMBP-NQM9NV _alerting % stackit-argus-cli create receiver -f engineering_email_receiver.json -d
create alert config receiver command called
url to call - https://argus.api.eu01.stackit.cloud/v1/projects/b5e*****-****-****-****-********5c45/instances/a1bb*****-****-****-****-********68b0/alertconfigs/receivers
response status: 400 Bad Request
Error: something went wrong creating the alert config receiver
hahnpa@SIT-SMBP-NQM9NV _alerting % curl -H "Authorization: Bearer ey*****PA" -d @engineering_email_receiver.json https://argus.api.eu01.stackit.cloud/v1/projects/b5e*****-****-****-****-********5c45/instances/a1bb*****-****-****-****-********68b0/alertconfigs/receivers
{"message":"The number of alert receivers exceeded the limit from the plan"}
Please either parse the error message from the API and include it in the output, or include the actual response body in the debug output.
configuration file
define delete command structure
config file requierments
create command
get base url
get base url with auth header
add logger
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.