fabric-testbed / fabric-core-api

Python (Flask) based ReSTful API for FABRIC Core User Services
MIT License
0 stars 0 forks source link

v1.4 - event logging for metrics #11

Closed mjstealey closed 1 year ago

mjstealey commented 2 years ago

FABRIC Metrics Logging

Enable event logging that is output to a file as defined in section 3.3

Event logging format

Events are logged to a rotating log file defined by the metricsLogger logging object. Format outlined below:

Event message   ::= <Datetime> <Preamble> <Identifier> <Event details>
Datetime        ::= <Date and Time in UTC>

Preamble        ::= User event | Project event | Publication event

Identifier      ::= <User> | <Project> | <Publication>
User            ::= usr:<UUID>[:<User email>]
Project         ::= prj:<UUID>
Publication     ::= pub:<UUID>

Event details   ::= <Verb> [ <Attribute name> <Attribute value>] [by <User>]
Verb            ::= create | modify | modify-add | modify-remove | delete
Attribute name  ::= <string>
Attribute value ::= <string> | '<string>'
UUID            ::= <uuid string>

Events are broken into areas related to granular API interactions and are not aggregate in nature

API endpoints


Announcements

People

Projects

Publications

SSH Keys

Testbed Info

mjstealey commented 1 year ago

deployed in v1.4.0 #15