incident_io_client.api.incident_statuses_v1.incident_statuses_v1_create
asyncio
async
asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: IncidentStatusesV1CreateRequestBody
) -> Optional[IncidentStatusesV1CreateResponseBody]
Create Incident Statuses V1
Create a new incident status
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
IncidentStatusesV1CreateRequestBody
|
Example: {'category': 'live', 'description': "Impact has been fully mitigated, and we're ready to learn from this incident.", 'name': 'Closed'}. |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[IncidentStatusesV1CreateResponseBody]
|
IncidentStatusesV1CreateResponseBody |
Source code in incident_io_client/api/incident_statuses_v1/incident_statuses_v1_create.py
asyncio_detailed
async
asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: IncidentStatusesV1CreateRequestBody
) -> Response[IncidentStatusesV1CreateResponseBody]
Create Incident Statuses V1
Create a new incident status
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
IncidentStatusesV1CreateRequestBody
|
Example: {'category': 'live', 'description': "Impact has been fully mitigated, and we're ready to learn from this incident.", 'name': 'Closed'}. |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[IncidentStatusesV1CreateResponseBody]
|
Response[IncidentStatusesV1CreateResponseBody] |
Source code in incident_io_client/api/incident_statuses_v1/incident_statuses_v1_create.py
sync
sync(
*,
client: Union[AuthenticatedClient, Client],
body: IncidentStatusesV1CreateRequestBody
) -> Optional[IncidentStatusesV1CreateResponseBody]
Create Incident Statuses V1
Create a new incident status
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
IncidentStatusesV1CreateRequestBody
|
Example: {'category': 'live', 'description': "Impact has been fully mitigated, and we're ready to learn from this incident.", 'name': 'Closed'}. |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[IncidentStatusesV1CreateResponseBody]
|
IncidentStatusesV1CreateResponseBody |
Source code in incident_io_client/api/incident_statuses_v1/incident_statuses_v1_create.py
sync_detailed
sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: IncidentStatusesV1CreateRequestBody
) -> Response[IncidentStatusesV1CreateResponseBody]
Create Incident Statuses V1
Create a new incident status
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
IncidentStatusesV1CreateRequestBody
|
Example: {'category': 'live', 'description': "Impact has been fully mitigated, and we're ready to learn from this incident.", 'name': 'Closed'}. |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[IncidentStatusesV1CreateResponseBody]
|
Response[IncidentStatusesV1CreateResponseBody] |