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
.