Set alert for a stream (composite type)
PUT {{endpoint}}/api/v1/logstream/{{stream_name}}/alert
Request Body
{"version"=>"v1", "alerts"=>[{"name"=>"Unauthorised access", "message"=>"secret was accessed by an unauthorised user", "rule"=>{"config"=>"(verb =% \"list\" or verb =% \"get\") and (objectRef_resource = \"secrets\" and user_username !% \"test-user\")", "type"=>"composite"}, "targets"=>[{"type"=>"webhook", "endpoint"=>"https://webhook.site/85444d74-1cec-46a1-a8d3-a2b952d60baa", "skip_tls_check"=>false, "repeat"=>{"interval"=>"10s", "times"=>5}}]}]}
HEADERS
| Key | Datatype | Required | Description |
RESPONSES
status: ``