Trendsic Platform Service

<back to all web services

KpiV2LiveRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/dashboard/kpiv2/live/{BranchId}
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type SvcLiveWindow() = 
        member val StationId:Guid = new Guid() with get,set
        member val Name:String = null with get,set
        member val Status:String = null with get,set
        member val EmployeeId:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val EmployeeName:String = null with get,set
        member val SignedInUtc:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val LastSeenUtc:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val SinceUtc:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val PauseReason:String = null with get,set
        member val CheckinId:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val TicketLabel:String = null with get,set
        member val CustomerName:String = null with get,set
        member val ServiceName:String = null with get,set
        member val StartUtc:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val CalledUtc:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val ServedToday:Int32 = new Int32() with get,set
        member val LastCalledUtc:Nullable<DateTime> = new Nullable<DateTime>() with get,set

    [<AllowNullLiteral>]
    type SvcLiveLine() = 
        member val LineId:Guid = new Guid() with get,set
        member val Name:String = null with get,set
        member val Waiting:Int32 = new Int32() with get,set
        member val OldestHereUtc:Nullable<DateTime> = new Nullable<DateTime>() with get,set

    [<AllowNullLiteral>]
    type SvcAlert() = 
        member val Level:String = null with get,set
        member val View:String = null with get,set
        member val Code:String = null with get,set
        member val StationId:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val EmployeeId:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val BranchId:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val LineId:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val Name:String = null with get,set
        member val OtherLineId:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val OtherName:String = null with get,set
        member val StationIds:ResizeArray<Guid> = new ResizeArray<Guid>() with get,set
        member val Values:Dictionary<String, Double> = new Dictionary<String, Double>() with get,set

    [<AllowNullLiteral>]
    type SvcLive() = 
        member val BranchId:Guid = new Guid() with get,set
        member val NowUtc:DateTime = new DateTime() with get,set
        member val LocalOffMin:Int32 = new Int32() with get,set
        member val ZoneCode:String = null with get,set
        member val Windows:ResizeArray<SvcLiveWindow> = new ResizeArray<SvcLiveWindow>() with get,set
        member val Line:ResizeArray<SvcLiveLine> = new ResizeArray<SvcLiveLine>() with get,set
        member val InLine:Int32 = new Int32() with get,set
        member val LongestWaitSec:Int32 = new Int32() with get,set
        member val Staffed:Int32 = new Int32() with get,set
        member val Alerts:ResizeArray<SvcAlert> = new ResizeArray<SvcAlert>() with get,set

    [<AllowNullLiteral>]
    type KpiV2LiveResponse() = 
        member val ResponseStatus:ResponseStatus = null with get,set
        member val Live:SvcLive = null with get,set

    [<AllowNullLiteral>]
    type KpiV2LiveRequest() = 
        member val BranchId:Guid = new Guid() with get,set

F# KpiV2LiveRequest DTOs

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

HTTP + XML

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

GET /v1/dashboard/kpiv2/live/{BranchId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<KpiV2LiveResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Live>
    <Alerts>
      <SvcAlert>
        <BranchId>00000000-0000-0000-0000-000000000000</BranchId>
        <Code>String</Code>
        <EmployeeId>00000000-0000-0000-0000-000000000000</EmployeeId>
        <Level>String</Level>
        <LineId>00000000-0000-0000-0000-000000000000</LineId>
        <Name>String</Name>
        <OtherLineId>00000000-0000-0000-0000-000000000000</OtherLineId>
        <OtherName>String</OtherName>
        <StationId>00000000-0000-0000-0000-000000000000</StationId>
        <StationIds xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:guid>00000000-0000-0000-0000-000000000000</d5p1:guid>
        </StationIds>
        <Values xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringdouble>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>0</d5p1:Value>
          </d5p1:KeyValueOfstringdouble>
        </Values>
        <View>String</View>
      </SvcAlert>
    </Alerts>
    <BranchId>00000000-0000-0000-0000-000000000000</BranchId>
    <InLine>0</InLine>
    <Line>
      <SvcLiveLine>
        <LineId>00000000-0000-0000-0000-000000000000</LineId>
        <Name>String</Name>
        <OldestHereUtc>0001-01-01T00:00:00</OldestHereUtc>
        <Waiting>0</Waiting>
      </SvcLiveLine>
    </Line>
    <LocalOffMin>0</LocalOffMin>
    <LongestWaitSec>0</LongestWaitSec>
    <NowUtc>0001-01-01T00:00:00</NowUtc>
    <Staffed>0</Staffed>
    <Windows>
      <SvcLiveWindow>
        <CalledUtc>0001-01-01T00:00:00</CalledUtc>
        <CheckinId>00000000-0000-0000-0000-000000000000</CheckinId>
        <CustomerName>String</CustomerName>
        <EmployeeId>00000000-0000-0000-0000-000000000000</EmployeeId>
        <EmployeeName>String</EmployeeName>
        <LastCalledUtc>0001-01-01T00:00:00</LastCalledUtc>
        <LastSeenUtc>0001-01-01T00:00:00</LastSeenUtc>
        <Name>String</Name>
        <PauseReason>String</PauseReason>
        <ServedToday>0</ServedToday>
        <ServiceName>String</ServiceName>
        <SignedInUtc>0001-01-01T00:00:00</SignedInUtc>
        <SinceUtc>0001-01-01T00:00:00</SinceUtc>
        <StartUtc>0001-01-01T00:00:00</StartUtc>
        <StationId>00000000-0000-0000-0000-000000000000</StationId>
        <Status>String</Status>
        <TicketLabel>String</TicketLabel>
      </SvcLiveWindow>
    </Windows>
    <ZoneCode>String</ZoneCode>
  </Live>
  <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>
</KpiV2LiveResponse>