1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
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;
};
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
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