@api_key_only_webhook_view
@has_request_variables
def api_pingdom_webhook(request, user_profile, stream=REQ(default='pingdom')):
    payload = ujson.loads(request.body)
    check_type = get_check_type(payload)

    if check_type in SUPPORTED_CHECK_TYPES:
        subject = get_subject_for_http_request(payload)
        body = get_body_for_http_request(payload)
    else:
        return json_error('Unsupported check_type: {check_type}'.format(check_type=check_type))

    check_send_message(user_profile, get_client('ZulipPingdomWebhook'), 'stream', [stream], subject, body)
    return json_success()
dataset/ETHPy150Open zulip/zulip/zerver/views/webhooks/pingdom.py/api_pingdom_webhook/original