Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List calls:
- Url: /alerts/response/
- Method: GET
- Input Object:
- startTime: int, epoch
- endTime: int, epoch
- Response:
- {
- "data": {
- "alert_responses": [
- {
- "id": 1,
- "datasource_id": 227,
- "source_type": "team_call_button",
- "source_id": 2,
- "acked_by": null,
- "acked_at": null,
- "resolved_by": null,
- "resolved_at": null,
- "metadata": {},
- "timed_out": false,
- "created_at": 1579713151,
- "updated_at": 1579713151
- },
- {
- "id": 2,
- "datasource_id": 227,
- "source_type": "team_call_button",
- "source_id": 3,
- "acked_by": 617,
- "acked_at": 1579716792,
- "resolved_by": null,
- "resolved_at": null,
- "metadata": {},
- "timed_out": false,
- "created_at": 1579713216,
- "updated_at": 1579716792
- },
- ]
- }
- }
- Create Call:
- Url: /alerts/response/
- Method: POST
- Input Object:
- {
- "datasource_id": 227,
- "source_type": "team_call_button", // won't change for this
- "source_id": <team_id>,
- "metadata": {} //optional, you should see it used sometimes already
- }
- Response:
- {
- "data": {
- "alert_response": {
- "id": 2,
- "datasource_id": 227,
- "source_type": "team_call_button",
- "source_id": 3,
- "acked_by": 617,
- "acked_at": 1579716792,
- "resolved_by": null,
- "resolved_at": null,
- "metadata": {},
- "timed_out": false,
- "created_at": 1579713216,
- "updated_at": 1579716792
- }
- }
- }
- Resolve Call (update existing):
- Url: /alerts/response/
- Method: POST
- Input Object:
- {
- "id": <alert response id>,
- "action_type": "resolution", // won't change for now
- "user_id": <int, user id>
- }
- Response:
- {
- "data": {
- "alert_response": {
- "id": 2,
- "datasource_id": 227,
- "source_type": "team_call_button",
- "source_id": 3,
- "acked_by": 617,
- "acked_at": 1579716792,
- "resolved_by": null,
- "resolved_at": null,
- "metadata": {},
- "timed_out": false,
- "created_at": 1579713216,
- "updated_at": 1579716792
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement