Chuyển tới nội dung chính

Incoming Webhook

Sau khi tích hợp Incoming webhook, bạn có thể xem chi tiết bằng cách nhấn Show details. Hệ thống sẽ cung cấp cho bạn:

  • Token
  • URL: URL của incoming webhook, dùng để POST các incident.

Để đẩy một sự cố vào incoming webhook, hãy gửi một POST request tới webhook. Ví dụ sử dụng curl:

curl "https://api-incident-stg.fci.fmon.fptcloud.com/api/v1/create_incident?title=json(report.title)" --request POST --header 'Authorization: a9210eeee765e209c6a81a13e957574e' --header 'Content-Type: application/json' --data '{"report":{"title":"cool that this title comes from the json"}}'