1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Hello.
You can now check CloudWatch metrics by setting the response status code to "400" or "500" and making a request to the function URL as shown below.
export const handler = async (event) => {
// TODO implement
const response = {
statusCode: 400,
body: JSON.stringify('Hello from Lambda!'),
};
return response;
};
Contenus pertinents
- demandé il y a un an
- demandé il y a 7 mois
- demandé il y a 6 mois
- Réponse acceptéedemandé il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a un an
Thanks for the prompt answer. Let me clarify a few things:
responseStream.write
your response chunk message. Also, my code below didn't trigger an alarm.[1] Configuring a Lambda function to stream responses https://docs.aws.amazon.com/lambda/latest/dg/configuration-response-streaming.html
PostScript: I tried the code below from doc[2], but it didn't increemnt `Url5xxCount'
[2] https://docs.aws.amazon.com/ja_jp/lambda/latest/dg/response-streaming-tutorial.html