跳转到主要内容
Generated from the Homelab v0.41.15 release (source b5b268760b34). For an installed version, homelab api <command> --help is authoritative.

homelab api monitor alerts list

列出活动的监控告警。

homelab api monitor alerts rules

列出监控告警规则。

homelab api monitor availability

可用性、停机时段和每日状态,均由状态转换时间线推导得出。 这是基于只追加的服务器状态转换时间线的投影,而不是采样器:每个时段都由两次已记录的状态转换界定,并带有写入这些转换时使用的原因代码。响应会公布其自身的统计口径,因此读者无需阅读源码即可看出哪些连接状态被计为停机。

homelab api monitor domains

Read domain lifecycle and observed DNS/TLS differences. Owner and tenant scoped, read-only projection of canonical routing, server domains and service endpoints. Registration expiry from RDAP and certificate expiry from the presented public TLS leaf are separate facts with independent sources and observation deadlines. Missing data stays unknown. Expected DNS is never inferred from observed addresses. Proxied origins are explicitly unobservable from recursive public DNS. Conditions persist across failures and stale observations, and resolve only after fresh positive evidence. An unavailable store returns 503.

homelab api monitor drive-health alerts

Read active and recovered drive-health condition episodes. Authenticated, tenant-scoped read of hardware and collection conditions. Each condition names its affected server and, when attributable, immutable drive identity, severity, observed evidence and recommended next step. Collection failures are distinct from hardware diagnoses. Stable episode IDs deduplicate unchanged conditions; resolved_at records recovery only when fresh evidence covers the condition. Anonymous collection incidents deduplicate by server and path, independently of anonymous hardware IDs. Nonzero cumulative counters describe historical totals; measured increases are separate conditions. NVMe command-error increases and consumed rated endurance are advisories, rather than standalone evidence of media failure. Resolved history is bounded to 64 episodes per condition scope and 90 days. Reads initiate no repair, device mutation or provider action.

homelab api monitor drive-health get

Read per-drive SMART and NVMe health evidence. Authenticated, tenant-scoped projection of Guard drive observations. Self-hosted installations use their configured installation tenant. Hardware identities retain history independently of mutable device paths; replacements never inherit earlier readings. Anonymous observations have attempt-specific IDs and cannot establish historical continuity. Missing, unsupported, inaccessible, incomplete, stale and disconnected observations stay explicit and cannot imply healthy hardware. A server with no observations returns a missing state when selected explicitly. Last successful readings remain historical evidence when a new attempt fails. Only a complete inventory or an explicit missing observation can establish disconnection, and an unreadable identity at a seen path stays uncertain. Reads age evidence and condition episodes, without initiating collection, self-tests, repairs, provisioning or other device actions. Capacity growth forecasts remain on the separate storage-forecast route.

homelab api monitor health

获取监控摄取/查询健康诊断。

homelab api monitor metrics label-values

列出某个指标标签的值。

homelab api monitor metrics labels

列出指标标签名称。

homelab api monitor metrics names

列出指标名称。

homelab api monitor query

运行 PromQL 即时查询。

homelab api monitor query-range

运行 PromQL 范围查询。

homelab api monitor status

获取监控后端状态和运行时元数据。

homelab api monitor storage-forecast

Project filesystem growth from observed storage gauges. Read-only, tenant-scoped projection of node_disk_used_bytes with contemporaneous node_disk_total_bytes or used plus free bytes. The latter is effective usable capacity, not physical disk capacity. Uses a 14-day window with hourly query evaluation, retaining actual source observation times and deduplicating repeated lookback values. Counts describe hourly sampled observations, not all ingested samples; sparse observations outside the backend lookback may be absent. No interpolation or per-service storage attribution is performed. Separate origin/source streams remain separate resources and are never summed. Guard OTLP times describe Guard collection, not original OTLP point time. Unknown capacity, stale/inadequate history and inconsistent measurements return an explicit state without an exhaustion estimate. Exhaustion is a growth scenario range measured from the latest observation, not a statistical confidence interval. Both bounded queries share a timeout.