Trendsic Platform Service

<back to all web services

DispatchHeartbeatRequest

The following routes are available for this service:
POST,OPTIONS/v1/dispatch/heartbeat
"use strict";
export class DispatchHeartbeatTenantResult {
    /** @param {{TenantId?:string,Tickets?:number,Releases?:number,PingsCascaded?:number,OffersExpired?:number,Error?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    TenantId;
    /** @type {number} */
    Tickets;
    /** @type {number} */
    Releases;
    /** @type {number} */
    PingsCascaded;
    /** @type {number} */
    OffersExpired;
    /** @type {string} */
    Error;
}
export class DispatchHeartbeatResponse {
    /** @param {{Tenants?:number,Tickets?:number,Releases?:number,PingsCascaded?:number,OffersExpired?:number,Results?:DispatchHeartbeatTenantResult[],ResponseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    Tenants;
    /** @type {number} */
    Tickets;
    /** @type {number} */
    Releases;
    /** @type {number} */
    PingsCascaded;
    /** @type {number} */
    OffersExpired;
    /** @type {DispatchHeartbeatTenantResult[]} */
    Results = [];
    /** @type {ResponseStatus} */
    ResponseStatus;
}
export class DispatchHeartbeatRequest {
    /** @param {{TenantId?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {?string} */
    TenantId;
}

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

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

{"TenantId":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: text/csv
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"}}}