monitoring: Use grouping instead of distinct in the host downtime query
refs #9009
This commit is contained in:
parent
044027772d
commit
2539e51549
|
@ -107,7 +107,7 @@ class HostdowntimeQuery extends IdoQuery
|
||||||
'hgo.objecttype_id = ?',
|
'hgo.objecttype_id = ?',
|
||||||
3
|
3
|
||||||
);
|
);
|
||||||
$this->distinct();
|
$this->group('ho.name1');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -160,7 +160,7 @@ class HostdowntimeQuery extends IdoQuery
|
||||||
'sgo.objecttype_id = ?',
|
'sgo.objecttype_id = ?',
|
||||||
4
|
4
|
||||||
);
|
);
|
||||||
$this->distinct();
|
$this->group('ho.name1');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -184,6 +184,6 @@ class HostdowntimeQuery extends IdoQuery
|
||||||
'so.objecttype_id = ?',
|
'so.objecttype_id = ?',
|
||||||
2
|
2
|
||||||
);
|
);
|
||||||
$this->distinct();
|
$this->group('ho.name1');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue