mirror of
				https://github.com/Icinga/icingaweb2.git
				synced 2025-11-03 20:54:27 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
		
			762 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			762 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
// {{{ICINGA_LICENSE_HEADER}}}
 | 
						|
// {{{ICINGA_LICENSE_HEADER}}}
 | 
						|
 | 
						|
namespace Icinga\Module\Monitoring\DataView;
 | 
						|
 | 
						|
/**
 | 
						|
 * View for runtimevariables query
 | 
						|
 */
 | 
						|
class Runtimevariables extends DataView
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * Retrieve columns provided by this view
 | 
						|
     *
 | 
						|
     * @return array
 | 
						|
     */
 | 
						|
    public function getColumns()
 | 
						|
    {
 | 
						|
        return array(
 | 
						|
            'id',
 | 
						|
            'varname',
 | 
						|
            'varvalue'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Retrieve default sorting rules for particular columns. These involve sort order and potential additional to sort
 | 
						|
     *
 | 
						|
     * @return array
 | 
						|
     */
 | 
						|
    public function getSortRules()
 | 
						|
    {
 | 
						|
        return array(
 | 
						|
            'id' => array(
 | 
						|
                'order' => self::SORT_ASC
 | 
						|
            )
 | 
						|
        );
 | 
						|
    }
 | 
						|
}
 |