def METHOD_NAME(super_admin_token, view_only_token):
    name = str(uuid.uuid4())
    post_data = {
        'name': name,
        'nickname': name,
        'type': 'gravitational-wave',
        'fixed_location': True,
        'lat': 0.0,
        'lon': 0.0,
    }
    status, data = api('POST', 'mmadetector', data=post_data, token=super_admin_token)
    assert status == 200
    assert data['status'] == 'success'
    detector_id = data['data']['id']
    event_id = str(uuid.uuid4())
    data = {
        'event_id': event_id,
        'latitude': 39.3648333,
        'longitude': -123.2506667,
        'depth': 7380.0,
        'magnitude': 2.93,
        'date': '2020-08-19 02:00:39',
    }
    status, data = api('POST', 'earthquake', data=data, token=super_admin_token)
    assert status == 200
    assert data['status'] == 'success'
    event_id = data["data"]["id"]
    status, data = api(
        'POST',
        f'earthquake/{event_id}/mmadetector/{detector_id}/predictions',
        data=post_data,
        token=super_admin_token,
    )
    assert status == 200
    assert data['status'] == 'success'
    measurement_data = {'rfamp': 1e-5, 'lockloss': 1}
    status, data = api(
        'POST',
        f'earthquake/{event_id}/mmadetector/{detector_id}/measurements',
        token=super_admin_token,
        data=measurement_data,
    )
    assert status == 200
    assert data['status'] == 'success'
    status, data = api('GET', f'earthquake/{event_id}', token=super_admin_token)
    assert status == 200
    data = data["data"]
    predictions = data['predictions']
    assert predictions[0]['p'] == '2020-08-19T03:47:22.163374'
    assert predictions[0]['r2p0'] == '2020-08-19T03:47:22.163374'
    measurements = data['measurements']
    assert np.isclose(measurements[0]['rfamp'], 1e-5)
    assert measurements[0]['lockloss'] == 1
    measurement_data = {'rfamp': 1e-3, 'lockloss': 0}
    status, data = api(
        'PATCH',
        f'earthquake/{event_id}/mmadetector/{detector_id}/measurements',
        token=super_admin_token,
        data=measurement_data,
    )
    assert status == 200
    assert data['status'] == 'success'
    status, data = api('GET', f'earthquake/{event_id}', token=super_admin_token)
    assert status == 200
    data = data["data"]
    measurements = data['measurements']
    assert np.isclose(measurements[0]['rfamp'], 1e-3)
    assert measurements[0]['lockloss'] == 0
    status, data = api(
        'DELETE',
        f'earthquake/{event_id}/mmadetector/{detector_id}/measurements',
        token=super_admin_token,
    )
    assert status == 200
    assert data['status'] == 'success'
    status, data = api('GET', f'earthquake/{event_id}', token=super_admin_token)
    assert status == 200
    data = data["data"]
    measurements = data['measurements']
    assert len(measurements) == 0