Skip to content

Latest commit

 

History

History
59 lines (32 loc) · 1.14 KB

faastjs.faastmodule.stats.md

File metadata and controls

59 lines (32 loc) · 1.14 KB
id title hide_title
faastjs.faastmodule.stats
FaastModule.stats() method
true

faastjs > FaastModule > stats

FaastModule.stats() method

Statistics for a specific function or the entire faast.js module.

Signature:

stats(functionName?: string): FunctionStats;

Parameters

Parameter

Type

Description

functionName

string

(Optional) The name of the function to retrieve statistics for. If the function does not exist or has not been invoked, a new instance of FunctionStats is returned with zero values. If functionName omitted (undefined), then aggregate statistics are returned that summarize all cloud functions within this faast.js module.

**Returns:**

FunctionStats

an snapshot of FunctionStats at a point in time.