Skip to content

Latest commit

 

History

History
119 lines (77 loc) · 4.24 KB

IncidentsApi.md

File metadata and controls

119 lines (77 loc) · 4.24 KB

\IncidentsApi

All URIs are relative to https://api.mux.com

Method HTTP request Description
GetIncident Get /data/v1/incidents/{INCIDENT_ID} Get an Incident
ListIncidents Get /data/v1/incidents List Incidents
ListRelatedIncidents Get /data/v1/incidents/{INCIDENT_ID}/related List Related Incidents

GetIncident

IncidentResponse GetIncident(ctx, iNCIDENTID) Get an Incident

Returns the details of an incident.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
iNCIDENTID string ID of the Incident

Return type

IncidentResponse

Authorization

accessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListIncidents

ListIncidentsResponse ListIncidents(ctx, optional) List Incidents

Returns a list of incidents.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
optional *ListIncidentsOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a ListIncidentsOpts struct

Name Type Description Notes
limit optional.Int32 Number of items to include in the response [default to 25]
page optional.Int32 Offset by this many pages, of the size of `limit` [default to 1]
orderBy optional.String Value to order the results by
orderDirection optional.String Sort order.
status optional.String Status to filter incidents by
severity optional.String Severity to filter incidents by

Return type

ListIncidentsResponse

Authorization

accessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListRelatedIncidents

ListRelatedIncidentsResponse ListRelatedIncidents(ctx, iNCIDENTID, optional) List Related Incidents

Returns all the incidents that seem related to a specific incident.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
iNCIDENTID string ID of the Incident
optional *ListRelatedIncidentsOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a ListRelatedIncidentsOpts struct

Name Type Description Notes

limit | optional.Int32| Number of items to include in the response | [default to 25] page | optional.Int32| Offset by this many pages, of the size of `limit` | [default to 1] orderBy | optional.String| Value to order the results by | orderDirection | optional.String| Sort order. |

Return type

ListRelatedIncidentsResponse

Authorization

accessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]