core
core copied to clipboard
Allow attaching multiple components to an incident with the API
This addresses issue #156
Supports attaching multiple components when creating an incident via API:
{
"name": "<string>",
"status": 0,
"message": "<string>",
"template": "<string>",
"visible": false,
"stickied": false,
"notifications": false,
"occurred_at": "<string>",
"template_vars": [],
"components": [
{
"component_id": 123,
"component_status": 1
},
// etc...
]
}
Also:
- pulls the first component for the
componenttemplate variable, just in case :) - removes associated rows in the
incident_componentstable when an incident is deleted
@jbrooksuk Test added! Not sure why the CreateMetricPoint test failed in the checks though, seems unrelated and it's passing fine locally
Hey there, is there any ETA on when this might be merged? It would make my life much easier having this capability.