fleet/frontend/interfaces/host_summary.ts
2021-11-30 13:24:30 -05:00

23 lines
493 B
TypeScript

import PropTypes from "prop-types";
export default PropTypes.shape({
online_count: PropTypes.number,
offline_count: PropTypes.number,
mia_count: PropTypes.number,
new_count: PropTypes.number,
});
export interface IHostSummaryPlatforms {
platform: string;
hosts_count: number;
}
export interface IHostSummary {
totals_hosts_count: number;
platforms: IHostSummaryPlatforms[] | null;
online_count: number;
offline_count: number;
mia_count: number;
new_count: number;
}