From eef5f6ae186bc0f7ede09830f18391dfe799369c Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 20 Aug 2013 23:00:49 +0200 Subject: [PATCH] CommenthistoryQuery, initial commit --- .../Backend/Ido/Query/CommenthistoryQuery.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 modules/monitoring/library/Monitoring/Backend/Ido/Query/CommenthistoryQuery.php diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/CommenthistoryQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/CommenthistoryQuery.php new file mode 100644 index 000000000..d1cdc91c5 --- /dev/null +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/CommenthistoryQuery.php @@ -0,0 +1,22 @@ + array( + 'state_time' => 'comment_time', + 'timestamp' => 'UNIX_TIMESTAMP(comment_time)', + 'raw_timestamp' => 'comment_time', + 'object_id' => 'object_id', + 'type' => "(CASE entry_type WHEN 1 THEN 'comment' WHEN 2 THEN 'dt_comment' WHEN 3 THEN 'flapping' WHEN 4 THEN 'ack' END)", + 'state' => '(NULL)', + 'state_type' => '(NULL)', + 'output' => "('[' || author_name || '] ' || comment_data)", + 'attempt' => '(NULL)', + 'max_attempts' => '(NULL)', + ) + ); +} +