2.2.6 • Published 8 years ago

@getlazy/engine-pipeline v2.2.6

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

lazy-engine-pipeline-runner

Runs tasks through engine pipelines

Metrics

On each run pipeline objects may emit multiple metrics events. Each such event emits an array of metric objects.

Each metric object consists of:

PropertyTypeRequiredDescription
timestampnumberyesTimestamp of the moment the metric was measured.
categorystringyesThe category of the metric, for example file-analysis.
actionstringyesThe action of the metric, for example warning-ignored.
valuenumbernoValue of the metric. Unless specified it's assumed to be 1 as in single occurrence.

There can be any number of other properties and all of them will be included in the stored metric as they are. Notice however that lazy will overwrite them if their property names match built-in properties (see below)

lazy will add the following built-in properties to each metric before storing it:

PropertyTypeAlwaysDescription
engineIdstringyesName of the engine as specified in the lazy.yaml.
languagestringyesThe language for which the analysis was performed.
hostPathstringyesThe path on the host of the file which was analyzed.
clientstringyesThe client (e.g. atom) which requested the analysis.
hostnamestringyesThe name of the host from which the analysis was invoked.
repositorystringnoThe origin repository, if available, otherwise upstream, otherwise first remote repository.
branchstringnoThe current repository branch, if available.

Other properties may be added in the future but custom property name is reserved for exclusive engine use and will never be overwritten by lazy. In it you can thus store deeper structures that need to be tracked.