---
title: "Get global metrics of hostingEnvironment (App Service Environment)."
method: GET
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/metrics"
tags: ["HostingEnvironments"]
---

# Get global metrics of hostingEnvironment (App Service Environment).

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

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/metrics`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

## 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.dev/azure/apis/website-management-client.md) - [All operations](https://skmtc.dev/azure/apis/website-management-client/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/website-management-client/revisions/e6d8fbd68044?raw)
