---
title: "Records a new time series metric measurement"
method: POST
path: "/metrics/timeSeries"
tags: ["Metric"]
---

# Records a new time series metric measurement

`POST /metrics/timeSeries`

## Request body

- TimeSeriesMetricMeasurement — A measurement of a time series metric
  - `kind` string — The kind of metric (defaults to "gauge")
  - `labels` object — Labels to apply to this measurement (key-value pairs)
  - `event_time` integer — Timestamp when this measurement was made/received in epoch milliseconds (defaults to received time)
  - `type` string, required — The type of the metric being measured, e.g. mabl/model/testExecutionTime
  - `value` TypedMetricValue, required — The value of the metric. Only one property should be specified.
    - `double_value` number — The metric value as a double
    - `int64_value` integer — The metric value as a 64-bit integer

## Response `202`

The measurement was accepted

## Other responses

- `400` — Missing or invalid measurement
- `401` — User not authenticated
- `403` — User not authorized
- `default` — Unknown 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)
