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

Compare with Current View Page History

« Previous Version 14 Next »

POST/integration/V1/sla-custom-event/add

 Allows users to manually add an event that will trigger SLA state change.

{
  "ticketId": "string",
  "metricId": "string",
  "triggerName": "string",
  "slaEventAction": "START",
  "actionDate": "2024-12-06T11:19:22.270Z"
}


Request URL: https://slaapp.almarise.com/integration/V1/sla-custom-event/add

Request body:

{
  "ticketId": "10039",
  "metricId": "6751a9af00835a31fb1c27ac",
  "triggerName": "metricPause",
  "slaEventAction": "PAUSE",
  "actionDate": "2024-12-06T12:34:42.750Z"
}



POST/integration/V1/sla-custom-event/add/multiple

 Allows adding multiple SLA events at once.

{
  "ticketId": "string",
  "metricId": "string",
  "events": [
    {
      "triggerName": "string",
      "slaEventAction": "START",
      "actionDate": "2024-12-06T12:37:34.340Z"
    }
  ]
}


Request URL: https://slaapp.almarise.com/integration/V1/sla-custom-event/add/multiple

Request body:

{
  "ticketId": "10039",
  "metricId": "6751a9af00835a31fb1c27ac",
  "events": [
    {
      "triggerName": "metricResume",
      "slaEventAction": "RESUME",
      "actionDate": "2024-12-09T09:51:33.963Z"
    },
    {
      "triggerName": "metricFinish",
      "slaEventAction": "FINISH",
      "actionDate": "2024-12-09T09:55:33.963Z"
    }
  ]
}



GET/integration/V1/sla-custom-event/list/full

Returns a full detailed list of SLA events for the given metric.

ParameterTypeDefault valueRequired
ticketIdstring
     check mark 
metricIdstring
check mark 

Request URL: https://slaapp.almarise.com/integration/V1/sla-custom-event/list/full?ticketId=10039&metricId=6751a9af00835a31fb1c27ac

Response body:

[
    {
        "id": "6752df8607cc8c581fa2ad7f",
        "ticketId": "10039",
        "metricId": "6751a9af00835a31fb1c27ac",
        "triggerName": "Pause",
        "slaEvent": "PAUSE",
        "eventDate": "2024-12-06T11:24:14.807Z",
        "evaluationTimestamp": "2024-12-06T11:27:02.43819Z",
        "origin": "API",
        "originEnum": "API"
    },
    {
        "id": "6752e37907cc8c581fa2ad8f",
        "ticketId": "10039",
        "metricId": "6751a9af00835a31fb1c27ac",
        "triggerName": "Start",
        "slaEvent": "START",
        "eventDate": "2024-12-06T11:42:42.75Z",
        "evaluationTimestamp": "2024-12-06T11:43:53.993078Z",
        "origin": "API",
        "originEnum": "API"
    }
]



GET/integration/V1/sla-custom-event/list/

Returns a list of SLA events for the given metric.

ParameterTypeDefault valueRequired
ticketIdstring
     check mark 
metricIdstring
check mark 

Request URL: https://slaapp.almarise.com/integration/V1/sla-custom-event/list/?ticketId=10039&metricId=6751a9af00835a31fb1c27ac

Response body:

{
    "ticketId": "10039",
    "metricId": "6751a9af00835a31fb1c27ac",
    "events": [
        {
            "triggerName": "Pause",
            "slaEventAction": "PAUSE",
            "actionDate": "2024-12-06T11:24:14.807Z"
        },
        {
            "triggerName": "string",
            "slaEventAction": "START",
            "actionDate": "2024-12-06T11:42:42.75Z"
        },
        {
            "triggerName": "metricStart",
            "slaEventAction": "START",
            "actionDate": "2024-12-06T12:20:42.75Z"
        },
        {
            "triggerName": "metricStart",
            "slaEventAction": "START",
            "actionDate": "2024-12-06T12:32:42.75Z"
        },
        {
            "triggerName": "metricPause",
            "slaEventAction": "PAUSE",
            "actionDate": "2024-12-06T12:34:42.75Z"
        }
    ]
}



DELETE/integration/V1/sla-custom-event/list

Allows to delete SLA events of the given metric. This means that the SLA metric will switch to Not Started state.

ParameterTypeDefault valueRequired
ticketIdstring
     check mark 
metricIdstring
check mark 

Request URL: https://slaapp.almarise.com/integration/V1/sla-custom-event/list?ticketId=10039&metricId=6751a9af00835a31fb1c27ac

  • No labels