Trendsic Platform Service

<back to all web services

SafetyComplianceRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/safety/compliance
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CRM.AgencyPlatform.API.Internal;

namespace CRM.AgencyPlatform.API.Internal
{
    public partial class SafetyComplianceKpis
    {
        public virtual int ParticipationPct { get; set; }
        public virtual int OpenIncidents { get; set; }
        public virtual int OverdueCAs { get; set; }
        public virtual int Recordables12mo { get; set; }
        public virtual int DaysWithoutRecordable { get; set; }
        public virtual int ProjectsWithTalkToday { get; set; }
        public virtual int ProjectsWithCrewToday { get; set; }
    }

    public partial class SafetyComplianceProject
    {
        public virtual int ProjectID { get; set; }
        public virtual string ProjectUID { get; set; }
        public virtual string ProjectName { get; set; }
        public virtual string Branch { get; set; }
        public virtual int CrewCount { get; set; }
        public virtual bool HasTalkToday { get; set; }
        public virtual int TalkAckPct { get; set; }
        public virtual int OpenIncidents { get; set; }
        public virtual int OverdueCAs { get; set; }
        public virtual int Recordables12mo { get; set; }
    }

    public partial class SafetyComplianceRequest
    {
        public virtual int Days { get; set; }
    }

    public partial class SafetyComplianceResponse
    {
        public virtual ResponseStatus ResponseStatus { get; set; }
        public virtual SafetyComplianceKpis Kpis { get; set; }
        public virtual List<SafetyComplianceProject> Projects { get; set; } = [];
        public virtual List<SafetyTrendWeek> Trend { get; set; } = [];
        public virtual List<SafetyIncidentMixRow> IncidentMix { get; set; } = [];
        public virtual List<SafetyMissingTalk> MissingTalks { get; set; } = [];
    }

    public partial class SafetyIncidentMixRow
    {
        public virtual string Severity { get; set; }
        public virtual int Cnt { get; set; }
    }

    public partial class SafetyMissingTalk
    {
        public virtual int ProjectID { get; set; }
        public virtual string ProjectUID { get; set; }
        public virtual string ProjectName { get; set; }
        public virtual int CrewCount { get; set; }
    }

    public partial class SafetyTrendWeek
    {
        public virtual string WeekStart { get; set; }
        public virtual int Acks { get; set; }
        public virtual int Roster { get; set; }
    }

}

C# 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}]}