Module: PagerDuty::Client::Vendors
- Included in:
- PagerDuty::Client
- Defined in:
- lib/pager_duty/client/vendors.rb
Overview
Module encompassing interactions with the vendors API endpoint
A PagerDuty vendor represents a specific type of integration.
AWS Cloudwatch, Splunk, Datadog, etc are all examples of vendors that can be integrated in PagerDuty by making an integration.
Vendored integrations (when compared to generic email and API integrations) are automatically configured with the right API or email filtering settings for inbound events from that vendor.
Some vendors also have associated integration guides on the PagerDuty support site.
Instance Method Summary collapse
-
#vendor(id, options = {}) ⇒ Sawyer::Resource
(also: #get_vendor)
Get details about one specific vendor.
-
#vendors(options = {}) ⇒ Array<Sawyer::Resource>
(also: #list_vendors)
List all vendors.
Instance Method Details
#vendor(id, options = {}) ⇒ Sawyer::Resource Also known as: get_vendor
Get details about one specific vendor.
31 32 33 34 |
# File 'lib/pager_duty/client/vendors.rb', line 31 def vendor(id, = {}) response = get "/vendors/#{id}", response[:vendor] end |
#vendors(options = {}) ⇒ Array<Sawyer::Resource> Also known as: list_vendors
List all vendors.
19 20 21 22 |
# File 'lib/pager_duty/client/vendors.rb', line 19 def vendors( = {}) response = get "/vendors", response[:vendors] end |