TicketUserServices

<back to all web services

JobHeartbeatListRequest

The following routes are available for this service:
GET/JobHeartbeat
import Foundation
import ServiceStack

public class JobHeartbeatListRequest : Codable
{
    public var overdueOnly:Bool?

    required public init(){}
}

public class JobHeartbeatListResult : Codable
{
    public var items:[JobHeartbeatStatus] = []
    public var overdueCount:Int?
    public var statusCode:Int?
    public var message:String?

    required public init(){}
}

public class JobHeartbeatStatus : Codable
{
    public var jobName:String?
    public var Description:String?
    public var enabled:Bool?
    public var lastOkAt:Date?
    public var minutesSinceOk:Int?
    public var expectedIntervalMinutes:Int?
    public var overdue:Bool?
    public var itemsProcessed:Int?
    public var consecutiveFailures:Int?
    public var succeedingButIdle:Bool?

    required public init(){}
}


Swift JobHeartbeatListRequest DTOs

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

HTTP + JSV

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

GET /JobHeartbeat HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	items: 
	[
		{
			jobName: String,
			description: String,
			enabled: False,
			lastOkAt: 0001-01-01,
			minutesSinceOk: 0,
			expectedIntervalMinutes: 0,
			overdue: False,
			itemsProcessed: 0,
			consecutiveFailures: 0,
			succeedingButIdle: False
		}
	],
	overdueCount: 0,
	statusCode: 0,
	message: String
}