Trendsic Platform Service

<back to all web services

DispatchHeartbeatRequest

The following routes are available for this service:
POST,OPTIONS/v1/dispatch/heartbeat
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class DispatchHeartbeatRequest
{
    open var TenantId:UUID? = null
}

open class DispatchHeartbeatResponse
{
    open var Tenants:Int? = null
    open var Tickets:Int? = null
    open var Releases:Int? = null
    open var PingsCascaded:Int? = null
    open var OffersExpired:Int? = null
    open var Results:ArrayList<DispatchHeartbeatTenantResult> = ArrayList<DispatchHeartbeatTenantResult>()
    open var ResponseStatus:ResponseStatus? = null
}

open class DispatchHeartbeatTenantResult
{
    open var TenantId:UUID? = null
    open var Tickets:Int? = null
    open var Releases:Int? = null
    open var PingsCascaded:Int? = null
    open var OffersExpired:Int? = null
    open var Error:String? = null
}

Kotlin DispatchHeartbeatRequest 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.

POST /v1/dispatch/heartbeat HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	TenantId: 00000000000000000000000000000000
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Tenants: 0,
	Tickets: 0,
	Releases: 0,
	PingsCascaded: 0,
	OffersExpired: 0,
	Results: 
	[
		{
			TenantId: 00000000000000000000000000000000,
			Tickets: 0,
			Releases: 0,
			PingsCascaded: 0,
			OffersExpired: 0,
			Error: String
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}