class Contentful::Management::WebhookHealth
Resource
class for WebhookHealth
. @see _ www.contentful.com/developers/docs/references/content-management-api/#/reference/webhook-calls/webhook-health
Public Class Methods
Source
# File lib/contentful/management/webhook_health.rb, line 33 def self.all(*) fail 'Not supported' end
Not supported
Source
# File lib/contentful/management/webhook_health.rb, line 43 def self.build_endpoint(endpoint_options) space_id = endpoint_options.fetch(:space_id) webhook_id = endpoint_options.fetch(:webhook_id) "spaces/#{space_id}/webhooks/#{webhook_id}/health" end
@private
Source
# File lib/contentful/management/webhook_health.rb, line 28 def self.create(*) fail 'Not supported' end
Not supported
Source
# File lib/contentful/management/webhook_health.rb, line 38 def self.endpoint 'webhooks' end
@private
Source
# File lib/contentful/management/webhook_health.rb, line 23 def self.find(client, space_id, webhook_id) ClientWebhookHealthMethodsFactory.new(client, space_id).find(webhook_id) end
Gets a webhook’s health details by ID
@param [Contentful::Management::Client] client @param [String] space_id @param [String] webhook_id
@return [Contentful::Management::WebhookHealth]
Public Instance Methods
Source
# File lib/contentful/management/webhook_health.rb, line 51 def destroy fail 'Not supported' end
Not supported
Source
# File lib/contentful/management/webhook_health.rb, line 71 def errors? total != healthy end
Returns wether or not there was an error on the webhook calls on the last 30 days.
Source
# File lib/contentful/management/webhook_health.rb, line 66 def healthy calls['healthy'] end
Returns the amount of healthy calls made by the webhook.
Source
# File lib/contentful/management/webhook_health.rb, line 76 def healthy? total == healthy end
Returns whether or not all the webhook calls on the last 30 days were successful.
Source
# File lib/contentful/management/webhook_health.rb, line 61 def total calls['total'] end
Returns the total calls made by the webhook.
Source
# File lib/contentful/management/webhook_health.rb, line 56 def update(*) fail 'Not supported' end
Not supported