EventAnalytics

EventAnalytics

This represents the Event Analytics Fetcher for processing analytics calls

Constructor

new EventAnalytics()

Source:

Extends

Members

url

Source:
Overrides:

Gets the url for fetching

Methods

get() → {ProgressPromise}

Source:
Inherited From:

Gets the running process started

Returns:
Type
ProgressPromise

getDependecyFetchResults() → {ProgressPromise}

Source:
Inherited From:

Get Dependency results

Returns:
Type
ProgressPromise

getSanitizedAnalyticsMetadata(analyticMetadata, version) → {Object}

Source:
Inherited From:

Standardizes the analytics metadata object

Parameters:
Name Type Description
analyticMetadata Object

The analytics metadata object

version Number

The version of dhis analytics structure to use

Returns:
  • Object with the analytics metadata
Type
Object

setData(dx) → {Analytics}

Source:
Inherited From:

Sets the data for the fetch

Parameters:
Name Type Description
dx string

The id of the data to get

Returns:
  • Object with the analytics interaction properties
Type
Analytics

setDimension(dim, value) → {Analytics}

Source:
Inherited From:

Sets the dimension for the fetching of the analytics

Parameters:
Name Type Description
dim string

Dynamic Dimension identifier

value string

Dynamic dimension options identifiers

Returns:

Object with the analytics interaction properties

Type
Analytics

setOrgUnit(ou) → {Analytics}

Source:
Inherited From:

Sets the organisation unit for the fetching of the analytics

Parameters:
Name Type Description
ou string

Organisation unit

Returns:

Object with the analytics interaction properties

Type
Analytics

setParameters(parameters) → {Fetcher}

Source:
Inherited From:

Set paremeters

Parameters:
Name Type Description
parameters Object

The parameters to be passed to the url

Returns:
  • Object of the fetcher
Type
Fetcher

setPeriod(pe) → {Analytics}

Source:
Inherited From:

Sets the period for the fetch

Parameters:
Name Type Description
pe string

The id of the period to get data from

Returns:

Object with the analytics interaction properties

Type
Analytics

setProgram(program) → {EventAnalytics}

Source:

Sets the Program for the fetch

Parameters:
Name Type Description
program string

The id of the program

Returns:
  • Object with the event analytics
Type
EventAnalytics

setSelections(parameters) → {Analytics}

Source:
Inherited From:

Sets the data,period and organisation unit from function input parameters object for the fetching of the analytics

Parameters:
Name Type Description
parameters string

Rule parameters

Returns:

Object with the analytics interaction properties

Type
Analytics

standardizeAnalytics(analyticsObject, version) → {AnalyticsResult}

Source:
Inherited From:

Standardizes the analytics object

Parameters:
Name Type Default Description
analyticsObject Object

The analytics object

version Number 25

The version of dhis analytics structure to use

Returns:
  • Object with the analytics results
Type
AnalyticsResult