> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tenderly.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Alerting के लिए Webhooks का उपयोग कैसे करें

> अपना पहला webhook बनाना और alerting events प्राप्त करना शुरू करना सीखें।

एक alerting service से events प्राप्त करने के लिए alert destination के रूप में webhook बनाने पर इस गाइड में आपका स्वागत है। इस गाइड में, आप सीखेंगे कि webhook को कैसे सेट अप करें और इसका execution देखें।

### alert destination के रूप में webhook जोड़ना

<Note>
  जारी रखने के लिए, [अपने account में log in करें](https://dashboard.tenderly.co/) या यदि आपके पास एक नहीं है तो [एक निःशुल्क account बनाएँ](https://dashboard.tenderly.co/register)।
</Note>

log in करने के बाद, एक नया [Tenderly project](/platform/account/projects/overview) बनाएँ या मौजूदा एक का चयन करें जहाँ आप अपना Webhook बनाना चाहते हैं।

बाईं ओर के मेनू से, **Alerts → Destinations** tab पर जाएँ, जहाँ आपको [सभी उपलब्ध destinations](/monitoring/alerts/destinations/overview) की एक सूची दिखाई देगी।

<Frame caption="Navigating to the Destination section">
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/alerts/how-to-use-webhooks-for-alerting-1.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=5081e986e0f1637eecc285aafacefd4f" alt="Navigating to the Destination section" width="3186" height="1932" data-path="images/alerts/how-to-use-webhooks-for-alerting-1.webp" />
</Frame>

webhook alert destination बनाने के लिए, Webhook कार्ड पर क्लिक करें, जो configuration modal खोलेगा। आपसे निम्न विकल्पों को कॉन्फ़िगर करने के लिए कहा जाएगा:

* **Webhook name** - अद्वितीय होना चाहिए और बाद में बदला नहीं जा सकता
* **Webhook URL** - URL जहाँ आप Tenderly से live events प्राप्त करेंगे
* **Description** - वैकल्पिक parameter, लेकिन आप इसका उपयोग webhook configuration के बारे में अधिक जानकारी प्रदान करने के लिए कर सकते हैं

<Frame caption="Add Webhook Modal">
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/alerts/how-to-use-webhooks-for-alerting-2.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=3327f3664a1f1ec5b9ecbc642c0081fa" alt="Add Webhook Modal" width="1322" height="1210" data-path="images/alerts/how-to-use-webhooks-for-alerting-2.webp" />
</Frame>

यदि आप **Advanced Configuration** link पर क्लिक करते हैं, तो JavaScript, Python, या Go code snippets के साथ एक modal खुलेगा जिसका उपयोग आप अपना custom webhook सेट अप करने के लिए कर सकते हैं।

<Frame caption="Webhook Modal Advanced Configuration Modal">
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/alerts/how-to-use-webhooks-for-alerting-3.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=992dec434e4fd86fdff9c2f61b70a36d" alt="Webhook Modal Advanced Configuration Modal" width="2650" height="1472" data-path="images/alerts/how-to-use-webhooks-for-alerting-3.webp" />
</Frame>

यह परीक्षण करने के लिए कि प्रदान किया गया URL Tenderly से events प्राप्त करने में सक्षम है या नहीं, **Send test webhook** बटन पर क्लिक करें, और पूर्वनिर्धारित test payload आपके endpoint पर भेजा जाएगा।

<Frame caption="Send Test Webhook">
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/alerts/how-to-use-webhooks-for-alerting-4.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=a965f4441f9ae179104989380c43b192" alt="Send Test Webhook" width="916" height="822" data-path="images/alerts/how-to-use-webhooks-for-alerting-4.webp" />
</Frame>

यदि सब कुछ अपेक्षा के अनुसार काम करता है और आपको event प्राप्त हुआ है, तो **Add Webhook** बटन पर क्लिक करें। यह क्रिया **Active Destinations** सूची में नए webhook destination को जोड़ देगी।

<Frame caption="New Webhook is added to the active destinations list">
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/alerts/how-to-use-webhooks-for-alerting-5.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=396c2f24af38b9b0fef4f638e9ab4a09" alt="New Webhook is added to the active destinations list" width="2208" height="570" data-path="images/alerts/how-to-use-webhooks-for-alerting-5.webp" />
</Frame>

दाईं ओर के बटन पर क्लिक करने से Webhook overview पेज खुलेगा। यहाँ आप webhook status, URL, निर्माण तिथि, signing secrets, आदि के बारे में जानकारी पा सकते हैं।

<Frame caption="Webhook Page">
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/alerts/how-to-use-webhooks-for-alerting-6.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=ce7941e7f04bf69c9ecb4c9cd2287f85" alt="Webhook Page" width="3186" height="1932" data-path="images/alerts/how-to-use-webhooks-for-alerting-6.webp" />
</Frame>

आप अपने webhooks पर अन्य actions भी कर सकते हैं, जैसे webhook को enabling/disabling करना, या मौजूदा configuration में परिवर्तन करना।

**Webhook सक्षम/अक्षम करें:** एक webhook की स्थिति को active और inactive के बीच toggle करें।

**Webhook हटाएँ**: अपने Tenderly project से एक webhook हटाएँ। webhook को delete करना एक स्थायी क्रिया है और इसे पूर्ववत नहीं किया जा सकता।

<Frame caption="Webhook Options">
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/alerts/how-to-use-webhooks-for-alerting-7.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=f5b584ed5ca779c0d021692d1f3129f6" alt="Webhook Options" width="1084" height="402" data-path="images/alerts/how-to-use-webhooks-for-alerting-7.webp" />
</Frame>

**Test Request भेजें:** transaction hash को उसके network के साथ प्रदान करके प्रदान किए गए URL पर test event भेजकर अपने webhook की कार्यक्षमता का परीक्षण करें।

<Frame caption="Test Webhook Modal">
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/alerts/how-to-use-webhooks-for-alerting-8.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=31d30fd1edfa75c3c8da5d280c6db2ef" alt="Test Webhook Modal" width="1312" height="716" data-path="images/alerts/how-to-use-webhooks-for-alerting-8.webp" />
</Frame>

**Webhook Edit करें**: किसी मौजूदा webhook के configuration को modify करें, जैसे URL या description।

<Frame caption="Edit Webhook Modal">
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/alerts/how-to-use-webhooks-for-alerting-9.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=c5993f7e59b7a248710729b610db5332" alt="Edit Webhook Modal" width="1316" height="774" data-path="images/alerts/how-to-use-webhooks-for-alerting-9.webp" />
</Frame>

### Webhook execution history

webhook overview पेज से, Execution History पर क्लिक करें ताकि उस transaction payload को देखा जा सके जो प्रदान किए गए webhook URL पर भेजा गया है और webhook endpoint से response देखा जा सके।

<Frame caption="Manually Triggered Webhook After Clicking on Test Webhook Button">
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/alerts/how-to-use-webhooks-for-alerting-10.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=19e5e4ce268469c2ab898b32ae45fd93" alt="Manually Triggered Webhook After Clicking on Test Webhook Button" width="1042" height="610" data-path="images/alerts/how-to-use-webhooks-for-alerting-10.webp" />
</Frame>

Webhook execution के कई statuses हो सकते हैं:

* **Success:** Webhook सफलतापूर्वक निष्पादित हुआ, और event को निर्दिष्ट URL पर deliver किया गया।
* **Failed**: Webhook किसी error के कारण निष्पादित नहीं हो सका, जैसे connectivity समस्या, URL के साथ समस्या, या कुछ और। यह देखने के लिए कि error का कारण क्या था, response content जाँचें, या हमारे support से संपर्क करें।
* **Pending**: Webhook निष्पादित होने की प्रक्रिया में है और अभी तक पूरा नहीं हुआ है।
* **Retry**: Webhook execution विफल हो गया लेकिन Success या Failed status में बदलने तक 5 से अधिक बार पुनः प्रयास नहीं किया जाएगा।
* **Skipped**: Webhook निष्पादित नहीं किया गया क्योंकि यह disabled था।

<Frame caption="Webhook Execution Page">
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/alerts/how-to-use-webhooks-for-alerting-11.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=b0c46e22e2546272ac16ef5ba3a1d17b" alt="Webhook Execution Page" width="2734" height="1820" data-path="images/alerts/how-to-use-webhooks-for-alerting-11.webp" />
</Frame>

आप विभिन्न filters, जैसे **Filter by Status** और **Select a Date Range** लागू करके पिछले webhook executions भी देख सकते हैं।

<Frame caption="Webhook Execution History Page">
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/alerts/how-to-use-webhooks-for-alerting-12.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=8d0820aced9bbbaf657448b5889b647d" alt="Webhook Execution History Page" width="2600" height="900" data-path="images/alerts/how-to-use-webhooks-for-alerting-12.webp" />
</Frame>

<Frame caption="Select Webhook Status Dropdown">
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/alerts/how-to-use-webhooks-for-alerting-13.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=d713943ca9d54b5367f1fcebb3efb4b1" alt="Select Webhook Status Dropdown" width="372" height="580" data-path="images/alerts/how-to-use-webhooks-for-alerting-13.webp" />
</Frame>

<Frame caption="Select Date Range Dropdown">
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/alerts/how-to-use-webhooks-for-alerting-14.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=2498dc8ea3bf70411a72e17ff33671c3" alt="Select Date Range Dropdown" width="2572" height="1234" data-path="images/alerts/how-to-use-webhooks-for-alerting-14.webp" />
</Frame>

### webhook को Alert से कनेक्ट करना

अपने webhook endpoint को कॉन्फ़िगर करने के साथ, आप इसे अपने किसी भी Alerts में Destination के रूप में जोड़ सकते हैं।

<Info>
  Alert सेट अप करने का तरीका जानने के लिए [इस गाइड का पालन करें](/monitoring/alerts/tutorials/quickstart)।
</Info>

<Frame caption="Adding a Webhook as a Destination to the Alert Rule">
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/alerts/how-to-use-webhooks-for-alerting-15.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=2f3702b3cb1406ef17bd9596e34ed555" alt="Adding a Webhook as a Destination to the Alert Rule" width="3180" height="2022" data-path="images/alerts/how-to-use-webhooks-for-alerting-15.webp" />
</Frame>

जब आप कोई Alert rule बनाते हैं, तो आपको निम्न पेज पर redirect किया जाएगा:

<Frame caption="Alert Rule with a Webhook as a Destination">
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/alerts/how-to-use-webhooks-for-alerting-16.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=93b904f96c99f499a29d1f7d5ad7095c" alt="Alert Rule with a Webhook as a Destination" width="3350" height="2168" data-path="images/alerts/how-to-use-webhooks-for-alerting-16.webp" />
</Frame>

यदि आपका Alert सक्षम है, तो आप अपने webhook endpoint पर events प्राप्त करना शुरू कर देंगे।

<Frame caption="Webhook Execution History Page">
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/alerts/how-to-use-webhooks-for-alerting-17.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=7cb913db45bfbcfaf688ca0634da2169" alt="Webhook Execution History Page" width="3040" height="1962" data-path="images/alerts/how-to-use-webhooks-for-alerting-17.webp" />
</Frame>

इस उदाहरण में, हमने Tenderly webhooks कैसे काम करते हैं इसका परीक्षण करने के लिए एक अस्थायी webhook endpoint बनाने के लिए [https://webhook.site](https://webhook.site/) का उपयोग किया। नीचे payload की एक छवि है जो webhook पर सफलतापूर्वक भेजी गई थी।

<Frame caption="Successful Webhook Executions">
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/alerts/how-to-use-webhooks-for-alerting-18.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=5d0fae3a15e01503b31a57e87efe72a1" alt="Successful Webhook Executions" width="3354" height="1932" data-path="images/alerts/how-to-use-webhooks-for-alerting-18.webp" />
</Frame>
