1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! `events` routes (`EventsAPI`, new in v8.0.0).
//!
//! Ported from `eero-api src/eero/api/events.py` (v8.0.4). All three routes below resolve
//! against the *network's own* URL (`_params.resolve_network_url`, which prefers a parent
//! envelope's `url` field — `self_url` — over the bare-id template) with a literal suffix
//! appended, **not** a named `resources` link
//! (`.claude/tasks/briefs/v8/g7-backup-members.md`, "Helper primitives" section). [`Resource::link`]
//! is therefore `None` on every constant here: [`crate::endpoints::events::EventsApi`] does not
//! call [`Resource::resolve`] for these three routes at all — it resolves the network part with
//! [`crate::params::resolve_network_url`] (self-url preferring) and appends the suffix captured
//! after `{id}` in `template` itself, so the template stays the single source of truth for the
//! wire path even though the ordinary link-preferring resolution path is bypassed. See that
//! module's own docs for why.
use ;
use Method;
/// `GET /2.2/networks/{network_id}/app_events` — app-facing event log.
///
/// Ported from `eero-api src/eero/api/events.py:87` (`EventsAPI.get_app_events`). See the
/// module docs for why [`Resource::link`] is `None` here despite `parent=` being a real,
/// live-verified preference for this method.
pub const GET_APP_EVENTS: Resource = Resource ;
/// `GET /2.2/networks/{network_id}/network_scan` — network scan results.
///
/// Ported from `eero-api src/eero/api/events.py:131` (`EventsAPI.get_network_scan`). See the
/// module docs for why [`Resource::link`] is `None` here despite `parent=` being a real,
/// live-verified preference for this method.
pub const GET_NETWORK_SCAN: Resource = Resource ;
/// `GET /2.2/networks/{network_id}/channel_utilization` — channel-utilization report.
///
/// Ported from `eero-api src/eero/api/events.py:159` (`EventsAPI.get_channel_utilization`). See
/// the module docs for why [`Resource::link`] is `None` here despite `parent=` being a real,
/// live-verified preference for this method (`start`/`end` only).
pub const GET_CHANNEL_UTILIZATION: Resource = Resource ;