HTTP
Last updated
first(.[].tag_name | select(. | startswith(\"layer-collector\"))) | split(\"/\") | .[1] | sub(\"\\\\.\"; \"_\"; \"g\"){
// [Mandatory] HTTP URL to be invoked with GET request to get response
"httpURL": "<HTTP-URL>",
// [Optional] HTTP headers in string typed key/value format
"httpHeaders": {
"<HEADER-1>": "<HEADER-1-VALUE>",
...
"<HEADER-N>": "<HEADER-N-VALUE>",
},
// [Mandatory] Label of the badge
"label": "<LABEL>",
// [Mandatory] The expression to be used for resolving badge message from the response of the HTTP URL
"messageExpression": "<MESSAGE-EXPRESSION>"
}{
"httpURL": "https://api.github.com/repos/open-telemetry/opentelemetry-lambda/releases",
"httpHeaders": {
"Authorization": "Bearer ...",
...
},
"label": "Collector",
"messageExpression": "first(.[].tag_name | select(. | startswith(\"layer-collector\"))) | split(\"/\") | .[1] | sub(\"\\\\.\"; \"_\"; \"g\")"
}{
// Id (in UUID v4 format) of the created badge HTTP config
"id": "<HTTP-CONFIG-ID>",
// Globadge API URL to be invoked with GET request to generate badge from saved config
// "<EXPRESSION-TYPE>" represent the value passed in the request path parameters for the expression type
// "<HTTP-CONFIG-ID>" represents the created config id which is returned in the "id" field in this response (above).
"url": "https://api.globadge.com/v1/badge/http/<EXPRESSION-TYPE>/<HTTP-CONFIG-ID>"
}