You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

GET/integration/V1/metrics/history

This endpoint returns the history of all SLA metrics in the given issue.

ParameterTypeDefault valueRequired
ticketIdstring
     check mark 

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

Response body:

[
  {
    "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
    }
  }
]
  • No labels