faastjs.costsnapshot.find.md

April 5, 2024 ยท View on GitHub

faastjs > CostSnapshot > find

CostSnapshot.find() method

Find a specific cost metric by name.

Signature:

find(name: string): CostMetric | undefined;

Parameters

Parameter

Type

Description

name

string

**Returns:**

CostMetric | undefined

a CostMetric if found, otherwise undefined.

Contents

  1. 1CostSnapshot.find() method
  2. 2Parameters