SysLogErrorsDataProvider implements ChartDataProviderInterface
Provides chart data for sys log errors.
Table of Contents
Interfaces
- ChartDataProviderInterface
- Defines API for provider, used for chart widgets.
Properties
- $data : array<string|int, mixed>
- $days : int
- Number of days to gather information for.
- $labels : array<string|int, mixed>
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
Number of days to gather information for.
protected
int
$days
= 31
$labels
protected
array<string|int, mixed>
$labels
= []
Methods
__construct()
public
__construct([int $days = 31 ]) : mixed
Parameters
- $days : int = 31
getChartData()
This method should provide the data for the graph.
public
getChartData() : array<string|int, mixed>
Tags
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