def METHOD_NAME(self):
    session_factory = self.replay_flight_data("filter-alerts")
    p = self.load_policy(
        {
            "name": "test-alerts",
            "resource": "gcp.log-project-metric",
            "filters": [{
                'type': 'value',
                'key': 'name',
                'value': 'test-metric-1'},
                {'type': 'alerts'}],
        },
        session_factory=session_factory,
    )
    resources = p.run()
    self.assertEqual(len(resources), 1)