File

datapoint-selector/datapoint-library.service.ts

Index

Properties
Methods

Constructor

constructor(inventory: InventoryService, appState: AppStateService, measurements: MeasurementService, color: ColorService)
Parameters :
Name Type Optional
inventory InventoryService No
appState AppStateService No
measurements MeasurementService No
color ColorService No

Methods

Protected Async assignColorToDatapoints
assignColorToDatapoints(datapoints: KPIDetails[])
Parameters :
Name Type Optional
datapoints KPIDetails[] No
Returns : Promise<void>
Protected Async combineFragmentSeriesTuplesWithDetails
combineFragmentSeriesTuplesWithDetails(tuples: Array, target: IIdentified, kpis: ManagedObjectKPI[])
Parameters :
Name Type Optional
tuples Array<literal type> No
target IIdentified No
kpis ManagedObjectKPI[] No
Returns : unknown
Protected Async getAllDatapointLibraryEntries
getAllDatapointLibraryEntries()
Async getAllDatapointLibraryEntriesCached
getAllDatapointLibraryEntriesCached(forceCacheRenew)
Parameters :
Name Optional Default value
forceCacheRenew No false
Async getAllDatapointLibraryItemsCached
getAllDatapointLibraryItemsCached()
Protected Async getCurrentTemplatesFromDatapoints
getCurrentTemplatesFromDatapoints(datapoints: KPIDetails[])
Parameters :
Name Type Optional
datapoints KPIDetails[] No
Returns : Promise<IManagedObject[]>
Protected Async getCurrentVersionOfTargetsFromDatapoints
getCurrentVersionOfTargetsFromDatapoints(datapoints: KPIDetails[])
Parameters :
Name Type Optional
datapoints KPIDetails[] No
Returns : Promise<IManagedObject[]>
Async getDatapointsOfAsset
getDatapointsOfAsset(parentReference: IIdentified, ignoreDatapointTemplates?: boolean)
Parameters :
Name Type Optional
parentReference IIdentified No
ignoreDatapointTemplates boolean Yes
Async getFirstDatapointLibraryPage
getFirstDatapointLibraryPage()
Protected Async getMOsByIds
getMOsByIds(ids: Array)
Parameters :
Name Type Optional
ids Array<string | number> No
Returns : Promise<IManagedObject[]>
Async guessUnitOfDatapoint
guessUnitOfDatapoint(fragment: string, series: string, source?: IIdentified)

Requests the last measurement with the given fragment and series to extract it's unit. If the source attribute is provided, it will check the last measurement for this specific source.

Parameters :
Name Type Optional
fragment string No
series string No
source IIdentified Yes
Returns : Promise<string>

found unit or an empty string instead

Protected mapDatapointLibraryEntry
mapDatapointLibraryEntry(entry: ManagedObjectKPI)
Parameters :
Name Type Optional
entry ManagedObjectKPI No
Returns : KPIDetails
Async updateDatapoints
updateDatapoints(datapoints: KPIDetails[], skipUpdatingTarget)
Parameters :
Name Type Optional Default value
datapoints KPIDetails[] No
skipUpdatingTarget No false

Properties

Protected cache
Type : Promise<ManagedObjectKPI[]>

results matching ""

    No results matching ""