Ad Widget

Collapse

Collect SLA problems from the past via API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lukasw
    Junior Member
    • Apr 2021
    • 1

    #1

    Collect SLA problems from the past via API

    Hi all

    I do know how to collect SLAs and Events via API, but I wonder how I can collect events leading to a problem on a service that is only affected if all children have problems.

    Assume this setup:
    Code:
    Service 1 -> Problem, if all children have problems
        |- Sub-Service 1
        |- Sub-Service 2
        \- Sub-Service 3

    If one (or two) subservices have problems, the SLA of "Service 1" is not affected. 'service.getsla' won't show any issue, 'events.get' on all descendant triggers will return me the events related to the subservices.

    If all subservices are in problem state, 'service.getsla' will show me information about current problems. But I see no possiblility to derive this information for the past.

    I want something like: give me the SLA of "Service 1" of the past month and all events that led to a problem (i.e. decreased the sla value, because all subservices were down)

    Is this somehow possible without querying all events of the subservices and comparing problem times to figure out which events occured the same time (on all subservices)?
Working...