---
title: Time series
summary: Time series returns data for the number of signals (e.g., XSS, SQLi, 404s) observed per minute.
url: https://www.fastly.com/documentation/reference/api/security/timeseries
---

Time series returns data for the number of signals (e.g., XSS, SQLi, 404s) observed per minute.

## Data model

| Field | Type | Description |
|-------|------|-------------|
| `timestamp` | string | Timestamp for the data point in "2025-05-12T20:55:07Z" format. |

## API endpoints

### Retrieve timeseries metrics

**GET** `/security/workspaces/{workspace_id}/timeseries`

Get timeseries metrics in a workspace.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `end` | string | query | No | The end of a date-time range, expressed in RFC 3339 format. |
| `granularity` | integer | query | No | Level of detail of the sample size in seconds. |
| `metrics` | string | query | No | Comma-separated list of metrics to be included in the timeseries. |
| `start` | string | query | No | The start of a date-time range, expressed in RFC 3339 format. |
| `workspace_id` | string | path | Yes | The ID of the workspace. |

