---
title: fastly ngwaf workspace time-series get
summary: Get workspace-level time series metrics
url: https://www.fastly.com/documentation/reference/cli/ngwaf/workspace/time-series/get
---

Get workspace-level time series metrics

## Flags

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--from` | The start of a date-time range, expressed in RFC 3339 format | Yes | - |
| `--metrics` | Comma-separated list of metrics to be included in the timeseries. Metrics can be XSS, SQLI, HTTP404, requests_total, requests_attack, requests_total_blocked, or any custom metric | Yes | - |
| `--workspace-id` | Alphanumeric string identifying the NGWAF Workspace (falls back to FASTLY_WORKSPACE_ID) | No | - |
| `--to` | The end of a date-time range, expressed in RFC 3339 format | No | - |
| `--granularity` | Level of detail of the sample size in seconds (Default value is 86400) | No | - |
| `--json` | Render output as JSON | No | - |

## Global options

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--help` | Show context-sensitive help. | No | - |
| `--accept-defaults` | Accept default options for all interactive prompts apart from Yes/No confirmations | No | - |
| `--auto-yes` | Answer yes automatically to all Yes/No confirmations. This may suppress security warnings | No | - |
| `--debug-mode` | Print API request and response details (NOTE: can disrupt the normal CLI flow output formatting) | No | - |
| `--non-interactive` | Do not prompt for user input - suitable for CI processes. Equivalent to --accept-defaults and --auto-yes | No | - |
| `--quiet` | Silence all output except direct command output. This won't prevent interactive prompts (see: --accept-defaults, --auto-yes, --non-interactive) | No | - |
| `--token` | Fastly API token, or name of a stored auth token (use 'default' for the default token). Falls back to FASTLY_API_TOKEN env var | No | - |
| `--verbose` | Verbose logging | No | - |

