Does anyone know how to get Cloudwatch lambda func...
# help
a
Does anyone know how to get Cloudwatch lambda function metrics through code?
f
Hey @Artemiy Davydov you can get the metrics like this
Copy code
const fn = new sst.Function(...);
fn.metricDuration();
fn.metricErrors();
see the doc here https://docs.aws.amazon.com/cdk/api/v1/docs/@aws-cdk_aws-lambda.Function.html#metricmetricname-props
Let me know if this is what you are looking for.