MetricsCopy Pagepost https://api.vianova.dev/orgs/{org_id}/metrics/Recent RequestsLog in to see full request historyTimeStatusUser Agent Retrieving recent requests…LoadingLoading…Path Paramsorg_idintegerrequiredBody ParamsPayload 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_typeamount_fees_subsidiesXXXXXXXavailabilityXXXXXXXco2_savingsXXXXXXXcomplianceXXXXXXXcount_destinationXXXXXXXcount_infringementXXXXXXXcount_infringement_uniqueXXXXXXXcount_originXXXXXXXcount_ridingXXXXXXXdistance_destinationXXXXXXXdistance_originXXXXXXXduration_destinationXXXXXXXduration_originXXXXXXXfeed_statusXXXfleet_sizeXXXXXXXidle_time_secondsXXXXXXXinfringement_duration_hoursXXXXXXXregulation_metric_valueXXXXXXXvehicle_rotationXXXXXXXsubfleetobjectA 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.Subfleet objectgroupingsarray of objectsDefaults to GroupingsADD objectmetric_typesarray of objectsDefaults to metric_typesADD stringwindowResolutionIntervalnumberenumdeprecatedAn enumeration.hourdayweekallresolutionResolutionIntervalnumberenumThe resolution of the metricsAn enumeration.hourdayweekallaggregation_typestringenumDefaults to averageAn enumeration.averagesumunknownAllowed:averagesumunknownResponses 200Successful Response 422Validation ErrorUpdated 6 months ago