Skip to content
Permalink
b0541e6cbc
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
28 lines (26 sloc) 518 Bytes
export interface GeneratorObject {
gen_id: number;
gen_name: string;
org_id: number;
zip: number;
state: GeneratorState | null;
}
export interface GeneratorState {
online: boolean;
state: string;
state_code: number;
fault_count?: number;
fault_codes?: Array<string>;
status_count?: number;
status_codes?: Array<string>;
ip?: string;
}
export interface GeneratorMetric {
id: string;
title: string;
units: string;
min: number;
max: number;
value?: number;
timestamp?: number;
}