circle-info
Squadcast is now SolarWinds Incident Response

Slos

Overview

Available Operations

list_all

Returns all the SLOs of the passed owner_id in the params. Requires access_token as a Bearer {{token}} in the Authorization header with read scope.

Example Usage

from squadcast_sdk import SquadcastSDK


with SquadcastSDK(
    bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as ss_client:

    res = ss_client.slos.list_all(owner_id="<id>", offset="<value>", limit="<value>")

    # Handle response
    print(res)

Parameters

Parameter
Type
Required
Description

owner_id

str

✔️

N/A

offset

str

✔️

N/A

limit

str

✔️

N/A

retries

Configuration to override the default retry behavior of the client.

Response

models.SLOGetAllSLOsResponse

Errors

Error Type
Status Code
Content Type

errors.BadRequestError

400

application/json

errors.UnauthorizedError

401

application/json

errors.PaymentRequiredError

402

application/json

errors.ForbiddenError

403

application/json

errors.NotFoundError

404

application/json

errors.ConflictError

409

application/json

errors.UnprocessableEntityError

422

application/json

errors.InternalServerError

500

application/json

errors.BadGatewayError

502

application/json

errors.ServiceUnavailableError

503

application/json

errors.GatewayTimeoutError

504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

create

  • This API will create SLO. Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.

Example Usage

Parameters

Parameter
Type
Required
Description

name

str

✔️

N/A

time_interval_type

✔️

N/A

service_ids

List[str]

✔️

N/A

slis

List[str]

✔️

N/A

target_slo

float

✔️

N/A

start_time

✔️

N/A

end_time

✔️

N/A

duration_in_days

int

✔️

N/A

owner_type

str

✔️

N/A

owner_id

str

✔️

N/A

slo_owner_id

str

✔️

N/A

slo_owner_type

✔️

N/A

description

Optional[str]

N/A

slo_monitoring_checks

N/A

slo_actions

N/A

retries

Configuration to override the default retry behavior of the client.

Response

models.SLOCreateSLOResponse

Errors

Error Type
Status Code
Content Type

errors.BadRequestError

400

application/json

errors.UnauthorizedError

401

application/json

errors.PaymentRequiredError

402

application/json

errors.ForbiddenError

403

application/json

errors.NotFoundError

404

application/json

errors.ConflictError

409

application/json

errors.UnprocessableEntityError

422

application/json

errors.InternalServerError

500

application/json

errors.BadGatewayError

502

application/json

errors.ServiceUnavailableError

503

application/json

errors.GatewayTimeoutError

504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

update

  • This API will update SLO. Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.

Example Usage

Parameters

Parameter
Type
Required
Description

slo_id

int

✔️

N/A

owner_id_param

str

✔️

N/A

name

str

✔️

N/A

time_interval_type

✔️

N/A

service_ids

List[str]

✔️

N/A

slis

List[str]

✔️

N/A

target_slo

float

✔️

N/A

start_time

✔️

N/A

end_time

✔️

N/A

duration_in_days

int

✔️

N/A

owner_type

str

✔️

N/A

owner_id

str

✔️

N/A

slo_owner_id

str

✔️

N/A

slo_owner_type

✔️

N/A

description

Optional[str]

N/A

slo_monitoring_checks

N/A

slo_actions

N/A

retries

Configuration to override the default retry behavior of the client.

Response

models.SLOUpdateSLOResponse

Errors

Error Type
Status Code
Content Type

errors.BadRequestError

400

application/json

errors.UnauthorizedError

401

application/json

errors.PaymentRequiredError

402

application/json

errors.ForbiddenError

403

application/json

errors.NotFoundError

404

application/json

errors.ConflictError

409

application/json

errors.UnprocessableEntityError

422

application/json

errors.InternalServerError

500

application/json

errors.BadGatewayError

502

application/json

errors.ServiceUnavailableError

503

application/json

errors.GatewayTimeoutError

504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

remove

Remove SLO from passed owner_id (team_id) in the params . Upon sccess the slo will be removed. Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.

Example Usage

Parameters

Parameter
Type
Required
Description

slo_id

int

✔️

N/A

owner_id

str

✔️

N/A

retries

Configuration to override the default retry behavior of the client.

Response

models.SLORemoveSLOResponse

Errors

Error Type
Status Code
Content Type

errors.BadRequestError

400

application/json

errors.UnauthorizedError

401

application/json

errors.PaymentRequiredError

402

application/json

errors.ForbiddenError

403

application/json

errors.NotFoundError

404

application/json

errors.ConflictError

409

application/json

errors.UnprocessableEntityError

422

application/json

errors.InternalServerError

500

application/json

errors.BadGatewayError

502

application/json

errors.ServiceUnavailableError

503

application/json

errors.GatewayTimeoutError

504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

get

Returns a SLO details of the given sloID in the request param. Requires access_token as a Bearer {{token}} in the Authorization header with read scope.

Example Usage

Parameters

Parameter
Type
Required
Description

slo_id

int

✔️

N/A

owner_id

str

✔️

N/A

retries

Configuration to override the default retry behavior of the client.

Response

models.SLOGetSLOByIDResponse

Errors

Error Type
Status Code
Content Type

errors.BadRequestError

400

application/json

errors.UnauthorizedError

401

application/json

errors.PaymentRequiredError

402

application/json

errors.ForbiddenError

403

application/json

errors.NotFoundError

404

application/json

errors.ConflictError

409

application/json

errors.UnprocessableEntityError

422

application/json

errors.InternalServerError

500

application/json

errors.BadGatewayError

502

application/json

errors.ServiceUnavailableError

503

application/json

errors.GatewayTimeoutError

504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

mark_affected

This endpoint is used for mark slo affected.

Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.

Example Usage

Parameters

Parameter
Type
Required
Description

slo_id

int

✔️

N/A

owner_id_param

str

✔️

N/A

incident_id

str

✔️

N/A

slis

List[str]

✔️

N/A

error_budget_spent

float

✔️

N/A

owner_type

str

✔️

N/A

owner_id

str

✔️

N/A

org_id

str

✔️

N/A

retries

Configuration to override the default retry behavior of the client.

Response

models.SLOMarkSLOAffectedResponse

Errors

Error Type
Status Code
Content Type

errors.BadRequestError

400

application/json

errors.UnauthorizedError

401

application/json

errors.PaymentRequiredError

402

application/json

errors.ForbiddenError

403

application/json

errors.NotFoundError

404

application/json

errors.ConflictError

409

application/json

errors.UnprocessableEntityError

422

application/json

errors.InternalServerError

500

application/json

errors.BadGatewayError

502

application/json

errors.ServiceUnavailableError

503

application/json

errors.GatewayTimeoutError

504

application/json

errors.SDKDefaultError

4XX, 5XX

*/*

Last updated