feat: add wireless-issues API client functions
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -532,6 +532,18 @@ export interface WirelessLatest {
|
|||||||
time: string
|
time: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface WirelessIssue {
|
||||||
|
device_id: string
|
||||||
|
hostname: string
|
||||||
|
tenant_name?: string
|
||||||
|
interface: string
|
||||||
|
issue: string
|
||||||
|
signal: number | null
|
||||||
|
ccq: number | null
|
||||||
|
client_count: number
|
||||||
|
frequency: number
|
||||||
|
}
|
||||||
|
|
||||||
export interface FleetDevice {
|
export interface FleetDevice {
|
||||||
id: string
|
id: string
|
||||||
hostname: string
|
hostname: string
|
||||||
@@ -735,6 +747,14 @@ export const metricsApi = {
|
|||||||
fleetSummaryAll: () =>
|
fleetSummaryAll: () =>
|
||||||
api.get<FleetDevice[]>(`/api/fleet/summary`).then((r) => r.data),
|
api.get<FleetDevice[]>(`/api/fleet/summary`).then((r) => r.data),
|
||||||
|
|
||||||
|
wirelessIssues: (tenantId: string) =>
|
||||||
|
api
|
||||||
|
.get<WirelessIssue[]>(`/api/tenants/${tenantId}/fleet/wireless-issues`)
|
||||||
|
.then((r) => r.data),
|
||||||
|
|
||||||
|
fleetWirelessIssues: () =>
|
||||||
|
api.get<WirelessIssue[]>(`/api/fleet/wireless-issues`).then((r) => r.data),
|
||||||
|
|
||||||
sparkline: (tenantId: string, deviceId: string) =>
|
sparkline: (tenantId: string, deviceId: string) =>
|
||||||
api
|
api
|
||||||
.get<SparklinePoint[]>(
|
.get<SparklinePoint[]>(
|
||||||
|
|||||||
Reference in New Issue
Block a user