Ingest event for indicator evaluation
POST /api/v2/events/ingest Select code sample Fetch cURL
errors Array
evaluationsCreated integer
eventId string
status
Get evaluation result Next
List enriched project indicator applications
const url = 'https://localhost:10001/api/v2/events/ingest';const options = { method: 'POST', headers: {Authorization: '
', 'Content-Type': 'application/json'}, body: '{"correlationId":"example","eventSubtype":"example","eventType":"indicator","indicatorId":"example","metadata":{},"payload":{},"projectId":"example","provider":"example","service":"example","source":"example","timestamp":"example"}'}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}
curl --request POST \ --url https://localhost:10001/api/v2/events/ingest \ --header 'Authorization:
' \ --header 'Content-Type: application/json' \ --data '{ "correlationId": "example", "eventSubtype": "example", "eventType": "indicator", "indicatorId": "example", "metadata": {}, "payload": {}, "projectId": "example", "provider": "example", "service": "example", "source": "example", "timestamp": "example" }'
Accepts an indicator event and queues it for asynchronous indicator evaluation
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”Event to ingest
Media type application/json object correlationId string eventSubtype“resource_state” | etc.
string eventTypeEvent metadata
stringAllowed values: indicator indicatorIdProject indicator fan-out routing
string metadata object payloadPayload
object projectIdContext
string provider string service string source“aws” | “external”
string timestamp stringResponses
Section titled “ Responses ”202
Section titled “202 ”Event accepted for processing
Media type application/json object declarationsCreated Array“processed” | “no_route”
stringExample generated
{ "declarationsCreated": [ 1 ], "errors": [ "example" ], "evaluationsCreated": 1, "eventId": "example", "status": "example"}
400
Section titled “400 ”Bad request - Invalid event payload
Media type application/json object code string details string message stringExample
{ "code": "INVALID_REQUEST", "details": "unexpected end of JSON input", "message": "Invalid request body"}
401
Section titled “401 ”Unauthorized - Authentication required
Media type application/json object code string details string message stringExample
{ "code": "INVALID_REQUEST", "details": "unexpected end of JSON input", "message": "Invalid request body"}
403
Section titled “403 ”Forbidden - No access or insufficient permission
Media type application/json object code string details string message stringExample
{ "code": "INVALID_REQUEST", "details": "unexpected end of JSON input", "message": "Invalid request body"}
500
Section titled “500 ”Internal server error
Media type application/json object code string details string message stringExample
{ "code": "INVALID_REQUEST", "details": "unexpected end of JSON input", "message": "Invalid request body"}
Previous Get evaluation result Next
List enriched project indicator applications