Trendsic Platform Service

<back to all web services

SafetyComplianceRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/safety/compliance
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class SafetyComplianceRequest
{
    open var Days:Int? = null
}

open class SafetyComplianceResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var Kpis:SafetyComplianceKpis? = null
    open var Projects:ArrayList<SafetyComplianceProject> = ArrayList<SafetyComplianceProject>()
    open var Trend:ArrayList<SafetyTrendWeek> = ArrayList<SafetyTrendWeek>()
    open var IncidentMix:ArrayList<SafetyIncidentMixRow> = ArrayList<SafetyIncidentMixRow>()
    open var MissingTalks:ArrayList<SafetyMissingTalk> = ArrayList<SafetyMissingTalk>()
}

open class SafetyComplianceKpis
{
    open var ParticipationPct:Int? = null
    open var OpenIncidents:Int? = null
    open var OverdueCAs:Int? = null
    open var Recordables12mo:Int? = null
    open var DaysWithoutRecordable:Int? = null
    open var ProjectsWithTalkToday:Int? = null
    open var ProjectsWithCrewToday:Int? = null
}

open class SafetyComplianceProject
{
    open var ProjectID:Int? = null
    open var ProjectUID:String? = null
    open var ProjectName:String? = null
    open var Branch:String? = null
    open var CrewCount:Int? = null
    open var HasTalkToday:Boolean? = null
    open var TalkAckPct:Int? = null
    open var OpenIncidents:Int? = null
    open var OverdueCAs:Int? = null
    open var Recordables12mo:Int? = null
}

open class SafetyTrendWeek
{
    open var WeekStart:String? = null
    open var Acks:Int? = null
    open var Roster:Int? = null
}

open class SafetyIncidentMixRow
{
    open var Severity:String? = null
    open var Cnt:Int? = null
}

open class SafetyMissingTalk
{
    open var ProjectID:Int? = null
    open var ProjectUID:String? = null
    open var ProjectName:String? = null
    open var CrewCount:Int? = null
}

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

GET /v1/safety/compliance HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Kpis":{"ParticipationPct":0,"OpenIncidents":0,"OverdueCAs":0,"Recordables12mo":0,"DaysWithoutRecordable":0,"ProjectsWithTalkToday":0,"ProjectsWithCrewToday":0},"Projects":[{"ProjectID":0,"ProjectUID":"String","ProjectName":"String","Branch":"String","CrewCount":0,"HasTalkToday":false,"TalkAckPct":0,"OpenIncidents":0,"OverdueCAs":0,"Recordables12mo":0}],"Trend":[{"WeekStart":"String","Acks":0,"Roster":0}],"IncidentMix":[{"Severity":"String","Cnt":0}],"MissingTalks":[{"ProjectID":0,"ProjectUID":"String","ProjectName":"String","CrewCount":0}]}