def get_metrics_compliant()

in src/python/detectors/mutually_exclusive_calls_found/mutually_exclusive_calls_found.py [0:0]


def get_metrics_compliant() -> None:
    import boto3
    client = boto3.client('cloudwatch', region_name='eu-west-1')
    datapoints = client.get_metric_statistics(
        Namespace='CloudWatchSdkTest',
        MetricName='PythonBotoTestMetric',
        Dimensions=[
            {
                'Name': 'DimensionName',
                'Value': 'DimensionValue'
            },
        ],
        EndTime=datetime.datetime.now(datetime.timezone.utc),
        StartTime=EndTime - datetime.timedelta(days=1),
        Period=300,
        # Compliant: avoid calling mutually exclusive methods.
        ExtendedStatistics=[
            'p99',
            'p100'
        ]
    )