azure-monitor-query-java
建置 Azure Monitor Java 查詢
Java 團隊需要可靠的範例來查詢 Azure 記錄和計量。此技能提供聚焦的 Azure Monitor Query SDK 指引,涵蓋用戶端、查詢、選項和移轉。
使用我的智慧代理安裝
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "azure-monitor-query-java" from https://skillstore.io/skills/sickn33-azure-monitor-query-java.md and its manifest at https://skillstore.io/api/skills/sickn33-azure-monitor-query-java/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
Agent 可讀資源
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
測試它
正在使用「azure-monitor-query-java」。 需要 AzureActivity 的基本工作區查詢。
預期結果:
一個精簡的 Java 工作流程,包含認證設定、記錄用戶端、七天間隔,以及資料列處理指引。
正在使用「azure-monitor-query-java」。 需要查詢 SuccessfulCalls 和 TotalCalls 計量。
預期結果:
建立計量用戶端、要求兩個計量名稱、選擇彙總,並讀取每個時間序列值的步驟。
正在使用「azure-monitor-query-java」。 需要從已淘汰的套件移轉。
預期結果:
一份套件拆分計畫,分離記錄和計量用途,並強調相依性和 import 變更。
安全審計
安全All 45 external-command alerts are Markdown backticks or fenced examples, not executable shell constructs. The nine URL alerts are official service endpoints or references, and the credential-directory alert is a substring mismatch. No semantic threats or prompt injection were found.
風險因素
⚙️ 外部命令 (45)
分享與引用此報告
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
複製報告連結
https://skillstore.io/skills/sickn33-azure-monitor-query-java/audits/6?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/sickn33-azure-monitor-query-java?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/sickn33-azure-monitor-query-java?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-azure-monitor-query-java/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/sickn33-azure-monitor-query-java.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>學術引用 (APA · BibTeX · CFF)
APA 引用
sickn33. (2026). azure-monitor-query-java security audit report (audit version 6) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-azure-monitor-query-java/audits/6BibTeX 引用
@techreport{sickn33-sickn33-azure-monitor-query-java-2026,
author = {sickn33},
title = {azure-monitor-query-java security audit report (audit version 6)},
institution = {Skillstore},
year = {2026},
number = {6},
url = {https://skillstore.io/skills/sickn33-azure-monitor-query-java/audits/6},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "azure-monitor-query-java security audit report (audit version 6)"
version: "unspecified"
type: report
authors:
- name: "sickn33"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/sickn33-azure-monitor-query-java/audits/6"
identifiers:
- type: other
value: "skillstore:sickn33-azure-monitor-query-java:audit:6"
description: "Skillstore immutable audit report identifier"
Skillstore 評分
評分依據 證據置信度: 高你可以打造什麼
將監控查詢加入 Java 服務
使用 SDK 範例建立用戶端、執行 Kusto 查詢,並處理傳回的資料列。
檢閱 Azure 可觀測性程式碼
將現有 Java 查詢程式碼與文件化的用戶端、逾時和錯誤處理模式進行比較。
規劃 SDK 套件移轉
識別已淘汰套件應移轉到記錄和計量專用程式庫的位置。
試試這些提示
展示如何建立 Java LogsQueryClient,並查詢 Log Analytics 工作區過去七天的資料。
協助我在 Java 中以一小時粒度,以及 average 加上 count 彙總來查詢 Azure metrics。
檢閱我的 Java 批次 Log Analytics 查詢流程,並建議針對失敗或部分結果的檢查。
為 Java 服務建立從 azure-monitor-query 移轉到 azure-monitor-query-logs 和 azure-monitor-query-metrics 的計畫。
最佳實務
- 在擴大查詢範圍前,先使用較短的時間範圍和 Kusto 篩選條件。
- 在每個生產環境查詢路徑中處理部分失敗和服務例外狀況。
- 新的 Java 專案優先使用較新的記錄和計量套件。
避免
- 不要將真實 tenant IDs、workspace IDs 或 secrets 貼到共用 prompts 中。
- 不要在大型生產環境工作區上執行沒有限制的廣泛查詢。
- 不要將範例 endpoints 視為每個雲端環境都相符的證明。