---
title: "Get Insights metrics series for the project"
method: GET
path: "/{spaceId}/projects/{projectId}/insights/metrics"
tags: ["Insights"]
---

# Get Insights metrics series for the project

`GET /{spaceId}/projects/{projectId}/insights/metrics`

Returns the aggregated insights metrics for this project for the chosen granularity and time period

## Path parameters

- `spaceId` string, required
- `projectId` string, required

## Query parameters

- `channelId` string, required
- `environmentId` string, required
- `granularity` 'Monthly' | 'Weekly' | 'Daily'
- `tenantFilter` 'UntenantedAndAllTenants' | 'Untenanted' | 'SingleTenant'
- `tenantId` string
- `timeRange` 'LastMonth' | 'LastQuarter' | 'LastYear'
- `timeZone` string

## Response `200`

Success

- GetInsightsMetricsSeriesForProjectResponse
  - `Series` InsightsDataSeriesResource[], required
    - `Intervals` Interval[], required
      - `DeploymentFailureRate` InsightsFailureRateMetricResource
        - `DeploymentFailure` integer
        - `Failed` integer
        - `Rate` number, double
        - `Successful` integer
        - `SuccessfulButHadGuidedFailure` integer
        - `SuccessfulButPreventedProgression` integer
        - `Total` integer
      - `DeploymentQueuedDuration` DurationMetric
        - `Count` integer
        - `Max` string
        - `Mean` string
        - `Median` string
        - `Min` string
        - `NinetyFifth` string
      - `DeploymentsUntilRecovery` DoubleMetric
        - `Count` integer
        - `Max` number, double
        - `Mean` number, double
        - `Median` number, double
        - `Min` number, double
        - `NinetyFifth` number, double
      - `LeadTime` DurationMetric
        - `Count` integer
        - `Max` string
        - `Mean` string
        - `Median` string
        - `Min` string
        - `NinetyFifth` string
      - `MeanTimeToRecovery` DurationMetric
        - `Count` integer
        - `Max` string
        - `Mean` string
        - `Median` string
        - `Min` string
        - `NinetyFifth` string
      - `NumberOfSuccessfulDeployments` integer
      - `StartOfInterval` string
      - `SuccessfulDeploymentDuration` DurationMetric
        - `Count` integer
        - `Max` string
        - `Mean` string
        - `Median` string
        - `Min` string
        - `NinetyFifth` string
      - `TimeSincePreviousDeployment` DurationMetric
        - `Count` integer
        - `Max` string
        - `Mean` string
        - `Median` string
        - `Min` string
        - `NinetyFifth` string
    - `Name` string, required

## Other responses

- `400` — Bad request. Either the payload was not structurally valid or business rules did not permit the operation.
- `404` — Not found. One or more of the entities involved in the operation was not found.

---

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