mirror of
				https://github.com/Icinga/icingaweb2.git
				synced 2025-10-31 03:14:31 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			780 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			780 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| // {{{ICINGA_LICENSE_HEADER}}}
 | |
| // {{{ICINGA_LICENSE_HEADER}}}
 | |
| 
 | |
| namespace Icinga\Module\Monitoring\DataView;
 | |
| 
 | |
| class Notification extends DataView
 | |
| {
 | |
|     /**
 | |
|      * Retrieve columns provided by this view
 | |
|      *
 | |
|      * @return array
 | |
|      */
 | |
|     public function getColumns()
 | |
|     {
 | |
|         return array(
 | |
|             'host',
 | |
|             'service',
 | |
|             'notification_state',
 | |
|             'notification_start_time',
 | |
|             'notification_contact',
 | |
|             'notification_output',
 | |
|             'notification_command'
 | |
|         );
 | |
|     }
 | |
| 
 | |
|     public function getSortRules()
 | |
|     {
 | |
|         return array(
 | |
|             'notification_start_time' => array(
 | |
|                 'order' => self::SORT_DESC,
 | |
|                 'title' => 'Notification Start'
 | |
|             )
 | |
|         );
 | |
|     }
 | |
| }
 |