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
$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 = []

$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

getNumberOfErrorsInPeriod()

protected getNumberOfErrorsInPeriod(int $start, int $end) : int
Parameters
$start : int
$end : int
Return values
int

        
On this page

Search results