[{"data":1,"prerenderedAt":29},["ShallowReactive",2],{"snippet-cloudwatch-insight-lambda-cold-start-invocations":3},{"id":4,"title":5,"contributors":6,"description":9,"extension":10,"gitHub":11,"introBox":14,"languages":18,"meta":19,"resources":18,"services":20,"snippets":22,"stem":26,"tags":18,"type":27,"__hash__":28},"snippets\u002Fsnippets\u002Fcloudwatch-insight-lambda-cold-start-invocations.json","Highlight the cold starts in total invocations",[7,8],"content\u002Fcontributors\u002Fdavid-boyne.json","content\u002Fcontributors\u002Fchristopher-osborn.json","Returns the percentage of cold starts in total invocations.","json",{"template":12},{"repoURL":13},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-snippets\u002Ftree\u002Fmain\u002Fcloudwatch-insight-lambda-cold-start-invocations",{"headline":15,"text":16},"How it works",[17],"Cloudwatch Log Insights snippet that returns a report for the percentage of cold starts",null,{},[21],"lambda-event-functions",[23],{"language":24,"code":25},"css","filter @type = \"REPORT\"\n| stats sum(ispresent(@initDuration))\u002Fcount() * 100 as\n  coldStartPct, avg(@duration)\n  by bin(5m)","snippets\u002Fcloudwatch-insight-lambda-cold-start-invocations","CloudWatch Logs Insights","YLeAMKmYcjS-4q_8i3ePOQGQW7SPdpz7LI53hYkHYjM",1792578864137]