SysLogErrorsDataProvider implements ChartDataProviderInterface
Provides chart data for sys log errors.
Table of Contents
Interfaces
- ChartDataProviderInterface
- Defines API for provider, used for chart widgets.
Properties
Methods
- __construct() : mixed
- getChartData() : array<string|int, mixed>
- This method should provide the data for the graph.
- calculateDataForLastDays() : void
- getLanguageService() : LanguageService
- getNumberOfErrorsInPeriod() : int
Properties
$data
protected
array<string|int, mixed>
$data
= []
$days read-only
protected
int
$days
= 31
$labels
protected
array<string|int, mixed>
$labels
= []
Methods
__construct()
public
__construct([int $days = 31 ]) : mixed
Parameters
- $days : int = 31
-
Number of days to gather information for.
getChartData()
This method should provide the data for the graph.
public
getChartData() : array<string|int, mixed>
The data and options you have depend on the type of chart. More information can be found in the documentation of the specific type.
Return values
array<string|int, mixed>calculateDataForLastDays()
protected
calculateDataForLastDays() : void
getLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetNumberOfErrorsInPeriod()
protected
getNumberOfErrorsInPeriod(int $start, int $end) : int
Parameters
- $start : int
- $end : int