def METHOD_NAME(measure_stop_ceph_mon):
    """
    Test that there are appropriate incidents in PagerDuty when ceph monitor
    is unavailable and that these incidents are cleared when the monitor
    is back online.
    """
    api = pagerduty.PagerDutyAPI()
    # get incidents from time when monitor deployment was scaled down
    incidents = measure_stop_ceph_mon.get("pagerduty_incidents")
    # check that incidents CephMonQuorumAtRisk and CephClusterWarningState
    # alert are correctly raised
    for target_label in [
        constants.ALERT_MONQUORUMATRISK,
        constants.ALERT_CLUSTERWARNINGSTATE,
    ]:
        assert pagerduty.check_incident_list(
            summary=target_label,
            incidents=incidents,
            urgency="high",
        )
        # adding 1 extra minute to wait for clearing of the alert
        # CephMonQuorumAtRisk alert takes longer time to be cleared
        time_min = 480
        api.check_incident_cleared(
            summary=target_label,
            measure_end_time=measure_stop_ceph_mon.get("stop"),
            time_min=time_min,
            pagerduty_service_ids=[config.RUN["pagerduty_service_id"]],
        )