Get-AzureStorageServiceMetricsProperty

取得 Azure 儲存體 服務的計量屬性。

警告

自 2024 年 2 月 29 日起,AzureRM PowerShell 模組已正式淘汰。 建議使用者從 AzureRM 遷移至 Az PowerShell 模組,以確保持續支援和更新。

雖然 AzureRM 模組可能仍可運作,但不再維護或支援它,但會根據用戶的判斷權和風險放置任何繼續使用。 如需轉換至 Az 模組的指引,請參閱我們的 移轉資源

語法

Get-AzureStorageServiceMetricsProperty
   [-ServiceType] <StorageServiceType>
   [-MetricsType] <ServiceMetricsType>
   [-Context <IStorageContext>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get-Azure 儲存體 ServiceMetricsProperty Cmdlet 會取得 Azure 儲存體 服務的計量屬性。

範例

範例 1:取得 Blob 服務的計量屬性

C:\PS>Get-AzureStorageServiceMetricsProperty -ServiceType Blob -MetricsType Hour

此命令會取得 Hour 計量類型的 Blob 記憶體計量屬性。

參數

-Context

指定 Azure 記憶體內容。 若要取得記憶體內容,請使用 New-Azure 儲存體 Context Cmdlet。

類型:IStorageContext
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-MetricsType

指定計量類型。 此 Cmdlet 會取得此參數所指定計量類型的 Azure 儲存體 服務計量屬性。 此參數可接受的值為:Hour 和 Minute。

類型:ServiceMetricsType
接受的值:Hour, Minute
Position:1
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-ServiceType

指定記憶體服務類型。 這個 Cmdlet 會取得此參數所指定類型的計量屬性。 此參數可接受的值為:

  • Blob
  • Table
  • 待辦事項
  • 檔案 目前不支援 File 的值。
類型:StorageServiceType
接受的值:Blob, Table, Queue, File
Position:0
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

輸入

IStorageContext

輸出

MetricsProperties