File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export interface LaserMetrics {
99export interface RoomMetrics {
1010 api_version : 2 ;
1111 room : string ;
12+ ip : string ;
1213 controller_metrics : ControllerMetrics ;
1314 lamp_metrics : LampMetrics [ ] ;
1415}
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export interface MonitorInspectorRoomCardProps {
2020
2121const names : Names < FlatRoomMetrics > = {
2222 responding : 'Responding' ,
23+ ip : 'IP' ,
2324 pings_without_response : 'Pings without response' ,
2425 ping_latency_ms : 'Ping/latency' ,
2526 responsive_lamps : 'Lamps (responsive)' ,
Original file line number Diff line number Diff line change @@ -4,13 +4,15 @@ import { Bounded } from '@luna/utils/bounded';
44export interface FlatRoomMetrics extends ControllerMetrics {
55 api_version : 2 ;
66 room : string ;
7+ ip : string ;
78 responsive_lamps : Bounded < number > ;
89}
910
1011export function flattenRoomMetrics ( metrics : RoomMetrics ) : FlatRoomMetrics {
1112 return {
1213 api_version : metrics . api_version ,
1314 room : metrics . room ,
15+ ip : metrics . ip ,
1416 responsive_lamps : {
1517 value : metrics . lamp_metrics . filter ( l => l . responding ) . length ,
1618 total : metrics . lamp_metrics . length ,
You can’t perform that action at this time.
0 commit comments