functions/health_check/health_check.py [25:55]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    client = boto3.client('cloudwatch')

    func_plus_alias = func_name + ":" + alias_name
    now = datetime.utcnow()
    start_time = now - timedelta(minutes=1)

    response = client.get_metric_statistics(
        Namespace='AWS/Lambda',
        MetricName='Errors',
        Dimensions=[
            {
                'Name': 'FunctionName',
                'Value': func_name
            },
            {
                'Name': 'Resource',
                'Value': func_plus_alias
            },
            {
                'Name': 'ExecutedVersion',
                'Value': new_version
            }
        ],
        StartTime=start_time,
        EndTime=now,
        Period=60,
        Statistics=['Sum']
    )
    datapoints = response['Datapoints']
    for datapoint in datapoints:
        if datapoint['Sum'] > 0:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



functions/simple/simple.py [83:113]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	client = boto3.client('cloudwatch')

	func_plus_alias = func_name + ":" + alias_name
	now = datetime.utcnow()
	start_time = now - timedelta(minutes=1)

	response = client.get_metric_statistics(
		Namespace='AWS/Lambda',
		MetricName='Errors',
		Dimensions=[
			{
				'Name': 'FunctionName',
				'Value': func_name
			},
			{
				'Name': 'Resource',
				'Value': func_plus_alias
			},
			{
				'Name': 'ExecutedVersion',
				'Value': new_version
			}
		],
		StartTime=start_time,
		EndTime=now,
		Period=60,
		Statistics=['Sum']
	)
	datapoints = response['Datapoints']
	for datapoint in datapoints:
		if datapoint['Sum'] > 0:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



