print "<div><table border='0'><tr><td valign='top'>\n";
my $fields = $bweb->get_form(qw/level filter age jobtype since type
db_client_groups qclient_groups/); # drop this to hide
- $fields->{action}='overview';
+ $fields->{hide_status}=1;
$fields->{view_time_slice}=1;
+ $fields->{action}='overview';
$bweb->display($fields, "display_form_job.tpl");
print "</td><td valign='top'>";
print "<div><table border='0'><tr><td valign='top'>\n";
my $fields = $bweb->get_form(qw/level filter age jobtype since type
db_client_groups qclient_groups/); # drop this to hide
- $fields->{action}='overview_zoom';
+ $fields->{hide_status}=1;
$fields->{view_time_slice}=1;
+ $fields->{action}='overview_zoom';
$bweb->display($fields, "display_form_job.tpl");
print "</td><td valign='top'>";
$bweb->display_overview_zoom();
TO_SEC => '',
SEC_TO_TIME => 'SEC_TO_TIME',
MATCH => " REGEXP ",
- STARTTIME_DAY => " DATE_FORMAT(StartTime, '%Y-%m-%d') ",
- STARTTIME_HOUR => " DATE_FORMAT(StartTime, '%Y-%m-%d %H') ",
- STARTTIME_MONTH => " DATE_FORMAT(StartTime, '%Y-%m') ",
- STARTTIME_WEEK => " DATE_FORMAT(StartTime, '%v') ",
- STARTTIME_PHOUR=> " DATE_FORMAT(StartTime, '%H') ",
- STARTTIME_PDAY => " DATE_FORMAT(StartTime, '%d') ",
- STARTTIME_PMONTH => " DATE_FORMAT(StartTime, '%m') ",
- STARTTIME_PWEEK => " DATE_FORMAT(StartTime, '%v') ",
+ STARTTIME_DAY => " DATE_FORMAT(Job.StartTime, '%Y-%m-%d') ",
+ STARTTIME_HOUR => " DATE_FORMAT(Job.StartTime, '%Y-%m-%d %H') ",
+ STARTTIME_MONTH => " DATE_FORMAT(Job.StartTime, '%Y-%m') ",
+ STARTTIME_WEEK => " DATE_FORMAT(Job.StartTime, '%Y-%v') ",
+ STARTTIME_PHOUR=> " DATE_FORMAT(Job.StartTime, '%H') ",
+ STARTTIME_PDAY => " DATE_FORMAT(Job.StartTime, '%d') ",
+ STARTTIME_PMONTH => " DATE_FORMAT(Job.StartTime, '%m') ",
+ STARTTIME_PWEEK => " DATE_FORMAT(Job.StartTime, '%v') ",
# with mysql < 5, you have to play with the ugly SHOW command
DB_SIZE => " SELECT 0 ",
# works only with mysql 5
}
my $jobt = $self->{info}->{stat_job_table} || 'Job';
my $stime1 = $self->{sql}->{"STARTTIME_P" . $type}; # get 1,2,3
- $stime1 =~ s/Job.StartTime/date/;
+ $stime1 =~ s/Job.StartTime/starttime/;
my $stime2 = $self->{sql}->{"STARTTIME_" . $type}; # get 2007-01-03, 2007-01-23
my ($limit, $label) = $self->get_limit('since' => $arg->{since},
JobStatus AS value, joberrors, nb_job
FROM (
SELECT $stime2 AS date,
+ StartTime AS starttime,
Client.Name AS name,
MAX(severity) AS severity,
COUNT(1) AS nb_job,
JobStatus AS value, joberrors, nb_job
FROM (
SELECT $stime2 AS date,
+ StartTime AS starttime,
client_group_name AS name,
MAX(severity) AS severity,
COUNT(1) AS nb_job,
-- --------------------------------------------------
ALTER TABLE Status ADD COLUMN severity int;
-UPDATE status SET severity = 15;
-UPDATE status SET severity = 100 where jobstatus = 'f';
-UPDATE status SET severity = 90 where jobstatus = 'A';
-UPDATE status SET severity = 10 where jobstatus = 'T';
+UPDATE Status SET severity = 15;
+UPDATE Status SET severity = 100 where JobStatus = 'f';
+UPDATE Status SET severity = 90 where JobStatus = 'A';
+UPDATE Status SET severity = 10 where JobStatus = 'T';
-- New tables for bresto (same as brestore)