2021-08-16 14:30:19 +00:00
|
|
|
import PropTypes, { number } from "prop-types";
|
2021-07-19 18:02:41 +00:00
|
|
|
|
2021-10-22 20:05:49 +00:00
|
|
|
import scheduledQueryStatsInterface, {
|
|
|
|
IScheduledQueryStats,
|
|
|
|
} from "./scheduled_query_stats";
|
|
|
|
|
2021-07-19 18:02:41 +00:00
|
|
|
export default PropTypes.shape({
|
|
|
|
scheduled_query_name: PropTypes.string,
|
2021-08-16 14:30:19 +00:00
|
|
|
scheduled_query_id: PropTypes.number,
|
|
|
|
query_name: PropTypes.string,
|
|
|
|
description: PropTypes.string,
|
|
|
|
pack_name: PropTypes.string,
|
|
|
|
pack_id: PropTypes.number,
|
|
|
|
average_memory: number,
|
|
|
|
denylisted: PropTypes.bool,
|
|
|
|
executions: PropTypes.number,
|
2021-07-19 18:02:41 +00:00
|
|
|
interval: PropTypes.number,
|
|
|
|
last_executed: PropTypes.string,
|
2021-08-16 14:30:19 +00:00
|
|
|
output_size: PropTypes.number,
|
|
|
|
system_time: PropTypes.number,
|
|
|
|
user_time: PropTypes.number,
|
|
|
|
wall_time: PropTypes.number,
|
2021-10-22 20:05:49 +00:00
|
|
|
stats: scheduledQueryStatsInterface,
|
2021-07-19 18:02:41 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export interface IQueryStats {
|
|
|
|
scheduled_query_name: string;
|
2021-08-16 14:30:19 +00:00
|
|
|
scheduled_query_id: number;
|
|
|
|
query_name: string;
|
|
|
|
description: string;
|
|
|
|
pack_name: string;
|
|
|
|
pack_id: number;
|
2021-09-01 22:08:20 +00:00
|
|
|
average_memory: number;
|
|
|
|
denylisted: boolean;
|
|
|
|
executions: number;
|
2021-07-19 18:02:41 +00:00
|
|
|
interval: number;
|
|
|
|
last_executed: string;
|
2021-08-16 14:30:19 +00:00
|
|
|
output_size?: number;
|
2021-09-01 22:08:20 +00:00
|
|
|
system_time: number;
|
|
|
|
user_time: number;
|
2021-08-16 14:30:19 +00:00
|
|
|
wall_time?: number;
|
2021-10-22 20:05:49 +00:00
|
|
|
stats?: IScheduledQueryStats;
|
2021-07-19 18:02:41 +00:00
|
|
|
}
|