az containerapp function invocations
備註
此參考是 Azure CLI (2.79.0 版或更新版本) 的 containerapp 延伸模組的一部分。 擴充功能會在您第一次執行 az containerapp function invocations 命令時自動安裝。 深入了解擴充功能。
命令群組 'containerapp 函式' 處於預覽狀態,正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
從 Application Insights 取得函式叫用資料和追蹤的命令。
命令
| 名稱 | Description | 類型 | 狀態 |
|---|---|---|---|
| az containerapp function invocations summary |
從 Application Insights 取得函式叫用摘要。 |
Extension | Preview |
| az containerapp function invocations traces |
從 Application Insights 取得函式叫用追蹤。 |
Extension | Preview |
az containerapp function invocations summary
命令群組 'containerapp 函式調用' 處於預覽狀態,正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
從 Application Insights 取得函式叫用摘要。
az containerapp function invocations summary --function-name
--name
--resource-group
[--revision]
[--timespan]
範例
取得具有預設時間範圍 (30 天) 的函數呼叫摘要
az containerapp function invocations summary -n my-containerapp -g MyResourceGroup --function-name MyFunction
取得具有特定時間跨度之函數的叫用摘要
az containerapp function invocations summary -n my-containerapp -g MyResourceGroup --function-name MyFunction --timespan 7d
取得特定修訂中函式的叫用摘要
az containerapp function invocations summary -n my-containerapp -g MyResourceGroup --function-name MyFunction --revision MyRevision
必要參數
函式的名稱。
容器應用程式的名稱。
資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
容器應用程式修訂名稱。 如果容器應用程式以多個或標籤修訂模式執行,則需要此值。
查詢呼叫資料的時間範圍 (例如,'30d'、'7d'、'24h'、'1h')。 預設值為「30d」。
| 屬性 | 值 |
|---|---|
| 預設值: | 30d |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az containerapp function invocations traces
命令群組 'containerapp 函式調用' 處於預覽狀態,正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
從 Application Insights 取得函式叫用追蹤。
az containerapp function invocations traces --function-name
--name
--resource-group
[--limit]
[--revision]
[--timespan]
範例
取得具有預設時間範圍 (30 天) 的函數調用追蹤
az containerapp function invocations traces -n my-containerapp -g MyResourceGroup --function-name MyFunction
取得具有特定時間跨度之函數的叫用追蹤
az containerapp function invocations traces -n my-containerapp -g MyResourceGroup --function-name MyFunction --timespan 24h
取得特定修訂中函數的叫用追蹤
az containerapp function invocations traces -n my-containerapp -g MyResourceGroup --function-name MyFunction --revision MyRevision
必要參數
函式的名稱。
容器應用程式的名稱。
資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
要傳回的追蹤數目上限。 預設為 20。
| 屬性 | 值 |
|---|---|
| 預設值: | 20 |
容器應用程式修訂名稱。 如果容器應用程式以多個或標籤修訂模式執行,則需要此值。
查詢呼叫追蹤的時間範圍 (例如,'30d'、'7d'、'24h'、'1h')。 預設值為「30d」。
| 屬性 | 值 |
|---|---|
| 預設值: | 30d |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |