faastjs.costanalyzer.result.md

April 5, 2024 ยท View on GitHub

faastjs > CostAnalyzer > Result

CostAnalyzer.Result class

Cost analyzer results for each workload and configuration.

Signature:

class Result<T extends object, A extends string> 

Remarks

The estimates property has the cost estimates for each configuration. See CostAnalyzer.Estimate.

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Result class.

Properties

Property

Modifiers

Type

Description

estimates

readonly

Estimate<A>[]

Cost estimates for each configuration of the workload. See CostAnalyzer.Estimate.

workload

readonly

Required<Workload<T, A>>

The workload analyzed.

Methods

Method

Modifiers

Description

csv()

Comma-separated output of cost analyzer. One line per cost analyzer configuration.