SALES: 1-800-867-1380
This topic has not yet been rated - Rate this topic

Get Historical Usage Metrics for a Site

Updated: January 15, 2014

You can retrieve historical usage metrics for a site by issuing an HTTP GET request.

Request

Replace <Subscription-ID>, <WebSpaceName>, and <SiteName> with the corresponding values for your web site. Optionally, include a value or values for <MetricName>. Optionally, include time values for the StartTime or EndTime parameter, or for both.

 

Method Request URI HTTP Version

GET

https://management.core.windows.net/<Subscription-Id>/services/WebSpaces/<WebSpaceName>/sites/<SiteName>/metrics?names=<MetricName>,<MetricName>[...],&StartTime=<2013-01-15T00:00:00>&EndTime=<2013-01-16T12:00:00>

HTTP/1.1

URI Parameters

 

URI Parameter Description

names

Specifies a comma-separated list of the names of the metrics to return. If the names parameter is not specified, then all available metrics are returned.

StartTime

The starting time of the metrics to return. If this parameter is not specified, the beginning of the current hour is used.

EndTime

The ending time of the metrics to return. If this parameter is not specified, the current time is used.

The following is a list of supported metrics:

  • CpuTime

  • BytesReceived

  • BytesSent

  • IncomingRequestBytes

  • IncomingRequestResponseBytes

  • OutgoingRequestBytes

  • OutgoingRequestResponseBytes

  • LocalReadBytes

  • LocalWrittenBytes

  • NetworkReadBytes

  • NetworkWrittenBytes

  • Requests

  • Http2xx

  • Http3xx

  • Http401

  • Http403

  • Http404

  • Http406

  • Http4xx

  • Http5xx

In the response body, these names appear in the MetricResponses.MetricResponse.Data.Name element.

Request Headers

The following table describes required and optional request headers.

 

Request Header Description

x-ms-version

Optional. Specifies the version of the operation to use for this request. If you do not specify a version, the latest version is used. For more information about versioning headers, see API Versioning on the Web Sites Management REST API Reference page.

accept: application/json

Optional. Use this header to receive the response in JSON format.

Request Body

None.

Response

The response includes an HTTP status code, a set of response headers, and a response body.

Status Code

A successful operation returns status code 200 (OK).

For information about status codes, see Service Management Status and Error Codes.

Response Headers

The response for this operation includes the following headers. The response may also include additional standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.

 

Response Header Description

x-ms-request-id

A value that uniquely identifies the request made against the Management service.

Response Body

The following is an example JSON response body for the 2012-10-10 version.


[{
    "Code": "Success",
    "Data": {
        "DisplayName": "CPU Time",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "CpuTime",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Milliseconds",
        "Values": []
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Data In",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "BytesReceived",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Bytes",
        "Values": []
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Data Out",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "BytesSent",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Bytes",
        "Values": []
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Incoming request bytes",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "IncomingRequestBytes",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Bytes",
        "Values": []
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Incoming request response bytes",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "IncomingRequestResponseBytes",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Bytes",
        "Values": []
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Outgoing request bytes",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "OutgoingRequestBytes",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Bytes",
        "Values": []
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Outgoing request response bytes",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "OutgoingRequestResponseBytes",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Bytes",
        "Values": []
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Local read bytes",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "LocalReadBytes",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Bytes",
        "Values": []
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Local written bytes",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "LocalWrittenBytes",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Bytes",
        "Values": []
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Network read bytes",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "NetworkReadBytes",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Bytes",
        "Values": []
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Network written bytes",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "NetworkWrittenBytes",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Bytes",
        "Values": []
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Requests",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "Requests",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Count",
        "Values": [
            {
                "Count": 1,
                "Maximum": null,
                "Minimum": null,
                "TimeCreated": "\/Date(1366056000000)\/",
                "Total": 21
            }
        ]
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Http 2xx",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "Http2xx",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Count",
        "Values": []
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Http 3xx",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "Http3xx",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Count",
        "Values": []
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Http 401",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "Http401",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Count",
        "Values": []
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Http 403",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "Http403",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Count",
        "Values": []
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Http 404",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "Http404",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Count",
        "Values": []
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Http 406",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "Http406",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Count",
        "Values": []
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Http 4xx",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "Http4xx",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Count",
        "Values": []
    },
    "Message": ""
},
{
    "Code": "Success",
    "Data": {
        "DisplayName": "Http Server Errors",
        "EndTime": "\/Date(1366056265688)\/",
        "Name": "Http5xx",
        "PrimaryAggregationType": "Total",
        "StartTime": "\/Date(1366056000000)\/",
        "TimeGrain": "PT1H",
        "Unit": "Count",
        "Values": []
    },
    "Message": ""
}]

