Metrics

Get metrics on feeds, regulations & infringements, fleet of vehicles

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required
Query Params
boolean
Defaults to false
boolean
Defaults to false
Body Params

Payload to get all the metrics based on multiple fields on specific groupings.

It reuses the concept of a Subfleet to filter the output metrics on many params.

Restrictions :

  • Some metrics are incompatible together. We have 3 types of metrics :

    • feed. Metrics :
      • feed_status
    • regulation. Metrics :
      • count_infringement
      • count_infringement_unique
      • infringement_duration_hours
      • compliance
      • amount_fees_subsidies
      • regulation_metric_value
    • fleet. Metrics :
      • availability
      • co2_savings
      • count_destination
      • count_origin
      • count_riding
      • distance_destination
      • distance_origin
      • duration_destination
      • duration_origin
      • fleet_size
      • idle_time_seconds
      • vehicle_rotation

    You can't ask for metrics in one request if they're not in the same group.
    For example :
    - you can ask for availability + fleet_size, they're in the fleet metrics group.
    - you can NOT ask for availability + count_infringement, one is about fleet and the other one is about regulations

  • Some metrics can only be grouped by some groupings :

metricday_of_weekdevice_typefeedgeo_fenceh3hour_of_dayno_groupingproviderregulationregulation_type
amount_fees_subsidiesXXXXXXX
availabilityXXXXXXX
co2_savingsXXXXXXX
complianceXXXXXXX
count_destinationXXXXXXX
count_infringementXXXXXXX
count_infringement_uniqueXXXXXXX
count_originXXXXXXX
count_ridingXXXXXXX
distance_destinationXXXXXXX
distance_originXXXXXXX
duration_destinationXXXXXXX
duration_originXXXXXXX
feed_statusXXX
fleet_sizeXXXXXXX
idle_time_secondsXXXXXXX
infringement_duration_hoursXXXXXXX
regulation_metric_valueXXXXXXX
vehicle_rotationXXXXXXX

subfleet
object

A subfleet acts as a query-filter to select a subset of the total events related to a fleet.
You can filter on many parameters :

  • geofeatures (where)
  • datetimes (when)
  • devices definition (what)
    • providers
    • types
    • states
  • trips
    )
  • ...

WARNING : If regulations is set, the endpoint will return all regulation related events.

groupings
array of objects
Defaults to []
Groupings
metric_types
array of objects
Defaults to []
metric_types
ResolutionInterval | number
deprecated
ResolutionInterval | number
Defaults to hour

The resolution of the metrics

string
enum
Defaults to average

An enumeration.

Allowed:
Responses

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json