File

src/app/services/logger.service.ts

Description

Global Service

Index

Methods

Constructor

constructor(http: HttpClient)

Interface with SWIM Recommender System

Parameters :
Name Type Optional Description
http HttpClient No

http client

Methods

LogEvent
LogEvent(level: number, category: number, message: string)

Log an event that has occured on the UI

Parameters :
Name Type Optional Description
level number No

level of importance

category number No

type of event

message string No

description of the event

Returns : any
LogExecution
LogExecution(modelId: string, userScenarioId: string, status: string)

Log into the database that a scenario submission was submitted

Parameters :
Name Type Optional Description
modelId string No

model unique identifier

userScenarioId string No

unique identifier of the submitted scenario

status string No

initial status of the model scenario execution

Returns : any
UpdateExecutionEntry
UpdateExecutionEntry(modelId: string, userScenarioId: string, startTime: string, endTime: string, status: string)

Updates the execution timestamps and status of the scenario entry

Parameters :
Name Type Optional Description
modelId string No
userScenarioId string No
startTime string No

date-time the execution started

endTime string No

date-time the execution finished

status string No

execution status

Returns : any

results matching ""

    No results matching ""