---
title: "Retrieve daily quality metric values for a given time period"
method: GET
path: "/workspaces/{workspace_id}/reports/qualityMetrics/metricDailyTrend"
tags: ["Report"]
---

# Retrieve daily quality metric values for a given time period

`GET /workspaces/{workspace_id}/reports/qualityMetrics/metricDailyTrend`

Used to retrieve quality metrics for an entity with daily values

## Path parameters

- `workspace_id` string, required

## Query parameters

- `start_time` integer, required
- `end_time` integer
- `timezone` string
- `metric_type` string, required
- `aggregation_invariant_id` string, required
- `limit` integer
- `cursor` string

## Response `200`

Array of daily quality metrics for the associated context

- AggregateMetricDailyTrendResult
  - `quality_metric_values` AggregateMetricDailyTrend[] — Each daily quality metric for the associated context, env, and app
    - `workspace_id` string — Id for the workspace
    - `application_id` string — Id for the application
    - `environment_id` string — Id for the environment
    - `metric_date` integer — The date timestamp for the metric aggregation
    - `metric_type` string — The metric type that is being aggregated daily
    - `metric_daily_min` number, double — The min of the metric values of each step
    - `metric_daily_max` number, double — The max of the metric values of each step
    - `metric_daily_average` number, double — The average of the metric values of each step
    - `aggregation_type` string — The type associated with the context of aggregation
    - `aggregation_id` string — The id associated with the context of aggregation
    - `group_type` string — The type associated with the group being aggregated
    - `group_id` string — The id associated with the group being aggregated
    - `group_complete` boolean — Represents whether the groups aggregated are complete or not.
    - `count_runs` integer — The number of individual group metric values combined for this aggregation
    - `min_test_run_id` string — The test run id associated with the min metric value
    - `max_test_run_id` string — The test run id associated with the min metric value
  - `cursor` string — Cursor used for pagination

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `default` — Unexpected error

---

[API](https://skmtc.net/mabl/apis/mabl-api.md) · [All operations](https://skmtc.net/mabl/apis/mabl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mabl/mabl-api/revisions/d0fc0114da66/schema)
