fleet/frontend/interfaces/host_summary.ts

23 lines
505 B
TypeScript
Raw Normal View History

import PropTypes, { string } 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;
}