FluentaAPI

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.

GET/v1/external/organizations/{organizationId}/analytics/activity

day 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
AutorizaciónBearer <token>

An API token created in Configuración › Tokens de API, or a connected app’s access token

En: header

Parámetros de ruta

organizationId*number

Parámetros de consulta

day?string

Plant day, YYYY-MM-DD on the plant’s clock. Omitted: the plant’s today, on its own clock.

Patrón^\d{4}-\d{2}-\d{2}$
Longitudlength <= 10
view*string

events: 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"
operationId?number

The puesto, for view=events.

Rango1 <= value <= 2147483647
moduleId?number

Restrict hourly, operators or consistency to one módulo.

Rango1 <= value <= 2147483647
operatorId?number

Restrict hourly to one operario: their own marcas and share of each hour’s meta.

Rango1 <= value <= 2147483647
idleMinutes?number

Gaps 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"      }    ]  }}