In [1]:
from platform import python_version

python_version()
Out[1]:
'3.6.9'
In [2]:
import boto3
boto3.__version__
Out[2]:
'1.17.84'
In [3]:
cloudwatch_client = boto3.client('cloudwatch')
In [ ]:
cloudwatch_client.put_metric_data(
    MetricData = [
        {
            'MetricName': 'heartbeat',
            'Unit': 'None',
            'Value': 1,
            'Dimensions': [
                {
                    'Name': 'feature-name',
                    'Value': 'my-feature-1' 
                }
            ]
        }
    ],
    Namespace='my-app-1'
)