mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
122895bd08
Feature renders a Users table based on API host.users
39 lines
920 B
TypeScript
39 lines
920 B
TypeScript
import PropTypes from "prop-types";
|
|
import hostUserInterface, { IHostUser } from "./host_users";
|
|
|
|
export default PropTypes.shape({
|
|
detail_updated_at: PropTypes.string,
|
|
hostname: PropTypes.string,
|
|
id: PropTypes.number,
|
|
ip: PropTypes.string,
|
|
mac: PropTypes.string,
|
|
memory: PropTypes.number,
|
|
os_version: PropTypes.string,
|
|
osquery_version: PropTypes.string,
|
|
platform: PropTypes.string,
|
|
status: PropTypes.string,
|
|
updated_at: PropTypes.string,
|
|
uptime: PropTypes.number,
|
|
uuid: PropTypes.string,
|
|
seen_time: PropTypes.string,
|
|
users: PropTypes.arrayOf(hostUserInterface),
|
|
});
|
|
|
|
export interface IHost {
|
|
detail_updated_at: string;
|
|
hostname: string;
|
|
id: number;
|
|
ip: string;
|
|
mac: string;
|
|
memory: number;
|
|
os_version: string;
|
|
osquery_version: string;
|
|
platform: string;
|
|
status: string;
|
|
updated_at: string;
|
|
uptime: number;
|
|
uuid: string;
|
|
seen_time: string;
|
|
users: IHostUser[];
|
|
}
|