{"openapi": "3.1.0", "info": {"title": "opsduty", "version": "0.0.1", "description": ""}, "paths": {"/api/v1/heartbeats/states/": {"post": {"operationId": "opsduty_api_v1_heartbeats_create_heartbeat_state", "summary": "Create Heartbeat State", "parameters": [], "responses": {"201": {"description": "Created", "content": {"application/json": {"schema": {"anyOf": [{"$ref": "#/components/schemas/CronHeartbeatStateSchema"}, {"$ref": "#/components/schemas/IntervalHeartbeatStateSchema"}], "title": "Response"}}}}}, "tags": ["heartbeats"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateHeartbeatStateInput"}}}, "required": true}, "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}}, "/api/v1/heartbeats/states/{heartbeat_state_id}/": {"put": {"operationId": "opsduty_api_v1_heartbeats_update_heartbeat_state", "summary": "Update Heartbeat State", "parameters": [{"in": "path", "name": "heartbeat_state_id", "schema": {"title": "Heartbeat State Id", "type": "integer"}, "required": true}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"anyOf": [{"$ref": "#/components/schemas/CronHeartbeatStateSchema"}, {"$ref": "#/components/schemas/IntervalHeartbeatStateSchema"}], "title": "Response"}}}}}, "tags": ["heartbeats"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateHeartbeatStateInput"}}}, "required": true}, "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}, "delete": {"operationId": "opsduty_api_v1_heartbeats_delete_heartbeat_state", "summary": "Delete Heartbeat State", "parameters": [{"in": "path", "name": "heartbeat_state_id", "schema": {"title": "Heartbeat State Id", "type": "integer"}, "required": true}], "responses": {"204": {"description": "No Content"}}, "tags": ["heartbeats"], "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}}, "/api/v1/heartbeats/checkin/{service_id}/{name}/{environment}": {"get": {"operationId": "opsduty_api_v1_heartbeats_healthcheck_environment_checkin", "summary": "Healthcheck Environment Checkin", "parameters": [{"in": "path", "name": "service_id", "schema": {"title": "Service Id", "type": "integer"}, "required": true}, {"in": "path", "name": "name", "schema": {"title": "Name", "type": "string"}, "required": true}, {"in": "path", "name": "environment", "schema": {"title": "Environment", "type": "string"}, "required": true}], "responses": {"200": {"description": "OK"}}, "description": "API to register an healthcheck checkin.\n\nThis is different from the public apis, we can lookuo by name and environment\nif the user is authenticated.", "tags": ["heartbeats"], "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}}, "/api/v1/heartbeats/": {"get": {"operationId": "opsduty_api_v1_heartbeats_list_heartbeats", "summary": "List Heartbeats", "parameters": [{"in": "query", "name": "service", "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Service"}, "required": false}, {"in": "query", "name": "page_size", "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Page Size"}, "required": false}, {"in": "query", "name": "before", "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Before"}, "required": false}, {"in": "query", "name": "after", "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "After"}, "required": false}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PagedHeartbeatSchema"}}}}}, "tags": ["heartbeats"], "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}, "post": {"operationId": "opsduty_api_v1_heartbeats_create_heartbeat", "summary": "Create Heartbeat", "parameters": [], "responses": {"201": {"description": "Created", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HeartbeatSchema"}}}}}, "tags": ["heartbeats"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateHeartbeatInput"}}}, "required": true}, "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}}, "/api/v1/heartbeats/{heartbeat_id}/": {"get": {"operationId": "opsduty_api_v1_heartbeats_retrieve_heartbeat", "summary": "Retrieve Heartbeat", "parameters": [{"in": "path", "name": "heartbeat_id", "schema": {"title": "Heartbeat Id", "type": "integer"}, "required": true}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HeartbeatSchema"}}}}}, "tags": ["heartbeats"], "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}, "put": {"operationId": "opsduty_api_v1_heartbeats_update_heartbeat", "summary": "Update Heartbeat", "parameters": [{"in": "path", "name": "heartbeat_id", "schema": {"title": "Heartbeat Id", "type": "integer"}, "required": true}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HeartbeatSchema"}}}}}, "tags": ["heartbeats"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateHeartbeatInput"}}}, "required": true}, "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}, "delete": {"operationId": "opsduty_api_v1_heartbeats_delete_heartbeat", "summary": "Delete Heartbeat", "parameters": [{"in": "path", "name": "heartbeat_id", "schema": {"title": "Heartbeat Id", "type": "integer"}, "required": true}], "responses": {"204": {"description": "No Content"}}, "tags": ["heartbeats"], "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}}, "/api/v1/incidents/": {"get": {"operationId": "opsduty_api_v1_incidents_list_incidents", "summary": "List Incidents", "parameters": [{"in": "query", "name": "since", "schema": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "title": "Since"}, "required": false}, {"in": "query", "name": "until", "schema": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "title": "Until"}, "required": false}, {"in": "query", "name": "service", "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Service"}, "required": false}, {"in": "query", "name": "page_size", "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Page Size"}, "required": false}, {"in": "query", "name": "before", "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Before"}, "required": false}, {"in": "query", "name": "after", "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "After"}, "required": false}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PagedIncidentGroupSchema"}}}}}, "tags": ["incidents"], "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}}, "/api/v1/incidents/{incident_group_id}/": {"get": {"operationId": "opsduty_api_v1_incidents_retrieve_incident", "summary": "Retrieve Incident", "parameters": [{"in": "path", "name": "incident_group_id", "schema": {"title": "Incident Group Id", "type": "integer"}, "required": true}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/IncidentGroupDetailSchema"}}}}}, "tags": ["incidents"], "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}}, "/api/v1/incidents/incident-reference/{incident_reference_id}/": {"get": {"operationId": "opsduty_api_v1_incidents_retrieve_incident_reference", "summary": "Retrieve Incident Reference", "parameters": [{"in": "path", "name": "incident_reference_id", "schema": {"title": "Incident Reference Id", "type": "string"}, "required": true}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/IncidentReferenceSchema"}}}}}, "tags": ["incidents"], "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}}, "/api/v1/incidents/{incident_group_id}/responders/": {"get": {"operationId": "opsduty_api_v1_incidents_list_incident_responders", "summary": "List Incident Responders", "parameters": [{"in": "path", "name": "incident_group_id", "schema": {"title": "Incident Group Id", "type": "integer"}, "required": true}, {"in": "query", "name": "page_size", "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Page Size"}, "required": false}, {"in": "query", "name": "before", "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Before"}, "required": false}, {"in": "query", "name": "after", "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "After"}, "required": false}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PagedIncidentGroupResponderSchema"}}}}}, "tags": ["incidents"], "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}}, "/api/v1/schedules/": {"get": {"operationId": "opsduty_api_v1_schedules_list_services", "summary": "List Services", "parameters": [{"in": "query", "name": "page_size", "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Page Size"}, "required": false}, {"in": "query", "name": "before", "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Before"}, "required": false}, {"in": "query", "name": "after", "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "After"}, "required": false}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PagedScheduleSchema"}}}}}, "tags": ["schedules"], "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}}, "/api/v1/schedules/{schedule_id}/shifts/": {"get": {"operationId": "opsduty_api_v1_schedules_list_schedule_shifts", "summary": "List Schedule Shifts", "parameters": [{"in": "path", "name": "schedule_id", "schema": {"title": "Schedule Id", "type": "integer"}, "required": true}, {"in": "query", "name": "datetime_start", "schema": {"format": "date-time", "title": "Datetime Start", "type": "string"}, "required": true}, {"in": "query", "name": "datetime_end", "schema": {"format": "date-time", "title": "Datetime End", "type": "string"}, "required": true}, {"in": "query", "name": "overflow", "schema": {"default": true, "title": "Overflow", "type": "boolean"}, "required": false}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"items": {"$ref": "#/components/schemas/ScheduleShiftSchema"}, "title": "Response", "type": "array"}}}}}, "tags": ["schedules"], "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}}, "/api/v1/schedules/{schedule_id}/overrides/": {"get": {"operationId": "opsduty_api_v1_schedules_list_schedule_overrides", "summary": "List Schedule Overrides", "parameters": [{"in": "path", "name": "schedule_id", "schema": {"title": "Schedule Id", "type": "integer"}, "required": true}, {"in": "query", "name": "since", "schema": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "title": "Since"}, "required": false}, {"in": "query", "name": "until", "schema": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "title": "Until"}, "required": false}, {"in": "query", "name": "page_size", "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Page Size"}, "required": false}, {"in": "query", "name": "before", "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Before"}, "required": false}, {"in": "query", "name": "after", "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "After"}, "required": false}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PagedScheduleOverrideSchema"}}}}}, "tags": ["schedules"], "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}, "post": {"operationId": "opsduty_api_v1_schedules_create_schedule_override", "summary": "Create Schedule Override", "parameters": [{"in": "path", "name": "schedule_id", "schema": {"title": "Schedule Id", "type": "integer"}, "required": true}], "responses": {"201": {"description": "Created", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ScheduleOverrideSchema"}}}}}, "tags": ["schedules"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ScheduleOverrideInputSchema"}}}, "required": true}, "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}}, "/api/v1/schedules/{schedule_id}/overrides/{override_id}/": {"delete": {"operationId": "opsduty_api_v1_schedules_delete_schedule_override", "summary": "Delete Schedule Override", "parameters": [{"in": "path", "name": "schedule_id", "schema": {"title": "Schedule Id", "type": "integer"}, "required": true}, {"in": "path", "name": "override_id", "schema": {"title": "Override Id", "type": "integer"}, "required": true}], "responses": {"204": {"description": "No Content"}}, "tags": ["schedules"], "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}}, "/api/v1/services/": {"get": {"operationId": "opsduty_api_v1_services_list_services", "summary": "List Services", "parameters": [{"in": "query", "name": "page_size", "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Page Size"}, "required": false}, {"in": "query", "name": "before", "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Before"}, "required": false}, {"in": "query", "name": "after", "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "After"}, "required": false}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PagedServiceSchema"}}}}}, "tags": ["services"], "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}}, "/api/v1/services/{service_id}/oncall/": {"get": {"operationId": "opsduty_api_v1_services_list_service_oncall", "summary": "List Service Oncall", "parameters": [{"in": "path", "name": "service_id", "schema": {"title": "Service Id", "type": "integer"}, "required": true}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"items": {"$ref": "#/components/schemas/ServiceOncallUserSchema"}, "title": "Response", "type": "array"}}}}}, "tags": ["services"], "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}}, "/api/v1/users/": {"get": {"operationId": "opsduty_api_v1_users_list_users", "summary": "List Users", "parameters": [{"in": "query", "name": "page_size", "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Page Size"}, "required": false}, {"in": "query", "name": "before", "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Before"}, "required": false}, {"in": "query", "name": "after", "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "After"}, "required": false}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PagedUserSchema"}}}}}, "tags": ["users"], "security": [{"AccessTokenAuth": []}, {"SessionAuth": []}]}}}, "components": {"schemas": {"CronHeartbeatStateSchema": {"properties": {"type": {"const": "cron", "title": "Type", "type": "string"}, "cron_expression": {"title": "Cron Expression", "type": "string"}, "cron_timezone": {"title": "Cron Timezone", "type": "string"}, "id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "ID"}, "environment": {"anyOf": [{"maxLength": 64, "type": "string"}, {"type": "null"}], "title": "Environment"}, "muted": {"default": false, "title": "Muted", "type": "boolean"}, "resolve_incident": {"default": true, "title": "Resolve Incident", "type": "boolean"}, "timeout_seconds": {"default": 0, "title": "Timeout Seconds", "type": "integer"}}, "required": ["type", "cron_expression", "cron_timezone"], "title": "CronHeartbeatStateSchema", "type": "object"}, "IntervalHeartbeatStateSchema": {"properties": {"type": {"const": "interval", "title": "Type", "type": "string"}, "interval_seconds": {"title": "Interval Seconds", "type": "integer"}, "id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "ID"}, "environment": {"anyOf": [{"maxLength": 64, "type": "string"}, {"type": "null"}], "title": "Environment"}, "muted": {"default": false, "title": "Muted", "type": "boolean"}, "resolve_incident": {"default": true, "title": "Resolve Incident", "type": "boolean"}, "timeout_seconds": {"default": 0, "title": "Timeout Seconds", "type": "integer"}}, "required": ["type", "interval_seconds"], "title": "IntervalHeartbeatStateSchema", "type": "object"}, "CreateHeartbeatStateInput": {"properties": {"heartbeat_id": {"title": "Heartbeat Id", "type": "integer"}, "environment": {"title": "Environment", "type": "string"}, "type": {"$ref": "#/components/schemas/HeartbeatType"}, "cron_expression": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Cron Expression"}, "cron_timezone": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Cron Timezone"}, "interval_seconds": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Interval Seconds"}, "timeout_seconds": {"title": "Timeout Seconds", "type": "integer"}, "muted": {"title": "Muted", "type": "boolean"}, "resolve_incident": {"title": "Resolve Incident", "type": "boolean"}}, "required": ["heartbeat_id", "environment", "type", "timeout_seconds", "muted", "resolve_incident"], "title": "CreateHeartbeatStateInput", "type": "object"}, "HeartbeatType": {"enum": ["cron", "interval"], "title": "HeartbeatType", "type": "string"}, "UpdateHeartbeatStateInput": {"properties": {"type": {"$ref": "#/components/schemas/HeartbeatType"}, "cron_expression": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Cron Expression"}, "cron_timezone": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Cron Timezone"}, "interval_seconds": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Interval Seconds"}, "timeout_seconds": {"title": "Timeout Seconds", "type": "integer"}, "muted": {"title": "Muted", "type": "boolean"}, "resolve_incident": {"title": "Resolve Incident", "type": "boolean"}}, "required": ["type", "timeout_seconds", "muted", "resolve_incident"], "title": "UpdateHeartbeatStateInput", "type": "object"}, "HeartBeatFilter": {"properties": {"service": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Service"}}, "title": "HeartBeatFilter", "type": "object"}, "Input": {"properties": {"page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Page Size"}, "before": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Before"}, "after": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "After"}}, "title": "Input", "type": "object"}, "HeartbeatSchema": {"properties": {"states": {"items": {"anyOf": [{"$ref": "#/components/schemas/CronHeartbeatStateSchema"}, {"$ref": "#/components/schemas/IntervalHeartbeatStateSchema"}]}, "title": "States", "type": "array"}, "id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "ID"}, "public_primary_key": {"maxLength": 20, "title": "Public Primary Key", "type": "string"}, "name": {"maxLength": 150, "title": "Name", "type": "string"}, "description": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": "", "title": "Description"}, "link": {"anyOf": [{"maxLength": 500, "type": "string"}, {"type": "null"}], "title": "Link"}, "service": {"title": "Service", "type": "integer"}, "incident_urgency": {"anyOf": [{"maxLength": 32, "type": "string"}, {"type": "null"}], "title": "Incident Urgency"}}, "required": ["states", "name", "service"], "title": "HeartbeatSchema", "type": "object"}, "PageInfo": {"properties": {"has_next_page": {"title": "Has Next Page", "type": "boolean"}, "has_previous_page": {"title": "Has Previous Page", "type": "boolean"}, "start_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Start Cursor"}, "end_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "End Cursor"}}, "required": ["has_next_page", "has_previous_page"], "title": "PageInfo", "type": "object"}, "PagedHeartbeatSchema": {"properties": {"items": {"items": {"$ref": "#/components/schemas/HeartbeatSchema"}, "title": "Items", "type": "array"}, "page_info": {"$ref": "#/components/schemas/PageInfo"}}, "required": ["items", "page_info"], "title": "PagedHeartbeatSchema", "type": "object"}, "CreateHeartbeatInput": {"properties": {"name": {"title": "Name", "type": "string"}, "description": {"title": "Description", "type": "string"}, "link": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Link"}, "service": {"title": "Service", "type": "integer"}, "incident_urgency": {"anyOf": [{"$ref": "#/components/schemas/IncidentUrgency"}, {"type": "null"}]}}, "required": ["name", "description", "service"], "title": "CreateHeartbeatInput", "type": "object"}, "IncidentUrgency": {"enum": ["high", "low"], "title": "IncidentUrgency", "type": "string"}, "UpdateHeartbeatInput": {"properties": {"name": {"title": "Name", "type": "string"}, "description": {"title": "Description", "type": "string"}, "link": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Link"}, "service": {"title": "Service", "type": "integer"}, "incident_urgency": {"anyOf": [{"$ref": "#/components/schemas/IncidentUrgency"}, {"type": "null"}]}}, "required": ["name", "description", "service"], "title": "UpdateHeartbeatInput", "type": "object"}, "IncidentGroupFilter": {"properties": {"since": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "title": "Since"}, "until": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "title": "Until"}, "service": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Service"}}, "title": "IncidentGroupFilter", "type": "object"}, "IncidentGroupSchema": {"properties": {"status": {"$ref": "#/components/schemas/IncidentGroupStatus"}, "service": {"anyOf": [{"$ref": "#/components/schemas/IncidentGroupServiceSchema"}, {"type": "null"}]}, "id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "ID"}, "created_at": {"format": "date-time", "title": "Created At", "type": "string"}, "incident_number": {"default": 0, "title": "Incident Number", "type": "integer"}, "summary": {"anyOf": [{"maxLength": 256, "type": "string"}, {"type": "null"}], "title": "Summary"}, "acknowledged_at": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "title": "Acknowledged At"}, "resolved_at": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "title": "Resolved At"}, "silenced_at": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "title": "Silenced At"}, "last_status_change_at": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "title": "Last Status Change At"}}, "required": ["status", "service", "created_at"], "title": "IncidentGroupSchema", "type": "object"}, "IncidentGroupServiceSchema": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "ID"}, "name": {"maxLength": 255, "title": "Name", "type": "string"}}, "required": ["name"], "title": "IncidentGroupServiceSchema", "type": "object"}, "IncidentGroupStatus": {"enum": ["triggered", "silenced", "acknowledged", "resolved"], "title": "IncidentGroupStatus", "type": "string"}, "PagedIncidentGroupSchema": {"properties": {"items": {"items": {"$ref": "#/components/schemas/IncidentGroupSchema"}, "title": "Items", "type": "array"}, "page_info": {"$ref": "#/components/schemas/PageInfo"}}, "required": ["items", "page_info"], "title": "PagedIncidentGroupSchema", "type": "object"}, "IncidentGroupDetailNoteSchema": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "ID"}, "created_at": {"format": "date-time", "title": "Created At", "type": "string"}, "note": {"title": "Note", "type": "string"}}, "required": ["created_at", "note"], "title": "IncidentGroupDetailNoteSchema", "type": "object"}, "IncidentGroupDetailSchema": {"properties": {"status": {"$ref": "#/components/schemas/IncidentGroupStatus"}, "service": {"anyOf": [{"$ref": "#/components/schemas/IncidentGroupServiceSchema"}, {"type": "null"}]}, "notes": {"items": {"$ref": "#/components/schemas/IncidentGroupDetailNoteSchema"}, "title": "Notes", "type": "array"}, "id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "ID"}, "created_at": {"format": "date-time", "title": "Created At", "type": "string"}, "incident_number": {"default": 0, "title": "Incident Number", "type": "integer"}, "summary": {"anyOf": [{"maxLength": 256, "type": "string"}, {"type": "null"}], "title": "Summary"}, "acknowledged_at": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "title": "Acknowledged At"}, "resolved_at": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "title": "Resolved At"}, "silenced_at": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "title": "Silenced At"}, "last_status_change_at": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "title": "Last Status Change At"}}, "required": ["status", "service", "notes", "created_at"], "title": "IncidentGroupDetailSchema", "type": "object"}, "IncidentReferenceSchema": {"properties": {"status": {"$ref": "#/components/schemas/IncidentReferenceStatus"}, "id": {"anyOf": [{"maxLength": 20, "type": "string"}, {"type": "null"}], "title": "Id"}, "created_at": {"format": "date-time", "title": "Created At", "type": "string"}, "updated_at": {"format": "date-time", "title": "Updated At", "type": "string"}, "reason": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Reason"}, "incident_group": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Incident Group"}}, "required": ["status", "created_at", "updated_at"], "title": "IncidentReferenceSchema", "type": "object"}, "IncidentReferenceStatus": {"description": "The status of an incident reference.", "enum": ["pending", "failed", "stopped", "completed"], "title": "IncidentReferenceStatus", "type": "string"}, "IncidentGroupResponderSchema": {"properties": {"id": {"title": "Id", "type": "integer"}, "last_notified": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "title": "Last Notified"}, "status": {"$ref": "#/components/schemas/ResponderStatus"}, "status_updated_at": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "title": "Status Updated At"}, "user": {"$ref": "#/components/schemas/UserSchema"}}, "required": ["id", "last_notified", "status", "status_updated_at", "user"], "title": "IncidentGroupResponderSchema", "type": "object"}, "PagedIncidentGroupResponderSchema": {"properties": {"items": {"items": {"$ref": "#/components/schemas/IncidentGroupResponderSchema"}, "title": "Items", "type": "array"}, "page_info": {"$ref": "#/components/schemas/PageInfo"}}, "required": ["items", "page_info"], "title": "PagedIncidentGroupResponderSchema", "type": "object"}, "ResponderStatus": {"enum": ["pending", "active"], "title": "ResponderStatus", "type": "string"}, "UserSchema": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "ID"}, "first_name": {"anyOf": [{"maxLength": 75, "type": "string"}, {"type": "null"}], "title": "First Name"}, "last_name": {"anyOf": [{"maxLength": 75, "type": "string"}, {"type": "null"}], "title": "Last Name"}, "email": {"maxLength": 254, "title": "Email", "type": "string"}}, "required": ["email"], "title": "UserSchema", "type": "object"}, "PagedScheduleSchema": {"properties": {"items": {"items": {"$ref": "#/components/schemas/ScheduleSchema"}, "title": "Items", "type": "array"}, "page_info": {"$ref": "#/components/schemas/PageInfo"}}, "required": ["items", "page_info"], "title": "PagedScheduleSchema", "type": "object"}, "ScheduleSchema": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "ID"}, "name": {"maxLength": 255, "title": "Name", "type": "string"}, "description": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Description"}}, "required": ["name"], "title": "ScheduleSchema", "type": "object"}, "ScheduleShiftSchema": {"properties": {"start": {"format": "date-time", "title": "Start", "type": "string"}, "end": {"format": "date-time", "title": "End", "type": "string"}, "users": {"items": {"$ref": "#/components/schemas/ScheduleShiftUserSchema"}, "title": "Users", "type": "array"}}, "required": ["start", "end", "users"], "title": "ScheduleShiftSchema", "type": "object"}, "ScheduleShiftUserSchema": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "ID"}, "first_name": {"anyOf": [{"maxLength": 75, "type": "string"}, {"type": "null"}], "title": "First Name"}, "last_name": {"anyOf": [{"maxLength": 75, "type": "string"}, {"type": "null"}], "title": "Last Name"}, "email": {"maxLength": 254, "title": "Email", "type": "string"}}, "required": ["email"], "title": "ScheduleShiftUserSchema", "type": "object"}, "ScheduleOverrideFilter": {"properties": {"since": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "title": "Since"}, "until": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "title": "Until"}}, "title": "ScheduleOverrideFilter", "type": "object"}, "PagedScheduleOverrideSchema": {"properties": {"items": {"items": {"$ref": "#/components/schemas/ScheduleOverrideSchema"}, "title": "Items", "type": "array"}, "page_info": {"$ref": "#/components/schemas/PageInfo"}}, "required": ["items", "page_info"], "title": "PagedScheduleOverrideSchema", "type": "object"}, "ScheduleOverrideSchema": {"properties": {"user": {"$ref": "#/components/schemas/ScheduleOverrideUserSchema"}, "id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "ID"}, "start": {"format": "date-time", "title": "Start", "type": "string"}, "end": {"format": "date-time", "title": "End", "type": "string"}}, "required": ["user", "start", "end"], "title": "ScheduleOverrideSchema", "type": "object"}, "ScheduleOverrideUserSchema": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "ID"}, "first_name": {"anyOf": [{"maxLength": 75, "type": "string"}, {"type": "null"}], "title": "First Name"}, "last_name": {"anyOf": [{"maxLength": 75, "type": "string"}, {"type": "null"}], "title": "Last Name"}}, "title": "ScheduleOverrideUserSchema", "type": "object"}, "ScheduleOverrideInputSchema": {"properties": {"user_id": {"title": "User", "type": "integer"}, "start": {"format": "date-time", "title": "Start", "type": "string"}, "end": {"format": "date-time", "title": "End", "type": "string"}}, "required": ["user_id", "start", "end"], "title": "ScheduleOverrideInputSchema", "type": "object"}, "PagedServiceSchema": {"properties": {"items": {"items": {"$ref": "#/components/schemas/ServiceSchema"}, "title": "Items", "type": "array"}, "page_info": {"$ref": "#/components/schemas/PageInfo"}}, "required": ["items", "page_info"], "title": "PagedServiceSchema", "type": "object"}, "ServiceSchema": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "ID"}, "name": {"maxLength": 255, "title": "Name", "type": "string"}, "description": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Description"}, "service_type": {"default": "technical", "maxLength": 24, "title": "Service Type", "type": "string"}, "routing_key": {"maxLength": 36, "title": "Routing Key", "type": "string"}}, "required": ["name"], "title": "ServiceSchema", "type": "object"}, "ServiceOncallUserSchema": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "ID"}, "first_name": {"anyOf": [{"maxLength": 75, "type": "string"}, {"type": "null"}], "title": "First Name"}, "last_name": {"anyOf": [{"maxLength": 75, "type": "string"}, {"type": "null"}], "title": "Last Name"}, "email": {"maxLength": 254, "title": "Email", "type": "string"}}, "required": ["email"], "title": "ServiceOncallUserSchema", "type": "object"}, "PagedUserSchema": {"properties": {"items": {"items": {"$ref": "#/components/schemas/UserSchema"}, "title": "Items", "type": "array"}, "page_info": {"$ref": "#/components/schemas/PageInfo"}}, "required": ["items", "page_info"], "title": "PagedUserSchema", "type": "object"}}, "securitySchemes": {"AccessTokenAuth": {"type": "http", "scheme": "bearer"}, "SessionAuth": {"type": "apiKey", "in": "cookie", "name": "sessionid"}}}, "servers": []}