Get station activity
getStationActivityPermiso read
Analítica for one plant day, from the marcas log: one puesto’s marcas summarised, the day hour by hour, each operario’s pace, or the log against the hourly buckets.
/v1/external/organizations/{organizationId}/analytics/activityday is optional: without it, the plant’s today on the organization’s own clock, as on every single-day route of the API externa.
Autorización
apiToken An API token created in Configuración › Tokens de API, or a connected app’s access token
En: header
Parámetros de ruta
Parámetros de consulta
Plant day, YYYY-MM-DD on the plant’s clock. Omitted: the plant’s today, on its own clock.
^\d{4}-\d{2}-\d{2}$length <= 10events: one puesto’s marcas summarised (needs operationId). hourly: the day hour by hour. operators: each operario’s pace, channels and billing. consistency: the marcas log against the hourly buckets.
Valores posibles
- "events"
- "hourly"
- "operators"
- "consistency"
The puesto, for view=events.
1 <= value <= 2147483647Restrict hourly, operators or consistency to one módulo.
1 <= value <= 2147483647Restrict hourly to one operario: their own marcas and share of each hour’s meta.
1 <= value <= 2147483647Gaps between marcas longer than this many minutes count as «pausas sin registro». Default 5.
Valores posibles
- 5
- 10
- 15
Respuestas
application/json
application/json
curl -X GET "https://api.fluenta.io/v1/external/organizations/0/analytics/activity?view=events" \ -H "Authorization: Bearer fluenta_live_XXXX"{ "day": "string", "view": "events", "operationId": 0, "events": { "events": 0, "units": 0, "billableUnits": 0, "billedAmount": 0, "online": 0, "offline": 0, "legacy": 0, "eventsWithoutBucket": 0, "secondsPerUnitP50": 0, "secondsPerUnitP90": 0, "idleGapsOverN": 0, "idleMinutes": 0, "firstAt": "2019-08-24T14:15:22Z", "lastAt": "2019-08-24T14:15:22Z" }, "hourly": { "moduleId": 0, "operatorId": 0, "hours": [ { "hour": 0, "units": 0, "billableUnits": 0, "billedAmount": 0, "goal": 0, "efficiency": 0, "events": 0, "online": 0, "offline": 0, "legacy": 0, "secondsPerUnitP50": 0, "secondsPerUnitP90": 0, "idleGapsOverN": 0 } ], "totals": { "units": 0, "billableUnits": 0, "billedAmount": 0, "goal": 0, "efficiency": 0, "events": 0, "online": 0, "offline": 0, "legacy": 0, "secondsPerUnitP50": 0, "secondsPerUnitP90": 0, "idleGapsOverN": 0, "offlineShare": 0, "eventsWithoutBucket": 0, "idleMinutesApplied": 0 } }, "operators": { "moduleId": 0, "operators": [ { "operatorId": 0, "operatorName": "string", "units": 0, "eventUnits": 0, "activeHours": 0, "unitsPerHour": 0, "secondsPerUnitP50": 0, "idleGaps": 0, "online": 0, "offline": 0, "legacy": 0, "offlineShare": 0, "goal": 0, "efficiency": 0, "billableUnits": 0, "totalPrice": 0 } ], "totals": { "units": 0, "eventUnits": 0, "activeHours": 0, "unitsPerHour": 0, "idleGaps": 0, "online": 0, "offline": 0, "legacy": 0, "offlineShare": 0, "goal": 0, "efficiency": 0, "billableUnits": 0, "totalPrice": 0, "operators": 0, "unattributedEventUnits": 0, "idleMinutesApplied": 0 } }, "consistency": { "totals": { "ok": 0, "mismatch": 0, "bucketOnly": 0, "eventsOnly": 0, "eventUnits": 0, "bucketUnits": 0, "online": 0, "offline": 0, "legacy": 0, "eventsWithoutBucket": 0 }, "rows": [ { "operationId": 0, "hour": 0, "referenceId": 0, "isBilling": true, "eventUnits": 0, "bucketTotal": 0, "status": "ok", "moduleId": 0, "modulePosition": 0, "operationPosition": 0, "operationName": "string", "referenceName": "string" } ] }}