Module: Skykick::Client::Alerts
- Included in:
- Skykick::Client
- Defined in:
- lib/skykick/client/alerts.rb
Overview
Contains all alert-related API calls for managing alerts in Skykick. This module provides methods to retrieve alerts and mark them as complete.
Instance Method Summary collapse
-
#alerts(id) ⇒ Array<Hash>
Retrieves the first 500 alerts for a given Email Migration Order ID or Backup Service ID.
-
#mark_as_complete(id) ⇒ Hash
Marks a specific alert as complete.
Instance Method Details
#alerts(id) ⇒ Array<Hash>
Note:
The ‘$top` query parameter is not explicitly implemented but can be configured on the endpoint.
Retrieves the first 500 alerts for a given Email Migration Order ID or Backup Service ID. This method utilizes OData query parameters like ‘$top`, which defaults to 25 results and allows a maximum of 500 results per call.
19 20 21 22 |
# File 'lib/skykick/client/alerts.rb', line 19 def alerts(id) # Retrieves paged results for alerts using the "Alerts" API endpoint. get_paged("Alerts/#{id}") end |
#mark_as_complete(id) ⇒ Hash
Marks a specific alert as complete.
30 31 32 |
# File 'lib/skykick/client/alerts.rb', line 30 def mark_as_complete(id) post("Alerts/#{id}") end |