---
title: "Gets metrics for web app"
method: GET
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/metrics"
tags: ["Sites"]
---

# Gets metrics for web app

`GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/metrics`

## Path parameters

- `resourceGroupName` string, required
- `name` string, required
- `subscriptionId` string, required

## Query parameters

- `details` boolean
- `$filter` string
- `api-version` string, required

## Response `200`

OK

- ResourceMetricCollection — Collection of metric responses
  - `value` ResourceMetric[] — Collection of resources
    - `name` ResourceMetricName — Name of a metric for any resource
      - `value` string — metric name value
      - `localizedValue` string — Localized metric name value
    - `unit` string — Metric unit
    - `timeGrain` string — Metric granularity. E.g PT1H, PT5M, P1D
    - `startTime` string, date-time — Metric start time
    - `endTime` string, date-time — Metric end time
    - `resourceId` string — Metric resource Id
    - `metricValues` ResourceMetricValue[] — Metric values
      - `timeStamp` string — Value timestamp
      - `average` number, float — Value average
      - `minimum` number, float — Value minimum
      - `maximum` number, float — Value maximum
      - `total` number, float — Value total
      - `count` number, float — Value count
    - `properties` KeyValuePairStringString[] — Properties
      - `key` string
      - `value` string
  - `nextLink` string — Link to next page of resources

---

[API](https://skmtc.net/azure/apis/website-management-client.md) · [All operations](https://skmtc.net/azure/apis/website-management-client/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/website-management-client/versions/e6d8fbd68044/schema)
