Phygrid Developers
Browse Topics
Real-Time Reports / Phygrid Developers

Real-Time Reports

The following endpoints are available in the API for real-time reports.

MethodEndpointDescription
GET

sessions

Returns list of sessions in the past 24 hours
GET

events

Returns list of events in the past 24 hours
GET

latest-event

Returns list of latest events

{tenant-id} is your tenant id in the grid console.

GET Real-time Sessions

Returns list of sessions in the past 24 hours

GET {base-url}/v2/realtime/session/tenants/{tenant-id}

Response

[
  {
    tenantId: string;
    sessionId: string;
    sessionCreated: Date;
    environment: string;
    dataResidency: string;
    country: string;
    spaceId: string;
    appId: string;
    appVersion?: string;
    installationVersion?: string;
    installationId: string;
    deviceId?: string;
    clientId: string;
    ip: string;
    locationAccuracy: number;
    latitude: number;
    longitude: number;
    captureId: string;
  }
]

Query Parameters

To use query parameters, add them as GET properties to the URL.

ParameterTypeDescriptionRequired
installationIdstringFilter by installationIdNo
spaceIdstringFilter by spaceIdNo
deviceIdstringFilter by deviceIdNo

GET Real-time Events

Returns list of events in the past 24 hours.

GET {base-url}/v2/realtime/event/tenants/{tenant-id}

Response

[
  {
    tenantId: string;
    eventTime: Date;
    dataResidency: string;
    sessionId: string;
    clientId: string;
    eventType: string;
    interaction: boolean;
    ip: string;
    captureId: string;
    productId?: string;
    categoryId?: string;
    int1?: number;
    int2?: number;
    int3?: number;
    int4?: number;
    int5?: number;
    str1?: string;
    str2?: string;
    str3?: string;
    str4?: string;
    str5?: string;
    stateful?: boolean;
    public?: number;
  }
]

Query Parameters

To use query parameters, add them as GET properties to the URL.

ParameterTypeDescriptionRequired
installationIdstringFilter by installationIdNo
spaceIdstringFilter by spaceIdNo
deviceIdstringFilter by deviceIdNo
eventTypestringFilter by event typeNo
interactionTypestring

"interactive" | "nonInteractive" | "all" - Default is "all"

No

GET Real-time Latest Events

Returns list of latest events based on distinct fields. It's designed for monitoring events through grid-signals.

GET {base-url}/v2/realtime/latest-event/tenants/{tenant-id}

Response

[
  {
    tenantId: string;
    installationId: string;
    deviceId: string;
    spaceId: string
    eventTime: Date;
    dataResidency: string;
    sessionId: string;
    clientId: string;
    eventType: string;
    interaction: boolean;
    ip: string;
    captureId: string;
    productId?: string;
    categoryId?: string;
    int1?: number;
    int2?: number;
    int3?: number;
    int4?: number;
    int5?: number;
    str1?: string;
    str2?: string;
    str3?: string;
    str4?: string;
    str5?: string;
    stateful?: boolean;
    public?: number;
  }
]

Query Parameters

To use query parameters, add them as GET properties to the URL.

ParameterTypeDescriptionRequired
distinctColumnsstring

"str1" | "str2" | "str3" | "str4" | "str5" |"int1" | "int2" | "int3" | "int4" | "int5"

Yes
installationIdstringFilter by installationIdNo
spaceIdstringFilter by spaceIdNo
deviceIdstringFilter by deviceIdNo
eventTypestringFilter by event typeNo
interactionTypestring

"interactive" | "nonInteractive" | "all" - Default is "all"

No

© 2024 · Phygrid. An Ombori company