abstract class Collector extends BaseHook

Properties

Controller $mod

Instance providing the hook

from  BaseHook
array $_hook_info

Hook Information "id" => "4914" "instance_id" => "api_microsoft" "name" => "oauth_client" "hook" => "webservice.oauth_client" "type" => "object" "registry_name" => "oauth_client" "function_name" => "" "internal" => "no" "dep_mode" => "local" "active" => "yes" "title" => "Basic functions" "description" => "" "options" => ""

from  BaseHook

Methods

createNewCollectorDimension(string $dimensionKey, null $dimensionGroupKey = null)

No description

getAggregatedDataForDimension(CollectorDimension $dimension, $ts = null, string $aggregationLevel = CollectorData::AGGREGATION_LEVEL_DAY)

Return the data for each dimension, if you cannot provide data for the requested time or aggregation level

getDimensions()

Return the available data dimensions for this collector

string
getHookDescription()

No description

from  BaseHook
string
getHookIdentifier()

Get Hook identifier consists of instance_id puncto separator and hook name Ex. instance_id.name

from  BaseHook
array
getHookInfoValue(bool $key = false)

Return Hook information (ID, InstanceID, Name, Hook Type, Object Type, ...)

from  BaseHook
string
getHookInstance()

No description

from  BaseHook
string
getHookName()

No description

from  BaseHook
string
getHookTitle()

No description

from  BaseHook
getObject()

No description

from  BaseHook
array
getTimespan(int|null $timestamp, string $aggregationLevel)

Returns the start and end datetime of the timestamp for a given aggregation level.

bool
isAvailable()

Returns true if this hook is available otherwise false.

Details

at line 47
protected CollectorData createNewCollectorDataForCollectorDimension(CollectorDimension $dimension)

No description

Parameters

CollectorDimension $dimension

Return Value

CollectorData

at line 38
protected CollectorDimension createNewCollectorDimension(string $dimensionKey, null $dimensionGroupKey = null)

No description

Parameters

string $dimensionKey

The dimension key identifies delivered data, e.g. "iPhone" (max 200 char)

null $dimensionGroupKey

You can associate multiple dimensions by specifying a group key, e.g. "Devices"

Return Value

CollectorDimension

See also

CollectorDimension

at line 28
abstract CollectorData getAggregatedDataForDimension(CollectorDimension $dimension, $ts = null, string $aggregationLevel = CollectorData::AGGREGATION_LEVEL_DAY)

Return the data for each dimension, if you cannot provide data for the requested time or aggregation level

Parameters

CollectorDimension $dimension
$ts
string $aggregationLevel

Return Value

CollectorData

at line 16
abstract CollectorDimension[] getDimensions()

Return the available data dimensions for this collector

Return Value

CollectorDimension[]

in BaseHook at line 76
string getHookDescription()

No description

Return Value

string

in BaseHook at line 55
string getHookIdentifier()

Get Hook identifier consists of instance_id puncto separator and hook name Ex. instance_id.name

Return Value

string

in BaseHook at line 45
array getHookInfoValue(bool $key = false)

Return Hook information (ID, InstanceID, Name, Hook Type, Object Type, ...)

Parameters

bool $key

Return Value

array

in BaseHook at line 69
string getHookInstance()

No description

Return Value

string

in BaseHook at line 62
string getHookName()

No description

Return Value

string

in BaseHook at line 83
string getHookTitle()

No description

Return Value

string

in BaseHook at line 88
getObject()

No description

at line 69
array getTimespan(int|null $timestamp, string $aggregationLevel)

Returns the start and end datetime of the timestamp for a given aggregation level.

Parameters

int|null $timestamp
string $aggregationLevel

Return Value

array

['start_time_ts'=> 1573250400, 'start_time' => '2019-11-09 00:00:00', 'end_time_ts'=> 1573250400, 'end_time' => '2019-11-09 23:59:59']

See also

CollectorData

at line 56
bool isAvailable()

Returns true if this hook is available otherwise false.

Return Value

bool