1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
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;
};
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