Skip to content

Commit

Permalink
Add /webhooks/{webhook_id}/failure-logs (rt.yml)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksej-paschenko committed Nov 26, 2024
1 parent 1feb3d5 commit a645dfa
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions api/rt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,29 @@ paths:
example: { }
'default':
$ref: '#/components/responses/Error'
/webhooks/{webhook_id}/failure-logs:
get:
description: "Get logs of failed attempts to deliver notifications to the webhook"
operationId: getFailureLogs
parameters:
- $ref: '#/components/parameters/tokenQuery'
- $ref: '#/components/parameters/webhookId'
- in: query
name: offset
required: false
schema:
type: integer
default: 0
minimum: 0
responses:
'200':
description: "list of webhooks"
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookLogs'
'default':
$ref: '#/components/responses/Error'
/usage-stats:
get:
operationId: getUsageStats
Expand Down Expand Up @@ -425,6 +448,27 @@ components:
webhooks_failed:
type: integer
format: int64
WebhookLogs:
type: object
required:
- logs
properties:
next_offset:
type: integer
format: int64
logs:
type: array
items:
type: object
required:
- timestamp
- message
properties:
message:
type: string
timestamp:
type: string
format: date-time
WebhookList:
type: object
required:
Expand Down

0 comments on commit a645dfa

Please sign in to comment.