[{"data":1,"prerenderedAt":28},["ShallowReactive",2],{"snippet-cloudwatch-insight-lambda-warm-starts":3},{"id":4,"title":5,"contributors":6,"description":8,"extension":9,"gitHub":10,"introBox":13,"languages":17,"meta":18,"resources":17,"services":19,"snippets":21,"stem":25,"tags":17,"type":26,"__hash__":27},"snippets\u002Fsnippets\u002Fcloudwatch-insight-lambda-warm-starts.json","Measures the warm starts in total invocation",[7],"content\u002Fcontributors\u002Fjulian-wood.json","Returns the percentage of warm starts in total invocations.","json",{"template":11},{"repoURL":12},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-snippets\u002Ftree\u002Fmain\u002Fcloudwatch-insight-lambda-warm-starts",{"headline":14,"text":15},"How it works",[16],"CloudWatch Log Insights snippet that returns a report for the percentage of warm starts",null,{},[20],"lambda-event-functions",[22],{"language":23,"code":24},"css","filter @type = \"REPORT\" and @message not like \u002F(?i)(Init Duration)\u002F\n | stats\n  avg(@duration) as Average,\n  pct(@duration, 99) as NinetyNinth,\n  pct(@duration, 95) as NinetyFifth,\n  pct(@duration, 90) as Ninetieth\nby bin(1m)","snippets\u002Fcloudwatch-insight-lambda-warm-starts","CloudWatch Logs Insights","9vPJkBC34vn7zC06dd1XGDsAqdaMwUp3C0VfhoPvetQ",1792665262915]