Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
bgColor#c8f7c8
POST/integration/V1/metric

Allows creating an SLA metric.

...

titleRequest body
Code Block
{
  "name": "string",
  "description": "string"
}
Expand
titleExample of usage

Request URL: https://slaapp.almarise.com/integration/V1/metric

Request body:

{
  "name": "Time to First Response",
  "description": "Time to First Response of the ticket"
}

Panel
bgColor#DEEBFF
GET/integration/V1/metrics

Get the SLA metric(s) of the given ID.

Ids (array[string]

     

) - IDs of metrics to return.

Expand
titleParameters


ParameterTypeDefault valueRequired
ids
Expand
titleResponse example

Request URL: https://slaapp.almarise.com/integration/V1/metrics

Response body:

Code Block
[
    {
        "name": "Time to Resolution",
        "description": "Time to Resolution of the ticket",
        "id": "6751a9af00835a31fb1c27ac"
    },
    {
        "name": "Time to First Response",
        "description": "Time to First Response of the ticket",
        "id": "67530aa500835a31fb1c27b3"
    }
]

...

Status
colourGreen
title200
- OK. Returned if the request is successful. StatuscolourGreentitle201 - OK. SLA Metric was successfully created.
Status
colourYellow
title400
- Bad request.

Status
colourYellow
title401
- Unauthorized.

Status
colourYellow
title403
- Forbidden. Returned if the user does not have permission to complete this request.
Status
colourYellow
title404
- Not Found. Metric ID does not exist.

Status
colourRed
title500
- Server Error.