fleet/frontend/interfaces/team_scheduled_query.ts
RachelElysia 36babcc510
UI feature: Frontend of performance impact bubbles (#2589)
Includes backend fixes and test
Co-authored-by: Tomas Touceda <chiiph@gmail.com>
2021-10-22 16:05:49 -04:00

44 lines
1.1 KiB
TypeScript

import PropTypes from "prop-types";
import scheduledQueryStatsInterface, {
IScheduledQueryStats,
} from "./scheduled_query_stats";
export default PropTypes.shape({
created_at: PropTypes.string,
updated_at: PropTypes.string,
id: PropTypes.number.isRequired,
pack_id: PropTypes.number,
name: PropTypes.string.isRequired,
query_id: PropTypes.number.isRequired,
query: PropTypes.string.isRequired,
query_name: PropTypes.string.isRequired,
interval: PropTypes.number.isRequired,
snapshot: PropTypes.bool,
removed: PropTypes.bool,
shard: PropTypes.number,
platform: PropTypes.string,
version: PropTypes.string,
denylist: PropTypes.bool,
stats: scheduledQueryStatsInterface,
});
export interface ITeamScheduledQuery {
created_at: string;
updated_at: string;
id: number;
pack_id: number;
name: string;
query_id: number;
query: string;
query_name: string;
interval: number;
snapshot: boolean;
removed: boolean;
platform?: string;
version?: string;
shard?: number;
denylist?: boolean;
stats?: IScheduledQueryStats;
}