SLOs
This contains APIs related to CRUD operations of SLOs
SLO identifier for the entity
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Gets the error budget reset history
GET /slo/{identifier}/errorBudgetResetHistory?accountId=text HTTP/1.1
Host: cv-nextgen-94fb8b655-lbzqs
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}SLO identifier for the entity
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Page Index of the results to fetch.Default Value: 0
0Results per page
10Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Gets the notification rules for SLO
GET /slo/{identifier}/notification-rules?accountId=text HTTP/1.1
Host: cv-nextgen-94fb8b655-lbzqs
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}SLO identifier for the entity
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Page Index of the results to fetch.Default Value: 0
0Results per page
10Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Gets the SLO's logs
GET /slo/{identifier}/logs?accountId=text&logType=ApiCallLog&startTime=1&endTime=1 HTTP/1.1
Host: cv-nextgen-94fb8b655-lbzqs
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}SLO identifier for the entity
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
This is the SLO Error Budget Reset entity defined in Harness
Bad Request
This is Failure entity as defied in Harness
Internal Server Error
Reset Error budget history
POST /slo/{identifier}/resetErrorBudget?accountId=text HTTP/1.1
Host: cv-nextgen-94fb8b655-lbzqs
Content-Type: */*
Accept: */*
Content-Length: 209
{
"serviceLevelObjectiveIdentifier": "text",
"errorBudgetIncrementPercentage": 1,
"errorBudgetIncrementMinutes": 1,
"remainingErrorBudgetAtReset": 1,
"errorBudgetAtReset": 1,
"reason": "text",
"validUntil": 1,
"createdAt": 1
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Get Underlying Metrics Graph for SLO
Organization identifier
Project identifier
SLO identifier.
Start Time for the metric graphs.
End Time for the metric graphs.
Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
Metric Graph response
Metric Graph
Start time of the Graph Values.
End time of the Graph Values.
Name of the Metric.
Identifier of the Metric.
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Bad Gateway
GET /v1/orgs/{org}/projects/{project}/metric-graph/{slo-identifier} HTTP/1.1
Host: cv-nextgen-94fb8b655-lbzqs
Accept: */*
[
{
"start_time": 1,
"end_time": 1,
"data_points": [
{
"value": 1,
"timestamp": 1
}
],
"metric_name": "text",
"metric_identifier": "text"
}
]Returns a list of Service Level Objectives
Organization identifier
Project identifier
Pagination page number strategy: Specify the page number within the paginated collection related to the number of items on each page.
0Pagination: Number of items to return.
20Identifier for the Composite SLO for which underlying SLOs needs to be listed.
For filtering on the basis of monitored service identifier
List of User Journey identifiers on the basis of which the SLOs are filtered.
SLO Name on the basis of which the SLOs are filtered.
^[a-zA-Z_][0-9a-zA-Z-_ ]{0,127}$SLO Types on the basis of which the SLOs are filtered.
Identifiers of Environments on the basis of which the SLOs are filtered.
Target Types on the basis of which the SLOs are filtered.
Error Budgets on the basis of which the SLOs are filtered.
Evaluation Type on the basis of which the SLOs are filtered.
For filtering the simple slo's on the basis of accountId. Set it to true for Account Level SLOs.
falseIdentifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.
SLO List Response body
Health List View of SLO.
Identifier of the SLO.
Name of the SLO.
Organization Name to which the SLO belongs.
Project Name to which the SLO belongs.
Identifier of the Monitored Service to which the SLO is associated.
Name of the Monitored Service to which the SLO is associated.
Identifier of the Service to which the SLO is associated.
Identifier of the Health Source to which the SLO is associated.
Identifier of the Health Source to which the SLO is associated.
Name of the Service to which the SLO is associated.
Identifier of the Environment to which the SLO is associated.
Name of the Environment to which the SLO is associated.
List of tags for SLO.
Description for the SLO.
Name of the first User Journey for the SLO.
Burn rate per day of the SLO. The unit is "Minutes" if the Evaluation type is Window, for Request based it's "Request".
Error Budget Remaining Percentage of the SLO.
Error Budget Remaining of the SLO. The unit is "Minutes" if the Evaluation type is Window, for Request based it's "Request".
Total Error Budget of the SLO. The unit is "Minutes" if the Evaluation type is Window, for Request based it's "Request".
Target Percentage of the SLO defined by the user.
Number of Notification Rules defined for the SLO.
Error Budget Risk for the SLO. - It's Healthy if Error Budget Remaining Percentage >= 75. - It's Observe if Error Budget Remaining Percentage >= 50 < 75. - It's Need Attention if Error Budget Remaining Percentage >= 25 < 50. - It's Unhealthy if Error Budget Remaining Percentage >= 0 < 25. - It's Exhausted if Error Budget Remaining Percentage < 0.
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Bad Gateway
GET /v1/orgs/{org}/projects/{project}/slo HTTP/1.1
Host: cv-nextgen-94fb8b655-lbzqs
Accept: */*
[
{
"slo_identifier": "text",
"name": "text",
"org_name": "text",
"project_name": "text",
"monitored_service_identifier": "text",
"monitored_service_name": "text",
"service_identifier": "text",
"health_source_identifier": "text",
"health_source_name": "text",
"service_name": "text",
"environment_identifier": "text",
"environment_name": "text",
"tags": [
"text"
],
"description": "text",
"user_journey_name": "text",
"user_journeys": [
{
"name": "text",
"identifier": "text"
}
],
"burn_rate": 1,
"error_budget_remaining_percentage": 1,
"error_budget_remaining": 1,
"total_error_budget": 1,
"slo_target_type": {
"type": "text"
},
"slo_type": {
"type": "text"
},
"slo_target_percentage": 1,
"no_of_active_alerts": 1,
"evaluation_type": {
"type": "text"
},
"downtime_status_details": {
"status": {
"status": "text"
},
"start_time": 1,
"end_time": 1,
"end_date_time": "text"
},
"project_params": {
"account_identifier": "text",
"org_identifier": "text",
"project_identifier": "text"
},
"slo_error": {
"failed_state": true,
"error_message": "text",
"slo_error_type": "text"
},
"error_budget_risk": "text"
}
]Last updated
Was this helpful?