Skip to content

Latest commit

 

History

History
172 lines (84 loc) · 2.35 KB

faastjs.costanalyzer.md

File metadata and controls

172 lines (84 loc) · 2.35 KB
id title hide_title
faastjs.costanalyzer
CostAnalyzer namespace
true

faastjs > CostAnalyzer

CostAnalyzer namespace

Analyze the cost of a workload across many provider configurations.

Signature:

export declare namespace CostAnalyzer 

Classes

Class

Description

Result

Cost analyzer results for each workload and configuration.

Functions

Function

Description

analyze(userWorkload)

Estimate the cost of a workload using multiple configurations and providers.

Interfaces

Interface

Description

Estimate

A cost estimate result for a specific cost analyzer configuration.

Workload

A user-defined cost analyzer workload for CostAnalyzer.analyze().

Example:

Variables

Variable

Description

awsConfigurations

Default AWS cost analyzer configurations include all memory sizes for AWS Lambda.

Type Aliases

Type Alias

Description

Configuration

An input to CostAnalyzer.analyze(), specifying one configuration of faast.js to run against a workload. See AwsOptions.

WorkloadAttribute

User-defined custom metrics for a workload. These are automatically summarized in the output; see CostAnalyzer.Workload.