---
title: "Gets a Job resource's metric history"
method: GET
path: "/api/v1/jobs/{id}/metrics/{name}/snapshots"
tags: ["Job"]
---

# Gets a Job resource's metric history

`GET /api/v1/jobs/{id}/metrics/{name}/snapshots`

## Path parameters

- `name` string, required
- `id` integer, required

## Query parameters

- `index` integer
- `pageLength` integer

## Headers

- `X-Fields` string, mask

## Response `200`

Success

- MetricsSnapshotPage
  - `index` integer — Starting index of the current page.
  - `isComplete` boolean — Boolean indicating if more data is available.
  - `totalNumResults` integer — Total number of results.
  - `first` string — URL to first page in results set.
  - `next` string — URL to next page in results set.
  - `prev` string — URL to last page in results set.
  - `data` MetricsSnapshot[]
    - `name` string — The name of the metric.
    - `value` number — The value of the metric. Can be a float, NaN, Infinity, or -Infinity. NaN values are represented with the string "nan" and infinite values are represented with the strings "inf" and "-inf".
    - `step` integer — The step value for the metric, indexed from 0. Sequentially increasing step values track a metric changing over time.
    - `timestamp` string, date-time — The timestamp for the metric.

---

[API](https://skmtc.net/usnistgov/apis/dioptra-rest-api.md) · [All operations](https://skmtc.net/usnistgov/apis/dioptra-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usnistgov/dioptra-rest-api/versions/a73101579c5c/schema)
