Trendsic Platform Service

<back to all web services

DispatchHeartbeatRequest

The following routes are available for this service:
POST,OPTIONS/v1/dispatch/heartbeat

export class DispatchHeartbeatTenantResult
{
    public TenantId: string;
    public Tickets: number;
    public Releases: number;
    public PingsCascaded: number;
    public OffersExpired: number;
    public Error: string;

    public constructor(init?: Partial<DispatchHeartbeatTenantResult>) { (Object as any).assign(this, init); }
}

export class DispatchHeartbeatResponse
{
    public Tenants: number;
    public Tickets: number;
    public Releases: number;
    public PingsCascaded: number;
    public OffersExpired: number;
    public Results: DispatchHeartbeatTenantResult[] = [];
    public ResponseStatus: ResponseStatus;

    public constructor(init?: Partial<DispatchHeartbeatResponse>) { (Object as any).assign(this, init); }
}

export class DispatchHeartbeatRequest
{
    public TenantId?: string;

    public constructor(init?: Partial<DispatchHeartbeatRequest>) { (Object as any).assign(this, init); }
}

TypeScript 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
		}
	}
}