Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

NG SLOs

This contains APIs related to CRUD operations of SLOs (simple & composite)

Get SLO data

get
Path parameters
identifierstringRequired

Identifier for the Entity.

accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/slo/v2/identifier/{identifier}
GET /account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/slo/v2/identifier/{identifier} HTTP/1.1
Host: cv-nextgen-94fb8b655-lbzqs
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Update SLO data

put
Path parameters
identifierstringRequired

Identifier for the Entity.

accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

Body

This is the Service Level Objective V2 entity defined in Harness

orgIdentifierstringOptional
projectIdentifierstringOptional
identifierstringRequired
namestringRequired
descriptionstringOptional
userJourneyRefsstring[]Required
typestring · enumRequiredPossible values:
errorBudgetCalculationPeriodinteger · int32Optional
errorBudgetCalculationValidityinteger · int32Optional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/slo/v2/identifier/{identifier}
PUT /account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/slo/v2/identifier/{identifier} HTTP/1.1
Host: cv-nextgen-94fb8b655-lbzqs
Content-Type: application/json
Accept: */*
Content-Length: 431

{
  "orgIdentifier": "text",
  "projectIdentifier": "text",
  "identifier": "text",
  "name": "text",
  "description": "text",
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "userJourneyRefs": [
    "text"
  ],
  "sloTarget": {
    "type": "Rolling",
    "sloTargetPercentage": 1,
    "spec": {
      "type": "text"
    }
  },
  "type": "Simple",
  "spec": {
    "type": "text"
  },
  "notificationRuleRefs": [
    {
      "notificationRuleRef": "text",
      "enabled": true
    }
  ],
  "errorBudgetCalculationPeriod": 1,
  "errorBudgetCalculationValidity": 1
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Delete SLO data

delete
Path parameters
identifierstringRequired

Identifier for the Entity.

accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
delete/account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/slo/v2/identifier/{identifier}
DELETE /account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/slo/v2/identifier/{identifier} HTTP/1.1
Host: cv-nextgen-94fb8b655-lbzqs
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Get onBoarding graph for composite slo

post
Path parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

Body
typestringRequired
evaluationTypestring · enumOptionalPossible values:
sloFormulaTypestring · enumOptionalPossible values:
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/slo/v2/composite-slo/onboarding-graph
POST /account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/slo/v2/composite-slo/onboarding-graph HTTP/1.1
Host: cv-nextgen-94fb8b655-lbzqs
Content-Type: */*
Accept: */*
Content-Length: 239

{
  "type": "text",
  "serviceLevelObjectivesDetails": [
    {
      "accountId": "text",
      "orgIdentifier": "text",
      "projectIdentifier": "text",
      "serviceLevelObjectiveRef": "text",
      "weightagePercentage": 1
    }
  ],
  "evaluationType": "Window",
  "sloFormulaType": "WeightedAverage"
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Get SLO list view

post
Path parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

Query parameters
pageNumberinteger · int32Optional

Page Index of the results to fetch.Default Value: 0

Default: 0
pageSizeinteger · int32Optional

Results per page

Default: 10
Body
userJourneyIdentifiersstring[]Optional
monitoredServiceIdentifierstringOptional
searchFilterstringOptional
typestring · enumOptionalPossible values:
compositeSLOIdentifierstringOptional
evaluationTypestring · enumOptionalPossible values:
childResourcebooleanOptional
envIdentifiersstring[]Optional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/slo/v2/status-list
POST /account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/slo/v2/status-list HTTP/1.1
Host: cv-nextgen-94fb8b655-lbzqs
Content-Type: */*
Accept: */*
Content-Length: 365

{
  "userJourneyIdentifiers": [
    "text"
  ],
  "monitoredServiceIdentifier": "text",
  "targetTypes": [
    "Rolling"
  ],
  "errorBudgetRisks": [
    "EXHAUSTED"
  ],
  "searchFilter": "text",
  "type": "Simple",
  "sloTargetFilterDTO": {
    "type": "Rolling",
    "spec": {
      "type": "text"
    }
  },
  "compositeSLOIdentifier": "text",
  "evaluationType": "Window",
  "evaluationTypes": [
    "Window"
  ],
  "childResource": true,
  "envIdentifiers": [
    "text"
  ]
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Get all SLOs

get
Path parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

Query parameters
offsetinteger · int32Required

Page Index of the results to fetch.Default Value: 0

pageSizeinteger · int32Required

Results per page

userJourneysstring[]Optional
identifiersstring[]Optional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/slo/v2
GET /account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/slo/v2?offset=1&pageSize=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"
    }
  ]
}

Saves SLO data

post
Path parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

Body

This is the Service Level Objective V2 entity defined in Harness

orgIdentifierstringOptional
projectIdentifierstringOptional
identifierstringRequired
namestringRequired
descriptionstringOptional
userJourneyRefsstring[]Required
typestring · enumRequiredPossible values:
errorBudgetCalculationPeriodinteger · int32Optional
errorBudgetCalculationValidityinteger · int32Optional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/slo/v2
POST /account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/slo/v2 HTTP/1.1
Host: cv-nextgen-94fb8b655-lbzqs
Content-Type: application/json
Accept: */*
Content-Length: 431

{
  "orgIdentifier": "text",
  "projectIdentifier": "text",
  "identifier": "text",
  "name": "text",
  "description": "text",
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "userJourneyRefs": [
    "text"
  ],
  "sloTarget": {
    "type": "Rolling",
    "sloTargetPercentage": 1,
    "spec": {
      "type": "text"
    }
  },
  "type": "Simple",
  "spec": {
    "type": "text"
  },
  "notificationRuleRefs": [
    {
      "notificationRuleRef": "text",
      "enabled": true
    }
  ],
  "errorBudgetCalculationPeriod": 1,
  "errorBudgetCalculationValidity": 1
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Last updated

Was this helpful?