Trendsic Platform Service

<back to all web services

EngineHealthRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/engine/health
import Foundation
import ServiceStack

public class EngineHealthRequest : Codable
{
    required public init(){}
}

public class EngineHealthResponse : Codable
{
    public var runs30:Int
    public var succeeded30:Int
    public var failed30:Int
    public var waiting:Int
    public var openErrorGroups:Int
    public var affectedRuns:Int
    public var slaBreaches:Int
    public var throughput:[WorkflowThroughputView] = []
    public var byVertical:[WorkflowVerticalHealthView] = []
    public var responseStatus:ResponseStatus

    required public init(){}
}

public class WorkflowThroughputView : Codable
{
    public var hour:Int
    public var ok:Int
    public var failed:Int

    required public init(){}
}

public class WorkflowVerticalHealthView : Codable
{
    public var vertical:String
    public var workflows:Int
    public var runs30:Int
    public var fail30:Int
    public var waiting:Int

    required public init(){}
}


Swift EngineHealthRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/engine/health HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Runs30":0,"Succeeded30":0,"Failed30":0,"Waiting":0,"OpenErrorGroups":0,"AffectedRuns":0,"SlaBreaches":0,"Throughput":[{"Hour":0,"Ok":0,"Failed":0}],"ByVertical":[{"Vertical":"String","Workflows":0,"Runs30":0,"Fail30":0,"Waiting":0}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}