contexts

update_global_context: update context.sls context

MethodPath
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

MethodPath
POST/api/v1/contexts/update-tag-map/tag:String

Params

ParamType
tagString

update_pipeline_map: update pipe map

MethodPath
POST/api/v1/contexts/update-pipe-map/pipe:String

Params

ParamType
pipeString

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

MethodPath
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": {}
}