The following is an example XML response body for the 2012-10-10 version. Information for each metric is returned in a <MetricResponse> element.


<MetricResponses xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>CPU Time</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>CpuTime</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Milliseconds</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>390</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Data In</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>BytesReceived</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Bytes</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>13427</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Data Out</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>BytesSent</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Bytes</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>8148</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Incoming request bytes</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>IncomingRequestBytes</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Bytes</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>13427</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Incoming request response bytes</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>IncomingRequestResponseBytes</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Bytes</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>8148</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Outgoing request bytes</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>OutgoingRequestBytes</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Bytes</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>0</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Outgoing request response bytes</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>OutgoingRequestResponseBytes</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Bytes</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>0</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Local read bytes</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>LocalReadBytes</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Bytes</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>760789</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Local written bytes</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>LocalWrittenBytes</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Bytes</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>203</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Network read bytes</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>NetworkReadBytes</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Bytes</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>45</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Network written bytes</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>NetworkWrittenBytes</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Bytes</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>0</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Requests</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>Requests</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Count</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>21</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Http 2xx</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>Http2xx</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Count</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>14</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Http 3xx</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>Http3xx</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Count</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>0</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Http 401</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>Http401</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Count</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>0</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Http 403</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>Http403</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Count</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>0</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Http 404</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>Http404</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Count</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>7</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Http 406</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>Http406</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Count</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>0</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Http 4xx</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>Http4xx</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Count</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>7</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>
  <MetricResponse>
    <Code>Success</Code>
    <Data>
      <DisplayName>Http Server Errors</DisplayName>
      <EndTime>2013-04-16T17:10:37.6101155Z</EndTime>
      <Name>Http5xx</Name>
      <PrimaryAggregationType>Total</PrimaryAggregationType>
      <StartTime>2013-04-16T17:00:00Z</StartTime>
      <TimeGrain>PT1H</TimeGrain>
      <Unit>Count</Unit>
      <Values>
        <MetricSample>
          <Count>1</Count>
          <Maximum i:nil="true" />
          <Minimum i:nil="true" />
          <TimeCreated>2013-04-16T17:00:00Z</TimeCreated>
          <Total>0</Total>
        </MetricSample>
      </Values>
    </Data>
    <Message />
  </MetricResponse>

Key Elements

The following table describes the key elements of the response body.

 

Element Name Description

MetricResponses

Container element for a set of metric snapshots.

MetricResponses.MetricResponse

Container element for a metric snapshot.

MetricResponses.MetricResponse.Code

Reports whether the metric data was returned successfully.

MetricResponses.MetricResponse.Data

Container element for metric data.

MetricResponses.MetricResponse.Data.DisplayName

The display name of the metric, including spaces.

MetricResponses.MetricResponse.Data.EndTime

The end time of the data reported.

MetricResponses.MetricResponse.Data.Name

The name of the metric. Possible values are listed at the beginning of this document.

MetricResponses.MetricResponse.Data.PrimaryAggregationType

The primary data aggregation type. This value is usually Total.

MetricResponses.MetricResponse.Data.StartTime

The start time of the data reported.

MetricResponses.MetricResponse.Data.TimeGrain

Length of time (rollup) during which the information was gathered. For more information, see Supported Rollups.

MetricResponses.MetricResponse.Data.Unit

The unit of measurement for the metric (for example, milliseconds, bytes, or count).

MetricResponses.MetricResponse.Data.Values

Container element for one or more MetricSample elements.

MetricResponses.MetricResponse.Data.Values.MetricSample

Container element for metric data.

MetricResponses.MetricResponse.Data.Values.MetricSample.Count

The metric sample count. This value is usually 1.

MetricResponses.MetricResponse.Data.Values.MetricSample.Maximum

Maximum value recorded.

MetricResponses.MetricResponse.Data.Values.MetricSample.Minimum

Minimum value recorded.

MetricResponses.MetricResponse.Data.Values.MetricSample.TimeCreated

Time the metric was taken.

MetricResponses.MetricResponse.Data.Values.MetricSample.Total

Value of the metric sample for the time taken.

MetricResponses.MetricResponse.Message

A string for optional message content.

Authorization

Any management certificate associated with the subscription specified by <Subscription-Id> can be used to authenticate this operation. For additional details, see Authenticating Service Management Requests.

See Also

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.