Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Get-AzureWebHostingPlanMetric

Get-AzureWebHostingPlanMetric

microsoft.windowsazure.commands.dll

Synopsis

Gets metrics for web hsoting plan.

Syntax

Get-AzureWebHostingPlanMetricMetric [-WebSpaceName] [-Name] [-MetricNames] [-StartDate] [-EndDate] [-TimeGrain] [-InstanceDetails] [<CommonParameters>]

Detailed Description

The Get-AzureWebHostingPlanMetric cmdlet gets information about metrics on Azure web hosting plans in subscription.

Parameters

Input Type

None

Return Type

Microsoft.WindowsAzure.Commands.Utilities.Websites.Services.WebEntities.MetricResponse

Notes

None

Examples

Example 1: Get metrics for last 3 hours at hourly level.

This command gets metrics for last 3 hours on per instance level.

          PS C:\>$metrics = Get-AzureWebHostingPlanMetric eastuswebspace default1 -StartDate (get-date).AddHours(-3) -InstanceDetails
          $metrics[1].Data


          Name                   : CpuPercentage
          Unit                   : Percent
          StartTime              : 8/11/2014 7:00:00 AM
          EndTime                : 8/11/2014 5:00:23 PM
          TimeGrain              : PT1H
          PrimaryAggregationType : Instance
          Values                 : {Time:8/11/2014 7:00:00 AM, Total:2, Min:9, Max:0, Time:8/11/2014 8:00:00 AM, Total:2, Min:9, Max:0, Time:8/11/2014 9:00:00 AM, Total:2, Min:9, Max:0,
          Time:8/11/2014 10:00:00 AM, Total:2, Min:8, Max:0...}

          $metrics[1].Data.Values | ft

          TimeCreated                                               Total                         Minimum                         Maximum                           Count InstanceName
          -----------                                               -----                         -------                         -------                           ----- ------------
          8/11/2014 7:00:00 AM                                          2                               9                               0                               1 RD00155DC24599
          8/11/2014 8:00:00 AM                                          2                               9                               0                               1 RD00155DC24599
          8/11/2014 9:00:00 AM                                          2                               9                               0                               1 RD00155DC24599
          8/11/2014 10:00:00 AM                                         2                               8                               0                               1 RD00155DC24599
          8/11/2014 11:00:00 AM                                         2                               9                               0                               1 RD00155DC24599
          8/11/2014 12:00:00 PM                                         2                               6                               0                               1 RD00155DC24599
          8/11/2014 1:00:00 PM                                          2                              15                               0                               1 RD00155DC24599
          8/11/2014 2:00:00 PM                                          3                              21                               0                               1 RD00155DC24599
          8/11/2014 3:00:00 PM                                          2                              13                               0                               1 RD00155DC24599
          8/11/2014 4:00:00 PM                                          2                              14                               0                               1 RD00155DC24599