Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleResponse example

Request URL: https://slaapp.almarise.com/integration/V1/metrics/history?ticketId=10039

Response body:

Code Block
[
  {
    "type": "TICKET_EVENT",
    "description": "Issue created",
    "timestamp": "2024-12-05T08:32:19.893+01:00",
    "slaMetric": {
      "name": "SLA metric 1.0",
      "id": "6729eb08a66f5026ea86fbd1"
    },
    "slaMetricState": {
      "slaMetricId": "6729eb08a66f5026ea86fbd1",
      "ticketId": "10039",
      "slaMetricState": "NOT_STARTED",
      "timeSpent": {
        "millis": 0,
        "shortText": "0s"
      },
      "totalTime": {
        "millis": 10800000,
        "shortText": "3h"
      },
      "isBreached": false,
      "flowingDeadline": false,
      "wasRestarted": false,
      "visible": false
    }
  },
  {
    "type": "SLA_EVENT",
    "slaEvent": "START",
    "description": "Start",
    "timestamp": "2024-12-05T08:32:19.893+01:00",
    "slaMetric": {
      "name": "SLA metric 1.0",
      "id": "6729eb08a66f5026ea86fbd1"
    },
    "slaStateChange": {
      "previousSlaState": "NOT_STARTED",
      "slaState": "ACTIVE"
    },
    "slaMetricState": {
      "slaMetricId": "6729eb08a66f5026ea86fbd1",
      "ticketId": "10039",
      "slaMetricState": "ACTIVE",
      "deadline": "2024-12-05T11:32:19.893+01:00",
      "timeSpent": {
        "millis": 0,
        "shortText": "0s"
      },
      "timeRemaining": {
        "millis": 10800000,
        "shortText": "3h"
      },
      "totalTime": {
        "millis": 10800000,
        "shortText": "3h"
      },
      "isBreached": false,
      "flowingDeadline": false,
      "wasRestarted": false,
      "visible": false
    }
  },
  {
    "type": "TICKET_EVENT",
    "description": "Issue created",
    "timestamp": "2024-12-05T08:32:19.893+01:00",
    "slaMetric": {
      "name": "Time To Resolution",
      "id": "6751a9af00835a31fb1c27ac"
    },
    "slaMetricState": {
      "slaMetricId": "6751a9af00835a31fb1c27ac",
      "ticketId": "10039",
      "slaMetricState": "NOT_STARTED",
      "timeSpent": {
        "millis": 0,
        "shortText": "0s"
      },
      "totalTime": {
        "millis": 10800000,
        "shortText": "3h"
      },
      "isBreached": false,
      "flowingDeadline": false,
      "wasRestarted": false,
      "visible": false
    }
  },
  {
    "type": "SLA_EVENT",
    "slaEvent": "START",
    "description": "Start",
    "timestamp": "2024-12-05T08:32:19.893+01:00",
    "slaMetric": {
      "name": "Time To Resolution",
      "id": "6751a9af00835a31fb1c27ac"
    },
    "slaStateChange": {
      "previousSlaState": "NOT_STARTED",
      "slaState": "ACTIVE"
    },
    "slaMetricState": {
      "slaMetricId": "6751a9af00835a31fb1c27ac",
      "ticketId": "10039",
      "slaMetricState": "ACTIVE",
      "deadline": "2024-12-05T11:32:19.893+01:00",
      "timeSpent": {
        "millis": 0,
        "shortText": "0s"
      },
      "timeRemaining": {
        "millis": 10800000,
        "shortText": "3h"
      },
      "totalTime": {
        "millis": 10800000,
        "shortText": "3h"
      },
      "isBreached": false,
      "flowingDeadline": false,
      "wasRestarted": false,
      "visible": false
    }
  }
]


Responses

Status
colourGreen
title200
- OK. Returned if the request is successful.

Status
colourYellow
title401
- Unauthorized.

Status
colourYellow
title403
- Forbidden. Returned if the user does not have permission to complete this request.

Status
colourRed
title500
- Server Error.