mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
48 lines
1.2 KiB
TypeScript
48 lines
1.2 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_name: PropTypes.string,
|
|
query: PropTypes.string.isRequired,
|
|
interval: PropTypes.number.isRequired,
|
|
snapshot: PropTypes.bool.isRequired,
|
|
removed: PropTypes.bool.isRequired,
|
|
platform: PropTypes.string,
|
|
version: PropTypes.string,
|
|
shard: PropTypes.number,
|
|
denylist: PropTypes.bool,
|
|
stats: scheduledQueryStatsInterface,
|
|
});
|
|
|
|
export interface IGlobalScheduledQuery {
|
|
created_at: string;
|
|
updated_at: string;
|
|
id: number;
|
|
pack_id: number;
|
|
name: string;
|
|
query_id: number;
|
|
query_name: string;
|
|
query: string;
|
|
interval: number;
|
|
snapshot: boolean;
|
|
removed: boolean;
|
|
platform?: string;
|
|
version?: string;
|
|
shard?: number;
|
|
denylist?: boolean;
|
|
stats?: IScheduledQueryStats;
|
|
}
|
|
|
|
export interface ILoadAllGlobalScheduledQueriesResponse {
|
|
global_schedule: IGlobalScheduledQuery[];
|
|
}
|