Trackunit API

<back to all web services

GetReportUnitActiveFaults

The following routes are available for this service:
GET POST/report/unitActiveFaults
"use strict";
export class ReportUnitActiveFaults {
    /** @param {{time?:string,spn?:number,fmi?:number,occurrenceCount?:number,name?:string,description?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    time;
    /** @type {number} */
    spn;
    /** @type {number} */
    fmi;
    /** @type {number} */
    occurrenceCount;
    /** @type {string} */
    name;
    /** @type {string} */
    description;
}
export class GetReportUnitActiveFaultsResponse {
    /** @param {{list?:ReportUnitActiveFaults[],responseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ReportUnitActiveFaults[]} */
    list;
    /** @type {ResponseStatus} */
    responseStatus;
}
export class GetReportUnitActiveFaults {
    /** @param {{id?:string,from?:string,to?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id;
    /** @type {?string} */
    from;
    /** @type {?string} */
    to;
}

JavaScript GetReportUnitActiveFaults DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /report/unitActiveFaults HTTP/1.1 
Host: api.trackunit.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"id":"String","from":"0001-01-01T00:00:00.0000000Z","to":"0001-01-01T00:00:00.0000000Z"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"list":[{"time":"0001-01-01T00:00:00.0000000Z","spn":0,"fmi":0,"occurrenceCount":0,"name":"String","description":"String"}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}