IncidentIo. PostMortemsV2
(IncidentIo v0.3.1)
View Source
Manage post-mortems for incidents.
Post-mortems document lessons learned and follow-up actions after an incident is resolved. They help teams improve their processes and prevent recurrence.
Summary
Functions
Create a new post-mortem.
List all post-mortems for an organisation.
Get a single post-mortem.
Update an existing post-mortem.
Functions
@spec create(IncidentIo.Client.t(), map()) :: IncidentIo.response()
Create a new post-mortem.
Example
IncidentIo.PostMortemsV2.create(client, %{
incident_id: "01FCNDV6P870EA6S7TK1DSYDG0",
name: "Incident post-mortem"
})More information at: https://api-docs.incident.io/tag/Post-Mortems-V2#operation/Post%20Mortems%20V2_Create
@spec list( IncidentIo.Client.t(), keyword() ) :: IncidentIo.response()
List all post-mortems for an organisation.
Accepts optional pagination parameters:
:after- Cursor for pagination:page_size- Number of items per page (default: 25, max: 250)
Example
IncidentIo.PostMortemsV2.list(client)
IncidentIo.PostMortemsV2.list(client, page_size: 50)More information at: https://api-docs.incident.io/tag/Post-Mortems-V2#operation/Post%20Mortems%20V2_List
@spec show(IncidentIo.Client.t(), binary()) :: IncidentIo.response()
Get a single post-mortem.
Example
IncidentIo.PostMortemsV2.show(client, "some-post-mortem-id")More information at: https://api-docs.incident.io/tag/Post-Mortems-V2#operation/Post%20Mortems%20V2_Show
@spec update(IncidentIo.Client.t(), binary(), map()) :: IncidentIo.response()
Update an existing post-mortem.
Example
IncidentIo.PostMortemsV2.update(client, "some-post-mortem-id", %{
name: "Updated post-mortem"
})More information at: https://api-docs.incident.io/tag/Post-Mortems-V2#operation/Post%20Mortems%20V2_Update