| 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 .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SafetyComplianceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<IncidentMix>
<SafetyIncidentMixRow>
<Cnt>0</Cnt>
<Severity>String</Severity>
</SafetyIncidentMixRow>
</IncidentMix>
<Kpis>
<DaysWithoutRecordable>0</DaysWithoutRecordable>
<OpenIncidents>0</OpenIncidents>
<OverdueCAs>0</OverdueCAs>
<ParticipationPct>0</ParticipationPct>
<ProjectsWithCrewToday>0</ProjectsWithCrewToday>
<ProjectsWithTalkToday>0</ProjectsWithTalkToday>
<Recordables12mo>0</Recordables12mo>
</Kpis>
<MissingTalks>
<SafetyMissingTalk>
<CrewCount>0</CrewCount>
<ProjectID>0</ProjectID>
<ProjectName>String</ProjectName>
<ProjectUID>String</ProjectUID>
</SafetyMissingTalk>
</MissingTalks>
<Projects>
<SafetyComplianceProject>
<Branch>String</Branch>
<CrewCount>0</CrewCount>
<HasTalkToday>false</HasTalkToday>
<OpenIncidents>0</OpenIncidents>
<OverdueCAs>0</OverdueCAs>
<ProjectID>0</ProjectID>
<ProjectName>String</ProjectName>
<ProjectUID>String</ProjectUID>
<Recordables12mo>0</Recordables12mo>
<TalkAckPct>0</TalkAckPct>
</SafetyComplianceProject>
</Projects>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<Trend>
<SafetyTrendWeek>
<Acks>0</Acks>
<Roster>0</Roster>
<WeekStart>String</WeekStart>
</SafetyTrendWeek>
</Trend>
</SafetyComplianceResponse>