contexts
update_global_context: update context.sls context
Method | Path |
POST | /api/v1/contexts/update-global |
Examples
cURL
curl -X POST -H 'Content-Type: application/json' -H "Authorization: $JWT" \
$URL/api/v1/contexts/update-global -d '{
"interval": "3s"
}'
update_tag_map: update context.sls tag map
Method | Path |
POST | /api/v1/contexts/update-tag-map/tag:String |
Params
update_pipeline_map: update pipe map
Method | Path |
POST | /api/v1/contexts/update-pipe-map/pipe:String |
Params
Examples
cURL
curl -X POST -H 'Content-Type: application/json' -H "Authorization: $JWT" \
$URL/api/v1/contexts/update-pipe-map/simple -d '{
"threshold": 1.5
}'
get_context: get global context
Method | Path |
GET | /api/v1/contexts/global |
Examples
cURL
curl -X GET -H 'Content-Type: application/json' -H "Authorization: $JWT" \
$URL/api/v1/contexts/global
Output
{
"context": {
"interval": "3s"
},
"pipeline_map": {
"simple": {
"threshold": 1.5
}
},
"pipelines_all": [],
"tag_map": {}
}