{"openapi":"3.1.0","info":{"title":"AFF Dashboard API","version":"0.1.0"},"paths":{"/api/v1/health":{"get":{"summary":"Liveness","operationId":"liveness_api_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Liveness Api V1 Health Get"}}}}}}},"/api/v1/dashboard/health":{"get":{"summary":"Liveness","operationId":"liveness_api_v1_dashboard_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Liveness Api V1 Dashboard Health Get"}}}}}}},"/api/v1/health/ready":{"get":{"summary":"Readiness","operationId":"readiness_api_v1_health_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Readiness Api V1 Health Ready Get"}}}}}}},"/api/v1/dashboard/health/ready":{"get":{"summary":"Readiness","operationId":"readiness_api_v1_dashboard_health_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Readiness Api V1 Dashboard Health Ready Get"}}}}}}},"/api/v1/incidents":{"post":{"tags":["incidents"],"summary":"Create Incident","description":"Stores the final incident for a situation, with its root cause analysis and blast\nradius, and gives it a number (AFF-INC0000001). One AFF incident per situation: asking\nagain returns the first, unchanged (200, `Idempotent-Replay: true`), so a retry is\nsafe. Needs the `incident.write` role.","operationId":"create_incident_api_v1_incidents_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/incidents/{incident_id}":{"patch":{"tags":["incidents"],"summary":"Update Incident","description":"Changes an AFF incident. Send only what changes, plus the `revision` you last read;\nif it changed since, 409 `revision_conflict`. Status moves open -> in_progress ->\nresolved -> closed (reopen from resolved allowed). `incident.write` may change\nanything; `incident.update` only status, priority, assignment group and resolution\nnotes.","operationId":"update_incident_api_v1_incidents__incident_id__patch","parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Incident Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/incidents":{"get":{"tags":["incidents"],"summary":"List Incidents","description":"Incidents, AFF and ServiceNow, newest first. Each item leaves out the large `rca`\nand `blast_radius` and carries `root_cause_device`, `blast_radius_device_count` and\n`blast_radius_severity` instead. `itsm_incidents` (the number and sys_id of each) are the\nServiceNow incidents related to an AFF incident through its alerts and its situation's.","operationId":"list_incidents_api_v1_dashboard_incidents_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One status, or several separated by commas (open,in_progress)","title":"Status"},"description":"One status, or several separated by commas (open,in_progress)"},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"enum":["P1","P2","P3","P4"],"type":"string"},{"type":"null"}],"title":"Priority"}},{"name":"source_system","in":"query","required":false,"schema":{"anyOf":[{"enum":["aff","servicenow"],"type":"string"},{"type":"null"}],"title":"Source System"}},{"name":"situation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Situation Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Matches the number, the description or a related ServiceNow number","title":"Q"},"description":"Matches the number, the description or a related ServiceNow number"},{"name":"has_itsm","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true: only those with a related ServiceNow incident; false: only without","title":"Has Itsm"},"description":"true: only those with a related ServiceNow incident; false: only without"},{"name":"opened_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opened From"}},{"name":"opened_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opened To"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/incidents/{incident_ref}":{"get":{"tags":["incidents"],"summary":"Get Incident","description":"One incident in full, by id or by number (AFF-INC0000001, or a ServiceNow number).","operationId":"get_incident_api_v1_dashboard_incidents__incident_ref__get","parameters":[{"name":"incident_ref","in":"path","required":true,"schema":{"type":"string","title":"Incident Ref"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/incidents/{incident_ref}/approve":{"post":{"tags":["incidents"],"summary":"Approve Remediation","description":"Approves the recommended remediation steps of an AFF incident, by id or number, exactly as\nthe person read them: send the `revision` you read, and if the incident changed since, 409\n`revision_conflict`. Any signed-in person may; no role is needed. The approval records who and\nwhen (and is audited); nothing is carried out, because AFF only recommends. The same steps are\napproved once (409 `already_approved`); if the analysis is written again with different steps,\nthe approval shows `steps_current: false`.","operationId":"approve_remediation_api_v1_incidents__incident_ref__approve_post","parameters":[{"name":"incident_ref","in":"path","required":true,"schema":{"type":"string","title":"Incident Ref"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/incidents/{incident_ref}/feedback":{"post":{"tags":["incidents"],"summary":"Post Feedback","description":"Posts a note about an AFF incident and its analysis, by id or number. Any signed-in person\nmay; no role is needed. Notes are kept (several per incident, never edited) with who wrote them\nand when. The incident itself is not changed.","operationId":"post_feedback_api_v1_incidents__incident_ref__feedback_post","parameters":[{"name":"incident_ref","in":"path","required":true,"schema":{"type":"string","title":"Incident Ref"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/incidents/{incident_ref}/reviews":{"get":{"tags":["incidents"],"summary":"List Reviews","description":"What people did on an AFF incident page, newest first: approvals of the recommended steps and\nfeedback notes, each with who and when.","operationId":"list_reviews_api_v1_dashboard_incidents__incident_ref__reviews_get","parameters":[{"name":"incident_ref","in":"path","required":true,"schema":{"type":"string","title":"Incident Ref"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["approval","feedback"],"type":"string"},{"type":"null"}],"description":"Omit for both","title":"Kind"},"description":"Omit for both"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/incident-candidates":{"get":{"tags":["incident-candidates"],"summary":"List Incident Candidates","description":"What should become an incident. Every settled situation, labelled by its score, and\nevery lone critical alert that has stayed on its own for the quiet period. Nothing is\ndropped for a low score; a situation a person rejected, one that already has an AFF\nincident, and an alert that already has an incident of any kind are left out.\n\n`route` says what to do: `raise` (a normal incident), `raise_flagged` (an incident marked\nfor a person to check: a lower score, no score, or a storm) or `wait` (not settled yet,\nsee `seconds_to_ready`).","operationId":"list_incident_candidates_api_v1_dashboard_incident_candidates_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"enum":["forming","stable"],"type":"string"},{"type":"null"}],"description":"stable: ready to raise now; forming: not ready yet","title":"State"},"description":"stable: ready to raise now; forming: not ready yet"},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":168,"minimum":1,"description":"Look at the last N hours","default":24,"title":"Hours"},"description":"Look at the last N hours"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentCandidateList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/topology/summary":{"get":{"tags":["topology"],"summary":"Get Topology Summary","description":"Returns total node counts grouped by health status\n(healthy, degraded, critical, monitoring).","operationId":"get_topology_summary_api_v1_dashboard_topology_summary_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopologySummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/topology/fabric-summary":{"get":{"tags":["topology"],"summary":"Get Fabric Topology Summary","description":"Returns fabric device-role counts: controllers, spines, and leaves.","operationId":"get_fabric_topology_summary_api_v1_dashboard_topology_fabric_summary_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FabricTopologySummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/topology/fabric-map":{"get":{"tags":["topology"],"summary":"Get Fabric Topology Map","description":"Returns fabric nodes (controller/spine/leaf) with their details and the\nedges connecting them, for building a live topology map.","operationId":"get_fabric_topology_map_api_v1_dashboard_topology_fabric_map_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FabricTopologyMapResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/topology/fabric-health":{"get":{"tags":["topology"],"summary":"Get Fabric Topology Health","description":"Returns per-node health (from APIC's own fabric/operational state) and\nan overall fabric health rollup.","operationId":"get_fabric_topology_health_api_v1_dashboard_topology_fabric_health_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FabricHealthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/topology/nodes":{"get":{"tags":["topology"],"summary":"List Topology Nodes","description":"Returns filtered list of active topology nodes.","operationId":"list_topology_nodes_api_v1_dashboard_topology_nodes_get","parameters":[{"name":"health_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by health status (healthy, degraded, critical)","title":"Health Status"},"description":"Filter by health status (healthy, degraded, critical)"},{"name":"node_category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by category (endpoint, access, wan, security, cloud, voice)","title":"Node Category"},"description":"Filter by category (endpoint, access, wan, security, cloud, voice)"},{"name":"site_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by site ID","title":"Site Id"},"description":"Filter by site ID"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TopologyNodeRecord"},"title":"Response List Topology Nodes Api V1 Dashboard Topology Nodes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/topology/edges":{"get":{"tags":["topology"],"summary":"List Topology Edges","description":"Returns network connections and dependencies between topology nodes.","operationId":"list_topology_edges_api_v1_dashboard_topology_edges_get","parameters":[{"name":"relationship_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by relationship (uplink, contains, depends_on, peers_with)","title":"Relationship Type"},"description":"Filter by relationship (uplink, contains, depends_on, peers_with)"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TopologyEdgeRecord"},"title":"Response List Topology Edges Api V1 Dashboard Topology Edges Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/topology/alerts":{"get":{"tags":["topology"],"summary":"Get Topology Active Alerts","description":"Returns active incidents pinned to specific topology nodes on the map.","operationId":"get_topology_active_alerts_api_v1_dashboard_topology_alerts_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TopologyAlertItem"},"title":"Response Get Topology Active Alerts Api V1 Dashboard Topology Alerts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/topology/nodes/{node_id}":{"get":{"tags":["topology"],"summary":"Get Node Detail","description":"Returns detailed node metadata, associated site info, real-time metrics,\nand active incidents.","operationId":"get_node_detail_api_v1_dashboard_topology_nodes__node_id__get","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopologyNodeDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/topology/map":{"get":{"tags":["topology"],"summary":"Get Service Map","description":"Returns the complete composite Service Map payload (Section 2.3) with\n6-layer nodes, edges, summary, and alerts.","operationId":"get_service_map_api_v1_dashboard_topology_map_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceMapResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/topology/devices/{device_id}/health":{"get":{"tags":["topology"],"summary":"Get Device Health","description":"Returns a device's health over a window, from OpsRamp: uptime\npercentages and its down/degraded/paused periods. `device_id` is the\nOpsRamp device `id` (UUID) from aff-triage's /api/v1/opsramp/devices.","operationId":"get_device_health_api_v1_dashboard_topology_devices__device_id__health_get","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Window start (ISO 8601). Defaults to 7 days before end.","title":"Start"},"description":"Window start (ISO 8601). Defaults to 7 days before end."},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Window end (ISO 8601). Defaults to now.","title":"End"},"description":"Window end (ISO 8601). Defaults to now."},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceAvailabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/faults/count":{"get":{"tags":["faults"],"summary":"Get Fault Count","description":"Returns fault counts (total, by status, by severity) from ingested fabric faults.","operationId":"get_fault_count_api_v1_dashboard_faults_count_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaultCountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/faults":{"get":{"tags":["faults"],"summary":"List Faults","description":"Returns the most recent faults with every attribute (including the raw\nAPIC payload), most recent first. Optionally filtered by severity.","operationId":"list_faults_api_v1_dashboard_faults_get","parameters":[{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by one or more severities, e.g. ?severity=critical&severity=warning","title":"Severity"},"description":"Filter by one or more severities, e.g. ?severity=critical&severity=warning"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaultRecord"},"title":"Response List Faults Api V1 Dashboard Faults Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/faults/hourly":{"get":{"tags":["faults"],"summary":"Get Hourly Fault Count","description":"Returns fault counts bucketed by hour, for charting fault volume over time.\n\nPostgres (the alert table) is the source of truth; the result is cached\nin Redis for a short TTL so frequent dashboard polling doesn't re-run the\naggregate query every time.","operationId":"get_hourly_fault_count_api_v1_dashboard_faults_hourly_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":168,"minimum":1,"description":"How many hours back to include","default":24,"title":"Hours"},"description":"How many hours back to include"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HourlyFaultCountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/opsramp/connection-status":{"get":{"tags":["opsramp"],"summary":"Get Opsramp Connection Status","description":"Confirms this service can log in to OpsRamp with its configured\ncredentials (mints a fresh access token). The token is never returned.","operationId":"get_opsramp_connection_status_api_v1_opsramp_connection_status_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Get Opsramp Connection Status Api V1 Opsramp Connection Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/opsramp/devices":{"get":{"tags":["opsramp"],"summary":"List Opsramp Devices","description":"Returns everything OpsRamp monitors (routers, switches, cloud\nresources, synthetic checks), optionally filtered — all of it, or one page\nwhen page_no / page_size is sent.","operationId":"list_opsramp_devices_api_v1_opsramp_devices_get","parameters":[{"name":"page_no","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Omit both for all items","title":"Page No"},"description":"Omit both for all items"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"description":"Omit both for all items","title":"Page Size"},"description":"Omit both for all items"},{"name":"device_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated, e.g. Router,Switch","title":"Device Type"},"description":"Comma-separated, e.g. Router,Switch"},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"active|inactive|discovered|all","title":"State"},"description":"active|inactive|discovered|all"},{"name":"resource_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"DEVICE, AUTO_SCALING, EBS, LOAD_BALANCER, SQL_DATABASE, SQL_SERVER, SYNTHETIC","title":"Resource Type"},"description":"DEVICE, AUTO_SCALING, EBS, LOAD_BALANCER, SQL_DATABASE, SQL_SERVER, SYNTHETIC"},{"name":"host_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host Name"}},{"name":"device_group","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Group"}},{"name":"device_location","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Location"}},{"name":"query_string","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"fieldName:value format","title":"Query String"},"description":"fieldName:value format"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Opsramp Devices Api V1 Opsramp Devices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/opsramp/devices/routers":{"get":{"tags":["opsramp"],"summary":"List Opsramp Routers","description":"Returns OpsRamp devices whose device type is Router — all routers, or\none page when page_no / page_size is sent.","operationId":"list_opsramp_routers_api_v1_opsramp_devices_routers_get","parameters":[{"name":"page_no","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Omit both for all items","title":"Page No"},"description":"Omit both for all items"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"description":"Omit both for all items","title":"Page Size"},"description":"Omit both for all items"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Opsramp Routers Api V1 Opsramp Devices Routers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/opsramp/devices/switches":{"get":{"tags":["opsramp"],"summary":"List Opsramp Switches","description":"Returns OpsRamp devices whose device type is Switch — all switches, or\none page when page_no / page_size is sent.","operationId":"list_opsramp_switches_api_v1_opsramp_devices_switches_get","parameters":[{"name":"page_no","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Omit both for all items","title":"Page No"},"description":"Omit both for all items"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"description":"Omit both for all items","title":"Page Size"},"description":"Omit both for all items"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Opsramp Switches Api V1 Opsramp Devices Switches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/opsramp/devices/{device_id}":{"get":{"tags":["opsramp"],"summary":"Get Opsramp Device","description":"Returns full detail on one device. `device_id` is the `id` (UUID)\nfrom /devices.","operationId":"get_opsramp_device_api_v1_opsramp_devices__device_id__get","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Opsramp Device Api V1 Opsramp Devices  Device Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/opsramp/devices/{device_id}/connections":{"get":{"tags":["opsramp"],"summary":"Get Opsramp Device Connections","description":"Returns what a device is connected to: neighbouring devices (`nodes`)\nand the links between them (`links`, linkType BGP / SUBNET / PHYSICAL).","operationId":"get_opsramp_device_connections_api_v1_opsramp_devices__device_id__connections_get","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"relation","in":"query","required":false,"schema":{"type":"string","description":"NetworkTopology, contains, hosts, manages, connects, memberof, ...","default":"NetworkTopology","title":"Relation"},"description":"NetworkTopology, contains, hosts, manages, connects, memberof, ..."},{"name":"depth","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Hops out from device_id to walk","default":2,"title":"Depth"},"description":"Hops out from device_id to walk"},{"name":"page_no","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Omit both for all items","title":"Page No"},"description":"Omit both for all items"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"description":"Omit both for all items","title":"Page Size"},"description":"Omit both for all items"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Opsramp Device Connections Api V1 Opsramp Devices  Device Id  Connections Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/opsramp/topology":{"get":{"tags":["opsramp"],"summary":"Get Opsramp Network Topology","description":"Returns the whole network as one brief graph — no device id needed:\n`nodes` (id, name, type, managed, ip, ...), `edges` (source, target,\ntype, status, interfaces, BGP/OSPF state, ...) and a `summary` of counts.\nCombines OpsRamp's tenant-wide topology/map/nodes and\ntopology/map/relationships endpoints (all pages); the raw data is reused\nfor OPSRAMP_TOPOLOGY_CACHE_SECONDS whatever filters are asked for.","operationId":"get_opsramp_network_topology_api_v1_opsramp_topology_get","parameters":[{"name":"relation","in":"query","required":false,"schema":{"type":"string","pattern":"^[A-Za-z][A-Za-z ]{0,49}$","description":"NetworkTopology, contains, hosts, impacts, deps, ... or \"all\"","default":"NetworkTopology","title":"Relation"},"description":"NetworkTopology, contains, hosts, impacts, deps, ... or \"all\""},{"name":"link_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_]+(,[A-Za-z0-9_]+)*$"},{"type":"null"}],"description":"Comma-separated, e.g. BGP,PHYSICAL (SUBNET, OSPF, ...)","title":"Link Type"},"description":"Comma-separated, e.g. BGP,PHYSICAL (SUBNET, OSPF, ...)"},{"name":"include_subnets","in":"query","required":false,"schema":{"type":"boolean","description":"true = also add subnets (and SUBNET edges); OpsRamp's /nodes has devices only","default":false,"title":"Include Subnets"},"description":"true = also add subnets (and SUBNET edges); OpsRamp's /nodes has devices only"},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","description":"Fetch fresh from OpsRamp instead of the recent copy","default":false,"title":"Refresh"},"description":"Fetch fresh from OpsRamp instead of the recent copy"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Opsramp Network Topology Api V1 Opsramp Topology Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/opsramp/device-groups":{"get":{"tags":["opsramp"],"summary":"List Opsramp Device Groups","description":"Returns OpsRamp's root-level device groups — all of them, or one page\nwhen page_no / page_size is sent.","operationId":"list_opsramp_device_groups_api_v1_opsramp_device_groups_get","parameters":[{"name":"page_no","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Omit both for all items","title":"Page No"},"description":"Omit both for all items"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"description":"Omit both for all items","title":"Page Size"},"description":"Omit both for all items"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Opsramp Device Groups Api V1 Opsramp Device Groups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/opsramp/alerts":{"get":{"tags":["opsramp"],"summary":"List Opsramp Alerts","description":"Returns current OpsRamp alerts: one page when page_no / page_size is\nsent, otherwise the first _OPSRAMP_MAX_PAGE_SIZE (500) in a single call.\n\nUnlike the other list APIs, alerts are never all fetched at once: 25k+\nlive means ~52 heavy OpsRamp calls (~48 MB, minutes) where any one slow\npage fails the request with a 504. OpsRamp's paging fields (totalResults,\ntotalPages, nextPage) come back as-is, so the rest can still be paged.","operationId":"list_opsramp_alerts_api_v1_opsramp_alerts_get","parameters":[{"name":"page_no","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Omit both for all items","title":"Page No"},"description":"Omit both for all items"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"description":"Omit both for all items","title":"Page Size"},"description":"Omit both for all items"},{"name":"query_string","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"OpsRamp filter syntax, e.g. \"currentState:CRITICAL\"","title":"Query String"},"description":"OpsRamp filter syntax, e.g. \"currentState:CRITICAL\""},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Opsramp Alerts Api V1 Opsramp Alerts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/opsramp/alerts/{alert_id}":{"get":{"tags":["opsramp"],"summary":"Get Opsramp Alert","description":"Returns full detail on one alert. `alert_id` is the `uniqueId` from /alerts.","operationId":"get_opsramp_alert_api_v1_opsramp_alerts__alert_id__get","parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"string","title":"Alert Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Opsramp Alert Api V1 Opsramp Alerts  Alert Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/opsramp/incidents/{incident_number}/alert":{"get":{"tags":["opsramp"],"summary":"Get Opsramp Alert For Incident","description":"Returns the OpsRamp alert behind a ServiceNow incident number\n(e.g. INC0061644037).","operationId":"get_opsramp_alert_for_incident_api_v1_opsramp_incidents__incident_number__alert_get","parameters":[{"name":"incident_number","in":"path","required":true,"schema":{"type":"string","title":"Incident Number"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Opsramp Alert For Incident Api V1 Opsramp Incidents  Incident Number  Alert Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/opsramp/events/{event_id}/alert":{"get":{"tags":["opsramp"],"summary":"Get Opsramp Alert For Event","description":"Returns the OpsRamp alert for an event id (valid for 30 days).\nConfirmed live: OpsRamp only accepts UUID event ids (anything else is an\nupstream 500), so non-UUIDs are rejected here with a 422 instead.","operationId":"get_opsramp_alert_for_event_api_v1_opsramp_events__event_id__alert_get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Opsramp Alert For Event Api V1 Opsramp Events  Event Id  Alert Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/pipeline/status":{"get":{"tags":["pipeline"],"summary":"Get Pipeline Status","description":"Is the alert pipeline alive, and what has it produced?\n\nFabric nodes and topology links are re-sent on a schedule, so how recently\nthey were refreshed proves the whole path (aff-observer, Event Hub,\naff-triage, database) is working even when no alert has fired. Per source,\nthe alert counts and the share already linked to a device show what the\npipeline has produced.","operationId":"get_pipeline_status_api_v1_dashboard_pipeline_status_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/pipeline/funnel":{"get":{"tags":["pipeline"],"summary":"Get Pipeline Funnel","description":"How alerts narrow as they move through the pipeline, per source:\nraw records received -> events sent after de-duplication -> alert rows in\nthe database, then what the correlator evaluated and linked. `standalone` is\nthe alerts it left in no situation and where they stand (waiting for the\nquiet period, an incident of their own, or never one). `incidents` ends the\nfunnel: the AFF incidents made in the window, which are those of situations\nplus those of standalone alerts, so `total = from_situations +\nfrom_standalone_alerts`. `hourly` carries the\nstored counters per hour for drawing a time series.\n\nCounters are written by aff-observer and aff-correlator, so they count from\nthe moment those services started recording; the alert-row numbers come\nstraight from the alert table and cover the whole window.","operationId":"get_pipeline_funnel_api_v1_dashboard_pipeline_funnel_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":168,"minimum":1,"description":"Hourly buckets to cover, current hour included","default":24,"title":"Hours"},"description":"Hourly buckets to cover, current hour included"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineFunnelResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/platform/aks/overview":{"get":{"tags":["platform"],"summary":"Get Aks Overview","description":"Is the cluster healthy? CPU, memory and disk now and over the range, every node's state,\nand the namespace's pods by phase. From the cluster's platform metrics.","operationId":"get_aks_overview_api_v1_dashboard_platform_aks_overview_get","parameters":[{"name":"range","in":"query","required":false,"schema":{"enum":["1h","24h","7d","30d"],"type":"string","description":"How far back: 1h, 24h, 7d or 30d","default":"24h","title":"Range"},"description":"How far back: 1h, 24h, 7d or 30d"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AksOverviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/platform/aks/components":{"get":{"tags":["platform"],"summary":"Get Aks Components","description":"How is each service doing? One entry per deployment in the namespace: replicas, health,\nCPU and memory against their limits, restarts and the image running. From managed\nPrometheus. The range applies to `restarts_in_range`; CPU and memory are the last minutes.","operationId":"get_aks_components_api_v1_dashboard_platform_aks_components_get","parameters":[{"name":"range","in":"query","required":false,"schema":{"enum":["1h","24h","7d","30d"],"type":"string","description":"How far back: 1h, 24h, 7d or 30d","default":"24h","title":"Range"},"description":"How far back: 1h, 24h, 7d or 30d"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AksComponentsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/platform/foundry/usage":{"get":{"tags":["platform"],"summary":"Get Foundry Usage","description":"How much AI is used and what it costs: tokens, requests, errors, latency and Foundry's\nestimated cost, in total, per model deployment and over time.","operationId":"get_foundry_usage_api_v1_dashboard_platform_foundry_usage_get","parameters":[{"name":"range","in":"query","required":false,"schema":{"enum":["1h","24h","7d","30d"],"type":"string","description":"How far back: 1h, 24h, 7d or 30d","default":"24h","title":"Range"},"description":"How far back: 1h, 24h, 7d or 30d"},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$"},{"type":"null"}],"description":"One model deployment (e.g. gpt-6-luna); all of them when left out","title":"Model"},"description":"One model deployment (e.g. gpt-6-luna); all of them when left out"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FoundryUsageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/analytics/time-savings":{"get":{"tags":["analytics"],"summary":"Time Savings","description":"How much engineer time AFF saves at L1, L2 and L3, and how fast incidents resolve (MTTR).\n\nThe volumes (alerts, situations, incidents) are measured over the last `hours`; the minutes a\ntask takes with and without AFF are assumptions with defaults, echoed in the answer and\noverridable as query parameters (a mistyped name is refused). `basis=live` spreads the incident\nfigures over only the days the incident flow ran. Pass `baseline_mttr_minutes` (your average\nbefore AFF) to get the improvement; without one, only the measured MTTR is given.","operationId":"time_savings_api_v1_dashboard_analytics_time_savings_get","parameters":[{"name":"l1_triage_minutes_per_alert","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"L1 reading one new alert and deciding what it is, without AFF","default":1.5,"title":"L1 Triage Minutes Per Alert"},"description":"L1 reading one new alert and deciding what it is, without AFF"},{"name":"l1_review_minutes_per_incident_with_aff","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"With AFF, L1 reads only the incidents it makes","default":1.0,"title":"L1 Review Minutes Per Incident With Aff"},"description":"With AFF, L1 reads only the incidents it makes"},{"name":"l1_ticket_minutes","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"L1 creating and filling in one ticket by hand; AFF writes it","default":8.0,"title":"L1 Ticket Minutes"},"description":"L1 creating and filling in one ticket by hand; AFF writes it"},{"name":"l1_close_minutes","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"L1 closing one incident whose alerts cleared; AFF resolves it","default":2.0,"title":"L1 Close Minutes"},"description":"L1 closing one incident whose alerts cleared; AFF resolves it"},{"name":"l2_group_minutes","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"L2 grouping related alerts into one problem, without AFF","default":12.0,"title":"L2 Group Minutes"},"description":"L2 grouping related alerts into one problem, without AFF"},{"name":"l2_group_minutes_with_aff","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"With AFF, L2 only checks AFF's grouping","default":3.0,"title":"L2 Group Minutes With Aff"},"description":"With AFF, L2 only checks AFF's grouping"},{"name":"l2_diagnose_minutes","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"L2 finding cause, affected devices and checks, without AFF","default":40.0,"title":"L2 Diagnose Minutes"},"description":"L2 finding cause, affected devices and checks, without AFF"},{"name":"l2_diagnose_minutes_with_aff","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"With AFF, L2 reads the analysis and verifies it","default":15.0,"title":"L2 Diagnose Minutes With Aff"},"description":"With AFF, L2 reads the analysis and verifies it"},{"name":"l2_share","in":"query","required":false,"schema":{"type":"number","maximum":1,"minimum":0,"description":"Share of incidents that reach L2","default":0.4,"title":"L2 Share"},"description":"Share of incidents that reach L2"},{"name":"l3_context_minutes","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"L3 rebuilding the context of an escalation, without AFF","default":30.0,"title":"L3 Context Minutes"},"description":"L3 rebuilding the context of an escalation, without AFF"},{"name":"l3_context_minutes_with_aff","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"With AFF, L3 starts from the ready file","default":10.0,"title":"L3 Context Minutes With Aff"},"description":"With AFF, L3 starts from the ready file"},{"name":"l3_share","in":"query","required":false,"schema":{"type":"number","maximum":1,"minimum":0,"description":"Share of incidents that reach L3","default":0.05,"title":"L3 Share"},"description":"Share of incidents that reach L3"},{"name":"conservative_factor","in":"query","required":false,"schema":{"type":"number","maximum":1,"exclusiveMinimum":0,"description":"The conservative case keeps this share of each saving","default":0.5,"title":"Conservative Factor"},"description":"The conservative case keeps this share of each saving"},{"name":"productive_hours_per_fte_month","in":"query","required":false,"schema":{"type":"number","maximum":744,"exclusiveMinimum":0,"description":"Productive hours of one full-time engineer in a month","default":141.0,"title":"Productive Hours Per Fte Month"},"description":"Productive hours of one full-time engineer in a month"},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":720,"minimum":1,"description":"Window: the last N hours","default":168,"title":"Hours"},"description":"Window: the last N hours"},{"name":"basis","in":"query","required":false,"schema":{"enum":["window","live"],"type":"string","description":"window: per-day figures divide by the whole window. live: the incident figures divide only by the days the incident flow was running within it (for a window that starts before the flow went live).","default":"window","title":"Basis"},"description":"window: per-day figures divide by the whole window. live: the incident figures divide only by the days the incident flow was running within it (for a window that starts before the flow went live)."},{"name":"detection_cap_minutes","in":"query","required":false,"schema":{"type":"integer","maximum":43200,"minimum":1,"description":"An incident made more than this long after its first alert is counted apart (`detection_over_cap`): that is catch-up or a problem that grew, not detection speed.","default":120,"title":"Detection Cap Minutes"},"description":"An incident made more than this long after its first alert is counted apart (`detection_over_cap`): that is catch-up or a problem that grew, not detection speed."},{"name":"baseline_mttr_minutes","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"description":"Your average time to resolve before AFF, if you know it: the answer then says how much shorter the measured MTTR is.","title":"Baseline Mttr Minutes"},"description":"Your average time to resolve before AFF, if you know it: the answer then says how much shorter the measured MTTR is."},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSavingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/analytics/time-savings/daily":{"get":{"tags":["analytics"],"summary":"Time Savings Daily","description":"The measured volumes and the estimated engineer time saved, one row per day for the last\n`days` (1-30, today included), plus an overall row. Quiet days are rows of zeros. Meant for\nexport; the assumptions are the same overridable defaults as the time-savings report.","operationId":"time_savings_daily_api_v1_dashboard_analytics_time_savings_daily_get","parameters":[{"name":"l1_triage_minutes_per_alert","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"L1 reading one new alert and deciding what it is, without AFF","default":1.5,"title":"L1 Triage Minutes Per Alert"},"description":"L1 reading one new alert and deciding what it is, without AFF"},{"name":"l1_review_minutes_per_incident_with_aff","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"With AFF, L1 reads only the incidents it makes","default":1.0,"title":"L1 Review Minutes Per Incident With Aff"},"description":"With AFF, L1 reads only the incidents it makes"},{"name":"l1_ticket_minutes","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"L1 creating and filling in one ticket by hand; AFF writes it","default":8.0,"title":"L1 Ticket Minutes"},"description":"L1 creating and filling in one ticket by hand; AFF writes it"},{"name":"l1_close_minutes","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"L1 closing one incident whose alerts cleared; AFF resolves it","default":2.0,"title":"L1 Close Minutes"},"description":"L1 closing one incident whose alerts cleared; AFF resolves it"},{"name":"l2_group_minutes","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"L2 grouping related alerts into one problem, without AFF","default":12.0,"title":"L2 Group Minutes"},"description":"L2 grouping related alerts into one problem, without AFF"},{"name":"l2_group_minutes_with_aff","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"With AFF, L2 only checks AFF's grouping","default":3.0,"title":"L2 Group Minutes With Aff"},"description":"With AFF, L2 only checks AFF's grouping"},{"name":"l2_diagnose_minutes","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"L2 finding cause, affected devices and checks, without AFF","default":40.0,"title":"L2 Diagnose Minutes"},"description":"L2 finding cause, affected devices and checks, without AFF"},{"name":"l2_diagnose_minutes_with_aff","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"With AFF, L2 reads the analysis and verifies it","default":15.0,"title":"L2 Diagnose Minutes With Aff"},"description":"With AFF, L2 reads the analysis and verifies it"},{"name":"l2_share","in":"query","required":false,"schema":{"type":"number","maximum":1,"minimum":0,"description":"Share of incidents that reach L2","default":0.4,"title":"L2 Share"},"description":"Share of incidents that reach L2"},{"name":"l3_context_minutes","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"L3 rebuilding the context of an escalation, without AFF","default":30.0,"title":"L3 Context Minutes"},"description":"L3 rebuilding the context of an escalation, without AFF"},{"name":"l3_context_minutes_with_aff","in":"query","required":false,"schema":{"type":"number","maximum":480,"minimum":0,"description":"With AFF, L3 starts from the ready file","default":10.0,"title":"L3 Context Minutes With Aff"},"description":"With AFF, L3 starts from the ready file"},{"name":"l3_share","in":"query","required":false,"schema":{"type":"number","maximum":1,"minimum":0,"description":"Share of incidents that reach L3","default":0.05,"title":"L3 Share"},"description":"Share of incidents that reach L3"},{"name":"conservative_factor","in":"query","required":false,"schema":{"type":"number","maximum":1,"exclusiveMinimum":0,"description":"The conservative case keeps this share of each saving","default":0.5,"title":"Conservative Factor"},"description":"The conservative case keeps this share of each saving"},{"name":"productive_hours_per_fte_month","in":"query","required":false,"schema":{"type":"number","maximum":744,"exclusiveMinimum":0,"description":"Productive hours of one full-time engineer in a month","default":141.0,"title":"Productive Hours Per Fte Month"},"description":"Productive hours of one full-time engineer in a month"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":30,"minimum":1,"description":"The last N days, today included (UTC calendar days)","default":7,"title":"Days"},"description":"The last N days, today included (UTC calendar days)"},{"name":"detection_cap_minutes","in":"query","required":false,"schema":{"type":"integer","maximum":43200,"minimum":1,"description":"Same as in the time-savings report: an incident made more than this long after its first alert is left out of the average and counted apart.","default":120,"title":"Detection Cap Minutes"},"description":"Same as in the time-savings report: an incident made more than this long after its first alert is left out of the average and counted apart."},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailySeriesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/analytics/change-requests":{"get":{"tags":["analytics"],"summary":"Change Request Analytics","description":"How many change requests were raised each day (by AFF itself or by a person), how long they\ntook from raised to closed, and how much engineer time AFF saved on them.\n\nCounts and times are measured from the change records and their status history; the minutes an\nengineer would spend by hand are assumptions with defaults, echoed in the answer and overridable\nas query parameters (a mistyped name is refused). `days` is 1-30, today included, in UTC.","operationId":"change_request_analytics_api_v1_dashboard_analytics_change_requests_get","parameters":[{"name":"analysing_minutes","in":"query","required":false,"schema":{"type":"number","maximum":2400,"minimum":0,"description":"Reading and understanding the request","default":10,"title":"Analysing Minutes"},"description":"Reading and understanding the request"},{"name":"analysing_minutes_per_device","in":"query","required":false,"schema":{"type":"number","maximum":2400,"minimum":0,"description":"... plus this for each device","default":0,"title":"Analysing Minutes Per Device"},"description":"... plus this for each device"},{"name":"planning_minutes","in":"query","required":false,"schema":{"type":"number","maximum":2400,"minimum":0,"description":"Planning the runbook: steps, parameters, order","default":20,"title":"Planning Minutes"},"description":"Planning the runbook: steps, parameters, order"},{"name":"planning_minutes_per_device","in":"query","required":false,"schema":{"type":"number","maximum":2400,"minimum":0,"description":"... plus this for each device","default":0,"title":"Planning Minutes Per Device"},"description":"... plus this for each device"},{"name":"collecting_evidence_minutes","in":"query","required":false,"schema":{"type":"number","maximum":2400,"minimum":0,"description":"Logging in and reading each device","default":0,"title":"Collecting Evidence Minutes"},"description":"Logging in and reading each device"},{"name":"collecting_evidence_minutes_per_device","in":"query","required":false,"schema":{"type":"number","maximum":2400,"minimum":0,"description":"... plus this for each device","default":5,"title":"Collecting Evidence Minutes Per Device"},"description":"... plus this for each device"},{"name":"validating_minutes","in":"query","required":false,"schema":{"type":"number","maximum":2400,"minimum":0,"description":"Checking the evidence against the change","default":10,"title":"Validating Minutes"},"description":"Checking the evidence against the change"},{"name":"validating_minutes_per_device","in":"query","required":false,"schema":{"type":"number","maximum":2400,"minimum":0,"description":"... plus this for each device","default":2,"title":"Validating Minutes Per Device"},"description":"... plus this for each device"},{"name":"risk_assessing_minutes","in":"query","required":false,"schema":{"type":"number","maximum":2400,"minimum":0,"description":"Rating the risk and preparing the rollback","default":15,"title":"Risk Assessing Minutes"},"description":"Rating the risk and preparing the rollback"},{"name":"risk_assessing_minutes_per_device","in":"query","required":false,"schema":{"type":"number","maximum":2400,"minimum":0,"description":"... plus this for each device","default":0,"title":"Risk Assessing Minutes Per Device"},"description":"... plus this for each device"},{"name":"executing_minutes","in":"query","required":false,"schema":{"type":"number","maximum":2400,"minimum":0,"description":"Making the change","default":10,"title":"Executing Minutes"},"description":"Making the change"},{"name":"executing_minutes_per_device","in":"query","required":false,"schema":{"type":"number","maximum":2400,"minimum":0,"description":"... plus this for each device","default":5,"title":"Executing Minutes Per Device"},"description":"... plus this for each device"},{"name":"post_validating_minutes","in":"query","required":false,"schema":{"type":"number","maximum":2400,"minimum":0,"description":"Checking each device after the change","default":0,"title":"Post Validating Minutes"},"description":"Checking each device after the change"},{"name":"post_validating_minutes_per_device","in":"query","required":false,"schema":{"type":"number","maximum":2400,"minimum":0,"description":"... plus this for each device","default":5,"title":"Post Validating Minutes Per Device"},"description":"... plus this for each device"},{"name":"post_assessing_minutes","in":"query","required":false,"schema":{"type":"number","maximum":2400,"minimum":0,"description":"Writing up the change and closing it","default":10,"title":"Post Assessing Minutes"},"description":"Writing up the change and closing it"},{"name":"post_assessing_minutes_per_device","in":"query","required":false,"schema":{"type":"number","maximum":2400,"minimum":0,"description":"... plus this for each device","default":0,"title":"Post Assessing Minutes Per Device"},"description":"... plus this for each device"},{"name":"conservative_factor","in":"query","required":false,"schema":{"type":"number","maximum":1,"exclusiveMinimum":0,"description":"The conservative case keeps this share of the saving","default":0.5,"title":"Conservative Factor"},"description":"The conservative case keeps this share of the saving"},{"name":"productive_hours_per_fte_month","in":"query","required":false,"schema":{"type":"number","maximum":744,"exclusiveMinimum":0,"description":"Productive hours of one full-time engineer in a month","default":141.0,"title":"Productive Hours Per Fte Month"},"description":"Productive hours of one full-time engineer in a month"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":30,"minimum":1,"description":"The last N days, today included (UTC calendar days)","default":7,"title":"Days"},"description":"The last N days, today included (UTC calendar days)"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeAnalyticsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/analytics/incident-forecast":{"get":{"tags":["analytics"],"summary":"Which issues are likely to come back (made once per IST day)","description":"The forecast for today (IST): the issues likely to come back in the next 7 days and the\nexpected volume, from the complete days before today.\n\nThe numbers are counted from past incidents (no model is trained); the model chose which\npredictions to show and wrote each one's `reason` and `precaution`. It is made by the first\nrequest of the day and then does not change until the next IST midnight. Always 200: see\n`status`.","operationId":"incident_forecast_api_v1_dashboard_analytics_incident_forecast_get","parameters":[{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"An earlier IST day (YYYY-MM-DD): that day's stored forecast, as it was made. Never makes one; 404 when none was.","title":"Date"},"description":"An earlier IST day (YYYY-MM-DD): that day's stored forecast, as it was made. Never makes one; 404 when none was."},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentForecastResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/workflow":{"get":{"tags":["workflow"],"summary":"Get Workflow","description":"The incident workflow: Detect, Classify, Assign (Remediate and Close are not available yet).\n\nDetect counts the incidents detected in the window; Classify how many were placed in a domain\n(DCN or Campus; the rest are Other); Assign how many have a queue and how many are in L1, L2 and\nL3, with their tickets. `detect_to_assign` is the actual time from a problem's first alert to\nits incident being assigned (no target yet). `domains` groups the incidents by the role of the\ndevice they are about, with the spine switches (DCN) and core switches (Campus) flagged.","operationId":"get_workflow_api_v1_dashboard_workflow_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":720,"minimum":1,"description":"Incidents detected in the last N hours","default":168,"title":"Hours"},"description":"Incidents detected in the last N hours"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only these statuses, comma-separated (open,in_progress). Omit for all.","title":"Status"},"description":"Only these statuses, comma-separated (open,in_progress). Omit for all."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Tickets listed per group and per queue","default":25,"title":"Limit"},"description":"Tickets listed per group and per queue"},{"name":"detection_cap_minutes","in":"query","required":false,"schema":{"type":"integer","maximum":43200,"minimum":1,"description":"An incident assigned more than this long after its first alert is counted apart (`over_cap`): that is catch-up or a problem that grew, not speed. The same parameter and default as the analytics API, so the two give the same figures.","default":120,"title":"Detection Cap Minutes"},"description":"An incident assigned more than this long after its first alert is counted apart (`over_cap`): that is catch-up or a problem that grew, not speed. The same parameter and default as the analytics API, so the two give the same figures."},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/workflow/device-domains":{"get":{"tags":["workflow"],"summary":"List Device Domains","description":"The devices given a domain by hand, with what their role alone would have said.","operationId":"list_device_domains_api_v1_dashboard_workflow_device_domains_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainOverrideList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflow/device-domains/{device_key}":{"put":{"tags":["workflow"],"summary":"Set Device Domain","description":"Gives a device a domain by hand (for a device whose role the topology got wrong). It wins\nover the role from then on. Any signed-in person may; it is audited with who did it.","operationId":"set_device_domain_api_v1_workflow_device_domains__device_key__put","parameters":[{"name":"device_key","in":"path","required":true,"schema":{"type":"string","title":"Device Key"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainOverrideIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainOverrideOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workflow"],"summary":"Clear Device Domain","description":"Removes a hand-set domain: the device goes back to its role's domain.","operationId":"clear_device_domain_api_v1_workflow_device_domains__device_key__delete","parameters":[{"name":"device_key","in":"path","required":true,"schema":{"type":"string","title":"Device Key"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/audit/health":{"get":{"tags":["audit"],"summary":"Audit Health","description":"The state of the audit pipeline, for operations.","operationId":"audit_health_api_v1_dashboard_audit_health_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Audit Health Api V1 Dashboard Audit Health Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/changes/pending-approval":{"get":{"tags":["changes"],"summary":"Pending Approval","description":"The approver's queue: the change requests waiting for someone to approve or reject them,\nlongest waiting first. Each item says who raised it, which runbook and devices, how long it has\nwaited, its risk (score and band, set by rules), whether AFF Copilot's briefing is ready, and\nwhether the signed-in person may decide it now (`can_decide`; a change they raised themselves\nis listed but is not theirs to decide, with the reason in `why_not`). `review_path` is the call\nthat shows everything the approver needs. Use `only_decidable=true` for just the ones they may\ndecide, `risk_band` to narrow, `sort=risk` for the riskiest first.","operationId":"pending_approval_api_v1_dashboard_changes_pending_approval_get","parameters":[{"name":"only_decidable","in":"query","required":false,"schema":{"type":"boolean","description":"Only the changes the signed-in person may decide now: not their own, and not blocked by anything else. Default false: all of them, each with `can_decide`.","default":false,"title":"Only Decidable"},"description":"Only the changes the signed-in person may decide now: not their own, and not blocked by anything else. Default false: all of them, each with `can_decide`."},{"name":"risk_band","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"description":"One risk band or several separated by commas: `low`, `medium`, `high`.","title":"Risk Band"},"description":"One risk band or several separated by commas: `low`, `medium`, `high`."},{"name":"requested_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"description":"The requester: their object id, or their email.","title":"Requested By"},"description":"The requester: their object id, or their email."},{"name":"sort","in":"query","required":false,"schema":{"type":"string","pattern":"^(oldest|newest|risk)$","description":"`oldest` waiting first (default), `newest` waiting first, or highest `risk` first (the oldest first among equals).","default":"oldest","title":"Sort"},"description":"`oldest` waiting first (default), `newest` waiting first, or highest `risk` first (the oldest first among equals)."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Page size, 1 to 200.","default":50,"title":"Limit"},"description":"Page size, 1 to 200."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"How many to skip, for the next page.","default":0,"title":"Offset"},"description":"How many to skip, for the next page."},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingList"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"A value is not allowed, or the id is neither a UUID nor a change number.","content":{"application/json":{"example":{"error":"validation_failed","message":"A value is not allowed.","details":[{"field":"target_names","message":"'afflabwan1' is listed twice"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/dashboard/changes/{change_id}/review":{"get":{"tags":["changes"],"summary":"Review Change","description":"What an approver needs on one page: the guardian's assessment (the checks made on the\ndevices, whether a rollback is ready, other changes on the same devices), the history of the\nchange, and whether the signed-in person may decide it now and, if not, why.","operationId":"review_change_api_v1_dashboard_changes__change_id__review_get","parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeReview"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"404":{"description":"There is no such change or runbook.","content":{"application/json":{"example":{"error":"change_not_found","message":"No such change request."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"A value is not allowed, or the id is neither a UUID nor a change number.","content":{"application/json":{"example":{"error":"validation_failed","message":"A value is not allowed.","details":[{"field":"target_names","message":"'afflabwan1' is listed twice"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/dashboard/changes/{change_id}/approve":{"post":{"tags":["changes"],"summary":"Approve Change","description":"Approves a change that is awaiting approval. The approver is the signed-in person: the one\nwho raised it may approve it too (`CHANGE_ALLOW_SELF_APPROVAL`, on by default; when it is off,\nnot the one who raised it), and only once the guardian has assessed it and its checks did not\nfail. The approval holds for the change window (or for an hour when there is none). 409\n`change_not_awaiting_approval` or `change_not_decidable`; 403 `own_change` when self-approval\nis off.","operationId":"approve_change_api_v1_dashboard_changes__change_id__approve_post","parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveIn"},"examples":{"with_comment":{"summary":"Approve with a note","value":{"comment":"Subnet and AS checked against the design; rollback is ready."}},"plain":{"summary":"Approve with no note","value":{}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"You may not do that.","content":{"application/json":{"example":{"error":"own_change","message":"A person may not decide a change they raised themselves.","details":[{"field":"change","message":"a person may not approve their own change"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"404":{"description":"There is no such change or runbook.","content":{"application/json":{"example":{"error":"change_not_found","message":"No such change request."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"409":{"description":"The change is not in a state for this.","content":{"application/json":{"example":{"error":"change_not_awaiting_approval","message":"This change is not awaiting a decision.","details":[{"field":"change","message":"the change is closed, not awaiting approval"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"A value is not allowed, or the id is neither a UUID nor a change number.","content":{"application/json":{"example":{"error":"validation_failed","message":"A value is not allowed.","details":[{"field":"target_names","message":"'afflabwan1' is listed twice"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/dashboard/changes/{change_id}/reject":{"post":{"tags":["changes"],"summary":"Reject Change","description":"Turns down a change that is awaiting approval, with a reason. The person who raised it\ncancels it instead, unless self-approval is allowed (`CHANGE_ALLOW_SELF_APPROVAL`, on by\ndefault). The change becomes `denied`.","operationId":"reject_change_api_v1_dashboard_changes__change_id__reject_post","parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectIn"},"examples":{"wrong_subnet":{"summary":"Turn a change down","value":{"reason":"The subnet is the old one; it was replaced in the design."}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"You may not do that.","content":{"application/json":{"example":{"error":"own_change","message":"A person may not decide a change they raised themselves.","details":[{"field":"change","message":"a person may not approve their own change"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"404":{"description":"There is no such change or runbook.","content":{"application/json":{"example":{"error":"change_not_found","message":"No such change request."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"409":{"description":"The change is not in a state for this.","content":{"application/json":{"example":{"error":"change_not_awaiting_approval","message":"This change is not awaiting a decision.","details":[{"field":"change","message":"the change is closed, not awaiting approval"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"A value is not allowed, or the id is neither a UUID nor a change number.","content":{"application/json":{"example":{"error":"validation_failed","message":"A value is not allowed.","details":[{"field":"target_names","message":"'afflabwan1' is listed twice"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/dashboard/changes/{change_id}/rollback":{"post":{"tags":["changes"],"summary":"Rollback Change","description":"Raises the change that rolls back a change that has closed. `change_id` is the change's id or\nits number (`AFF-CHG0000122`).\n\nEach runbook of the change that changed something is replaced by the rollback runbook its\ndefinition names, with the values it ran with, and the steps run in reverse order. The rollback\nis an ordinary change in the signed-in person's name: the guardian checks it and shows the exact\ncommands, and a person approves it before anything runs. Refused with 409:\n`not_rollbackable` (only a closed change can be rolled back), `already_rolled_back`,\n`nothing_to_roll_back` (it only read), `rollback_not_supported` (a runbook has no rollback, or\nthe rollback can not be filled in: the Azure scale-set undo, for one), `rollback_not_allowed`\n(the rollback runbook is not on the allowed list) or `change_open` (another change is open on\nthe same devices).","operationId":"rollback_change_api_v1_dashboard_changes__change_id__rollback_post","parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RollbackOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"404":{"description":"There is no such change or runbook.","content":{"application/json":{"example":{"error":"change_not_found","message":"No such change request."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"409":{"description":"The change is not in a state for this.","content":{"application/json":{"example":{"error":"change_not_awaiting_approval","message":"This change is not awaiting a decision.","details":[{"field":"change","message":"the change is closed, not awaiting approval"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"A value is not allowed, or the id is neither a UUID nor a change number.","content":{"application/json":{"example":{"error":"validation_failed","message":"A value is not allowed.","details":[{"field":"target_names","message":"'afflabwan1' is listed twice"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/dashboard/capacity-schedules":{"get":{"tags":["capacity schedules"],"summary":"List Schedules","description":"The scheduled capacity profiles (UC-005): for each scale set, how many VMs it should have at\nwhat time of the week, whether a person has approved it as it stands (`approval.state`), whether\nit is switched on, and what each slot did lately (waiting for the CPU to fall, a change raised,\nskipped and why).","operationId":"list_schedules_api_v1_dashboard_capacity_schedules_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleList"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["capacity schedules"],"summary":"Create Schedule","description":"Writes a schedule. It is off and unapproved: nothing acts on it until a person approves it\n(`POST .../approve`) and switches it on (`PATCH .../controls`). A slot below 4 VMs must say\nunder what CPU it may lower the count; a floor below 2 is only for a service that is not\nproduction. 409 `schedule_exists` when the scale set has one already.","operationId":"create_schedule_api_v1_dashboard_capacity_schedules_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"409":{"description":"The change is not in a state for this.","content":{"application/json":{"example":{"error":"change_not_awaiting_approval","message":"This change is not awaiting a decision.","details":[{"field":"change","message":"the change is closed, not awaiting approval"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"A value is not allowed, or the id is neither a UUID nor a change number.","content":{"application/json":{"example":{"error":"validation_failed","message":"A value is not allowed.","details":[{"field":"target_names","message":"'afflabwan1' is listed twice"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/dashboard/capacity-schedules/{schedule_id}":{"get":{"tags":["capacity schedules"],"summary":"Get Schedule","description":"One schedule with its slots and what they did lately.","operationId":"get_schedule_api_v1_dashboard_capacity_schedules__schedule_id__get","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Schedule Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"404":{"description":"There is no such change or runbook.","content":{"application/json":{"example":{"error":"change_not_found","message":"No such change request."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["capacity schedules"],"summary":"Replace Schedule","description":"Writes the schedule again. If it had been approved and now says something different, its\napproval is `stale`: it acts on nothing until a person approves what it says now.","operationId":"replace_schedule_api_v1_dashboard_capacity_schedules__schedule_id__put","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Schedule Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"404":{"description":"There is no such change or runbook.","content":{"application/json":{"example":{"error":"change_not_found","message":"No such change request."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"A value is not allowed, or the id is neither a UUID nor a change number.","content":{"application/json":{"example":{"error":"validation_failed","message":"A value is not allowed.","details":[{"field":"target_names","message":"'afflabwan1' is listed twice"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/dashboard/capacity-schedules/{schedule_id}/drift":{"get":{"tags":["capacity schedules"],"summary":"Get Drift","description":"The episodes of the scale set having more VMs than this schedule asks for, with nothing to\njustify it (UC-028): what each one is doing (`state`), what it cost in VM-hours, the change that\nput the count back, and a summary of them all: how many were fixed, failed, left for a person or\nexplained by demand, the VM-hours avoided and the time from seeing one to raising the change.","operationId":"get_drift_api_v1_dashboard_capacity_schedules__schedule_id__drift_get","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Schedule Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriftList"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"404":{"description":"There is no such change or runbook.","content":{"application/json":{"example":{"error":"change_not_found","message":"No such change request."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/capacity-schedules/{schedule_id}/approve":{"post":{"tags":["capacity schedules"],"summary":"Approve Schedule","description":"Approves the schedule as it stands, in the signed-in person's name. The executor raises the\nchanges its slots call for, and approves them in this person's name, for as long as the schedule\nis unchanged. Needs the change approver role when that is required.","operationId":"approve_schedule_api_v1_dashboard_capacity_schedules__schedule_id__approve_post","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Schedule Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"You may not do that.","content":{"application/json":{"example":{"error":"own_change","message":"A person may not decide a change they raised themselves.","details":[{"field":"change","message":"a person may not approve their own change"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"404":{"description":"There is no such change or runbook.","content":{"application/json":{"example":{"error":"change_not_found","message":"No such change request."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"A value is not allowed, or the id is neither a UUID nor a change number.","content":{"application/json":{"example":{"error":"validation_failed","message":"A value is not allowed.","details":[{"field":"target_names","message":"'afflabwan1' is listed twice"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/dashboard/capacity-schedules/{schedule_id}/controls":{"patch":{"tags":["capacity schedules"],"summary":"Schedule Controls","description":"Switches the schedule on or off (`enabled`), or freezes it until a time (`frozen_until`; null\nlifts it). It can be switched on only while its approval is valid: 409 `not_approved`.","operationId":"schedule_controls_api_v1_dashboard_capacity_schedules__schedule_id__controls_patch","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Schedule Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"404":{"description":"There is no such change or runbook.","content":{"application/json":{"example":{"error":"change_not_found","message":"No such change request."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"409":{"description":"The change is not in a state for this.","content":{"application/json":{"example":{"error":"change_not_awaiting_approval","message":"This change is not awaiting a decision.","details":[{"field":"change","message":"the change is closed, not awaiting approval"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"A value is not allowed, or the id is neither a UUID nor a change number.","content":{"application/json":{"example":{"error":"validation_failed","message":"A value is not allowed.","details":[{"field":"target_names","message":"'afflabwan1' is listed twice"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/dashboard/demo/status":{"get":{"tags":["demo controls"],"summary":"Demo Status","description":"What the demo controls may do now. `enabled` is false when they are switched off. `actions`\nsays, for each button, whether it may be pressed and, when not, why; `load` and `service` say\nwhat is on (load running, a VM whose service is stopped); `busy` is the action that is waiting\nor running; `in_the_way` is what is open on the scale set and keeps a start from being allowed.\nPoll this to draw the buttons.","operationId":"demo_status_api_v1_dashboard_demo_status_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoStatus"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/demo/capacity":{"get":{"tags":["demo controls"],"summary":"Demo Capacity","description":"How many VMs the sandbox scale set has, for the page to show. `vms` is the count to display:\nthe VMs that reported their CPU in the last 6 minutes. The dashboard has no Azure access, so it\nlags a scale action (a new VM takes up to about 5 minutes to appear, a removed one stays for up\nto 6): `settling` says when the number may be about to change and `settling_why` says why,\n`scaling` says what change is on its way (to how many, or by how many), and `scheduled` says\nwhat the capacity schedule asks for now and until when. `state` is `ok`, `settling` or\n`no_reading`: when nothing has read the scale set for 15 minutes (it was removed with the\nbaseline, or the observer is not reading it) there is no count, `vms` and `machines` are empty\nand `settling_why` says for how long. Works whether or not the demo controls are on.","operationId":"demo_capacity_api_v1_dashboard_demo_capacity_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapacityOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/demo/load/start":{"post":{"tags":["demo controls"],"summary":"Start Load","description":"Start the load generator VM and send requests to the sandbox's load balancer for a fixed\ntime (UC-001's demonstration). It takes no input. 202: the request is recorded and the executor\ncarries it out in a minute or two; follow it with `GET .../actions/{id}`.","operationId":"start_load_api_v1_dashboard_demo_load_start_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoActionOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"You may not do that.","content":{"application/json":{"example":{"error":"own_change","message":"A person may not decide a change they raised themselves.","details":[{"field":"change","message":"a person may not approve their own change"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"409":{"description":"The change is not in a state for this.","content":{"application/json":{"example":{"error":"change_not_awaiting_approval","message":"This change is not awaiting a decision.","details":[{"field":"change","message":"the change is closed, not awaiting approval"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/demo/load/stop":{"post":{"tags":["demo controls"],"summary":"Stop Load","description":"Stop the load and deallocate the generator VM. Always allowed (unless another action is\nrunning).","operationId":"stop_load_api_v1_dashboard_demo_load_stop_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoActionOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"You may not do that.","content":{"application/json":{"example":{"error":"own_change","message":"A person may not decide a change they raised themselves.","details":[{"field":"change","message":"a person may not approve their own change"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"409":{"description":"The change is not in a state for this.","content":{"application/json":{"example":{"error":"change_not_awaiting_approval","message":"This change is not awaiting a decision.","details":[{"field":"change","message":"the change is closed, not awaiting approval"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/demo/service/break":{"post":{"tags":["demo controls"],"summary":"Break Service","description":"Stop the web service on one running VM of the sandbox scale set (UC-019's demonstration).\nThe executor chooses the VM, and refuses when fewer than two are running. Its `result` names\nthe VM when it is done.","operationId":"break_service_api_v1_dashboard_demo_service_break_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoActionOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"You may not do that.","content":{"application/json":{"example":{"error":"own_change","message":"A person may not decide a change they raised themselves.","details":[{"field":"change","message":"a person may not approve their own change"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"409":{"description":"The change is not in a state for this.","content":{"application/json":{"example":{"error":"change_not_awaiting_approval","message":"This change is not awaiting a decision.","details":[{"field":"change","message":"the change is closed, not awaiting approval"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/demo/service/restore":{"post":{"tags":["demo controls"],"summary":"Restore Service","description":"Start the web service again on the VM a demo action stopped it on. Refused when no such VM is\non record.","operationId":"restore_service_api_v1_dashboard_demo_service_restore_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoActionOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"You may not do that.","content":{"application/json":{"example":{"error":"own_change","message":"A person may not decide a change they raised themselves.","details":[{"field":"change","message":"a person may not approve their own change"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"409":{"description":"The change is not in a state for this.","content":{"application/json":{"example":{"error":"change_not_awaiting_approval","message":"This change is not awaiting a decision.","details":[{"field":"change","message":"the change is closed, not awaiting approval"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/demo/baseline/remove":{"post":{"tags":["demo controls"],"summary":"Remove Baseline","description":"Remove the whole workload baseline from the sandbox (UC-002's demonstration: the VMs, the\nscale set, the load balancer, the network and the traffic generator), so that it can be built\nagain from nothing. It raises the removal as a change in the change flow, like a person would:\nthe same change a person raises with the runbook `azure-baseline-undo`, with the deployment's\nown values filled in. Nothing is removed until a person other than the requester approves it,\nand it deletes only what that deployment created. Refused when there is no deployment to\nremove, when a baseline change is already open, or when an alert, incident or scale change is\nopen on the scale set. After it, raise the deploy as usual (`azure-baseline-deploy`; its values\nare filled in).","operationId":"remove_baseline_api_v1_dashboard_demo_baseline_remove_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaselineRemovalOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"You may not do that.","content":{"application/json":{"example":{"error":"own_change","message":"A person may not decide a change they raised themselves.","details":[{"field":"change","message":"a person may not approve their own change"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"409":{"description":"The change is not in a state for this.","content":{"application/json":{"example":{"error":"change_not_awaiting_approval","message":"This change is not awaiting a decision.","details":[{"field":"change","message":"the change is closed, not awaiting approval"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/demo/reset":{"post":{"tags":["demo controls"],"summary":"Reset","description":"Stop the load, and put the service back if a demo action stopped it. It does not change the\nnumber of VMs: capacity that nothing justifies is put back to the schedule by UC-028.","operationId":"reset_api_v1_dashboard_demo_reset_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoActionOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"You may not do that.","content":{"application/json":{"example":{"error":"own_change","message":"A person may not decide a change they raised themselves.","details":[{"field":"change","message":"a person may not approve their own change"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"409":{"description":"The change is not in a state for this.","content":{"application/json":{"example":{"error":"change_not_awaiting_approval","message":"This change is not awaiting a decision.","details":[{"field":"change","message":"the change is closed, not awaiting approval"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/demo/actions/{action_id}":{"get":{"tags":["demo controls"],"summary":"Demo Action","description":"One request and how it is going: `requested`, `running`, then `done` or `failed`.","operationId":"demo_action_api_v1_dashboard_demo_actions__action_id__get","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Action Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoActionOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"404":{"description":"There is no such change or runbook.","content":{"application/json":{"example":{"error":"change_not_found","message":"No such change request."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/changes/{change_id}/report":{"get":{"tags":["changes"],"summary":"Change Report","description":"One change, from the request to how it ended, on one page: what was planned (the runbook and\nthe exact commands), the checks made on the devices before approval, who approved it, every run\non the devices with what they answered, the checks after the change, any rollback, and the\noutcome in a sentence. It is built from what is already stored, so it can be read at any point\nin the change's life and says how far it got. Device output is cut to a reasonable length and\nany line that may hold a secret is hidden.","operationId":"change_report_api_v1_dashboard_changes__change_id__report_get","parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeReport"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"404":{"description":"There is no such change or runbook.","content":{"application/json":{"example":{"error":"change_not_found","message":"No such change request."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"A value is not allowed, or the id is neither a UUID nor a change number.","content":{"application/json":{"example":{"error":"validation_failed","message":"A value is not allowed.","details":[{"field":"target_names","message":"'afflabwan1' is listed twice"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/dashboard/runbooks":{"get":{"tags":["runbooks"],"summary":"List Runbooks","description":"What AFF can run: each registered runbook with what it does, whether it only reads, whether\na change using it needs approval, the most devices it may touch, and the parameters it takes\n(name, kind, whether required, and its limits). Use `runbook_code` and these parameters when\nraising a change. Only an `allowed` runbook can actually run.","operationId":"list_runbooks_api_v1_dashboard_runbooks_get","parameters":[{"name":"allowed","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Only runbooks that may run (true)","title":"Allowed"},"description":"Only runbooks that may run (true)"},{"name":"ai_selectable","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Only runbooks the planner may choose (true)","title":"Ai Selectable"},"description":"Only runbooks the planner may choose (true)"},{"name":"use_case","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^UC-\\d{3}$"},{"type":"null"}],"description":"Only the runbooks that serve this use case","title":"Use Case"},"description":"Only the runbooks that serve this use case"},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["change","rollback","evidence","post_check","check"],"type":"string"},{"type":"null"}],"description":"Only runbooks that play this part (change, rollback, ...)","title":"Kind"},"description":"Only runbooks that play this part (change, rollback, ...)"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunbookList"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"A value is not allowed, or the id is neither a UUID nor a change number.","content":{"application/json":{"example":{"error":"validation_failed","message":"A value is not allowed.","details":[{"field":"target_names","message":"'afflabwan1' is listed twice"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/dashboard/runbooks/{code}":{"get":{"tags":["runbooks"],"summary":"Get Runbook","description":"One runbook in full, with the checks it makes before and after a change.","operationId":"get_runbook_api_v1_dashboard_runbooks__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunbookDetail"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"404":{"description":"There is no such runbook.","content":{"application/json":{"example":{"error":"runbook_not_found","message":"No such runbook."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/incident-action-rules":{"get":{"tags":["incident actions"],"summary":"List Incident Action Rules","description":"What an incident may do about itself: for each alert kind and device a person has allowed,\nthe change the incident flow raises (the runbook and its values) and how long it waits after a\nchange that went well. Nothing is acted on that no enabled rule names. Read only: a rule is\nadded or turned on by a person, not here.","operationId":"list_incident_action_rules_api_v1_dashboard_incident_action_rules_get","parameters":[{"name":"enabled","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true: only the rules that are on; false: only those off","title":"Enabled"},"description":"true: only the rules that are on; false: only those off"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentActionRuleList"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"A value is not allowed, or the id is neither a UUID nor a change number.","content":{"application/json":{"example":{"error":"validation_failed","message":"A value is not allowed.","details":[{"field":"target_names","message":"'afflabwan1' is listed twice"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/dashboard/changes":{"post":{"tags":["changes"],"summary":"Create Change","description":"Raises a change request (\"configure eBGP on AFFLABWAN1\"). It is checked and stored with\nstatus `submitted` and approval `pending`; nothing runs it yet. The requester is the signed-in\nperson. A normal change may not be scheduled to start in the past.","operationId":"create_change_api_v1_dashboard_changes_post","parameters":[{"name":"idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}],"description":"Makes a retry safe: the same key and the same body return the change the first request made (200, `Idempotent-Replay: true`) instead of a second one. The same key with a different body is refused (422 `idempotency_key_reused`).","title":"Idempotency-Key"},"description":"Makes a retry safe: the same key and the same body return the change the first request made (200, `Idempotent-Replay: true`) instead of a second one. The same key with a different body is refused (422 `idempotency_key_reused`)."},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeCreate"},"examples":{"health_check":{"summary":"A read-only health check","description":"Reads two show commands from one router and changes nothing.","value":{"change_type":"normal","short_description":"Read-only health check of AFFLABWAN1","description":"Reads the interface table and the BGP summary. Changes nothing.","target_names":["afflabwan1"],"runbook_code":"bgp-health-check"}},"advertise_subnet":{"summary":"Advertise a subnet into BGP","description":"A change that adds a network statement. The runbook takes `bgp_asn` and `subnet`; see GET /api/v1/dashboard/runbooks/advertise-subnet.","value":{"change_type":"normal","short_description":"Advertise new DC subnet for inter-site connectivity","description":"A new subnet at DC Site-A must be reachable from Site-B.","target_names":["afflabwan1"],"runbook_code":"advertise-subnet","parameters":{"bgp_asn":65001,"subnet":"10.20.30.0/24"}}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeOut"}}}},"200":{"description":"The same Idempotency-Key and body were sent before: the change that first request made is returned (header `Idempotent-Replay: true`) and no second change is made.","content":{"application/json":{"example":{"change_id":"6f1c0a52-8a1e-4c55-9d0e-2f5d3c1b7a90","change_number":"AFF-CHG0000002","change_type":"normal","short_description":"Advertise new DC subnet for inter-site connectivity","description":"A new subnet at DC Site-A must be reachable from Site-B.","status":"submitted","approval_state":"pending","target_names":["afflabwan1"],"runbook_code":"advertise-subnet","runbook_codes":["advertise-subnet"],"step_count":0,"parameters":{"bgp_asn":65001,"subnet":"10.20.30.0/24"},"requested_by":{"oid":"3b9e7d10-5c2a-4f6e-9a41-0d8c1e7b2f55","name":"Anna Lee","email":"anna.lee@example.com"},"created_at":"2026-10-27T09:30:00Z","updated_at":"2026-10-27T09:30:00Z","stage":{"number":7,"total":11,"key":"approval","label":"Change Approval","description":"Independent authorisation by a person other than the requester.","state":"waiting","detail":"Waiting for an approver","outcome":"waiting"}}}}},"400":{"description":"The request could not be read (not JSON).","content":{"application/json":{"example":{"error":"bad_request","message":"The request could not be read."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"A value is not allowed, or the id is neither a UUID nor a change number.","content":{"application/json":{"example":{"error":"validation_failed","message":"A value is not allowed.","details":[{"field":"target_names","message":"'afflabwan1' is listed twice"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}},"get":{"tags":["changes"],"summary":"List Changes","description":"Change requests, newest first. `from` and `to` are about when they were raised; a time\nwithout a zone is taken as UTC.","operationId":"list_changes_api_v1_dashboard_changes_get","parameters":[{"name":"number","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"(?i)^AFF-CHG\\d{7}$"},{"type":"null"}],"description":"One change, by its number (AFF-CHG0000001)","title":"Number"},"description":"One change, by its number (AFF-CHG0000001)"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"One status, or several separated by commas","title":"Status"},"description":"One status, or several separated by commas"},{"name":"requested_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"description":"The requester: their object id, or their email","title":"Requested By"},"description":"The requester: their object id, or their email"},{"name":"stage","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Changes that are at one stage now, or several separated by commas: `submitted`, `analysis`, `planning`, `request_check`, `device_check`, `risk`, `assessment`, `approval`, `execution`, `verification`, `closure`. A change that ended off the main line (denied, failed, cancelled, expired, rolled back) is found by its `status`.","title":"Stage"},"description":"Changes that are at one stage now, or several separated by commas: `submitted`, `analysis`, `planning`, `request_check`, `device_check`, `risk`, `assessment`, `approval`, `execution`, `verification`, `closure`. A change that ended off the main line (denied, failed, cancelled, expired, rolled back) is found by its `status`."},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Created at or after","title":"From"},"description":"Created at or after"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Created at or before","title":"To"},"description":"Created at or before"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Page size, 1 to 200.","default":50,"title":"Limit"},"description":"Page size, 1 to 200."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"How many to skip, for the next page.","default":0,"title":"Offset"},"description":"How many to skip, for the next page."},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeList"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"A value is not allowed, or the id is neither a UUID nor a change number.","content":{"application/json":{"example":{"error":"validation_failed","message":"A value is not allowed.","details":[{"field":"target_names","message":"'afflabwan1' is listed twice"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/dashboard/changes/{change_id}":{"put":{"tags":["changes"],"summary":"Edit Change","description":"Edits a change request: send the whole request again, as when raising it. Only the person\nwho raised it may, and only while it has never been approved (whatever its status: a change\ndenied or failed before approval may be edited and raised again). The change keeps its number\nand goes back to `submitted`, to go through every status again; what AFF Copilot and the\nguardian wrote about the old request is cleared (the earlier runs stay in the report). A change\na worker is processing right now is 409 `change_busy`: try again in a moment. Sending what the\nchange already asks for changes nothing.","operationId":"edit_change_api_v1_dashboard_changes__change_id__put","parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeCreate"},"examples":{"health_check":{"summary":"A read-only health check","description":"Reads two show commands from one router and changes nothing.","value":{"change_type":"normal","short_description":"Read-only health check of AFFLABWAN1","description":"Reads the interface table and the BGP summary. Changes nothing.","target_names":["afflabwan1"],"runbook_code":"bgp-health-check"}},"advertise_subnet":{"summary":"Advertise a subnet into BGP","description":"A change that adds a network statement. The runbook takes `bgp_asn` and `subnet`; see GET /api/v1/dashboard/runbooks/advertise-subnet.","value":{"change_type":"normal","short_description":"Advertise new DC subnet for inter-site connectivity","description":"A new subnet at DC Site-A must be reachable from Site-B.","target_names":["afflabwan1"],"runbook_code":"advertise-subnet","parameters":{"bgp_asn":65001,"subnet":"10.20.30.0/24"}}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Only the person who raised the change may edit it.","content":{"application/json":{"example":{"error":"not_requester","message":"Only the person who raised a change request may edit it.","details":[{"field":"change","message":"a person may not approve their own change"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"404":{"description":"There is no such change or runbook.","content":{"application/json":{"example":{"error":"change_not_found","message":"No such change request."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"409":{"description":"The change has been approved, or a worker is processing it right now.","content":{"application/json":{"example":{"error":"change_not_editable","message":"A change request can not be edited once it has been approved; this one is closed.","details":[{"field":"change","message":"the change is closed, not awaiting approval"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"A value is not allowed, or the id is neither a UUID nor a change number.","content":{"application/json":{"example":{"error":"validation_failed","message":"A value is not allowed.","details":[{"field":"target_names","message":"'afflabwan1' is listed twice"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}},"get":{"tags":["changes"],"summary":"Get Change","description":"One change request, by its id (UUID) or its number (AFF-CHG0000001), with everything known\nabout it in one answer: the change record (as in the list), where it is in the eleven stages\nand what each did, what AFF Copilot understood and chose, the plan and the exact commands, the\ndevice reachability, the checks, the risk, the approver's briefing, every run on the devices,\nthe outcome in a sentence and the timeline. `GET .../report` returns the same report without\nthe change record fields.","operationId":"get_change_api_v1_dashboard_changes__change_id__get","parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeDetail"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"404":{"description":"There is no such change or runbook.","content":{"application/json":{"example":{"error":"change_not_found","message":"No such change request."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"A value is not allowed, or the id is neither a UUID nor a change number.","content":{"application/json":{"example":{"error":"validation_failed","message":"A value is not allowed.","details":[{"field":"target_names","message":"'afflabwan1' is listed twice"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/dashboard/changes/{change_id}/stages":{"get":{"tags":["changes"],"summary":"Get Change Stages","description":"Where one change is, as a progress bar: all eight stages (Request, Request check, Device\ncheck, Plan and assessment, Approval, Execution, Verification, Closure) in order, each with\nits state (`done`, `current`, `waiting` for a person or a window, `pending`, or `stopped`,\n`failed`, `rolled_back` where the change left the main line), a line of detail and when it was\nentered and left. The stage is worked out from the status, so it always agrees with it and\nupdates itself as the change moves. A change in a list carries the current one as `stage`.","operationId":"get_change_stages_api_v1_dashboard_changes__change_id__stages_get","parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeStages"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"404":{"description":"There is no such change or runbook.","content":{"application/json":{"example":{"error":"change_not_found","message":"No such change request."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"A value is not allowed, or the id is neither a UUID nor a change number.","content":{"application/json":{"example":{"error":"validation_failed","message":"A value is not allowed.","details":[{"field":"target_names","message":"'afflabwan1' is listed twice"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/dashboard/changes/{change_id}/cancel":{"post":{"tags":["changes"],"summary":"Cancel Change","description":"Cancels a change request that is still `submitted`; any other status is 409\n`change_not_cancellable`. Any signed-in person may; it is audited with who did it.","operationId":"cancel_change_api_v1_dashboard_changes__change_id__cancel_post","parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeOut"}}}},"401":{"description":"Not signed in: send your session cookie.","content":{"application/json":{"example":{"error":"unauthorized","message":"Not signed in, or the service token is missing or invalid."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"404":{"description":"There is no such change or runbook.","content":{"application/json":{"example":{"error":"change_not_found","message":"No such change request."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"409":{"description":"The change is no longer submitted, so it can not be cancelled.","content":{"application/json":{"example":{"error":"change_not_cancellable","message":"Only a submitted change request can be cancelled; this one is intake.","details":[{"field":"change","message":"the change is closed, not awaiting approval"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"A value is not allowed, or the id is neither a UUID nor a change number.","content":{"application/json":{"example":{"error":"validation_failed","message":"A value is not allowed.","details":[{"field":"target_names","message":"'afflabwan1' is listed twice"}]},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"The database does not have the migration this needs yet.","content":{"application/json":{"example":{"error":"not_available","message":"Change requests are not available yet: the database is at revision 0020 and needs 0021."},"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/dashboard/situations":{"get":{"tags":["situations"],"summary":"List Situations","description":"Groups of related alerts the correlator found - for example an APIC port\nfault and the OpsRamp alert for the other end of the same cable - newest\nfirst (by when each began; see `sort`), with a one-line summary, the likely\nroot cause and how confident the link is. `hours` selects the situations\nupdated in that window.","operationId":"list_situations_api_v1_dashboard_situations_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":720,"minimum":1,"description":"Situations updated in the last N hours","default":168,"title":"Hours"},"description":"Situations updated in the last N hours"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["open","confirmed","rejected","closed"],"type":"string"},{"type":"null"}],"description":"Omit to hide only the situations a person rejected","title":"Status"},"description":"Omit to hide only the situations a person rejected"},{"name":"band","in":"query","required":false,"schema":{"anyOf":[{"enum":["auto","review"],"type":"string"},{"type":"null"}],"description":"auto: linked automatically; review: needs a person to look","title":"Band"},"description":"auto: linked automatically; review: needs a person to look"},{"name":"sort","in":"query","required":false,"schema":{"enum":["started","updated"],"type":"string","description":"started: newest first by when the situation began (its first alert), the default. updated: newest first by when it last changed, so an old situation that was touched today comes first.","default":"started","title":"Sort"},"description":"started: newest first by when the situation began (its first alert), the default. updated: newest first by when it last changed, so an old situation that was touched today comes first."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SituationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/situations/{situation_id}":{"get":{"tags":["situations"],"summary":"Get Situation","description":"One situation with its member alerts, the root cause, and for every link\nthe score and what it was made of (same device or cable, port, kind of\nproblem, timing).","operationId":"get_situation_api_v1_dashboard_situations__situation_id__get","parameters":[{"name":"situation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Situation Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SituationDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/situations/{situation_id}/blast-radius":{"get":{"tags":["situations"],"summary":"Get Situation Blast Radius","description":"What this situation takes out, from the topology: the device blamed, the other\nalerting devices, and the devices cut off behind them. A device with a second working\nway out is not counted. Services and user counts are empty: there is no service\ncatalogue yet. The result has exactly the shape of an incident's `blast_radius`, so a\ncaller can pass it on unchanged.","operationId":"get_situation_blast_radius_api_v1_dashboard_situations__situation_id__blast_radius_get","parameters":[{"name":"situation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Situation Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SituationBlastRadius"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/standalone-alerts":{"get":{"tags":["standalone-alerts"],"summary":"List Standalone Alerts","description":"Alerts that are in no situation, newest first, each with the incident it has and where it\nstands: `incident_created`, `waiting` (critical but not yet on its own long enough),\n`ready` (the incident flow makes it an incident next) or `not_eligible` (it never becomes an\nincident on its own: it is not critical, or it has cleared).","operationId":"list_standalone_alerts_api_v1_dashboard_standalone_alerts_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":720,"minimum":1,"description":"Alerts raised in the last N hours","default":168,"title":"Hours"},"description":"Alerts raised in the last N hours"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["active","cleared"],"type":"string"},{"type":"null"}],"description":"Omit for both","title":"Status"},"description":"Omit for both"},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"One or more of critical, high, medium, low, info","title":"Severity"},"description":"One or more of critical, high, medium, low, info"},{"name":"has_incident","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true: it has an incident; false: it has not","title":"Has Incident"},"description":"true: it has an incident; false: it has not"},{"name":"device","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One device, as host:<short name>","title":"Device"},"description":"One device, as host:<short name>"},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The canonical kind, e.g. INTERFACE_ERRORS","title":"Kind"},"description":"The canonical kind, e.g. INTERFACE_ERRORS"},{"name":"integration","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where the alert came from","title":"Integration"},"description":"Where the alert came from"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandaloneAlertList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/standalone-alerts/summary":{"get":{"tags":["standalone-alerts"],"summary":"Standalone Alerts Summary","description":"How many standalone alerts there are and where they stand: active and cleared, how many\nhave an incident, are waiting, are ready, or never will, and counts by severity and kind.","operationId":"standalone_alerts_summary_api_v1_dashboard_standalone_alerts_summary_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":720,"minimum":1,"description":"Alerts raised in the last N hours","default":168,"title":"Hours"},"description":"Alerts raised in the last N hours"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandaloneSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/standalone-alerts/{alert_id}":{"get":{"tags":["standalone-alerts"],"summary":"Get Standalone Alert","description":"One standalone alert, with every alert that shares its incident (later alerts of the same\nkind on the same device join it).","operationId":"get_standalone_alert_api_v1_dashboard_standalone_alerts__alert_id__get","parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Alert Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandaloneAlertDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/som-incidents":{"get":{"tags":["som-incidents"],"summary":"List Som Incidents","description":"The ServiceNow SOM incidents saved so far (som_incident), newest first unless asked\notherwise. aff-correlator saves one when it maps a new AFF incident's alerts to it;\n`alert_ids` are the OpsRamp alerts it names. Without SOM's full answer (see the detail route\nfor that).","operationId":"list_som_incidents_api_v1_dashboard_som_incidents_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Matches the SOM number or sys_id (any part, any case)","title":"Q"},"description":"Matches the SOM number or sys_id (any part, any case)"},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One SOM state, or several separated by commas (Open,Resolved)","title":"State"},"description":"One SOM state, or several separated by commas (Open,Resolved)"},{"name":"sort_by","in":"query","required":false,"schema":{"enum":["sys_created_at","opened_at","resolved_at","closed_at","sys_updated_at","fetched_at","number","state","priority"],"type":"string","description":"What to order by; empty values always come last","default":"sys_created_at","title":"Sort By"},"description":"What to order by; empty values always come last"},{"name":"order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","description":"asc or desc","default":"desc","title":"Order"},"description":"asc or desc"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SomIncidentList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/som-incidents/{sys_id}":{"get":{"tags":["som-incidents"],"summary":"Get Som Incident","description":"One SOM incident read live from SOM (GetIncidentData?sys_id=...), its answer passed on\nunchanged. 404 when SOM has no incident with that sys_id.","operationId":"get_som_incident_api_v1_dashboard_som_incidents__sys_id__get","parameters":[{"name":"sys_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"description":"A SOM incident's sys_id","title":"Sys Id"},"description":"A SOM incident's sys_id"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Som Incident Api V1 Dashboard Som Incidents  Sys Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/network/graph":{"get":{"tags":["network-topology"],"summary":"Get Network Graph","description":"The whole network as OpsRamp maps it: devices with role, tier and site, and the\ncables between them bundled into one edge per device pair and layer. Each device\ncarries its active alert counts and open situations, and each edge the alerts on its\nports. Reads the platform's own copy of the map, refreshed from OpsRamp every 15\nminutes; `snapshot` says how fresh that is. Role, tier and site are inferred\n(`role_source` says how), not read from OpsRamp.","operationId":"get_network_graph_api_v1_dashboard_network_graph_get","parameters":[{"name":"site","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only devices at this site code, e.g. SEA1","title":"Site"},"description":"Only devices at this site code, e.g. SEA1"},{"name":"layer","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["physical","bgp","ospf","discovered"],"type":"string"}},{"type":"null"}],"description":"Only these layers; repeat to combine","title":"Layer"},"description":"Only these layers; repeat to combine"},{"name":"include_unmanaged","in":"query","required":false,"schema":{"type":"boolean","description":"false hides neighbours OpsRamp discovered but does not monitor","default":true,"title":"Include Unmanaged"},"description":"false hides neighbours OpsRamp discovered but does not monitor"},{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","description":"true also returns devices OpsRamp no longer lists","default":false,"title":"Include Inactive"},"description":"true also returns devices OpsRamp no longer lists"},{"name":"detail","in":"query","required":false,"schema":{"type":"boolean","description":"false leaves out each edge's cable list","default":true,"title":"Detail"},"description":"false leaves out each edge's cable list"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkGraphResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/network/fabric-map":{"get":{"tags":["network-topology"],"summary":"Get Network Fabric Map","description":"Controllers, spines and leaves and the physical cables between them, from\nOpsRamp's map. Same idea as /topology/fabric-map, which keeps reading the\nhand-loaded rows.","operationId":"get_network_fabric_map_api_v1_dashboard_network_fabric_map_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkFabricMapResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/network/status":{"get":{"tags":["network-topology"],"summary":"Get Network Status","description":"Is the topology arriving: the last complete snapshot and its age, how many devices\nand cables are active or have dropped out, and the recent snapshots with any note on\nwhy one swept nothing. `consumers` lists each service that builds its own view (the\ncorrelator) with the topology version it loaded and whether that is the latest;\n`in_sync` is true only when every one is.","operationId":"get_network_status_api_v1_dashboard_network_status_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/network/devices/{device_key}":{"get":{"tags":["network-topology"],"summary":"Get Network Device","description":"One device: its record, every cable to a neighbour seen from its side, what it\nimpacts and what impacts it, its active alerts and the situations it is part of.\n`device_key` is the key alerts carry, e.g. host:cvg1dc-leaf303; a name OpsRamp has\nsince changed still resolves (see `resolved_from`).","operationId":"get_network_device_api_v1_dashboard_network_devices__device_key__get","parameters":[{"name":"device_key","in":"path","required":true,"schema":{"type":"string","title":"Device Key"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkDeviceDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/use-case-register":{"get":{"tags":["use-case-register"],"summary":"List Use Case Register","description":"The use case priority register: every use case the offer is planned from (248), in\nregister order. This is the planning register, not the catalogue a client ships.\n`available` is false until the database holds it.","operationId":"list_use_case_register_api_v1_dashboard_use_case_register_get","parameters":[{"name":"foundry_bucket","in":"query","required":false,"schema":{"anyOf":[{"enum":["Observe","Knowledge","Copilots","Workflow","Orchestrate","Analytics"],"type":"string"},{"type":"null"}],"title":"Foundry Bucket"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"enum":["P1","P2","P3"],"type":"string"},{"type":"null"}],"title":"Priority"}},{"name":"sovereignty","in":"query","required":false,"schema":{"anyOf":[{"enum":["Standard","Controlled","Sovereignty-sensitive"],"type":"string"},{"type":"null"}],"title":"Sovereignty"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["planned","in_progress","done"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"offer_family","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Exact offer family","title":"Offer Family"},"description":"Exact offer family"},{"name":"sub_domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Exact sub-domain","title":"Sub Domain"},"description":"Exact sub-domain"},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Words to look for in the id, use case, description or rationale. Case, hyphens and punctuation do not count and a word matches by its stem: `auto scaling`, `Auto-scaling` and `autoscaling` are the same search","title":"Q"},"description":"Words to look for in the id, use case, description or rationale. Case, hyphens and punctuation do not count and a word matches by its stem: `auto scaling`, `Auto-scaling` and `autoscaling` are the same search"},{"name":"match","in":"query","required":false,"schema":{"enum":["all","any"],"type":"string","description":"`all` (the default): the use case must have every word of `q`. `any`: it may have only some, and the ones with the most words come first","default":"all","title":"Match"},"description":"`all` (the default): the use case must have every word of `q`. `any`: it may have only some, and the ones with the most words come first"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":300,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseRegisterList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/use-case-register/summary":{"get":{"tags":["use-case-register"],"summary":"Get Use Case Register Summary","description":"Counts: per Foundry bucket (with its P1, P2 and P3 split), per priority, per\nsovereignty class and per offer family.","operationId":"get_use_case_register_summary_api_v1_dashboard_use_case_register_summary_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseRegisterSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/use-case-register/{uc_id}":{"get":{"tags":["use-case-register"],"summary":"Get Use Case Register Entry","description":"One use case by its id (UC-006, AUT-003). An id that is not in the register returns\n`item: null` and a note.","operationId":"get_use_case_register_entry_api_v1_dashboard_use_case_register__uc_id__get","parameters":[{"name":"uc_id","in":"path","required":true,"schema":{"type":"string","title":"Uc Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseRegisterDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/copilot/conversations":{"get":{"tags":["copilot"],"summary":"The signed-in user's copilot conversations, most recent first","operationId":"list_conversations_api_v1_copilot_conversations_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The `next_cursor` of the previous page","title":"Cursor"},"description":"The `next_cursor` of the previous page"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/copilot/conversations/{conversation_id}/queries":{"get":{"tags":["copilot"],"summary":"The questions and answers of one of the user's conversations","description":"404 when the conversation does not exist or belongs to someone else.","operationId":"list_conversation_queries_api_v1_copilot_conversations__conversation_id__queries_get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The `next_cursor` of the previous page","title":"Cursor"},"description":"The `next_cursor` of the previous page"},{"name":"order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","description":"asc: oldest first; desc: newest first","default":"asc","title":"Order"},"description":"asc: oldest first; desc: newest first"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationQueryList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/copilot/conversations/{conversation_id}/export":{"get":{"tags":["copilot"],"summary":"The latest questions and answers of one of the user's conversations, to export","description":"The latest turns of the conversation, oldest first: the client lays out the document.\n`truncated` is true when earlier turns were left out. 404 when the conversation does not\nexist or belongs to someone else.","operationId":"export_conversation_api_v1_copilot_conversations__conversation_id__export_get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationExport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/copilot/queries/{query_id}/feedback":{"put":{"tags":["copilot"],"summary":"Rate one of the user's copilot answers: thumbs up or down","description":"`rating` is `helpful` or `not_helpful`. With `not_helpful`, `reason` says what was wrong\n(`wrong_number`, `missing_data`, `no_answer`, `too_slow`, `unsafe`, `other`) and `note` may say\nmore (up to 1000 characters of plain text). Sending the same thing again changes nothing;\nsending another rating replaces the first. 404 when the answer does not exist or is not the\nuser's; 429 when rating too fast.","operationId":"rate_answer_api_v2_copilot_queries__query_id__feedback_put","parameters":[{"name":"query_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Query Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["copilot"],"summary":"Take back a thumbs up or down","description":"Clears the rating, the reason and the note. Clearing an answer with no rating is fine.\n404 when the answer does not exist or is not the user's.","operationId":"take_back_rating_api_v2_copilot_queries__query_id__feedback_delete","parameters":[{"name":"query_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Query Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/copilot/chat":{"post":{"tags":["copilot"],"summary":"Ask aff-copilot (over gRPC; same as the /dashboard path)","operationId":"chat_api_v2_copilot_chat_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopilotChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopilotChatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/dashboard/copilot/chat":{"post":{"tags":["copilot"],"summary":"Ask aff-copilot (over gRPC)","operationId":"chat_api_v2_dashboard_copilot_chat_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopilotChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopilotChatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/copilot/chat/stream":{"post":{"tags":["copilot"],"summary":"Ask aff-copilot and stream the answer (over gRPC; same as the /dashboard path)","operationId":"chat_stream_api_v2_copilot_chat_stream_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopilotChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/dashboard/copilot/chat/stream":{"post":{"tags":["copilot"],"summary":"Ask aff-copilot and stream the answer (over gRPC)","operationId":"chat_stream_api_v2_dashboard_copilot_chat_stream_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopilotChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/validate":{"post":{"tags":["auth"],"summary":"Validate","description":"Validate a token, create a session for it, and set the session cookie.\n\nBoth outcomes are declared to the audit trail (persisted by the audit\nmiddleware); an audit failure never changes the response.","operationId":"validate_api_v1_auth_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Validate Api V1 Auth Validate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/profile":{"get":{"tags":["auth"],"summary":"Profile","description":"Return the caller's profile from their session cookie.\n\nNo token here — the cookie set by /validate is the only credential; its\nsession_id is looked up directly in Redis via the get_current_user\ndependency (also applied to every other dashboard route).","operationId":"profile_api_v1_auth_profile_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Profile Api V1 Auth Profile Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","description":"End the caller's session: delete it from Redis, then clear the cookie.\n\nIdempotent by design — logging out with no cookie, or one that no longer\nmatches a session, still succeeds; there is nothing left to undo either\nway, so this never 401s.","operationId":"logout_api_v1_auth_logout_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Logout Api V1 Auth Logout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ActionState":{"properties":{"allowed":{"type":"boolean","title":"Allowed","description":"Whether a button for it should be enabled now."},"why":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why","description":"Why not, when it is not allowed."}},"type":"object","required":["allowed","why"],"title":"ActionState"},"AksComponentsResponse":{"properties":{"range":{"type":"string","enum":["1h","24h","7d","30d"],"title":"Range"},"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"interval":{"type":"string","title":"Interval"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"namespace":{"type":"string","title":"Namespace"},"healthy":{"type":"integer","title":"Healthy","default":0},"degraded":{"type":"integer","title":"Degraded","default":0},"down":{"type":"integer","title":"Down","default":0},"components":{"items":{"$ref":"#/components/schemas/ComponentStatus"},"type":"array","title":"Components"}},"type":"object","required":["range","start","end","interval","generated_at","namespace"],"title":"AksComponentsResponse"},"AksOverviewResponse":{"properties":{"range":{"type":"string","enum":["1h","24h","7d","30d"],"title":"Range"},"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"interval":{"type":"string","title":"Interval"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"status":{"type":"string","enum":["healthy","degraded","down"],"title":"Status"},"cluster":{"$ref":"#/components/schemas/ClusterUsage"},"nodes":{"$ref":"#/components/schemas/NodesSummary"},"pods":{"$ref":"#/components/schemas/PodsSummary"},"series":{"items":{"$ref":"#/components/schemas/ClusterUsagePoint"},"type":"array","title":"Series"}},"type":"object","required":["range","start","end","interval","generated_at","status","cluster","nodes","pods"],"title":"AksOverviewResponse"},"ApprovalOut":{"properties":{"state":{"type":"string","enum":["none","valid","stale"],"title":"State","description":"`valid`: a person approved the schedule as it is now. `stale`: it was approved but has been changed since, so it acts on nothing until approved again."},"approved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved By"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"}},"type":"object","required":["state"],"title":"ApprovalOut"},"ApprovalSummary":{"properties":{"review_id":{"type":"string","format":"uuid","title":"Review Id"},"approved_by":{"type":"string","title":"Approved By"},"approved_at":{"type":"string","format":"date-time","title":"Approved At"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"incident_revision":{"type":"integer","title":"Incident Revision"},"steps_current":{"type":"boolean","title":"Steps Current"}},"type":"object","required":["review_id","approved_by","approved_at","incident_revision","steps_current"],"title":"ApprovalSummary","description":"The latest approval of an incident, for the incident page."},"ApproveCreate":{"properties":{"revision":{"type":"integer","minimum":1.0,"title":"Revision"},"comment":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Comment"}},"additionalProperties":false,"type":"object","required":["revision"],"title":"ApproveCreate","description":"Approval of the incident's recommended steps, as the person read them."},"ApproveIn":{"properties":{"comment":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Comment","description":"An optional note kept with the approval, up to 1000 characters.","examples":["Subnet and AS checked against the design; rollback is ready."]}},"additionalProperties":false,"type":"object","title":"ApproveIn"},"AssessmentOut":{"properties":{"pre_check_result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pre Check Result","description":"The checks on the devices: `pass`, `warn` (a non-blocking check failed) or `fail` (the change is denied)."},"blast_radius_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Blast Radius Count","description":"How many devices the change touches."},"rollback_ready":{"type":"boolean","title":"Rollback Ready","description":"Whether the runbooks that check and undo the change are registered, allowed andunedited."},"conflicting_change_ids":{"items":{"type":"string"},"type":"array","title":"Conflicting Change Ids","description":"Other changes that are working on the same devices right now."},"checks":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Checks","description":"Each check on each device: `name`, `host`, `ok`, `severity` and `detail`."},"policy":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Policy","description":"The policy's verdict (`allow`, `needs_approval` or `deny`) and its reasons."},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons","description":"Every reason the change was refused; empty when it passed."},"evidence_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Run Id","description":"The run whose device output the checks were made on."},"plan":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Plan","description":"What the runbook will send to each device, rendered with this change's parameters: `{complete, hosts: {device: [{task, kind, parents, lines, commands, note}]}}`.`kind` is `read` or `change`; `complete` is false when a step could not be shown, in whichcase a change that alters a device is not put to an approver. None for a change assessed before plans existed."},"plan_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Hash","description":"A SHA-256 of exactly what the approver is shown: the runbook (code, version and checksum of its files), the devices, the values and the commands. It is checked again just before the change runs, and a change whose hash differs is not run but must be approved again. None for a change assessed before plans were hashed."},"risk_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Risk Score","description":"The risk of the change from 0 to 100 (Risk Assessment), built from fixed factors, so the same change always gets the same score. Advice for the approver: it never stops a change by itself. None until it is rated."},"risk_band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Risk Band","description":"`low` (under 25), `medium` (25 to 54) or `high` (55 and over)."},"risk_factors":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Risk Factors","description":"Every factor that went into the score: `factor`, `points` (can be negative) and `detail` in words."},"narrative":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Narrative","description":"A plain-language briefing written by AFF Copilot, for an L1 engineer, from the checks above: `summary`, `what_this_is`, `what_will_happen` (ordered steps), `commands_explained` (each command AFF will send, with its meaning), `impact`, `risk_explained`, `risks`, `before_you_approve` (what to check), `expected_result`, `not_verified` (what AFF will not verify), `watch` (what to verify afterwards), `rollback`, `glossary`, `generated_by` (`AFF Copilot`) and `generated_at`. It is advice beside the checks and never replaces them. None until it is written, or when the model could not be used."},"model_version":{"type":"string","title":"Model Version","description":"The version of the rules that made the assessment."},"generated_at":{"type":"string","format":"date-time","title":"Generated At","description":"When it was made."}},"type":"object","required":["pre_check_result","blast_radius_count","rollback_ready","conflicting_change_ids","checks","policy","reasons","evidence_run_id","model_version","generated_at"],"title":"AssessmentOut","description":"What the guardian checked before the change was put to an approver.","examples":[{"blast_radius_count":1,"checks":[{"detail":"matched","host":"afflabwan1","name":"BGP is configured on the device with this AS number","ok":true,"severity":"block"}],"conflicting_change_ids":[],"evidence_run_id":"0f660524-ea69-41c7-8b6d-1c4e9a7d2b30","generated_at":"2026-10-27T09:30:00Z","model_version":"rules-1","narrative":{"before_you_approve":["Confirm 10.20.30.0/24 is the intended subnet and AS 1111 is the right AS.","Confirm the device checks above passed."],"commands_explained":[{"command":"router bgp 1111","meaning":"Enters the BGP settings of AS 1111."},{"command":"network 10.20.30.0 mask 255.255.255.0","meaning":"Tells BGP to advertise the 10.20.30.0/24 network to its neighbours."}],"expected_result":"afflabwan1 advertises 10.20.30.0/24 and the post-checks find it.","generated_at":"2026-10-27T09:30:00Z","generated_by":"AFF Copilot","glossary":[{"meaning":"The routing protocol the sites use to exchange routes.","term":"BGP"},{"meaning":"A network such as 10.20.30.0/24.","term":"prefix"}],"impact":"Only afflabwan1 is touched. The BGP session stays up and the neighbour learns one more prefix.","not_verified":["That afflabwan2 learned the route: AFF only checks afflabwan1, so confirm it there."],"risk_explained":"The risk is rated medium (25 of 100). The runbook changes a device (+30), and afflabwan1 is a lab router, which lowers it by 5. A rollback is ready, so nothing is added for that.","risks":["No other device is checked for the subnet, only afflabwan1.","AFF saves the running configuration once every check has passed, so a reload keeps it."],"rollback":"If a check after the change fails, the network statement is removed by the rollback runbook.","summary":"This change adds one network statement for 10.20.30.0/24 under BGP 1111 on afflabwan1, so the subnet is advertised to its neighbour. It is asked so that Site-B can reach the new data-centre subnet.","watch":["That afflabwan2 learns 10.20.30.0/24 over BGP after the change."],"what_this_is":"BGP is how the routers tell each other which networks they can reach. A network statement tells BGP to start advertising a prefix. The runbook advertise-subnet adds that statement on one router and changes nothing else.","what_will_happen":["AFF logs in to afflabwan1 with the stored login and checks its SSH host key.","It enters BGP configuration for AS 1111 and the IPv4 address family.","It adds the network statement for 10.20.30.0 mask 255.255.255.0.","It reads the BGP configuration and table again to confirm the prefix is there.","If a check fails, it removes the statement with the rollback runbook."]},"plan":{"complete":true,"hosts":{"afflabwan1":[{"commands":[],"kind":"change","lines":["network 10.20.30.0 mask 255.255.255.0"],"module":"cisco.ios.ios_config","parents":["router bgp 65001","address-family ipv4"],"task":"Add the network statement"}]}},"plan_hash":"9f2c1ab7e0d34c58b1a6e4f7d2c93a05f8e1b6d47c2a90e3f5b8d1c4a7e6029b","policy":{"reasons":["a named approval is required"],"verdict":"needs_approval"},"pre_check_result":"pass","reasons":[],"risk_band":"medium","risk_factors":[{"detail":"the runbook alters a device","factor":"changes_a_device","points":30},{"detail":"afflabwan1 is lab","factor":"device_criticality","points":-5}],"risk_score":25,"rollback_ready":true}]},"Assumptions":{"properties":{"l1_triage_minutes_per_alert":{"type":"number","maximum":480.0,"minimum":0.0,"title":"L1 Triage Minutes Per Alert","description":"L1 reading one new alert and deciding what it is, without AFF","default":1.5},"l1_review_minutes_per_incident_with_aff":{"type":"number","maximum":480.0,"minimum":0.0,"title":"L1 Review Minutes Per Incident With Aff","description":"With AFF, L1 reads only the incidents it makes","default":1.0},"l1_ticket_minutes":{"type":"number","maximum":480.0,"minimum":0.0,"title":"L1 Ticket Minutes","description":"L1 creating and filling in one ticket by hand; AFF writes it","default":8.0},"l1_close_minutes":{"type":"number","maximum":480.0,"minimum":0.0,"title":"L1 Close Minutes","description":"L1 closing one incident whose alerts cleared; AFF resolves it","default":2.0},"l2_group_minutes":{"type":"number","maximum":480.0,"minimum":0.0,"title":"L2 Group Minutes","description":"L2 grouping related alerts into one problem, without AFF","default":12.0},"l2_group_minutes_with_aff":{"type":"number","maximum":480.0,"minimum":0.0,"title":"L2 Group Minutes With Aff","description":"With AFF, L2 only checks AFF's grouping","default":3.0},"l2_diagnose_minutes":{"type":"number","maximum":480.0,"minimum":0.0,"title":"L2 Diagnose Minutes","description":"L2 finding cause, affected devices and checks, without AFF","default":40.0},"l2_diagnose_minutes_with_aff":{"type":"number","maximum":480.0,"minimum":0.0,"title":"L2 Diagnose Minutes With Aff","description":"With AFF, L2 reads the analysis and verifies it","default":15.0},"l2_share":{"type":"number","maximum":1.0,"minimum":0.0,"title":"L2 Share","description":"Share of incidents that reach L2","default":0.4},"l3_context_minutes":{"type":"number","maximum":480.0,"minimum":0.0,"title":"L3 Context Minutes","description":"L3 rebuilding the context of an escalation, without AFF","default":30.0},"l3_context_minutes_with_aff":{"type":"number","maximum":480.0,"minimum":0.0,"title":"L3 Context Minutes With Aff","description":"With AFF, L3 starts from the ready file","default":10.0},"l3_share":{"type":"number","maximum":1.0,"minimum":0.0,"title":"L3 Share","description":"Share of incidents that reach L3","default":0.05},"conservative_factor":{"type":"number","maximum":1.0,"exclusiveMinimum":0.0,"title":"Conservative Factor","description":"The conservative case keeps this share of each saving","default":0.5},"productive_hours_per_fte_month":{"type":"number","maximum":744.0,"exclusiveMinimum":0.0,"title":"Productive Hours Per Fte Month","description":"Productive hours of one full-time engineer in a month","default":141.0}},"type":"object","title":"Assumptions","description":"Minutes per task, and the share of incidents that reach each level. All can be overridden."},"AvailabilityPeriod":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"duration_seconds":{"type":"integer","title":"Duration Seconds","default":0}},"type":"object","required":["start","end"],"title":"AvailabilityPeriod"},"BaselineRemovalOut":{"properties":{"change_number":{"type":"string","title":"Change Number","description":"The change that removes the baseline."},"change_id":{"type":"string","format":"uuid","title":"Change Id"},"status":{"type":"string","title":"Status","description":"Where it is: `submitted` when it was just raised."},"undoes":{"type":"string","title":"Undoes","description":"The deployment it removes: that change's number."},"next":{"type":"string","title":"Next","description":"What happens now and what a person does."}},"type":"object","required":["change_number","change_id","status","undoes","next"],"title":"BaselineRemovalOut"},"BlastRadius":{"properties":{"device_count":{"type":"integer","minimum":0.0,"title":"Device Count"},"site_count":{"type":"integer","minimum":0.0,"title":"Site Count"},"severity":{"type":"string","enum":["none","low","medium","high","critical"],"title":"Severity"},"method":{"type":"string","maxLength":100,"minLength":1,"title":"Method"},"computed_at":{"type":"string","format":"date-time","title":"Computed At"},"devices":{"items":{"$ref":"#/components/schemas/BlastRadiusDevice"},"type":"array","maxItems":1000,"title":"Devices"},"devices_truncated":{"type":"boolean","title":"Devices Truncated","default":false},"sites":{"items":{"type":"string"},"type":"array","title":"Sites"},"services":{"items":{"$ref":"#/components/schemas/BlastRadiusService"},"type":"array","maxItems":200,"title":"Services"},"affected_ports":{"items":{"$ref":"#/components/schemas/BlastRadiusPort"},"type":"array","maxItems":500,"title":"Affected Ports"},"endpoint_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Endpoint Count"},"service_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Service Count"},"summary":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Summary"}},"additionalProperties":false,"type":"object","required":["device_count","site_count","severity","method","computed_at"],"title":"BlastRadius","description":"What a failure takes out. `downstream` means cut off, not merely connected below: a\ndevice that still has a working neighbour on the way out is not counted."},"BlastRadiusDevice":{"properties":{"device_key":{"type":"string","maxLength":255,"minLength":1,"title":"Device Key"},"impact":{"type":"string","enum":["root_cause","direct","downstream"],"title":"Impact"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site"}},"additionalProperties":false,"type":"object","required":["device_key","impact"],"title":"BlastRadiusDevice"},"BlastRadiusPort":{"properties":{"device_key":{"type":"string","maxLength":255,"minLength":1,"title":"Device Key"},"port":{"type":"string","maxLength":100,"minLength":1,"title":"Port"}},"additionalProperties":false,"type":"object","required":["device_key","port"],"title":"BlastRadiusPort"},"BlastRadiusService":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"impact":{"type":"string","enum":["direct","downstream"],"title":"Impact"}},"additionalProperties":false,"type":"object","required":["name","impact"],"title":"BlastRadiusService"},"BucketPriorityCount":{"properties":{"foundry_bucket":{"type":"string","title":"Foundry Bucket"},"total":{"type":"integer","title":"Total"},"p1":{"type":"integer","title":"P1","default":0},"p2":{"type":"integer","title":"P2","default":0},"p3":{"type":"integer","title":"P3","default":0}},"type":"object","required":["foundry_bucket","total"],"title":"BucketPriorityCount"},"CapacityOut":{"properties":{"scale_set":{"type":"string","title":"Scale Set"},"state":{"type":"string","enum":["ok","settling","no_reading"],"title":"State","description":"`ok`: a recent reading and nothing changing it. `settling`: the number may be about to change (a scale change on its way, or the reading is a few minutes old). `no_reading`: nothing has read the scale set for a long while (or ever), so there is no count: it may not be deployed, or the observer is not reading it. `vms`, `reading` and `machines` are then empty; `last_reading_at` says when it was last read."},"vms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vms","description":"The count to show: the VMs that reported their CPU lately. Null when there is no reading (state `no_reading`). It lags a scale action (a new VM takes up to about 5 minutes to appear, a removed one stays up to 6): see `settling`."},"settling":{"type":"boolean","title":"Settling","description":"True while the number may be about to change: a scale change is on its way or closed less than 8 minutes ago, or the reading is more than 3 minutes old."},"settling_why":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Settling Why"},"reading":{"anyOf":[{"$ref":"#/components/schemas/CapacityReading"},{"type":"null"}],"description":"The latest reading; null in state `no_reading`."},"last_reading_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Reading At","description":"When the scale set was last read, even when that is too long ago to use; null when it never was."},"machines":{"items":{"$ref":"#/components/schemas/VmOut"},"type":"array","title":"Machines","description":"The VMs that reported their CPU in the last 6 minutes, by name, with their CPU and whether they are up. Empty when there is no reading."},"scaling":{"anyOf":[{"$ref":"#/components/schemas/ScalingChange"},{"type":"null"}],"description":"The latest scale change, when it matters."},"scheduled":{"anyOf":[{"$ref":"#/components/schemas/ScheduledCapacity"},{"type":"null"}],"description":"What the capacity schedule asks for now; null when the scale set has none."},"as_of":{"type":"string","format":"date-time","title":"As Of"}},"type":"object","required":["scale_set","state","vms","settling","settling_why","reading","last_reading_at","machines","scaling","scheduled","as_of"],"title":"CapacityOut","description":"How many VMs the sandbox scale set has, and how far to trust the number."},"CapacityReading":{"properties":{"vms_reporting":{"type":"integer","title":"Vms Reporting","description":"VMs that reported their CPU in the last 6 minutes (the observer's count)."},"cpu_percent":{"type":"number","title":"Cpu Percent","description":"The scale set's average CPU over the last 10 minutes."},"age_seconds":{"type":"integer","title":"Age Seconds","description":"How old the reading is."}},"type":"object","required":["vms_reporting","cpu_percent","age_seconds"],"title":"CapacityReading"},"ChangeAnalyticsResponse":{"properties":{"window":{"$ref":"#/components/schemas/ChangeWindow"},"summary":{"$ref":"#/components/schemas/ChangeSummary"},"daily":{"items":{"$ref":"#/components/schemas/ChangeDay"},"type":"array","title":"Daily"},"time_to_close":{"$ref":"#/components/schemas/TimeToClose"},"manual_effort_saved":{"$ref":"#/components/schemas/ManualEffortSaved"},"assumptions":{"$ref":"#/components/schemas/ChangeAssumptions"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"}},"type":"object","required":["window","summary","daily","time_to_close","manual_effort_saved","assumptions","notes"],"title":"ChangeAnalyticsResponse"},"ChangeAssumptions":{"properties":{"analysing_minutes":{"type":"number","maximum":2400.0,"minimum":0.0,"title":"Analysing Minutes","description":"Reading and understanding the request","default":10},"analysing_minutes_per_device":{"type":"number","maximum":2400.0,"minimum":0.0,"title":"Analysing Minutes Per Device","description":"... plus this for each device","default":0},"planning_minutes":{"type":"number","maximum":2400.0,"minimum":0.0,"title":"Planning Minutes","description":"Planning the runbook: steps, parameters, order","default":20},"planning_minutes_per_device":{"type":"number","maximum":2400.0,"minimum":0.0,"title":"Planning Minutes Per Device","description":"... plus this for each device","default":0},"collecting_evidence_minutes":{"type":"number","maximum":2400.0,"minimum":0.0,"title":"Collecting Evidence Minutes","description":"Logging in and reading each device","default":0},"collecting_evidence_minutes_per_device":{"type":"number","maximum":2400.0,"minimum":0.0,"title":"Collecting Evidence Minutes Per Device","description":"... plus this for each device","default":5},"validating_minutes":{"type":"number","maximum":2400.0,"minimum":0.0,"title":"Validating Minutes","description":"Checking the evidence against the change","default":10},"validating_minutes_per_device":{"type":"number","maximum":2400.0,"minimum":0.0,"title":"Validating Minutes Per Device","description":"... plus this for each device","default":2},"risk_assessing_minutes":{"type":"number","maximum":2400.0,"minimum":0.0,"title":"Risk Assessing Minutes","description":"Rating the risk and preparing the rollback","default":15},"risk_assessing_minutes_per_device":{"type":"number","maximum":2400.0,"minimum":0.0,"title":"Risk Assessing Minutes Per Device","description":"... plus this for each device","default":0},"executing_minutes":{"type":"number","maximum":2400.0,"minimum":0.0,"title":"Executing Minutes","description":"Making the change","default":10},"executing_minutes_per_device":{"type":"number","maximum":2400.0,"minimum":0.0,"title":"Executing Minutes Per Device","description":"... plus this for each device","default":5},"post_validating_minutes":{"type":"number","maximum":2400.0,"minimum":0.0,"title":"Post Validating Minutes","description":"Checking each device after the change","default":0},"post_validating_minutes_per_device":{"type":"number","maximum":2400.0,"minimum":0.0,"title":"Post Validating Minutes Per Device","description":"... plus this for each device","default":5},"post_assessing_minutes":{"type":"number","maximum":2400.0,"minimum":0.0,"title":"Post Assessing Minutes","description":"Writing up the change and closing it","default":10},"post_assessing_minutes_per_device":{"type":"number","maximum":2400.0,"minimum":0.0,"title":"Post Assessing Minutes Per Device","description":"... plus this for each device","default":0},"conservative_factor":{"type":"number","maximum":1.0,"exclusiveMinimum":0.0,"title":"Conservative Factor","description":"The conservative case keeps this share of the saving","default":0.5},"productive_hours_per_fte_month":{"type":"number","maximum":744.0,"exclusiveMinimum":0.0,"title":"Productive Hours Per Fte Month","description":"Productive hours of one full-time engineer in a month","default":141.0}},"type":"object","title":"ChangeAssumptions","description":"What one change costs an engineer by hand, task by task: a base time plus a time for each\ndevice the change names. Each task belongs to one stage of the change flow and is counted only\nwhen AFF actually ran that stage for the change."},"ChangeCreate":{"properties":{"change_type":{"type":"string","enum":["standard","normal","emergency"],"title":"Change Type","description":"`standard` (pre-approved routine), `normal`, or `emergency`.","examples":["normal"]},"short_description":{"type":"string","maxLength":500,"minLength":1,"title":"Short Description","description":"A one-line title, 1 to 500 characters.","examples":["Advertise new DC subnet for inter-site connectivity"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"What and why, in your own words. Free text.","examples":["A new subnet at DC Site-A must be reachable from Site-B."]},"target_names":{"items":{"type":"string","maxLength":255,"minLength":1},"type":"array","maxItems":20,"minItems":1,"title":"Target Names","description":"The devices the change is about: 1 to 20 names, as the topology names them, no duplicates (case does not matter). Only devices on the allowed list can be changed.","examples":[["afflabwan1"]]},"runbook_code":{"anyOf":[{"type":"string","pattern":"^[a-z0-9-]{1,50}$"},{"type":"null"}],"title":"Runbook Code","description":"Which runbook to run: take a `code` from GET /api/v1/dashboard/runbooks. Needed until AFF can propose one itself; a change without it is denied at intake.","examples":["bgp-health-check"]},"parameters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Parameters","description":"The runbook's inputs: a JSON object of at most 16 KB. It must hold exactly the parameters the runbook declares (GET /api/v1/dashboard/runbooks/{code}), of the right kind; anything else is refused.","examples":[{"bgp_asn":65001,"subnet":"10.20.30.0/24"}]},"scheduled_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Start","description":"Optional. When the change window opens (with a time zone). Leave it out and the change runs as soon as it is approved. Give both start and end, or neither."},"scheduled_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled End","description":"Optional. When the change window closes; after the start. Leave it out unless a start is given."}},"additionalProperties":false,"type":"object","required":["change_type","short_description","target_names"],"title":"ChangeCreate","examples":[{"change_type":"normal","description":"Reads the interface table and the BGP summary. Changes nothing.","runbook_code":"bgp-health-check","short_description":"Read-only health check of AFFLABWAN1","target_names":["afflabwan1"]}]},"ChangeDay":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"partial_day":{"type":"boolean","title":"Partial Day"},"raised":{"type":"integer","title":"Raised"},"aff_automation":{"type":"integer","title":"Aff Automation"},"manual":{"type":"integer","title":"Manual"},"closed":{"type":"integer","title":"Closed"},"avg_minutes_to_close":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Minutes To Close"},"avg_minutes_to_close_excluding_approval":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Minutes To Close Excluding Approval"},"manual_hours":{"type":"number","title":"Manual Hours"},"saved_hours":{"type":"number","title":"Saved Hours"}},"type":"object","required":["date","partial_day","raised","aff_automation","manual","closed","avg_minutes_to_close","avg_minutes_to_close_excluding_approval","manual_hours","saved_hours"],"title":"ChangeDay"},"ChangeDetail":{"properties":{"change_id":{"type":"string","format":"uuid","title":"Change Id","description":"The change's id (UUID)."},"change_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Number","description":"The readable number, like AFF-CHG0000001. Use it anywhere an id is taken. None for a change that came from ServiceNow (see `som_number`)."},"change_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Type","description":"`standard`, `normal` or `emergency`."},"short_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Description","description":"The title."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"What and why."},"status":{"type":"string","title":"Status","description":"Where the change is: `submitted`, `intake`, `collecting_evidence`, `validating`, `assessing`, `awaiting_approval`, `approved`, `starting`, `executing`, `post_validating`, `rolling_back`, `post_assessing`, `closed`, or an end state: `denied`, `cancelled`, `expired`, `failed`, `rolled_back`."},"approval_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval State","description":"`pending`, `approved` or `rejected`."},"target_names":{"items":{"type":"string"},"type":"array","title":"Target Names","description":"The devices the change is about."},"runbook_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Runbook Code","description":"The runbook it runs. Empty for a plan of several steps, which has no runbook of its own: see `runbook_codes` and `steps`."},"runbook_codes":{"items":{"type":"string"},"type":"array","title":"Runbook Codes","description":"Every runbook the change uses, each once, in the order they first run: the one runbook of an ordinary change, or the runbooks of a plan's steps. Empty while a request that named none is waiting for the planner."},"step_count":{"type":"integer","title":"Step Count","description":"How many steps the change was planned as; 0 for a change that is one runbook.","default":0},"parameters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Parameters","description":"The runbook's inputs, as given. Empty for a plan; each step has its own."},"scheduled_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Start","description":"The change window's start, if one was given."},"scheduled_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled End","description":"The change window's end, if one was given."},"requested_by":{"$ref":"#/components/schemas/Requester","description":"Who raised the change (the signed-in person)."},"som_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Som Number","description":"The ServiceNow change number, once there is one."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the change was raised."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"When it last changed."},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At","description":"When it was cancelled, if it was."},"stage":{"$ref":"#/components/schemas/StageOut","description":"Where the change is, in one of eleven stages (Change Submission, Request Analysis, Runbook Selection, Policy Validation, Pre-Change Validation, Risk Assessment, Execution Planning, Change Approval, Orchestrator Execution, Post-Execution Validation, Closure) with its state and a line of detail. Worked out from `status`, so it always agrees with it."},"analysis_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis State","description":"Set while AI analyses the request: `pending` (waiting for the analyst), `done` (analysed, or the analysis could not be made in time and the change went on) or `failed` (the request was too unclear to act on and was rejected). Empty when no analysis is made for the change."},"planning_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Planning State","description":"Only for a change raised without a runbook while the planner is on: `pending` (waiting for the planner), `proposed` (it chose a runbook, which is now `runbook_code`) or `failed` (nothing fitted; the reason is in the history). Empty when a person named the runbook."},"proposal":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Proposal","description":"What the planner proposed and why: `runbook_code`, `parameters`, `reasoning`, `missing` (values the request did not give), `generated_by` (`AFF Copilot`; the model's name is never shown), `what_the_runbook_does` (the runbook step by step, in plain words) and `proposed_at`. A proposal is advice: it goes through the same checks and the same approval as a runbook a person named."},"title":{"type":"string","title":"Title","description":"The change's short description."},"stages":{"items":{"$ref":"#/components/schemas/StageStep"},"type":"array","title":"Stages","description":"All eight stages in order with their state and times, for a progress bar."},"outcome":{"type":"string","title":"Outcome","description":"How it stands, in a sentence: completed, rolled back, failed, denied, waiting for approval, or in progress."},"summary":{"type":"string","title":"Summary","description":"What was planned and what happened, as a short paragraph written from the stored facts."},"approved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved By","description":"Who approved it, once someone has."},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At","description":"When it was approved."},"devices":{"items":{"type":"string"},"type":"array","title":"Devices","description":"The devices it is about."},"analysis":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Analysis","description":"What AI understood of the request (Request Analysis): `summary`, `goal`, `kind`, `devices`, `values_given`, `unclear`, `can_proceed`, `runbook_check`, `available`, `generated_by` (`AFF Copilot`) and `generated_at`. None when no analysis was made."},"proposed_by_ai":{"anyOf":[{"$ref":"#/components/schemas/ReportProposal"},{"type":"null"}],"description":"Set when AFF chose the runbook because the request named none."},"steps":{"items":{"$ref":"#/components/schemas/PlanStepOut"},"type":"array","title":"Steps","description":"The steps of a request that needs several jobs (an interface address on each router, then eBGP on each), in the order they run: `number`, `runbook_code`, `device`, `parameters`, `summary` and `status`. Empty for a change that is one runbook, which then has its own `runbook_code` and `parameters`."},"changes_a_device":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Changes A Device","description":"Whether the plan alters a device (true) or only reads (false). None until there is a plan."},"plan":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Plan","description":"What the runbook sends to each device: `{complete, hosts: {device: [{task, kind, parents, lines, commands, note}]}}`. For a step that changes configuration, `parents` is the configuration context entered first (for example `router bgp 1111`) and `lines` are the configuration lines applied under it. `commands` are the show or exec commands of a read step. `kind` is `change` or `read`."},"assessment":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Assessment","description":"A plain-language assessment written with AI before approval: `summary`, `what_this_is`, `what_will_happen` (ordered steps), `commands_explained` (each command AFF will send, with its meaning), `impact`, `risk_explained`, `risks`, `before_you_approve` (what to check), `expected_result`, `not_verified` (what AFF will not verify), `watch` (what to verify afterwards), `rollback`, `glossary`, `generated_by` (`AFF Copilot`) and `generated_at`. None when it was not written."},"risk":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Risk","description":"The risk rating (Risk Assessment): `score` (0 to 100), `band` (`low`, `medium` or `high`), `factors` (each with `factor`, `points` and `detail`) and `model_version`. Advice for the approver; it never stops a change by itself. None when the change was not rated."},"device_reachability":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Device Reachability","description":"Whether the devices answered before the change was read: `status` (`reachable`, `unreachable` or `not_checked`), `checked_at` and, per device, `ok` and what went wrong. A device that does not answer blocks the change, so a change with a report past that point was reachable when checked. None when the check did not run (a change older than it)."},"plan_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Hash","description":"A SHA-256 of what the approver was shown: the runbook (code, version and checksum), the devices, the values and the commands. Checked again just before the change runs; a change whose hash differs is not run. None for a change assessed before plans were hashed."},"configuration_saved":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Configuration Saved","description":"Whether the configuration was saved to the startup configuration of the devices that were changed, so a reload keeps the change. AFF does it last, after every check held, when the plan the approver saw said it would (a `save` run in `runs`). False while it has not happened or if it failed, and for a change that was not to be saved. None for a change that only reads."},"pre_checks":{"items":{"$ref":"#/components/schemas/ReportCheck"},"type":"array","title":"Pre Checks","description":"The checks on the devices before approval."},"policy_verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Verdict","description":"The policy's verdict before approval: `allow`, `needs_approval` or `deny`."},"policy_reasons":{"items":{"type":"string"},"type":"array","title":"Policy Reasons","description":"The policy's reasons, in words."},"blast_radius_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Blast Radius Count","description":"How many devices the change touches."},"rollback_ready":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Rollback Ready","description":"Whether the runbooks that check and undo the change were ready."},"runs":{"items":{"$ref":"#/components/schemas/ReportRun"},"type":"array","title":"Runs","description":"Every run on the devices for this change, oldest first."},"post_checks":{"items":{"$ref":"#/components/schemas/ReportCheck"},"type":"array","title":"Post Checks","description":"The checks after the change. Empty for a change that only reads, or one that did not get that far."},"rollback_performed":{"type":"boolean","title":"Rollback Performed","description":"Whether the change was undone."},"timeline":{"items":{"$ref":"#/components/schemas/HistoryItem"},"type":"array","title":"Timeline","description":"Every move of the change, oldest first."},"generated_at":{"type":"string","format":"date-time","title":"Generated At","description":"When this report was made."}},"type":"object","required":["change_id","change_number","change_type","short_description","description","status","approval_state","target_names","runbook_code","parameters","scheduled_start","scheduled_end","requested_by","som_number","created_at","updated_at","cancelled_at","stage","analysis_state","planning_state","proposal","title","stages","outcome","summary","approved_by","approved_at","devices","analysis","proposed_by_ai","changes_a_device","plan","assessment","risk","device_reachability","plan_hash","configuration_saved","pre_checks","policy_verdict","policy_reasons","blast_radius_count","rollback_ready","runs","post_checks","rollback_performed","timeline","generated_at"],"title":"ChangeDetail","description":"One change with everything known about it: the change record and its report in one answer.","examples":[{"analysis":{"assumptions":["The BGP session between the two routers is already established."],"available":true,"can_proceed":true,"devices":["afflabwan1"],"expected_outcome":"afflabwan1 advertises 10.20.30.0/24 and afflabwan2 learns the route.","explanation":"BGP is the routing protocol the sites use to tell each other which networks they can reach. Advertising a subnet means telling the neighbour router that afflabwan1 can reach 10.20.30.0/24, so traffic from the other site is sent to it. This is a configuration change on one router.","generated_at":"2026-10-27T09:30:00Z","generated_by":"AFF Copilot","goal":"advertise 10.20.30.0/24","kind":"change","runbook_check":{"matches":true,"note":"The request asks to advertise a subnet.","runbook_code":"advertise-subnet"},"summary":"The engineer wants the new data-centre subnet 10.20.30.0/24 advertised into BGP on afflabwan1, so that Site-B can reach it over the existing BGP session.","unclear":[],"values_given":{"bgp_asn":"1111","subnet":"10.20.30.0/24"}},"approval_state":"approved","approved_at":"2026-10-27T09:30:00Z","approved_by":"ben@example.com","assessment":{"before_you_approve":["Confirm 10.20.30.0/24 is the intended subnet and AS 1111 is the right AS.","Confirm the device checks above passed."],"commands_explained":[{"command":"router bgp 1111","meaning":"Enters the BGP settings of AS 1111."},{"command":"network 10.20.30.0 mask 255.255.255.0","meaning":"Tells BGP to advertise the 10.20.30.0/24 network to its neighbours."}],"expected_result":"afflabwan1 advertises 10.20.30.0/24 and the post-checks find it.","generated_at":"2026-10-27T09:30:00Z","generated_by":"AFF Copilot","glossary":[{"meaning":"The routing protocol the sites use to exchange routes.","term":"BGP"},{"meaning":"A network such as 10.20.30.0/24.","term":"prefix"}],"impact":"Only afflabwan1 is touched. The BGP session stays up and the neighbour learns one more prefix.","not_verified":["That afflabwan2 learned the route: AFF only checks afflabwan1, so confirm it there."],"risk_explained":"The risk is rated medium (25 of 100). The runbook changes a device (+30), and afflabwan1 is a lab router, which lowers it by 5. A rollback is ready, so nothing is added for that.","risks":["No other device is checked for the subnet, only afflabwan1.","AFF saves the running configuration once every check has passed, so a reload keeps it."],"rollback":"If a check after the change fails, the network statement is removed by the rollback runbook.","summary":"This change adds one network statement for 10.20.30.0/24 under BGP 1111 on afflabwan1, so the subnet is advertised to its neighbour. It is asked so that Site-B can reach the new data-centre subnet.","watch":["That afflabwan2 learns 10.20.30.0/24 over BGP after the change."],"what_this_is":"BGP is how the routers tell each other which networks they can reach. A network statement tells BGP to start advertising a prefix. The runbook advertise-subnet adds that statement on one router and changes nothing else.","what_will_happen":["AFF logs in to afflabwan1 with the stored login and checks its SSH host key.","It enters BGP configuration for AS 1111 and the IPv4 address family.","It adds the network statement for 10.20.30.0 mask 255.255.255.0.","It reads the BGP configuration and table again to confirm the prefix is there.","If a check fails, it removes the statement with the rollback runbook."]},"blast_radius_count":1,"change_id":"6f1c0a52-8a1e-4c55-9d0e-2f5d3c1b7a90","change_number":"AFF-CHG0000006","change_type":"normal","changes_a_device":true,"configuration_saved":false,"created_at":"2026-10-27T09:30:00Z","description":"A new subnet at DC Site-A must be reachable from Site-B.","device_reachability":{"checked_at":"2026-10-27T09:30:00Z","devices":[{"device":"afflabwan1","ok":true}],"status":"reachable"},"devices":["afflabwan1"],"generated_at":"2026-10-27T09:30:00Z","outcome":"Completed: the change was made and its checks passed.","parameters":{"bgp_asn":1111,"subnet":"10.20.30.0/24"},"plan":{"complete":true,"hosts":{"afflabwan1":[{"commands":[],"kind":"change","lines":["network 10.20.30.0 mask 255.255.255.0"],"module":"cisco.ios.ios_config","parents":["router bgp 1111","address-family ipv4"],"task":"Add the network statement"}]}},"plan_hash":"9f2c1ab7e0d34c58b1a6e4f7d2c93a05f8e1b6d47c2a90e3f5b8d1c4a7e6029b","policy_reasons":["a named approval is required"],"policy_verdict":"needs_approval","post_checks":[{"detail":"found","host":"afflabwan1","name":"the network statement is in the configuration","ok":true,"severity":"block"},{"detail":"found","host":"afflabwan1","name":"the subnet is in the BGP table","ok":true,"severity":"block"}],"pre_checks":[{"detail":"matched","host":"afflabwan1","name":"BGP is configured on the device with this AS number","ok":true,"severity":"block"},{"detail":"found","host":"afflabwan1","name":"the subnet is in the routing table","ok":true,"severity":"block"},{"detail":"absent","host":"afflabwan1","name":"the subnet is not already advertised","ok":true,"severity":"warn"}],"requested_by":{"email":"anna.lee@example.com","name":"Anna Lee","oid":"3b9e7d10-5c2a-4f6e-9a41-0d8c1e7b2f55"},"risk":{"band":"medium","factors":[{"detail":"the runbook alters a device","factor":"changes_a_device","points":30},{"detail":"afflabwan1 is lab","factor":"device_criticality","points":-5}],"model_version":"risk-rules-1","score":25},"rollback_performed":false,"rollback_ready":true,"runbook_code":"advertise-subnet","runbook_codes":["advertise-subnet"],"runs":[{"completed_at":"2026-10-27T09:30:00Z","hosts":[{"device":"afflabwan1","ok":true,"tasks":[{"commands":["router bgp 1111","address-family ipv4","network 10.20.30.0 mask 255.255.255.0"],"name":"Add the network statement","ok":true}]}],"runbook_code":"advertise-subnet","runbook_version":"1","stage":"execution","started_at":"2026-10-27T09:30:00Z","status":"success"},{"completed_at":"2026-10-27T09:30:00Z","hosts":[{"device":"afflabwan1","ok":true,"tasks":[{"commands":[],"name":"Read the BGP configuration","ok":true,"output":"router bgp 1111\n bgp router-id 1.1.1.1\n neighbor 3.3.3.2 remote-as 2222\n address-family ipv4\n  network 10.20.30.0 mask 255.255.255.0"}]}],"runbook_code":"bgp-subnet-state","runbook_version":"1","stage":"post_check","started_at":"2026-10-27T09:30:00Z","status":"success"}],"short_description":"Advertise new DC subnet for inter-site connectivity","stage":{"description":"The change is closed and its report is complete.","detail":"Done","key":"closure","label":"Closure","number":10,"outcome":"completed","state":"done","total":11},"stages":[{"completed_at":"2026-10-27T09:30:00Z","description":"The request is raised and recorded with its number.","entered_at":"2026-10-27T09:30:00Z","key":"submitted","label":"Change Submission","number":0,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"AI analyses the request: the intent, the scope, the values given and anything unclear.","entered_at":"2026-10-27T09:30:00Z","key":"analysis","label":"Request Analysis","number":1,"state":"done"},{"description":"AI selects the approved runbook for the request. Not applicable when the request named one.","detail":"Not applicable: the request named the runbook","key":"planning","label":"Runbook Selection","number":2,"state":"skipped"},{"completed_at":"2026-10-27T09:30:00Z","description":"Automated policy checks: approved runbook, approved devices, scope, conflicts and the change window. Nothing is touched yet.","entered_at":"2026-10-27T09:30:00Z","key":"request_check","label":"Policy Validation","number":3,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"Read-only checks of the target devices, tested against the runbook's conditions.","entered_at":"2026-10-27T09:30:00Z","key":"device_check","label":"Pre-Change Validation","number":4,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"The risk of the change is rated low, medium or high from fixed factors, with the reasons.","entered_at":"2026-10-27T09:30:00Z","key":"risk","label":"Risk Assessment","number":5,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"The exact commands per device and the written impact assessment for the approver.","entered_at":"2026-10-27T09:30:00Z","key":"assessment","label":"Execution Planning","number":6,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"Independent authorisation by a person other than the requester.","entered_at":"2026-10-27T09:30:00Z","key":"approval","label":"Change Approval","number":7,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"The change is carried out on the devices, once, inside its window.","entered_at":"2026-10-27T09:30:00Z","key":"execution","label":"Orchestrator Execution","number":8,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"The result is verified on the devices. If verification fails the change is rolled back.","entered_at":"2026-10-27T09:30:00Z","key":"verification","label":"Post-Execution Validation","number":9,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"The change is closed and its report is complete.","entered_at":"2026-10-27T09:30:00Z","key":"closure","label":"Closure","number":10,"state":"done"}],"status":"closed","step_count":0,"summary":"AFF-CHG0000006: Advertise new DC subnet for inter-site connectivity. Raised by Anna Lee. AFF planned to run advertise-subnet on afflabwan1, sending 1 command line. The devices answered the reachability check. Before approval the devices were read and 3 of 3 checks passed. Risk rated medium (25 of 100). Approved by ben@example.com. The change worked. After it, 2 of 2 checks passed. Completed: the change was made and its checks passed.","target_names":["afflabwan1"],"timeline":[{"actor":"aff-guardian","at":"2026-10-27T09:30:00Z","from_status":"submitted","reason":"claimed","to_status":"intake"},{"actor":"aff-guardian","at":"2026-10-27T09:30:00Z","detail":{"copilot":"no assessment was made","stage":"assessing"},"from_status":"assessing","to_status":"awaiting_approval"}],"title":"Advertise new DC subnet for inter-site connectivity","updated_at":"2026-10-27T09:30:00Z"}]},"ChangeList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ChangeOut"},"type":"array","title":"Items","description":"This page, newest first."},"total":{"type":"integer","title":"Total","description":"How many changes match, over all pages."},"limit":{"type":"integer","title":"Limit","description":"The page size asked for."},"offset":{"type":"integer","title":"Offset","description":"How many were skipped."}},"type":"object","required":["items","total","limit","offset"],"title":"ChangeList","examples":[{"items":[{"approval_state":"pending","change_id":"6f1c0a52-8a1e-4c55-9d0e-2f5d3c1b7a90","change_number":"AFF-CHG0000002","change_type":"normal","created_at":"2026-10-27T09:30:00Z","description":"A new subnet at DC Site-A must be reachable from Site-B.","parameters":{"bgp_asn":65001,"subnet":"10.20.30.0/24"},"requested_by":{"email":"anna.lee@example.com","name":"Anna Lee","oid":"3b9e7d10-5c2a-4f6e-9a41-0d8c1e7b2f55"},"runbook_code":"advertise-subnet","runbook_codes":["advertise-subnet"],"short_description":"Advertise new DC subnet for inter-site connectivity","stage":{"description":"Independent authorisation by a person other than the requester.","detail":"Waiting for an approver","key":"approval","label":"Change Approval","number":7,"outcome":"waiting","state":"waiting","total":11},"status":"submitted","step_count":0,"target_names":["afflabwan1"],"updated_at":"2026-10-27T09:30:00Z"}],"limit":50,"offset":0,"total":1}]},"ChangeOut":{"properties":{"change_id":{"type":"string","format":"uuid","title":"Change Id","description":"The change's id (UUID)."},"change_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Number","description":"The readable number, like AFF-CHG0000001. Use it anywhere an id is taken. None for a change that came from ServiceNow (see `som_number`)."},"change_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Type","description":"`standard`, `normal` or `emergency`."},"short_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Description","description":"The title."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"What and why."},"status":{"type":"string","title":"Status","description":"Where the change is: `submitted`, `intake`, `collecting_evidence`, `validating`, `assessing`, `awaiting_approval`, `approved`, `starting`, `executing`, `post_validating`, `rolling_back`, `post_assessing`, `closed`, or an end state: `denied`, `cancelled`, `expired`, `failed`, `rolled_back`."},"approval_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval State","description":"`pending`, `approved` or `rejected`."},"target_names":{"items":{"type":"string"},"type":"array","title":"Target Names","description":"The devices the change is about."},"runbook_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Runbook Code","description":"The runbook it runs. Empty for a plan of several steps, which has no runbook of its own: see `runbook_codes` and `steps`."},"runbook_codes":{"items":{"type":"string"},"type":"array","title":"Runbook Codes","description":"Every runbook the change uses, each once, in the order they first run: the one runbook of an ordinary change, or the runbooks of a plan's steps. Empty while a request that named none is waiting for the planner."},"step_count":{"type":"integer","title":"Step Count","description":"How many steps the change was planned as; 0 for a change that is one runbook.","default":0},"parameters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Parameters","description":"The runbook's inputs, as given. Empty for a plan; each step has its own."},"scheduled_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Start","description":"The change window's start, if one was given."},"scheduled_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled End","description":"The change window's end, if one was given."},"requested_by":{"$ref":"#/components/schemas/Requester","description":"Who raised the change (the signed-in person)."},"som_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Som Number","description":"The ServiceNow change number, once there is one."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the change was raised."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"When it last changed."},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At","description":"When it was cancelled, if it was."},"stage":{"$ref":"#/components/schemas/StageOut","description":"Where the change is, in one of eleven stages (Change Submission, Request Analysis, Runbook Selection, Policy Validation, Pre-Change Validation, Risk Assessment, Execution Planning, Change Approval, Orchestrator Execution, Post-Execution Validation, Closure) with its state and a line of detail. Worked out from `status`, so it always agrees with it."},"analysis_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis State","description":"Set while AI analyses the request: `pending` (waiting for the analyst), `done` (analysed, or the analysis could not be made in time and the change went on) or `failed` (the request was too unclear to act on and was rejected). Empty when no analysis is made for the change."},"planning_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Planning State","description":"Only for a change raised without a runbook while the planner is on: `pending` (waiting for the planner), `proposed` (it chose a runbook, which is now `runbook_code`) or `failed` (nothing fitted; the reason is in the history). Empty when a person named the runbook."},"proposal":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Proposal","description":"What the planner proposed and why: `runbook_code`, `parameters`, `reasoning`, `missing` (values the request did not give), `generated_by` (`AFF Copilot`; the model's name is never shown), `what_the_runbook_does` (the runbook step by step, in plain words) and `proposed_at`. A proposal is advice: it goes through the same checks and the same approval as a runbook a person named."}},"type":"object","required":["change_id","change_number","change_type","short_description","description","status","approval_state","target_names","runbook_code","parameters","scheduled_start","scheduled_end","requested_by","som_number","created_at","updated_at","cancelled_at","stage","analysis_state","planning_state","proposal"],"title":"ChangeOut","examples":[{"approval_state":"pending","change_id":"6f1c0a52-8a1e-4c55-9d0e-2f5d3c1b7a90","change_number":"AFF-CHG0000002","change_type":"normal","created_at":"2026-10-27T09:30:00Z","description":"A new subnet at DC Site-A must be reachable from Site-B.","parameters":{"bgp_asn":65001,"subnet":"10.20.30.0/24"},"requested_by":{"email":"anna.lee@example.com","name":"Anna Lee","oid":"3b9e7d10-5c2a-4f6e-9a41-0d8c1e7b2f55"},"runbook_code":"advertise-subnet","runbook_codes":["advertise-subnet"],"short_description":"Advertise new DC subnet for inter-site connectivity","stage":{"description":"Independent authorisation by a person other than the requester.","detail":"Waiting for an approver","key":"approval","label":"Change Approval","number":7,"outcome":"waiting","state":"waiting","total":11},"status":"submitted","step_count":0,"target_names":["afflabwan1"],"updated_at":"2026-10-27T09:30:00Z"}]},"ChangeReport":{"properties":{"change_id":{"type":"string","format":"uuid","title":"Change Id","description":"The change's id."},"change_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Number","description":"The change's number, AFF-CHG0000001."},"title":{"type":"string","title":"Title","description":"The change's short description."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Its longer description."},"status":{"type":"string","title":"Status","description":"Where the change is now."},"stage":{"$ref":"#/components/schemas/StageOut","description":"Where the change is, in one of eight stages."},"stages":{"items":{"$ref":"#/components/schemas/StageStep"},"type":"array","title":"Stages","description":"All eight stages in order with their state and times, for a progress bar."},"outcome":{"type":"string","title":"Outcome","description":"How it stands, in a sentence: completed, rolled back, failed, denied, waiting for approval, or in progress."},"summary":{"type":"string","title":"Summary","description":"What was planned and what happened, as a short paragraph written from the stored facts."},"requested_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested By","description":"Who raised it."},"approved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved By","description":"Who approved it, once someone has."},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At","description":"When it was approved."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When it was raised."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"When it last moved."},"runbook_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Runbook Code","description":"The runbook it runs."},"devices":{"items":{"type":"string"},"type":"array","title":"Devices","description":"The devices it is about."},"parameters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Parameters","description":"The runbook's inputs."},"analysis":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Analysis","description":"What AI understood of the request (Request Analysis): `summary`, `goal`, `kind`, `devices`, `values_given`, `unclear`, `can_proceed`, `runbook_check`, `available`, `generated_by` (`AFF Copilot`) and `generated_at`. None when no analysis was made."},"proposed_by_ai":{"anyOf":[{"$ref":"#/components/schemas/ReportProposal"},{"type":"null"}],"description":"Set when AFF chose the runbook because the request named none."},"steps":{"items":{"$ref":"#/components/schemas/PlanStepOut"},"type":"array","title":"Steps","description":"The steps of a request that needs several jobs (an interface address on each router, then eBGP on each), in the order they run: `number`, `runbook_code`, `device`, `parameters`, `summary` and `status`. Empty for a change that is one runbook, which then has its own `runbook_code` and `parameters`."},"changes_a_device":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Changes A Device","description":"Whether the plan alters a device (true) or only reads (false). None until there is a plan."},"plan":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Plan","description":"What the runbook sends to each device: `{complete, hosts: {device: [{task, kind, parents, lines, commands, note}]}}`. For a step that changes configuration, `parents` is the configuration context entered first (for example `router bgp 1111`) and `lines` are the configuration lines applied under it. `commands` are the show or exec commands of a read step. `kind` is `change` or `read`."},"assessment":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Assessment","description":"A plain-language assessment written with AI before approval: `summary`, `what_this_is`, `what_will_happen` (ordered steps), `commands_explained` (each command AFF will send, with its meaning), `impact`, `risk_explained`, `risks`, `before_you_approve` (what to check), `expected_result`, `not_verified` (what AFF will not verify), `watch` (what to verify afterwards), `rollback`, `glossary`, `generated_by` (`AFF Copilot`) and `generated_at`. None when it was not written."},"risk":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Risk","description":"The risk rating (Risk Assessment): `score` (0 to 100), `band` (`low`, `medium` or `high`), `factors` (each with `factor`, `points` and `detail`) and `model_version`. Advice for the approver; it never stops a change by itself. None when the change was not rated."},"device_reachability":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Device Reachability","description":"Whether the devices answered before the change was read: `status` (`reachable`, `unreachable` or `not_checked`), `checked_at` and, per device, `ok` and what went wrong. A device that does not answer blocks the change, so a change with a report past that point was reachable when checked. None when the check did not run (a change older than it)."},"plan_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Hash","description":"A SHA-256 of what the approver was shown: the runbook (code, version and checksum), the devices, the values and the commands. Checked again just before the change runs; a change whose hash differs is not run. None for a change assessed before plans were hashed."},"configuration_saved":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Configuration Saved","description":"Whether the configuration was saved to the startup configuration of the devices that were changed, so a reload keeps the change. AFF does it last, after every check held, when the plan the approver saw said it would (a `save` run in `runs`). False while it has not happened or if it failed, and for a change that was not to be saved. None for a change that only reads."},"pre_checks":{"items":{"$ref":"#/components/schemas/ReportCheck"},"type":"array","title":"Pre Checks","description":"The checks on the devices before approval."},"policy_verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Verdict","description":"The policy's verdict before approval: `allow`, `needs_approval` or `deny`."},"policy_reasons":{"items":{"type":"string"},"type":"array","title":"Policy Reasons","description":"The policy's reasons, in words."},"blast_radius_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Blast Radius Count","description":"How many devices the change touches."},"rollback_ready":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Rollback Ready","description":"Whether the runbooks that check and undo the change were ready."},"runs":{"items":{"$ref":"#/components/schemas/ReportRun"},"type":"array","title":"Runs","description":"Every run on the devices for this change, oldest first."},"post_checks":{"items":{"$ref":"#/components/schemas/ReportCheck"},"type":"array","title":"Post Checks","description":"The checks after the change. Empty for a change that only reads, or one that did not get that far."},"rollback_performed":{"type":"boolean","title":"Rollback Performed","description":"Whether the change was undone."},"timeline":{"items":{"$ref":"#/components/schemas/HistoryItem"},"type":"array","title":"Timeline","description":"Every move of the change, oldest first."},"generated_at":{"type":"string","format":"date-time","title":"Generated At","description":"When this report was made."}},"type":"object","required":["change_id","change_number","title","description","status","stage","stages","outcome","summary","requested_by","approved_by","approved_at","created_at","updated_at","runbook_code","devices","parameters","analysis","proposed_by_ai","changes_a_device","plan","assessment","risk","device_reachability","plan_hash","configuration_saved","pre_checks","policy_verdict","policy_reasons","blast_radius_count","rollback_ready","runs","post_checks","rollback_performed","timeline","generated_at"],"title":"ChangeReport","description":"One change, from the request to how it ended, on one page.","examples":[{"analysis":{"assumptions":["The BGP session between the two routers is already established."],"available":true,"can_proceed":true,"devices":["afflabwan1"],"expected_outcome":"afflabwan1 advertises 10.20.30.0/24 and afflabwan2 learns the route.","explanation":"BGP is the routing protocol the sites use to tell each other which networks they can reach. Advertising a subnet means telling the neighbour router that afflabwan1 can reach 10.20.30.0/24, so traffic from the other site is sent to it. This is a configuration change on one router.","generated_at":"2026-10-27T09:30:00Z","generated_by":"AFF Copilot","goal":"advertise 10.20.30.0/24","kind":"change","runbook_check":{"matches":true,"note":"The request asks to advertise a subnet.","runbook_code":"advertise-subnet"},"summary":"The engineer wants the new data-centre subnet 10.20.30.0/24 advertised into BGP on afflabwan1, so that Site-B can reach it over the existing BGP session.","unclear":[],"values_given":{"bgp_asn":"1111","subnet":"10.20.30.0/24"}},"approved_at":"2026-10-27T09:30:00Z","approved_by":"ben@example.com","assessment":{"before_you_approve":["Confirm 10.20.30.0/24 is the intended subnet and AS 1111 is the right AS.","Confirm the device checks above passed."],"commands_explained":[{"command":"router bgp 1111","meaning":"Enters the BGP settings of AS 1111."},{"command":"network 10.20.30.0 mask 255.255.255.0","meaning":"Tells BGP to advertise the 10.20.30.0/24 network to its neighbours."}],"expected_result":"afflabwan1 advertises 10.20.30.0/24 and the post-checks find it.","generated_at":"2026-10-27T09:30:00Z","generated_by":"AFF Copilot","glossary":[{"meaning":"The routing protocol the sites use to exchange routes.","term":"BGP"},{"meaning":"A network such as 10.20.30.0/24.","term":"prefix"}],"impact":"Only afflabwan1 is touched. The BGP session stays up and the neighbour learns one more prefix.","not_verified":["That afflabwan2 learned the route: AFF only checks afflabwan1, so confirm it there."],"risk_explained":"The risk is rated medium (25 of 100). The runbook changes a device (+30), and afflabwan1 is a lab router, which lowers it by 5. A rollback is ready, so nothing is added for that.","risks":["No other device is checked for the subnet, only afflabwan1.","AFF saves the running configuration once every check has passed, so a reload keeps it."],"rollback":"If a check after the change fails, the network statement is removed by the rollback runbook.","summary":"This change adds one network statement for 10.20.30.0/24 under BGP 1111 on afflabwan1, so the subnet is advertised to its neighbour. It is asked so that Site-B can reach the new data-centre subnet.","watch":["That afflabwan2 learns 10.20.30.0/24 over BGP after the change."],"what_this_is":"BGP is how the routers tell each other which networks they can reach. A network statement tells BGP to start advertising a prefix. The runbook advertise-subnet adds that statement on one router and changes nothing else.","what_will_happen":["AFF logs in to afflabwan1 with the stored login and checks its SSH host key.","It enters BGP configuration for AS 1111 and the IPv4 address family.","It adds the network statement for 10.20.30.0 mask 255.255.255.0.","It reads the BGP configuration and table again to confirm the prefix is there.","If a check fails, it removes the statement with the rollback runbook."]},"blast_radius_count":1,"change_id":"6f1c0a52-8a1e-4c55-9d0e-2f5d3c1b7a90","change_number":"AFF-CHG0000006","changes_a_device":true,"configuration_saved":false,"created_at":"2026-10-27T09:30:00Z","description":"A new subnet at DC Site-A must be reachable from Site-B.","device_reachability":{"checked_at":"2026-10-27T09:30:00Z","devices":[{"device":"afflabwan1","ok":true}],"status":"reachable"},"devices":["afflabwan1"],"generated_at":"2026-10-27T09:30:00Z","outcome":"Completed: the change was made and its checks passed.","parameters":{"bgp_asn":1111,"subnet":"10.20.30.0/24"},"plan":{"complete":true,"hosts":{"afflabwan1":[{"commands":[],"kind":"change","lines":["network 10.20.30.0 mask 255.255.255.0"],"module":"cisco.ios.ios_config","parents":["router bgp 1111","address-family ipv4"],"task":"Add the network statement"}]}},"plan_hash":"9f2c1ab7e0d34c58b1a6e4f7d2c93a05f8e1b6d47c2a90e3f5b8d1c4a7e6029b","policy_reasons":["a named approval is required"],"policy_verdict":"needs_approval","post_checks":[{"detail":"found","host":"afflabwan1","name":"the network statement is in the configuration","ok":true,"severity":"block"},{"detail":"found","host":"afflabwan1","name":"the subnet is in the BGP table","ok":true,"severity":"block"}],"pre_checks":[{"detail":"matched","host":"afflabwan1","name":"BGP is configured on the device with this AS number","ok":true,"severity":"block"},{"detail":"found","host":"afflabwan1","name":"the subnet is in the routing table","ok":true,"severity":"block"},{"detail":"absent","host":"afflabwan1","name":"the subnet is not already advertised","ok":true,"severity":"warn"}],"requested_by":"Anna Lee","risk":{"band":"medium","factors":[{"detail":"the runbook alters a device","factor":"changes_a_device","points":30},{"detail":"afflabwan1 is lab","factor":"device_criticality","points":-5}],"model_version":"risk-rules-1","score":25},"rollback_performed":false,"rollback_ready":true,"runbook_code":"advertise-subnet","runs":[{"completed_at":"2026-10-27T09:30:00Z","hosts":[{"device":"afflabwan1","ok":true,"tasks":[{"commands":["router bgp 1111","address-family ipv4","network 10.20.30.0 mask 255.255.255.0"],"name":"Add the network statement","ok":true}]}],"runbook_code":"advertise-subnet","runbook_version":"1","stage":"execution","started_at":"2026-10-27T09:30:00Z","status":"success"},{"completed_at":"2026-10-27T09:30:00Z","hosts":[{"device":"afflabwan1","ok":true,"tasks":[{"commands":[],"name":"Read the BGP configuration","ok":true,"output":"router bgp 1111\n bgp router-id 1.1.1.1\n neighbor 3.3.3.2 remote-as 2222\n address-family ipv4\n  network 10.20.30.0 mask 255.255.255.0"}]}],"runbook_code":"bgp-subnet-state","runbook_version":"1","stage":"post_check","started_at":"2026-10-27T09:30:00Z","status":"success"}],"stage":{"description":"The change is closed and its report is complete.","detail":"Done","key":"closure","label":"Closure","number":10,"outcome":"completed","state":"done","total":11},"stages":[{"completed_at":"2026-10-27T09:30:00Z","description":"The request is raised and recorded with its number.","entered_at":"2026-10-27T09:30:00Z","key":"submitted","label":"Change Submission","number":0,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"AI analyses the request: the intent, the scope, the values given and anything unclear.","entered_at":"2026-10-27T09:30:00Z","key":"analysis","label":"Request Analysis","number":1,"state":"done"},{"description":"AI selects the approved runbook for the request. Not applicable when the request named one.","detail":"Not applicable: the request named the runbook","key":"planning","label":"Runbook Selection","number":2,"state":"skipped"},{"completed_at":"2026-10-27T09:30:00Z","description":"Automated policy checks: approved runbook, approved devices, scope, conflicts and the change window. Nothing is touched yet.","entered_at":"2026-10-27T09:30:00Z","key":"request_check","label":"Policy Validation","number":3,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"Read-only checks of the target devices, tested against the runbook's conditions.","entered_at":"2026-10-27T09:30:00Z","key":"device_check","label":"Pre-Change Validation","number":4,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"The risk of the change is rated low, medium or high from fixed factors, with the reasons.","entered_at":"2026-10-27T09:30:00Z","key":"risk","label":"Risk Assessment","number":5,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"The exact commands per device and the written impact assessment for the approver.","entered_at":"2026-10-27T09:30:00Z","key":"assessment","label":"Execution Planning","number":6,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"Independent authorisation by a person other than the requester.","entered_at":"2026-10-27T09:30:00Z","key":"approval","label":"Change Approval","number":7,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"The change is carried out on the devices, once, inside its window.","entered_at":"2026-10-27T09:30:00Z","key":"execution","label":"Orchestrator Execution","number":8,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"The result is verified on the devices. If verification fails the change is rolled back.","entered_at":"2026-10-27T09:30:00Z","key":"verification","label":"Post-Execution Validation","number":9,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"The change is closed and its report is complete.","entered_at":"2026-10-27T09:30:00Z","key":"closure","label":"Closure","number":10,"state":"done"}],"status":"closed","summary":"AFF-CHG0000006: Advertise new DC subnet for inter-site connectivity. Raised by Anna Lee. AFF planned to run advertise-subnet on afflabwan1, sending 1 command line. The devices answered the reachability check. Before approval the devices were read and 3 of 3 checks passed. Risk rated medium (25 of 100). Approved by ben@example.com. The change worked. After it, 2 of 2 checks passed. Completed: the change was made and its checks passed.","timeline":[{"actor":"aff-guardian","at":"2026-10-27T09:30:00Z","from_status":"submitted","reason":"claimed","to_status":"intake"},{"actor":"aff-guardian","at":"2026-10-27T09:30:00Z","detail":{"copilot":"no assessment was made","stage":"assessing"},"from_status":"assessing","to_status":"awaiting_approval"}],"title":"Advertise new DC subnet for inter-site connectivity","updated_at":"2026-10-27T09:30:00Z"}]},"ChangeReview":{"properties":{"change_id":{"type":"string","format":"uuid","title":"Change Id","description":"The change's id."},"change_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Number","description":"The change's number, AFF-CHG0000001."},"status":{"type":"string","title":"Status","description":"Where the change is now."},"stage":{"$ref":"#/components/schemas/StageOut","description":"Where the change is, in one of eight stages."},"analysis":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Analysis","description":"What AFF Copilot understood of the request (Request Analysis): `summary`, `explanation` (for an L1 engineer), `expected_outcome`, `assumptions`, `goal`, `kind` (`read_only`, `change` or `unknown`), `devices`, `values_given`, `unclear` (questions), `can_proceed`, `runbook_check` (whether the text fits the runbook the engineer named), `available` (false when it could not be made in time), `generated_by` (`AFF Copilot`) and `generated_at`. It is advice beside the checks, never instead of them. None when no analysis was made."},"planning_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Planning State","description":"Set when the request named no runbook: `proposed` (AFF chose one, shown in `proposal`), `pending` or `failed`. Empty when a person named the runbook."},"proposal":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Proposal","description":"What AFF proposed and why: `runbook_code`, `parameters`, `reasoning`, `generated_by` (`AFF Copilot`) and `proposed_at`. It is advice: the checks and the approval are the same as for a runbook a person named."},"steps":{"items":{"$ref":"#/components/schemas/PlanStepOut"},"type":"array","title":"Steps","description":"The steps of a request that needs several jobs (an interface address on each router, then eBGP on each), in the order they run: `number`, `runbook_code`, `device`, `parameters`, `summary` and `status`. Empty for a change that is one runbook, which then has its own `runbook_code` and `parameters`."},"assessment":{"anyOf":[{"$ref":"#/components/schemas/AssessmentOut"},{"type":"null"}],"description":"What the guardian checked; none until the change has been assessed."},"history":{"items":{"$ref":"#/components/schemas/HistoryItem"},"type":"array","title":"History","description":"Every move of the change, oldest first."},"can_decide":{"type":"boolean","title":"Can Decide","description":"Whether the signed-in person may approve or reject it now."},"why_not":{"items":{"type":"string"},"type":"array","title":"Why Not","description":"When `can_decide` is false, every reason: it is their own change, it is not awaiting approval, its checks failed, and so on."}},"type":"object","required":["change_id","change_number","status","stage","analysis","planning_state","proposal","assessment","history","can_decide","why_not"],"title":"ChangeReview","description":"Everything an approver needs on one page.","examples":[{"analysis":{"assumptions":["The BGP session between the two routers is already established."],"available":true,"can_proceed":true,"devices":["afflabwan1"],"expected_outcome":"afflabwan1 advertises 10.20.30.0/24 and afflabwan2 learns the route.","explanation":"BGP is the routing protocol the sites use to tell each other which networks they can reach. Advertising a subnet means telling the neighbour router that afflabwan1 can reach 10.20.30.0/24, so traffic from the other site is sent to it. This is a configuration change on one router.","generated_at":"2026-10-27T09:30:00Z","generated_by":"AFF Copilot","goal":"advertise 10.20.30.0/24","kind":"change","runbook_check":{"matches":true,"note":"The request asks to advertise a subnet.","runbook_code":"advertise-subnet"},"summary":"The engineer wants the new data-centre subnet 10.20.30.0/24 advertised into BGP on afflabwan1, so that Site-B can reach it over the existing BGP session.","unclear":[],"values_given":{"bgp_asn":"1111","subnet":"10.20.30.0/24"}},"assessment":{"blast_radius_count":1,"checks":[{"detail":"matched","host":"afflabwan1","name":"BGP is configured on the device with this AS number","ok":true,"severity":"block"}],"conflicting_change_ids":[],"evidence_run_id":"0f660524-ea69-41c7-8b6d-1c4e9a7d2b30","generated_at":"2026-10-27T09:30:00Z","model_version":"rules-1","narrative":{"before_you_approve":["Confirm 10.20.30.0/24 is the intended subnet and AS 1111 is the right AS.","Confirm the device checks above passed."],"commands_explained":[{"command":"router bgp 1111","meaning":"Enters the BGP settings of AS 1111."},{"command":"network 10.20.30.0 mask 255.255.255.0","meaning":"Tells BGP to advertise the 10.20.30.0/24 network to its neighbours."}],"expected_result":"afflabwan1 advertises 10.20.30.0/24 and the post-checks find it.","generated_at":"2026-10-27T09:30:00Z","generated_by":"AFF Copilot","glossary":[{"meaning":"The routing protocol the sites use to exchange routes.","term":"BGP"},{"meaning":"A network such as 10.20.30.0/24.","term":"prefix"}],"impact":"Only afflabwan1 is touched. The BGP session stays up and the neighbour learns one more prefix.","not_verified":["That afflabwan2 learned the route: AFF only checks afflabwan1, so confirm it there."],"risk_explained":"The risk is rated medium (25 of 100). The runbook changes a device (+30), and afflabwan1 is a lab router, which lowers it by 5. A rollback is ready, so nothing is added for that.","risks":["No other device is checked for the subnet, only afflabwan1.","AFF saves the running configuration once every check has passed, so a reload keeps it."],"rollback":"If a check after the change fails, the network statement is removed by the rollback runbook.","summary":"This change adds one network statement for 10.20.30.0/24 under BGP 1111 on afflabwan1, so the subnet is advertised to its neighbour. It is asked so that Site-B can reach the new data-centre subnet.","watch":["That afflabwan2 learns 10.20.30.0/24 over BGP after the change."],"what_this_is":"BGP is how the routers tell each other which networks they can reach. A network statement tells BGP to start advertising a prefix. The runbook advertise-subnet adds that statement on one router and changes nothing else.","what_will_happen":["AFF logs in to afflabwan1 with the stored login and checks its SSH host key.","It enters BGP configuration for AS 1111 and the IPv4 address family.","It adds the network statement for 10.20.30.0 mask 255.255.255.0.","It reads the BGP configuration and table again to confirm the prefix is there.","If a check fails, it removes the statement with the rollback runbook."]},"plan":{"complete":true,"hosts":{"afflabwan1":[{"commands":[],"kind":"change","lines":["network 10.20.30.0 mask 255.255.255.0"],"module":"cisco.ios.ios_config","parents":["router bgp 65001","address-family ipv4"],"task":"Add the network statement"}]}},"plan_hash":"9f2c1ab7e0d34c58b1a6e4f7d2c93a05f8e1b6d47c2a90e3f5b8d1c4a7e6029b","policy":{"reasons":["a named approval is required"],"verdict":"needs_approval"},"pre_check_result":"pass","reasons":[],"risk_band":"medium","risk_factors":[{"detail":"the runbook alters a device","factor":"changes_a_device","points":30},{"detail":"afflabwan1 is lab","factor":"device_criticality","points":-5}],"risk_score":25,"rollback_ready":true},"can_decide":true,"change_id":"6f1c0a52-8a1e-4c55-9d0e-2f5d3c1b7a90","change_number":"AFF-CHG0000002","history":[{"actor":"aff-guardian","at":"2026-10-27T09:30:00Z","from_status":"submitted","reason":"claimed","to_status":"intake"},{"actor":"aff-guardian","at":"2026-10-27T09:30:00Z","detail":{"copilot":"no assessment was made","stage":"assessing"},"from_status":"assessing","to_status":"awaiting_approval"}],"stage":{"description":"Independent authorisation by a person other than the requester.","detail":"Waiting for an approver","key":"approval","label":"Change Approval","number":7,"outcome":"waiting","state":"waiting","total":11},"status":"awaiting_approval","why_not":[]}]},"ChangeStages":{"properties":{"change_id":{"type":"string","format":"uuid","title":"Change Id","description":"The change's id."},"change_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Number","description":"The change's number, AFF-CHG0000001."},"status":{"type":"string","title":"Status","description":"The detailed status the stage is worked out from."},"stage":{"$ref":"#/components/schemas/StageOut","description":"The stage the change is at now."},"stages":{"items":{"$ref":"#/components/schemas/StageStep"},"type":"array","title":"Stages","description":"All eleven stages, in order, for a progress bar."}},"type":"object","required":["change_id","change_number","status","stage","stages"],"title":"ChangeStages","description":"The stepper for one change: every stage with its state and times.","examples":[{"change_id":"6f1c0a52-8a1e-4c55-9d0e-2f5d3c1b7a90","change_number":"AFF-CHG0000002","stage":{"description":"Independent authorisation by a person other than the requester.","detail":"Waiting for an approver","key":"approval","label":"Change Approval","number":7,"outcome":"waiting","state":"waiting","total":11},"stages":[{"completed_at":"2026-10-27T09:30:00Z","description":"The request is raised and recorded with its number.","entered_at":"2026-10-27T09:30:00Z","key":"submitted","label":"Change Submission","number":0,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"AI analyses the request: the intent, the scope, the values given and anything unclear.","entered_at":"2026-10-27T09:30:00Z","key":"analysis","label":"Request Analysis","number":1,"state":"done"},{"description":"AI selects the approved runbook for the request. Not applicable when the request named one.","detail":"Not needed: the request named the runbook","key":"planning","label":"Runbook Selection","number":2,"state":"skipped"},{"completed_at":"2026-10-27T09:30:00Z","description":"Automated policy checks: approved runbook, approved devices, scope, conflicts and the change window. Nothing is touched yet.","entered_at":"2026-10-27T09:30:00Z","key":"request_check","label":"Policy Validation","number":3,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"Read-only checks of the target devices, tested against the runbook's conditions.","entered_at":"2026-10-27T09:30:00Z","key":"device_check","label":"Pre-Change Validation","number":4,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"The risk of the change is rated low, medium or high from fixed factors, with the reasons.","entered_at":"2026-10-27T09:30:00Z","key":"risk","label":"Risk Assessment","number":5,"state":"done"},{"completed_at":"2026-10-27T09:30:00Z","description":"The exact commands per device and the written impact assessment for the approver.","entered_at":"2026-10-27T09:30:00Z","key":"assessment","label":"Execution Planning","number":6,"state":"done"},{"description":"Independent authorisation by a person other than the requester.","detail":"Waiting for an approver","entered_at":"2026-10-27T09:30:00Z","key":"approval","label":"Change Approval","number":7,"state":"waiting"},{"description":"The change is carried out on the devices, once, inside its window.","key":"execution","label":"Orchestrator Execution","number":8,"state":"pending"},{"description":"The result is verified on the devices. If verification fails the change is rolled back.","key":"verification","label":"Post-Execution Validation","number":9,"state":"pending"},{"description":"The change is closed and its report is complete.","key":"closure","label":"Closure","number":10,"state":"pending"}],"status":"awaiting_approval"}]},"ChangeSummary":{"properties":{"raised":{"type":"integer","title":"Raised"},"by_origin":{"$ref":"#/components/schemas/Origins"},"by_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Status"},"by_change_type":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Change Type"},"closed":{"type":"integer","title":"Closed"},"success_rate_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Success Rate Percent"},"excluded_servicenow":{"type":"integer","title":"Excluded Servicenow"}},"type":"object","required":["raised","by_origin","by_status","by_change_type","closed","success_rate_percent","excluded_servicenow"],"title":"ChangeSummary"},"ChangeWindow":{"properties":{"days":{"type":"integer","title":"Days"},"start_date":{"type":"string","format":"date","title":"Start Date"},"end_date":{"type":"string","format":"date","title":"End Date"},"timezone":{"type":"string","const":"UTC","title":"Timezone","default":"UTC"}},"type":"object","required":["days","start_date","end_date"],"title":"ChangeWindow"},"CloseSplit":{"properties":{"aff_run_mean_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Aff Run Mean Minutes"},"approval_wait_mean_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Approval Wait Mean Minutes"}},"type":"object","required":["aff_run_mean_minutes","approval_wait_mean_minutes"],"title":"CloseSplit","description":"Where the time of the closed changes went, on average."},"CloseStats":{"properties":{"count":{"type":"integer","title":"Count"},"mean_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Minutes"},"median_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Minutes"},"p90_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"P90 Minutes"},"max_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Minutes"}},"type":"object","required":["count"],"title":"CloseStats","description":"count, mean, median and p90 (from MttrGroup) of a set of times, plus the longest."},"CloseUnmeasured":{"properties":{"no_closed_row":{"type":"integer","title":"No Closed Row"},"clock_backwards":{"type":"integer","title":"Clock Backwards"},"incomplete_history":{"type":"integer","title":"Incomplete History"}},"type":"object","required":["no_closed_row","clock_backwards","incomplete_history"],"title":"CloseUnmeasured","description":"Closed changes a time could not be worked out for. Never counted as zero."},"CloseView":{"properties":{"gross":{"$ref":"#/components/schemas/CloseStats"},"excluding_approval":{"$ref":"#/components/schemas/CloseStats"}},"type":"object","required":["gross","excluding_approval"],"title":"CloseView","description":"The same closed changes seen two ways. `excluding_approval` counts only the changes whose\nhistory is complete enough to take the approval wait out, so its count can be lower."},"ClusterUsage":{"properties":{"cpu_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpu Pct"},"memory_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Memory Pct"},"disk_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Disk Pct"},"allocatable_cpu_cores":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Allocatable Cpu Cores"},"allocatable_memory_bytes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Allocatable Memory Bytes"}},"type":"object","title":"ClusterUsage","description":"Now (the last few minutes), across every node."},"ClusterUsagePoint":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"cpu_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpu Pct"},"memory_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Memory Pct"},"disk_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Disk Pct"}},"type":"object","required":["timestamp"],"title":"ClusterUsagePoint"},"ComponentPod":{"properties":{"name":{"type":"string","title":"Name"},"phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase"},"ready":{"type":"boolean","title":"Ready","default":false},"cpu_cores":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpu Cores"},"memory_bytes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Memory Bytes"},"restarts_total":{"type":"integer","title":"Restarts Total","default":0},"restarts_in_range":{"type":"integer","title":"Restarts In Range","default":0}},"type":"object","required":["name"],"title":"ComponentPod"},"ComponentStatus":{"properties":{"name":{"type":"string","title":"Name"},"status":{"type":"string","enum":["healthy","degraded","down"],"title":"Status"},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"},"replicas_desired":{"type":"integer","title":"Replicas Desired","default":0},"replicas_available":{"type":"integer","title":"Replicas Available","default":0},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"cpu_cores":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpu Cores"},"cpu_limit_cores":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpu Limit Cores"},"cpu_pct_of_limit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpu Pct Of Limit"},"cpu_throttled_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpu Throttled Pct"},"memory_bytes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Memory Bytes"},"memory_limit_bytes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Memory Limit Bytes"},"memory_pct_of_limit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Memory Pct Of Limit"},"restarts_total":{"type":"integer","title":"Restarts Total","default":0},"restarts_in_range":{"type":"integer","title":"Restarts In Range","default":0},"pods":{"items":{"$ref":"#/components/schemas/ComponentPod"},"type":"array","title":"Pods"}},"type":"object","required":["name","status"],"title":"ComponentStatus","description":"One deployment in the namespace, its pods added up."},"ContributingFactor":{"properties":{"kind":{"type":"string","enum":["alert","topology","change","capacity","external","other"],"title":"Kind"},"description":{"type":"string","maxLength":2000,"minLength":1,"title":"Description"},"device_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Device Key"},"alert_ids":{"items":{"type":"string"},"type":"array","maxItems":100,"title":"Alert Ids"}},"additionalProperties":false,"type":"object","required":["kind","description"],"title":"ContributingFactor"},"ControlsIn":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"frozen_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Frozen Until","description":"No slot is raised until this time (with a zone)."}},"additionalProperties":false,"type":"object","title":"ControlsIn","description":"Switch it on or off, or freeze it. Only what is sent changes: `frozen_until: null` lifts a\nfreeze."},"ConversationExport":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"items":{"items":{"$ref":"#/components/schemas/ConversationQuery"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total","description":"Questions in the whole conversation."},"truncated":{"type":"boolean","title":"Truncated","description":"True when the conversation has more questions than `items` holds: the earliest ones are left out."}},"type":"object","required":["conversation_id","items","total","truncated"],"title":"ConversationExport","description":"What a chat export is made from: the latest questions of one conversation, oldest first."},"ConversationList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ConversationSummary"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Send as `cursor` for the next page; null on the last page."}},"type":"object","required":["items"],"title":"ConversationList"},"ConversationQuery":{"properties":{"query_id":{"type":"string","format":"uuid","title":"Query Id"},"question":{"type":"string","title":"Question"},"answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer"},"asked_at":{"type":"string","format":"date-time","title":"Asked At"},"feedback":{"anyOf":[{"type":"string","enum":["helpful","not_helpful"]},{"type":"null"}],"title":"Feedback"},"feedback_reason":{"anyOf":[{"type":"string","enum":["wrong_number","missing_data","no_answer","too_slow","unsafe","other"]},{"type":"null"}],"title":"Feedback Reason"},"feedback_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback Note"},"feedback_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Feedback At"}},"type":"object","required":["query_id","question","asked_at"],"title":"ConversationQuery"},"ConversationQueryList":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"items":{"items":{"$ref":"#/components/schemas/ConversationQuery"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Send as `cursor` for the next page; null on the last page."}},"type":"object","required":["conversation_id","items"],"title":"ConversationQueryList"},"ConversationSummary":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"title":{"type":"string","title":"Title"},"query_count":{"type":"integer","title":"Query Count"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"last_activity_at":{"type":"string","format":"date-time","title":"Last Activity At"}},"type":"object","required":["conversation_id","title","query_count","started_at","last_activity_at"],"title":"ConversationSummary"},"CopilotChatRequest":{"properties":{"message":{"type":"string","maxLength":2000,"minLength":1,"title":"Message"},"conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Conversation Id","description":"Continue this conversation. Leave it out to start a new one, then send back the conversation_id of the response with every follow-up question. A new chat is simply a request without one."}},"type":"object","required":["message"],"title":"CopilotChatRequest","examples":[{"message":"show all open incidents"}]},"CopilotChatResponse":{"properties":{"answer":{"type":"string","title":"Answer"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id","description":"Send this back with the next question to keep the conversation going."},"query_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Query Id","description":"The saved answer, which a thumbs up or down is about (PUT /api/v2/copilot/queries/{query_id}/feedback). Null when the turn was not saved."}},"type":"object","required":["answer","conversation_id"],"title":"CopilotChatResponse"},"Coverage":{"properties":{"incident_flow_live_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Incident Flow Live Since"},"days_flow_live_in_window":{"type":"number","title":"Days Flow Live In Window"},"basis":{"type":"string","enum":["window","live"],"title":"Basis"},"note":{"type":"string","title":"Note"}},"type":"object","required":["incident_flow_live_since","days_flow_live_in_window","basis","note"],"title":"Coverage"},"DailyFigures":{"properties":{"records_received":{"type":"integer","title":"Records Received"},"events_after_dedup":{"type":"integer","title":"Events After Dedup"},"duplicates_removed_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duplicates Removed Percent"},"new_alert_rows":{"type":"integer","title":"New Alert Rows"},"situations":{"type":"integer","title":"Situations"},"incidents":{"type":"integer","title":"Incidents"},"incidents_from_situations":{"type":"integer","title":"Incidents From Situations"},"incidents_from_standalone_alerts":{"type":"integer","title":"Incidents From Standalone Alerts"},"incidents_auto_resolved":{"type":"integer","title":"Incidents Auto Resolved"},"avg_minutes_alert_to_incident":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Minutes Alert To Incident"},"incidents_created_after_cap":{"type":"integer","title":"Incidents Created After Cap"},"l1_hours_saved":{"type":"number","title":"L1 Hours Saved"},"l2_hours_saved":{"type":"number","title":"L2 Hours Saved"},"total_hours_saved":{"type":"number","title":"Total Hours Saved"}},"type":"object","required":["records_received","events_after_dedup","duplicates_removed_percent","new_alert_rows","situations","incidents","incidents_from_situations","incidents_from_standalone_alerts","incidents_auto_resolved","avg_minutes_alert_to_incident","incidents_created_after_cap","l1_hours_saved","l2_hours_saved","total_hours_saved"],"title":"DailyFigures","description":"One day's measured volumes and the estimated engineer time they saved. The same shape is\nused for the overall row, which is the sum of the days."},"DailyRow":{"properties":{"records_received":{"type":"integer","title":"Records Received"},"events_after_dedup":{"type":"integer","title":"Events After Dedup"},"duplicates_removed_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duplicates Removed Percent"},"new_alert_rows":{"type":"integer","title":"New Alert Rows"},"situations":{"type":"integer","title":"Situations"},"incidents":{"type":"integer","title":"Incidents"},"incidents_from_situations":{"type":"integer","title":"Incidents From Situations"},"incidents_from_standalone_alerts":{"type":"integer","title":"Incidents From Standalone Alerts"},"incidents_auto_resolved":{"type":"integer","title":"Incidents Auto Resolved"},"avg_minutes_alert_to_incident":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Minutes Alert To Incident"},"incidents_created_after_cap":{"type":"integer","title":"Incidents Created After Cap"},"l1_hours_saved":{"type":"number","title":"L1 Hours Saved"},"l2_hours_saved":{"type":"number","title":"L2 Hours Saved"},"total_hours_saved":{"type":"number","title":"Total Hours Saved"},"date":{"type":"string","format":"date","title":"Date"},"partial_day":{"type":"boolean","title":"Partial Day"}},"type":"object","required":["records_received","events_after_dedup","duplicates_removed_percent","new_alert_rows","situations","incidents","incidents_from_situations","incidents_from_standalone_alerts","incidents_auto_resolved","avg_minutes_alert_to_incident","incidents_created_after_cap","l1_hours_saved","l2_hours_saved","total_hours_saved","date","partial_day"],"title":"DailyRow"},"DailySeriesResponse":{"properties":{"days":{"type":"integer","title":"Days"},"detection_cap_minutes":{"type":"integer","title":"Detection Cap Minutes"},"start_date":{"type":"string","format":"date","title":"Start Date"},"end_date":{"type":"string","format":"date","title":"End Date"},"daily":{"items":{"$ref":"#/components/schemas/DailyRow"},"type":"array","title":"Daily"},"overall":{"$ref":"#/components/schemas/DailyFigures"},"assumptions":{"$ref":"#/components/schemas/Assumptions"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"}},"type":"object","required":["days","detection_cap_minutes","start_date","end_date","daily","overall","assumptions","notes"],"title":"DailySeriesResponse"},"DecisionOut":{"properties":{"change_id":{"type":"string","format":"uuid","title":"Change Id","description":"The change's id."},"change_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Number","description":"The change's number, AFF-CHG0000001."},"status":{"type":"string","title":"Status","description":"`approved` after an approval (the executor takes it from there), `denied` after a rejection."},"approval_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval State","description":"`approved` or `rejected`."},"approved_by":{"anyOf":[{"$ref":"#/components/schemas/Person"},{"type":"null"}],"description":"Who decided it."},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At","description":"When they decided."},"status_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Reason","description":"The comment or the reason they gave."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"When the change last changed."}},"type":"object","required":["change_id","change_number","status","approval_state","approved_by","approved_at","status_reason","updated_at"],"title":"DecisionOut","examples":[{"approval_state":"approved","approved_at":"2026-10-27T09:30:00Z","approved_by":{"name":"Sai Kiran","oid":"3b9e7d10-5c2a-4f6e-9a41-0d8c1e7b2f55"},"change_id":"6f1c0a52-8a1e-4c55-9d0e-2f5d3c1b7a90","change_number":"AFF-CHG0000002","status":"approved","status_reason":"Subnet and AS checked against the design; rollback is ready.","updated_at":"2026-10-27T09:30:00Z"}]},"DemoActionOut":{"properties":{"action_id":{"type":"string","format":"uuid","title":"Action Id"},"action":{"type":"string","enum":["load_start","load_stop","service_break","service_restore","reset"],"title":"Action"},"status":{"type":"string","enum":["requested","running","done","failed"],"title":"Status","description":"`requested`: waiting for the executor. `running`: its Job is running. `done`: it worked (`result` says what it did). `failed`: it did not (`message` says why)."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","description":"Why it failed or was refused."},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result","description":"What the Job reported when it worked."},"requested_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested By"},"requested_at":{"type":"string","format":"date-time","title":"Requested At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"}},"type":"object","required":["action_id","action","status","message","result","requested_by","requested_at","started_at","finished_at"],"title":"DemoActionOut"},"DemoStatus":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"False: the controls are switched off and nothing is allowed."},"busy":{"anyOf":[{"$ref":"#/components/schemas/DemoActionOut"},{"type":"null"}],"description":"The action that is waiting or running."},"load":{"$ref":"#/components/schemas/LoadState"},"service":{"$ref":"#/components/schemas/ServiceState"},"in_the_way":{"items":{"type":"string"},"type":"array","title":"In The Way","description":"What is open on the scale set (an alert, an incident, an unfinished change) and keeps load and a stopped service from being started."},"capacity":{"$ref":"#/components/schemas/CapacityOut","description":"How many VMs there are (see the capacity call)."},"actions":{"additionalProperties":{"$ref":"#/components/schemas/ActionState"},"propertyNames":{"enum":["load_start","load_stop","service_break","service_restore","reset"]},"type":"object","title":"Actions","description":"What each button may do now."},"recent":{"items":{"$ref":"#/components/schemas/DemoActionOut"},"type":"array","title":"Recent","description":"The latest actions, newest first."}},"type":"object","required":["enabled","busy","load","service","in_the_way","capacity","actions","recent"],"title":"DemoStatus"},"DetectToAssign":{"properties":{"overall":{"$ref":"#/components/schemas/DurationStats"},"by_priority":{"additionalProperties":{"$ref":"#/components/schemas/DurationStats"},"type":"object","title":"By Priority"},"cap_minutes":{"type":"integer","title":"Cap Minutes"},"within_cap":{"$ref":"#/components/schemas/DurationStats"},"over_cap":{"$ref":"#/components/schemas/DurationStats"},"headline":{"$ref":"#/components/schemas/models_workflow__DetectionHeadline"},"left_out_unknown_time":{"type":"integer","title":"Left Out Unknown Time"},"note":{"type":"string","title":"Note"}},"type":"object","required":["overall","by_priority","cap_minutes","within_cap","over_cap","headline","left_out_unknown_time","note"],"title":"DetectToAssign","description":"The time from a problem's first alert to its incident getting an assignment group: the\nactual figure today, with no target yet."},"DeviceAvailabilityResponse":{"properties":{"device_id":{"type":"string","title":"Device Id"},"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"current_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current State"},"up_pct":{"type":"number","title":"Up Pct","default":0.0},"down_pct":{"type":"number","title":"Down Pct","default":0.0},"unknown_pct":{"type":"number","title":"Unknown Pct","default":0.0},"undefined_pct":{"type":"number","title":"Undefined Pct","default":0.0},"total_availability_pct":{"type":"number","title":"Total Availability Pct","default":0.0},"total_downtime_seconds":{"type":"integer","title":"Total Downtime Seconds","default":0},"total_degraded_seconds":{"type":"integer","title":"Total Degraded Seconds","default":0},"total_paused_seconds":{"type":"integer","title":"Total Paused Seconds","default":0},"downtime_count":{"type":"integer","title":"Downtime Count","default":0},"degraded_count":{"type":"integer","title":"Degraded Count","default":0},"pause_count":{"type":"integer","title":"Pause Count","default":0},"downtime_periods":{"items":{"$ref":"#/components/schemas/AvailabilityPeriod"},"type":"array","title":"Downtime Periods"},"degraded_periods":{"items":{"$ref":"#/components/schemas/AvailabilityPeriod"},"type":"array","title":"Degraded Periods"},"pause_periods":{"items":{"$ref":"#/components/schemas/AvailabilityPeriod"},"type":"array","title":"Pause Periods"}},"type":"object","required":["device_id","start","end"],"title":"DeviceAvailabilityResponse","description":"One OpsRamp device's uptime over a window (OpsRamp's\n/resources/{id}/availability, mapped to this API's snake_case shape)."},"DomainBlock":{"properties":{"domain":{"type":"string","enum":["dcn","campus"],"title":"Domain"},"label":{"type":"string","title":"Label"},"count":{"type":"integer","title":"Count"},"by_queue":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Queue"},"groups":{"items":{"$ref":"#/components/schemas/Group"},"type":"array","title":"Groups"}},"type":"object","required":["domain","label","count","by_queue","groups"],"title":"DomainBlock"},"DomainOverrideIn":{"properties":{"domain":{"type":"string","enum":["dcn","campus"],"title":"Domain"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["domain"],"title":"DomainOverrideIn"},"DomainOverrideList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DomainOverrideOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"DomainOverrideList"},"DomainOverrideOut":{"properties":{"device_key":{"type":"string","title":"Device Key"},"domain":{"type":"string","enum":["dcn","campus"],"title":"Domain"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"set_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Set By"},"set_at":{"type":"string","format":"date-time","title":"Set At"},"device_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Role"},"domain_from_role":{"type":"string","enum":["dcn","campus"],"title":"Domain From Role"}},"type":"object","required":["device_key","domain","note","set_by","set_at","device_role","domain_from_role"],"title":"DomainOverrideOut"},"DriftList":{"properties":{"summary":{"$ref":"#/components/schemas/DriftSummary"},"items":{"items":{"$ref":"#/components/schemas/DriftOut"},"type":"array","title":"Items","description":"The latest episodes, newest first."}},"type":"object","required":["summary","items"],"title":"DriftList"},"DriftOut":{"properties":{"drift_id":{"type":"string","format":"uuid","title":"Drift Id"},"state":{"type":"string","enum":["watching","no_action","exception","raised","resolved","failed"],"title":"State","description":"`watching`: seen, the gates have not held long enough. `no_action`: demand explains it. `exception`: held for a long time by something other than demand, left for a person. `raised`: the change back to the schedule's count is raised. `resolved`: the count is back. `failed`: the change did not put it back and is not tried again."},"detected_at":{"type":"string","format":"date-time","title":"Detected At"},"actual":{"type":"integer","title":"Actual"},"target":{"type":"integer","title":"Target"},"cpu_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpu Percent"},"excess_vm_hours":{"type":"number","title":"Excess Vm Hours","description":"Extra VMs times hours, up to the fix."},"avoided_vm_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avoided Vm Hours","description":"Extra VM-hours the fix saves until the schedule's next slot: a projection."},"estimated_cost_avoided":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Cost Avoided","description":"`avoided_vm_hours` times the configured VM-hour price; absent without one."},"reason":{"type":"string","title":"Reason"},"change_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Change Id"},"change_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Number"},"raised_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Raised At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"}},"type":"object","required":["drift_id","state","detected_at","actual","target","cpu_percent","excess_vm_hours","avoided_vm_hours","estimated_cost_avoided","reason","change_id","change_number","raised_at","ended_at"],"title":"DriftOut","description":"One episode of a scale set running more VMs than its schedule asks for (UC-028)."},"DriftSummary":{"properties":{"episodes":{"type":"integer","title":"Episodes"},"resolved_by_a_change":{"type":"integer","title":"Resolved By A Change","description":"Ended with the count back after a change."},"failed":{"type":"integer","title":"Failed"},"exceptions":{"type":"integer","title":"Exceptions","description":"Left for a person."},"no_action":{"type":"integer","title":"No Action","description":"Explained by demand, or ended by itself with no change."},"excess_vm_hours":{"type":"number","title":"Excess Vm Hours"},"avoided_vm_hours":{"type":"number","title":"Avoided Vm Hours"},"estimated_cost_avoided":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Cost Avoided"},"average_minutes_to_change":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Minutes To Change","description":"From the excess being seen to the change being raised."}},"type":"object","required":["episodes","resolved_by_a_change","failed","exceptions","no_action","excess_vm_hours","avoided_vm_hours","estimated_cost_avoided","average_minutes_to_change"],"title":"DriftSummary"},"Duration":{"properties":{"seconds":{"type":"number","title":"Seconds"},"text":{"type":"string","title":"Text"}},"type":"object","required":["seconds","text"],"title":"Duration"},"DurationStats":{"properties":{"count":{"type":"integer","title":"Count"},"average":{"anyOf":[{"$ref":"#/components/schemas/Duration"},{"type":"null"}]},"median":{"anyOf":[{"$ref":"#/components/schemas/Duration"},{"type":"null"}]},"p90":{"anyOf":[{"$ref":"#/components/schemas/Duration"},{"type":"null"}]}},"type":"object","required":["count"],"title":"DurationStats"},"ErrorDetail":{"properties":{"field":{"type":"string","title":"Field"},"message":{"type":"string","title":"Message"}},"type":"object","required":["field","message"],"title":"ErrorDetail"},"ErrorOut":{"properties":{"error":{"type":"string","title":"Error"},"message":{"type":"string","title":"Message"},"details":{"anyOf":[{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array"},{"type":"null"}],"title":"Details"}},"type":"object","required":["error","message"],"title":"ErrorOut","description":"Every error of these APIs has this shape: a stable `error` code to program against, and a\n`message` for a person."},"Evidence":{"properties":{"occurrences":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Occurrences"},"last_4_weeks":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last 4 Weeks"},"weekly_counts":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Weekly Counts","description":"Incidents per 7-day bucket, oldest first, the last one ending yesterday"},"weekly_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weekly Rate"},"last_seen":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Seen"},"days_since_last":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Since Last"},"typical_gap_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Typical Gap Days"},"gap_range_days":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Gap Range Days"},"occurrence_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Occurrence Days"},"earlier_weekly_average":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Earlier Weekly Average"},"recent_weekly_average":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Recent Weekly Average"},"top_sites":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Top Sites"},"incident_numbers":{"items":{"type":"string"},"type":"array","title":"Incident Numbers","description":"The latest incidents behind it, newest first"}},"type":"object","title":"Evidence","description":"What the prediction is based on. Which fields are set depends on its kind."},"Excluded":{"properties":{"not_finished":{"type":"integer","title":"Not Finished"},"stopped":{"type":"integer","title":"Stopped"},"no_timings":{"type":"integer","title":"No Timings"}},"type":"object","required":["not_finished","stopped","no_timings"],"title":"Excluded","description":"Changes left out of the saving, and why. Never counted as zero hours."},"FabricHealthResponse":{"properties":{"overall":{"$ref":"#/components/schemas/FabricOverallHealth"},"nodes":{"items":{"$ref":"#/components/schemas/FabricNodeHealthItem"},"type":"array","title":"Nodes"}},"type":"object","required":["overall"],"title":"FabricHealthResponse"},"FabricNodeHealthItem":{"properties":{"node_id":{"type":"string","format":"uuid","title":"Node Id"},"name":{"type":"string","title":"Name"},"device_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Type"},"health_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Health Status"},"fabric_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fabric State"},"operational_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operational State"}},"type":"object","required":["node_id","name"],"title":"FabricNodeHealthItem"},"FabricOverallHealth":{"properties":{"total":{"type":"integer","title":"Total","default":0},"healthy":{"type":"integer","title":"Healthy","default":0},"degraded":{"type":"integer","title":"Degraded","default":0},"critical":{"type":"integer","title":"Critical","default":0},"unknown":{"type":"integer","title":"Unknown","default":0},"status":{"type":"string","title":"Status","default":"unknown"}},"type":"object","title":"FabricOverallHealth"},"FabricTopologyMapResponse":{"properties":{"summary":{"$ref":"#/components/schemas/FabricTopologySummaryResponse"},"nodes":{"items":{"$ref":"#/components/schemas/TopologyNodeRecord"},"type":"array","title":"Nodes"},"edges":{"items":{"$ref":"#/components/schemas/TopologyEdgeRecord"},"type":"array","title":"Edges"}},"type":"object","required":["summary"],"title":"FabricTopologyMapResponse"},"FabricTopologySummaryResponse":{"properties":{"total":{"type":"integer","title":"Total","default":0},"controllers":{"type":"integer","title":"Controllers","default":0},"spines":{"type":"integer","title":"Spines","default":0},"leaves":{"type":"integer","title":"Leaves","default":0}},"type":"object","title":"FabricTopologySummaryResponse"},"FaultCountResponse":{"properties":{"total":{"type":"integer","title":"Total","default":0},"active":{"type":"integer","title":"Active","default":0},"acknowledged":{"type":"integer","title":"Acknowledged","default":0},"cleared":{"type":"integer","title":"Cleared","default":0},"by_severity":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Severity"}},"type":"object","title":"FaultCountResponse"},"FaultRecord":{"properties":{"alert_id":{"type":"string","format":"uuid","title":"Alert Id"},"source_alert_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Alert Id"},"node_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Node Id"},"alert_type":{"type":"string","title":"Alert Type"},"normalised_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Normalised Type"},"severity":{"type":"string","title":"Severity"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"status":{"type":"string","title":"Status"},"raised_at":{"type":"string","format":"date-time","title":"Raised At"},"cleared_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cleared At"},"payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload"}},"type":"object","required":["alert_id","alert_type","severity","status","raised_at"],"title":"FaultRecord"},"FeedbackCreate":{"properties":{"comment":{"type":"string","maxLength":2000,"minLength":1,"title":"Comment"}},"additionalProperties":false,"type":"object","required":["comment"],"title":"FeedbackCreate","description":"A note from a person about an incident and its analysis."},"FeedbackIn":{"properties":{"rating":{"type":"string","enum":["helpful","not_helpful"],"title":"Rating"},"reason":{"anyOf":[{"type":"string","enum":["wrong_number","missing_data","no_answer","too_slow","unsafe","other"]},{"type":"null"}],"title":"Reason","description":"What was wrong: only with `not_helpful`. A short fixed list, so it can be counted."},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note","description":"Anything to add. People who review answers read it; the model never does. A blank note is no note."}},"additionalProperties":false,"type":"object","required":["rating"],"title":"FeedbackIn","description":"A thumbs up or down on one answer, from the person who asked."},"FeedbackOut":{"properties":{"query_id":{"type":"string","format":"uuid","title":"Query Id"},"rating":{"type":"string","enum":["helpful","not_helpful"],"title":"Rating"},"reason":{"anyOf":[{"type":"string","enum":["wrong_number","missing_data","no_answer","too_slow","unsafe","other"]},{"type":"null"}],"title":"Reason"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"rated_at":{"type":"string","format":"date-time","title":"Rated At"}},"type":"object","required":["query_id","rating","rated_at"],"title":"FeedbackOut"},"FewHistory":{"properties":{"issue":{"type":"string","title":"Issue"},"issue_key":{"type":"string","title":"Issue Key"},"where":{"$ref":"#/components/schemas/Where"},"occurrences":{"type":"integer","title":"Occurrences"},"needed":{"type":"integer","title":"Needed"}},"type":"object","required":["issue","issue_key","where","occurrences","needed"],"title":"FewHistory"},"ForecastWindow":{"properties":{"from":{"type":"string","format":"date","title":"From","description":"First IST day looked at"},"to":{"type":"string","format":"date","title":"To","description":"Last IST day looked at: the day before the forecast's day"},"days":{"type":"integer","title":"Days"},"weeks":{"type":"integer","title":"Weeks","description":"Whole 7-day buckets, counted back from yesterday"},"incident_count":{"type":"integer","title":"Incident Count"},"unclassified_count":{"type":"integer","title":"Unclassified Count","description":"Incidents with no fault type: counted, but part of no prediction","default":0}},"type":"object","required":["from","to","days","weeks","incident_count"],"title":"ForecastWindow"},"FoundryModelUsage":{"properties":{"input_tokens":{"type":"number","title":"Input Tokens","default":0},"output_tokens":{"type":"number","title":"Output Tokens","default":0},"total_tokens":{"type":"number","title":"Total Tokens","default":0},"cached_input_tokens":{"type":"number","title":"Cached Input Tokens","default":0},"requests":{"type":"number","title":"Requests","default":0},"failed_requests":{"type":"number","title":"Failed Requests","default":0},"throttled_requests":{"type":"number","title":"Throttled Requests","default":0},"error_rate_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Error Rate Pct"},"avg_time_to_response_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Time To Response Ms"},"avg_time_to_first_token_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Time To First Token Ms"},"avg_tokens_per_second":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Tokens Per Second"},"estimated_cost_usd":{"type":"number","title":"Estimated Cost Usd","default":0},"deployment":{"type":"string","title":"Deployment"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name"},"model_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Version"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sku"},"capacity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Capacity"},"series":{"items":{"$ref":"#/components/schemas/FoundryUsagePoint"},"type":"array","title":"Series"}},"type":"object","required":["deployment"],"title":"FoundryModelUsage","description":"One model deployment on the account: listed even when it served nothing in the range."},"FoundryUsage":{"properties":{"input_tokens":{"type":"number","title":"Input Tokens","default":0},"output_tokens":{"type":"number","title":"Output Tokens","default":0},"total_tokens":{"type":"number","title":"Total Tokens","default":0},"cached_input_tokens":{"type":"number","title":"Cached Input Tokens","default":0},"requests":{"type":"number","title":"Requests","default":0},"failed_requests":{"type":"number","title":"Failed Requests","default":0},"throttled_requests":{"type":"number","title":"Throttled Requests","default":0},"error_rate_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Error Rate Pct"},"avg_time_to_response_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Time To Response Ms"},"avg_time_to_first_token_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Time To First Token Ms"},"avg_tokens_per_second":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Tokens Per Second"},"estimated_cost_usd":{"type":"number","title":"Estimated Cost Usd","default":0}},"type":"object","title":"FoundryUsage"},"FoundryUsagePoint":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"input_tokens":{"type":"number","title":"Input Tokens","default":0},"output_tokens":{"type":"number","title":"Output Tokens","default":0},"total_tokens":{"type":"number","title":"Total Tokens","default":0},"requests":{"type":"number","title":"Requests","default":0},"failed_requests":{"type":"number","title":"Failed Requests","default":0},"estimated_cost_usd":{"type":"number","title":"Estimated Cost Usd","default":0}},"type":"object","required":["timestamp"],"title":"FoundryUsagePoint"},"FoundryUsageResponse":{"properties":{"range":{"type":"string","enum":["1h","24h","7d","30d"],"title":"Range"},"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"interval":{"type":"string","title":"Interval"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"totals":{"$ref":"#/components/schemas/FoundryUsage"},"models":{"items":{"$ref":"#/components/schemas/FoundryModelUsage"},"type":"array","title":"Models"},"series":{"items":{"$ref":"#/components/schemas/FoundryUsagePoint"},"type":"array","title":"Series"}},"type":"object","required":["range","start","end","interval","generated_at","totals"],"title":"FoundryUsageResponse"},"FunnelCorrelation":{"properties":{"incidents":{"type":"integer","title":"Incidents","default":0},"incidents_created_in_window":{"type":"integer","title":"Incidents Created In Window","default":0},"events_received":{"type":"integer","title":"Events Received","default":0},"links_auto":{"type":"integer","title":"Links Auto","default":0},"links_review":{"type":"integer","title":"Links Review","default":0},"situations_created":{"type":"integer","title":"Situations Created","default":0},"situations_total":{"type":"integer","title":"Situations Total","default":0},"situations_open":{"type":"integer","title":"Situations Open","default":0},"situations_closed":{"type":"integer","title":"Situations Closed","default":0},"situations_auto":{"type":"integer","title":"Situations Auto","default":0},"situations_review":{"type":"integer","title":"Situations Review","default":0},"situations_with_incident":{"type":"integer","title":"Situations With Incident","default":0},"situations_dropped":{"type":"integer","title":"Situations Dropped","default":0},"situations_pending":{"type":"integer","title":"Situations Pending","default":0},"alerts_in_situations":{"type":"integer","title":"Alerts In Situations","default":0}},"type":"object","title":"FunnelCorrelation"},"FunnelHourlyPoint":{"properties":{"bucket_start":{"type":"string","format":"date-time","title":"Bucket Start"},"component":{"type":"string","title":"Component"},"source":{"type":"string","title":"Source"},"metric":{"type":"string","title":"Metric"},"value":{"type":"integer","title":"Value"}},"type":"object","required":["bucket_start","component","source","metric","value"],"title":"FunnelHourlyPoint","description":"One stored counter for one hour, for drawing a time series."},"FunnelIncidents":{"properties":{"available":{"type":"boolean","title":"Available","default":false},"total":{"type":"integer","title":"Total","default":0},"from_situations":{"type":"integer","title":"From Situations","default":0},"from_standalone_alerts":{"type":"integer","title":"From Standalone Alerts","default":0},"standalone_alerts_in_them":{"type":"integer","title":"Standalone Alerts In Them","default":0},"by_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Status"},"created_in_window":{"type":"integer","title":"Created In Window","default":0},"created_in_window_from_situations":{"type":"integer","title":"Created In Window From Situations","default":0},"created_in_window_from_standalone_alerts":{"type":"integer","title":"Created In Window From Standalone Alerts","default":0},"servicenow":{"type":"integer","title":"Servicenow","default":0}},"type":"object","title":"FunnelIncidents","description":"Every AFF incident, whenever it was made, so `total` is the incident count of the dashboard.\nEach is for one situation or for alerts that are in no situation, so `total` is the sum of the\ntwo."},"FunnelSourceCounts":{"properties":{"name":{"type":"string","title":"Name"},"records_received":{"type":"integer","title":"Records Received","default":0},"events_sent":{"type":"integer","title":"Events Sent","default":0},"duplicates_removed":{"type":"integer","title":"Duplicates Removed","default":0},"alert_rows_touched":{"type":"integer","title":"Alert Rows Touched","default":0},"alert_rows_new":{"type":"integer","title":"Alert Rows New","default":0}},"type":"object","required":["name"],"title":"FunnelSourceCounts","description":"One source's path through the pipeline over the window."},"FunnelStandalone":{"properties":{"available":{"type":"boolean","title":"Available","default":false},"incidents":{"type":"integer","title":"Incidents","default":0},"incidents_created_in_window":{"type":"integer","title":"Incidents Created In Window","default":0},"alerts":{"$ref":"#/components/schemas/FunnelStandaloneAlerts"}},"type":"object","title":"FunnelStandalone"},"FunnelStandaloneAlerts":{"properties":{"total":{"type":"integer","title":"Total","default":0},"active":{"type":"integer","title":"Active","default":0},"cleared":{"type":"integer","title":"Cleared","default":0},"with_incident":{"type":"integer","title":"With Incident","default":0},"waiting":{"type":"integer","title":"Waiting","default":0},"ready":{"type":"integer","title":"Ready","default":0},"not_eligible":{"type":"integer","title":"Not Eligible","default":0}},"type":"object","title":"FunnelStandaloneAlerts","description":"Alerts raised in the window that are in no situation, and where they stand. The same numbers\nas GET /standalone-alerts/summary for this window."},"GeneratedBy":{"properties":{"service":{"type":"string","maxLength":100,"minLength":1,"title":"Service"},"version":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Version"},"model":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Model"}},"additionalProperties":false,"type":"object","required":["service"],"title":"GeneratedBy"},"Group":{"properties":{"kind":{"type":"string","title":"Kind"},"highlighted":{"type":"boolean","title":"Highlighted"},"count":{"type":"integer","title":"Count"},"by_queue":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Queue"},"tickets":{"items":{"$ref":"#/components/schemas/Ticket"},"type":"array","title":"Tickets"},"tickets_not_shown":{"type":"integer","title":"Tickets Not Shown"}},"type":"object","required":["kind","highlighted","count","by_queue","tickets","tickets_not_shown"],"title":"Group"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HistoryItem":{"properties":{"from_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Status","description":"The status it left; none for the first entry."},"to_status":{"type":"string","title":"To Status","description":"The status it moved to."},"actor":{"type":"string","title":"Actor","description":"Who or what moved it: a service or a person."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Why, where there is a reason (a denial, a failure)."},"detail":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Detail","description":"Extra facts about the move."},"at":{"type":"string","format":"date-time","title":"At","description":"When it moved."}},"type":"object","required":["from_status","to_status","actor","reason","detail","at"],"title":"HistoryItem"},"HourlyFaultCountItem":{"properties":{"hour":{"type":"string","format":"date-time","title":"Hour"},"count":{"type":"integer","title":"Count","default":0}},"type":"object","required":["hour"],"title":"HourlyFaultCountItem"},"HourlyFaultCountResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/HourlyFaultCountItem"},"type":"array","title":"Items"}},"type":"object","title":"HourlyFaultCountResponse"},"IncidentAction":{"properties":{"change_id":{"type":"string","format":"uuid","title":"Change Id"},"change_number":{"type":"string","title":"Change Number"},"runbook_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Runbook Code"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"status":{"type":"string","title":"Status"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["change_id","change_number","status"],"title":"IncidentAction","description":"A change the incident flow raised for the incident, and where it has got to: it is checked,\napproved and run by the change flow like any change, and this is how the incident shows it."},"IncidentActionRuleList":{"properties":{"available":{"type":"boolean","title":"Available"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"total":{"type":"integer","title":"Total","default":0},"items":{"items":{"$ref":"#/components/schemas/IncidentActionRuleOut"},"type":"array","title":"Items"}},"type":"object","required":["available"],"title":"IncidentActionRuleList"},"IncidentActionRuleOut":{"properties":{"rule_id":{"type":"string","format":"uuid","title":"Rule Id"},"name":{"type":"string","title":"Name","description":"What the rule does, for a person: 'Add a VM to the scale set'."},"enabled":{"type":"boolean","title":"Enabled","description":"A rule is off until a person turns it on; only an enabled one acts."},"fault_class":{"type":"string","title":"Fault Class","description":"The alert kind it answers, for example CPU_PRESSURE."},"device_name":{"type":"string","title":"Device Name","description":"The device (for a scale set, its name) it answers, without case."},"runbook_code":{"type":"string","title":"Runbook Code","description":"The runbook of the change it raises."},"target_names":{"items":{"type":"string"},"type":"array","title":"Target Names","description":"What that change is aimed at."},"parameters":{"additionalProperties":true,"type":"object","title":"Parameters","description":"The values of that change."},"cooldown_minutes":{"type":"integer","title":"Cooldown Minutes","description":"How long after a change that went well the incident waits to act again."},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["rule_id","name","enabled","fault_class","device_name","runbook_code","target_names","parameters","cooldown_minutes"],"title":"IncidentActionRuleOut"},"IncidentAlert":{"properties":{"alert_id":{"type":"string","format":"uuid","title":"Alert Id"},"port":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Port"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"status":{"type":"string","title":"Status"},"raised_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Raised At"},"cleared_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cleared At"}},"type":"object","required":["alert_id","status"],"title":"IncidentAlert","description":"An alert that shares this alert's incident."},"IncidentCandidate":{"properties":{"kind":{"type":"string","enum":["situation","alert"],"title":"Kind"},"id":{"type":"string","format":"uuid","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"state":{"type":"string","title":"State"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"route":{"type":"string","title":"Route"},"is_storm":{"type":"boolean","title":"Is Storm","default":false},"ready_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ready At"},"seconds_to_ready":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seconds To Ready"},"devices":{"items":{"type":"string"},"type":"array","title":"Devices"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"member_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Member Count"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"},"integration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integration"},"fault_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fault Class"},"since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},"type":"object","required":["kind","id","state","route"],"title":"IncidentCandidate"},"IncidentCandidateList":{"properties":{"available":{"type":"boolean","title":"Available"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"total":{"type":"integer","title":"Total","default":0},"limit":{"type":"integer","title":"Limit"},"items":{"items":{"$ref":"#/components/schemas/IncidentCandidate"},"type":"array","title":"Items"}},"type":"object","required":["available","limit"],"title":"IncidentCandidateList"},"IncidentCreate":{"properties":{"situation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Situation Id"},"alert_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Alert Id"},"short_description":{"type":"string","maxLength":500,"minLength":1,"title":"Short Description"},"priority":{"type":"string","enum":["P1","P2","P3","P4"],"title":"Priority"},"rca":{"$ref":"#/components/schemas/Rca"},"blast_radius":{"$ref":"#/components/schemas/BlastRadius"},"description":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Description"},"category":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Category"},"domain_code":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Domain Code"},"assignment_group":{"anyOf":[{"type":"string","enum":["L1","L2","L3"]},{"type":"null"}],"title":"Assignment Group"},"opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opened At"},"timeline":{"anyOf":[{"items":{"$ref":"#/components/schemas/TimelineEvent"},"type":"array","maxItems":500},{"type":"null"}],"title":"Timeline"},"use_case_codes":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Use Case Codes"}},"additionalProperties":false,"type":"object","required":["short_description","priority","rca","blast_radius"],"title":"IncidentCreate"},"IncidentForecastResponse":{"properties":{"forecast_date":{"type":"string","format":"date","title":"Forecast Date","description":"The IST day the forecast is for"},"timezone":{"type":"string","title":"Timezone","default":"Asia/Kolkata"},"status":{"type":"string","enum":["ready","stale","not_enough_history","unavailable"],"title":"Status","description":"ready: made today. stale: today's could not be made, this is an earlier day's (see forecast_date and stale_reason). not_enough_history: too little history to forecast. unavailable: none could be made and there is no earlier one"},"generated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Generated At"},"data_through":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Data Through"},"window":{"anyOf":[{"$ref":"#/components/schemas/ForecastWindow"},{"type":"null"}]},"volume":{"anyOf":[{"$ref":"#/components/schemas/Volume"},{"type":"null"}]},"predictions":{"items":{"$ref":"#/components/schemas/Prediction"},"type":"array","title":"Predictions"},"not_enough_history":{"items":{"$ref":"#/components/schemas/FewHistory"},"type":"array","title":"Not Enough History"},"method":{"anyOf":[{"$ref":"#/components/schemas/Method"},{"type":"null"}]},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"},"stale_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stale Reason","description":"stale only: why today's was not made"}},"type":"object","required":["forecast_date","status"],"title":"IncidentForecastResponse"},"IncidentList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/IncidentListItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"IncidentList"},"IncidentListItem":{"properties":{"incident_id":{"type":"string","format":"uuid","title":"Incident Id"},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number"},"source_system":{"type":"string","title":"Source System"},"status":{"type":"string","title":"Status"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"short_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Description"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"domain_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Code"},"assignment_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignment Group"},"situation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Situation Id"},"alert_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Alert Id"},"is_primary_for_situation":{"type":"boolean","title":"Is Primary For Situation","default":false},"revision":{"type":"integer","title":"Revision","default":1},"itsm_incidents":{"items":{"$ref":"#/components/schemas/ItsmIncident"},"type":"array","title":"Itsm Incidents"},"opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opened At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"root_cause_device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Root Cause Device"},"blast_radius_device_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Blast Radius Device Count"},"blast_radius_severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blast Radius Severity"},"approval_state":{"anyOf":[{"type":"string","enum":["none","approved","outdated"]},{"type":"null"}],"title":"Approval State"}},"type":"object","required":["incident_id","source_system","status"],"title":"IncidentListItem","description":"The list leaves out the big objects and adds three extracts for a table."},"IncidentOut":{"properties":{"incident_id":{"type":"string","format":"uuid","title":"Incident Id"},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number"},"source_system":{"type":"string","title":"Source System"},"status":{"type":"string","title":"Status"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"short_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Description"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"domain_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Code"},"assignment_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignment Group"},"assigned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Assigned At"},"resolution_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Notes"},"situation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Situation Id"},"alert_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Alert Id"},"correlation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correlation Id"},"site_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Site Id"},"primary_node_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Primary Node Id"},"enrichment_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enrichment Status"},"is_primary_for_situation":{"type":"boolean","title":"Is Primary For Situation","default":false},"link_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Link Confidence"},"linked_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked By"},"revision":{"type":"integer","title":"Revision","default":1},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"som_sys_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Som Sys Id"},"itsm_incidents":{"items":{"$ref":"#/components/schemas/ItsmIncident"},"type":"array","title":"Itsm Incidents"},"sla_due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sla Due At"},"sla_breached":{"type":"boolean","title":"Sla Breached","default":false},"use_case_codes":{"items":{"type":"string"},"type":"array","title":"Use Case Codes"},"approval":{"anyOf":[{"$ref":"#/components/schemas/ApprovalSummary"},{"type":"null"}]},"approval_state":{"anyOf":[{"type":"string","enum":["none","approved","outdated"]},{"type":"null"}],"title":"Approval State"},"opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opened At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"timeline":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Timeline"},"rca":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rca"},"blast_radius":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Blast Radius"},"situation":{"anyOf":[{"$ref":"#/components/schemas/IncidentSituation"},{"type":"null"}]},"actions":{"anyOf":[{"items":{"$ref":"#/components/schemas/IncidentAction"},"type":"array"},{"type":"null"}],"title":"Actions"},"work_notes":{"items":{"$ref":"#/components/schemas/WorkNote"},"type":"array","title":"Work Notes"}},"type":"object","required":["incident_id","source_system","status"],"title":"IncidentOut"},"IncidentPatch":{"properties":{"revision":{"type":"integer","minimum":1.0,"title":"Revision"},"status":{"anyOf":[{"type":"string","enum":["open","in_progress","resolved","closed"]},{"type":"null"}],"title":"Status"},"priority":{"anyOf":[{"type":"string","enum":["P1","P2","P3","P4"]},{"type":"null"}],"title":"Priority"},"short_description":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Short Description"},"description":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Description"},"category":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Category"},"domain_code":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Domain Code"},"assignment_group":{"anyOf":[{"type":"string","enum":["L1","L2","L3"]},{"type":"null"}],"title":"Assignment Group"},"resolution_notes":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Resolution Notes"},"rca":{"anyOf":[{"$ref":"#/components/schemas/Rca"},{"type":"null"}]},"blast_radius":{"anyOf":[{"$ref":"#/components/schemas/BlastRadius"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["revision"],"title":"IncidentPatch"},"IncidentSituation":{"properties":{"situation_id":{"type":"string","format":"uuid","title":"Situation Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"confidence_band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidence Band"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"member_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Member Count"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"}},"type":"object","required":["situation_id"],"title":"IncidentSituation"},"ItsmIncident":{"properties":{"number":{"type":"string","title":"Number"},"sys_id":{"type":"string","title":"Sys Id"}},"type":"object","required":["number","sys_id"],"title":"ItsmIncident","description":"A ServiceNow (ITSM) incident related to an AFF incident: what to show (`number`) and what\nidentifies it in ServiceNow (`sys_id`)."},"LevelSaving":{"properties":{"level":{"type":"string","enum":["L1","L2","L3"],"title":"Level"},"hours_per_day":{"type":"number","title":"Hours Per Day"},"hours_per_month":{"type":"number","title":"Hours Per Month"},"tasks":{"items":{"$ref":"#/components/schemas/TaskSaving"},"type":"array","title":"Tasks"}},"type":"object","required":["level","hours_per_day","hours_per_month","tasks"],"title":"LevelSaving"},"LoadState":{"properties":{"on":{"type":"boolean","title":"On"},"until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until","description":"When the load ends by itself, while it is on."}},"type":"object","required":["on","until"],"title":"LoadState"},"ManualEffortSaved":{"properties":{"records_counted":{"type":"integer","title":"Records Counted"},"manual_hours":{"type":"number","title":"Manual Hours"},"aff_hours":{"type":"number","title":"Aff Hours"},"saved_hours":{"type":"number","title":"Saved Hours"},"records_floored_to_zero":{"type":"integer","title":"Records Floored To Zero"},"conservative_saved_hours":{"type":"number","title":"Conservative Saved Hours"},"fte_equivalent":{"type":"number","title":"Fte Equivalent"},"by_origin":{"additionalProperties":{"$ref":"#/components/schemas/SavedBucket"},"type":"object","title":"By Origin"},"by_change_type":{"additionalProperties":{"$ref":"#/components/schemas/SavedBucket"},"type":"object","title":"By Change Type"},"tasks":{"items":{"$ref":"#/components/schemas/TaskTotal"},"type":"array","title":"Tasks"},"excluded":{"$ref":"#/components/schemas/Excluded"}},"type":"object","required":["records_counted","manual_hours","aff_hours","saved_hours","records_floored_to_zero","conservative_saved_hours","fte_equivalent","by_origin","by_change_type","tasks","excluded"],"title":"ManualEffortSaved"},"Measured":{"properties":{"records_received":{"type":"integer","title":"Records Received"},"events_after_dedup":{"type":"integer","title":"Events After Dedup"},"duplicates_removed_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duplicates Removed Percent"},"new_alert_rows":{"type":"integer","title":"New Alert Rows"},"situations":{"type":"integer","title":"Situations"},"incidents":{"type":"integer","title":"Incidents"},"incidents_from_situations":{"type":"integer","title":"Incidents From Situations"},"incidents_from_standalone_alerts":{"type":"integer","title":"Incidents From Standalone Alerts"},"incidents_auto_resolved":{"type":"integer","title":"Incidents Auto Resolved"}},"type":"object","required":["records_received","events_after_dedup","duplicates_removed_percent","new_alert_rows","situations","incidents","incidents_from_situations","incidents_from_standalone_alerts","incidents_auto_resolved"],"title":"Measured","description":"What the system actually saw in the window."},"Method":{"properties":{"type":{"type":"string","title":"Type"},"ai_wrote":{"items":{"type":"string"},"type":"array","title":"Ai Wrote","description":"The fields of a prediction the model wrote"},"prompt_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Version"},"rules":{"additionalProperties":true,"type":"object","title":"Rules","description":"The thresholds the numbers were made with"}},"type":"object","required":["type","ai_wrote","rules"],"title":"Method"},"Mttr":{"properties":{"definition":{"type":"string","title":"Definition"},"resolved":{"$ref":"#/components/schemas/MttrGroup"},"resolved_by_aff":{"$ref":"#/components/schemas/MttrGroup"},"resolved_by_person":{"$ref":"#/components/schemas/MttrGroup"},"by_priority":{"additionalProperties":{"$ref":"#/components/schemas/MttrGroup"},"type":"object","title":"By Priority"},"by_origin":{"additionalProperties":{"$ref":"#/components/schemas/MttrGroup"},"type":"object","title":"By Origin"},"open_incidents":{"type":"integer","title":"Open Incidents"},"open_mean_age_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Open Mean Age Minutes"},"detection_to_incident":{"$ref":"#/components/schemas/MttrGroup"},"detection_cap_minutes":{"type":"integer","title":"Detection Cap Minutes"},"detection_within_cap":{"$ref":"#/components/schemas/MttrGroup"},"detection_over_cap":{"$ref":"#/components/schemas/MttrGroup"},"detection_headline":{"$ref":"#/components/schemas/models_analytics__DetectionHeadline"},"baseline_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Baseline Minutes"},"improvement_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Improvement Percent"},"improvement_percent_vs_median":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Improvement Percent Vs Median"}},"type":"object","required":["definition","resolved","resolved_by_aff","resolved_by_person","by_priority","by_origin","open_incidents","open_mean_age_minutes","detection_to_incident","detection_cap_minutes","detection_within_cap","detection_over_cap","detection_headline"],"title":"Mttr","description":"Time from when a problem began (its first alert) to when its incident was resolved."},"MttrGroup":{"properties":{"count":{"type":"integer","title":"Count"},"mean_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Minutes"},"median_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Minutes"},"p90_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"P90 Minutes"}},"type":"object","required":["count"],"title":"MttrGroup"},"NetworkAlertCounts":{"properties":{"total":{"type":"integer","title":"Total","default":0},"by_severity":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Severity"}},"type":"object","title":"NetworkAlertCounts"},"NetworkCable":{"properties":{"canonical_key":{"type":"string","title":"Canonical Key"},"a_port":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"A Port"},"b_port":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"B Port"},"protocol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Protocol"},"speed_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Speed Bps"},"vlans":{"items":{"type":"string"},"type":"array","title":"Vlans"},"session_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session State"},"a_oper_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"A Oper Status"},"b_oper_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"B Oper Status"},"a_admin_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"A Admin Status"},"b_admin_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"B Admin Status"},"is_broken":{"type":"boolean","title":"Is Broken","default":false},"active_alerts":{"type":"integer","title":"Active Alerts","default":0}},"type":"object","required":["canonical_key"],"title":"NetworkCable"},"NetworkConsumer":{"properties":{"component":{"type":"string","title":"Component"},"topology_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topology Version"},"source":{"type":"string","title":"Source"},"link_count":{"type":"integer","title":"Link Count","default":0},"loaded_at":{"type":"string","format":"date-time","title":"Loaded At"},"age_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age Seconds"},"status":{"type":"string","title":"Status"}},"type":"object","required":["component","source","loaded_at","status"],"title":"NetworkConsumer","description":"A service that builds its own view from the topology, and the version it loaded."},"NetworkDependency":{"properties":{"source":{"type":"string","title":"Source"},"impacted":{"type":"string","title":"Impacted"}},"type":"object","required":["source","impacted"],"title":"NetworkDependency","description":"`impacted` depends on `source`: if the source fails, it is affected."},"NetworkDeviceAlert":{"properties":{"alert_id":{"type":"string","format":"uuid","title":"Alert Id"},"source_alert_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Alert Id"},"integration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integration"},"fault_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fault Class"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"port":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Port"},"raised_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Raised At"}},"type":"object","required":["alert_id"],"title":"NetworkDeviceAlert"},"NetworkDeviceDetail":{"properties":{"available":{"type":"boolean","title":"Available"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"topology_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topology Version"},"resolved_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved From"},"device":{"anyOf":[{"$ref":"#/components/schemas/NetworkNode"},{"type":"null"}]},"neighbours":{"items":{"$ref":"#/components/schemas/NetworkNeighbour"},"type":"array","title":"Neighbours"},"impacts":{"items":{"type":"string"},"type":"array","title":"Impacts"},"impacted_by":{"items":{"type":"string"},"type":"array","title":"Impacted By"},"alerts":{"items":{"$ref":"#/components/schemas/NetworkDeviceAlert"},"type":"array","title":"Alerts"},"situation_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Situation Ids"}},"type":"object","required":["available"],"title":"NetworkDeviceDetail"},"NetworkEdge":{"properties":{"a":{"type":"string","title":"A"},"b":{"type":"string","title":"B"},"layer":{"type":"string","title":"Layer"},"direction":{"type":"string","title":"Direction"},"cable_count":{"type":"integer","title":"Cable Count"},"speed_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Speed Bps"},"session_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session State"},"ports_down":{"type":"integer","title":"Ports Down","default":0},"active_alerts":{"type":"integer","title":"Active Alerts","default":0},"cables":{"anyOf":[{"items":{"$ref":"#/components/schemas/NetworkCable"},"type":"array"},{"type":"null"}],"title":"Cables"}},"type":"object","required":["a","b","layer","direction","cable_count"],"title":"NetworkEdge","description":"All cables between one device pair on one layer, drawn as one line."},"NetworkFabricMapResponse":{"properties":{"available":{"type":"boolean","title":"Available"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"topology_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topology Version"},"snapshot":{"anyOf":[{"$ref":"#/components/schemas/NetworkSnapshotInfo"},{"type":"null"}]},"summary":{"$ref":"#/components/schemas/NetworkFabricSummary"},"nodes":{"items":{"$ref":"#/components/schemas/NetworkNode"},"type":"array","title":"Nodes"},"edges":{"items":{"$ref":"#/components/schemas/NetworkEdge"},"type":"array","title":"Edges"},"dependencies":{"items":{"$ref":"#/components/schemas/NetworkDependency"},"type":"array","title":"Dependencies"}},"type":"object","required":["available"],"title":"NetworkFabricMapResponse"},"NetworkFabricSummary":{"properties":{"total":{"type":"integer","title":"Total","default":0},"controllers":{"type":"integer","title":"Controllers","default":0},"spines":{"type":"integer","title":"Spines","default":0},"leaves":{"type":"integer","title":"Leaves","default":0}},"type":"object","title":"NetworkFabricSummary"},"NetworkGraphResponse":{"properties":{"available":{"type":"boolean","title":"Available"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"topology_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topology Version"},"snapshot":{"anyOf":[{"$ref":"#/components/schemas/NetworkSnapshotInfo"},{"type":"null"}]},"summary":{"$ref":"#/components/schemas/NetworkSummary"},"nodes":{"items":{"$ref":"#/components/schemas/NetworkNode"},"type":"array","title":"Nodes"},"edges":{"items":{"$ref":"#/components/schemas/NetworkEdge"},"type":"array","title":"Edges"},"dependencies":{"items":{"$ref":"#/components/schemas/NetworkDependency"},"type":"array","title":"Dependencies"}},"type":"object","required":["available"],"title":"NetworkGraphResponse"},"NetworkNeighbour":{"properties":{"device_key":{"type":"string","title":"Device Key"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"layer":{"type":"string","title":"Layer"},"local_port":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Port"},"remote_port":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remote Port"},"protocol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Protocol"},"speed_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Speed Bps"},"session_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session State"},"local_oper_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Oper Status"},"remote_oper_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remote Oper Status"},"active_alerts":{"type":"integer","title":"Active Alerts","default":0}},"type":"object","required":["device_key","layer"],"title":"NetworkNeighbour","description":"One cable seen from the device being asked about."},"NetworkNode":{"properties":{"device_key":{"type":"string","title":"Device Key"},"name":{"type":"string","title":"Name"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"},"vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"serial":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"managed":{"type":"boolean","title":"Managed"},"role":{"type":"string","title":"Role"},"tier":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tier"},"role_source":{"type":"string","title":"Role Source"},"site_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Code"},"aliases":{"items":{"type":"string"},"type":"array","title":"Aliases"},"is_active":{"type":"boolean","title":"Is Active","default":true},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"active_alerts":{"$ref":"#/components/schemas/NetworkAlertCounts"},"open_situations":{"type":"integer","title":"Open Situations","default":0}},"type":"object","required":["device_key","name","managed","role","role_source"],"title":"NetworkNode"},"NetworkSnapshotInfo":{"properties":{"snapshot_id":{"type":"string","title":"Snapshot Id"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"topology_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topology Version"},"age_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age Seconds"},"stale":{"type":"boolean","title":"Stale","default":false},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["snapshot_id","observed_at"],"title":"NetworkSnapshotInfo","description":"The last complete snapshot of OpsRamp's map that the platform applied."},"NetworkSnapshotRun":{"properties":{"snapshot_id":{"type":"string","title":"Snapshot Id"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"topology_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topology Version"},"chunks":{"type":"string","title":"Chunks"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["snapshot_id","observed_at","chunks"],"title":"NetworkSnapshotRun"},"NetworkStatusResponse":{"properties":{"available":{"type":"boolean","title":"Available"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"topology_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topology Version"},"snapshot":{"anyOf":[{"$ref":"#/components/schemas/NetworkSnapshotInfo"},{"type":"null"}]},"devices_active":{"type":"integer","title":"Devices Active","default":0},"devices_inactive":{"type":"integer","title":"Devices Inactive","default":0},"devices_managed":{"type":"integer","title":"Devices Managed","default":0},"cables_active":{"type":"integer","title":"Cables Active","default":0},"cables_inactive":{"type":"integer","title":"Cables Inactive","default":0},"dependencies_active":{"type":"integer","title":"Dependencies Active","default":0},"recent_snapshots":{"items":{"$ref":"#/components/schemas/NetworkSnapshotRun"},"type":"array","title":"Recent Snapshots"},"consumers":{"items":{"$ref":"#/components/schemas/NetworkConsumer"},"type":"array","title":"Consumers"},"in_sync":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"In Sync"}},"type":"object","required":["available"],"title":"NetworkStatusResponse"},"NetworkSummary":{"properties":{"devices":{"type":"integer","title":"Devices","default":0},"managed":{"type":"integer","title":"Managed","default":0},"unmanaged":{"type":"integer","title":"Unmanaged","default":0},"edges":{"type":"integer","title":"Edges","default":0},"cables":{"type":"integer","title":"Cables","default":0},"dependencies":{"type":"integer","title":"Dependencies","default":0},"by_layer":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Layer"},"by_role":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Role"},"sites":{"additionalProperties":{"type":"integer"},"type":"object","title":"Sites"}},"type":"object","title":"NetworkSummary"},"NodeMetricItem":{"properties":{"metric_key":{"type":"string","title":"Metric Key"},"metric_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Metric Value"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"ts":{"type":"string","format":"date-time","title":"Ts"}},"type":"object","required":["metric_key","ts"],"title":"NodeMetricItem"},"NodeStatus":{"properties":{"name":{"type":"string","title":"Name"},"nodepool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nodepool"},"ready":{"type":"boolean","title":"Ready"},"pressure":{"items":{"type":"string"},"type":"array","title":"Pressure"},"cpu_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpu Pct"},"memory_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Memory Pct"},"disk_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Disk Pct"}},"type":"object","required":["name","ready"],"title":"NodeStatus"},"NodesSummary":{"properties":{"total":{"type":"integer","title":"Total","default":0},"ready":{"type":"integer","title":"Ready","default":0},"items":{"items":{"$ref":"#/components/schemas/NodeStatus"},"type":"array","title":"Items"}},"type":"object","title":"NodesSummary"},"OpenChanges":{"properties":{"count":{"type":"integer","title":"Count"},"awaiting_approval_now":{"type":"integer","title":"Awaiting Approval Now"},"mean_age_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Age Minutes"},"mean_age_excluding_approval_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Age Excluding Approval Minutes"},"unmeasured":{"type":"integer","title":"Unmeasured"}},"type":"object","required":["count","awaiting_approval_now","mean_age_minutes","mean_age_excluding_approval_minutes","unmeasured"],"title":"OpenChanges"},"Origins":{"properties":{"aff_automation":{"type":"integer","title":"Aff Automation"},"manual":{"type":"integer","title":"Manual"}},"type":"object","required":["aff_automation","manual"],"title":"Origins"},"PendingItem":{"properties":{"change_id":{"type":"string","format":"uuid","title":"Change Id","description":"The change's id."},"change_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Number","description":"The change's number, AFF-CHG0000001."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"The change's short description."},"change_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Type","description":"`standard`, `normal` or `emergency`."},"requested_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested By","description":"Who raised it (name, or email when no name)."},"requested_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested By Email","description":"Their email address."},"runbook_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Runbook Code","description":"The runbook it will run."},"runbook_chosen_by_copilot":{"type":"boolean","title":"Runbook Chosen By Copilot","description":"True when the request named no runbook and AFF Copilot chose it."},"changes_a_device":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Changes A Device","description":"Whether it alters a device (true) or only reads (false). None when unknown."},"devices":{"items":{"type":"string"},"type":"array","title":"Devices","description":"The devices it is about."},"waiting_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Waiting Since","description":"When it started waiting for an approver."},"waiting_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Waiting Minutes","description":"How long it has been waiting, in minutes."},"scheduled_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Start","description":"The change window's start, if any."},"scheduled_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled End","description":"The change window's end, if any."},"risk_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Risk Score","description":"The risk from 0 to 100, set by rules."},"risk_band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Risk Band","description":"`low`, `medium` or `high`."},"pre_check_result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pre Check Result","description":"The checks on the devices: `pass` or `warn` (a failed one denies it)."},"briefing_ready":{"type":"boolean","title":"Briefing Ready","description":"Whether AFF Copilot's briefing for the approver has been written yet."},"stage":{"$ref":"#/components/schemas/StageOut","description":"Where the change is (always Change Approval here)."},"can_decide":{"type":"boolean","title":"Can Decide","description":"Whether the signed-in person may approve or reject it now."},"why_not":{"items":{"type":"string"},"type":"array","title":"Why Not","description":"When `can_decide` is false, every reason: it is their own change, its window ended, and so on."},"review_path":{"type":"string","title":"Review Path","description":"The call that shows everything the approver needs: `GET` this path."}},"type":"object","required":["change_id","change_number","title","change_type","requested_by","requested_by_email","runbook_code","runbook_chosen_by_copilot","changes_a_device","devices","waiting_since","waiting_minutes","scheduled_start","scheduled_end","risk_score","risk_band","pre_check_result","briefing_ready","stage","can_decide","why_not","review_path"],"title":"PendingItem"},"PendingList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PendingItem"},"type":"array","title":"Items","description":"This page."},"total":{"type":"integer","title":"Total","description":"How many changes match, over all pages."},"decidable":{"type":"integer","title":"Decidable","description":"How many of the matching changes the signed-in person may decide now."},"oldest_waiting_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Oldest Waiting Since","description":"When the longest-waiting match started waiting. None when there are none."},"limit":{"type":"integer","title":"Limit","description":"The page size."},"offset":{"type":"integer","title":"Offset","description":"How many were skipped."}},"type":"object","required":["items","total","decidable","oldest_waiting_since","limit","offset"],"title":"PendingList","examples":[{"decidable":1,"items":[{"briefing_ready":true,"can_decide":true,"change_id":"6f1c0a52-8a1e-4c55-9d0e-2f5d3c1b7a90","change_number":"AFF-CHG0000010","change_type":"normal","changes_a_device":false,"devices":["afflabwan1"],"pre_check_result":"pass","requested_by":"Anna Lee","requested_by_email":"anna.lee@example.com","review_path":"/api/v1/dashboard/changes/AFF-CHG0000010/review","risk_band":"low","risk_score":5,"runbook_chosen_by_copilot":true,"runbook_code":"bgp-health-check","stage":{"description":"Independent authorisation by a person other than the requester.","detail":"Waiting for an approver","key":"approval","label":"Change Approval","number":7,"outcome":"waiting","state":"waiting","total":11},"title":"Check the BGP health of AFFLABWAN1","waiting_minutes":42,"waiting_since":"2026-10-27T09:30:00Z","why_not":[]}],"limit":50,"offset":0,"oldest_waiting_since":"2026-10-27T09:30:00Z","total":1}]},"PerDay":{"properties":{"alert_rows":{"type":"number","title":"Alert Rows"},"situations":{"type":"number","title":"Situations"},"incidents":{"type":"number","title":"Incidents"},"auto_resolved_incidents":{"type":"number","title":"Auto Resolved Incidents"},"incidents_reaching_l2":{"type":"number","title":"Incidents Reaching L2"},"incidents_reaching_l3":{"type":"number","title":"Incidents Reaching L3"}},"type":"object","required":["alert_rows","situations","incidents","auto_resolved_incidents","incidents_reaching_l2","incidents_reaching_l3"],"title":"PerDay"},"Person":{"properties":{"oid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Oid","description":"Their Entra object id."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Their display name."}},"type":"object","required":["oid","name"],"title":"Person"},"PipelineComponentStatus":{"properties":{"name":{"type":"string","title":"Name"},"status":{"type":"string","enum":["ok","stale","unavailable"],"title":"Status"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"age_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age Seconds"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["name","status"],"title":"PipelineComponentStatus","description":"One stage whose data is refreshed on a schedule, so its age proves the\nwhole path to the database (observer, hub, triage) is alive."},"PipelineFunnelResponse":{"properties":{"window_hours":{"type":"integer","title":"Window Hours"},"window_start":{"type":"string","format":"date-time","title":"Window Start"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"counters_available":{"type":"boolean","title":"Counters Available"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"sources":{"items":{"$ref":"#/components/schemas/FunnelSourceCounts"},"type":"array","title":"Sources"},"correlation":{"$ref":"#/components/schemas/FunnelCorrelation"},"standalone":{"$ref":"#/components/schemas/FunnelStandalone"},"incidents":{"$ref":"#/components/schemas/FunnelIncidents"},"hourly":{"items":{"$ref":"#/components/schemas/FunnelHourlyPoint"},"type":"array","title":"Hourly"}},"type":"object","required":["window_hours","window_start","generated_at","counters_available"],"title":"PipelineFunnelResponse"},"PipelineSourceStatus":{"properties":{"name":{"type":"string","title":"Name"},"alerts_total":{"type":"integer","title":"Alerts Total","default":0},"alerts_active":{"type":"integer","title":"Alerts Active","default":0},"alerts_linked_to_node":{"type":"integer","title":"Alerts Linked To Node","default":0},"linked_to_node_pct":{"type":"number","title":"Linked To Node Pct","default":0.0},"last_alert_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Alert At"},"seconds_since_last_alert":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seconds Since Last Alert"}},"type":"object","required":["name"],"title":"PipelineSourceStatus","description":"What the alert table holds for one source (integration)."},"PipelineStatusResponse":{"properties":{"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"overall":{"type":"string","enum":["ok","degraded","down"],"title":"Overall"},"schema_revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schema Revision"},"components":{"items":{"$ref":"#/components/schemas/PipelineComponentStatus"},"type":"array","title":"Components"},"sources":{"items":{"$ref":"#/components/schemas/PipelineSourceStatus"},"type":"array","title":"Sources"},"link_types":{"additionalProperties":{"type":"integer"},"type":"object","title":"Link Types"},"situations":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Situations"}},"type":"object","required":["generated_at","overall"],"title":"PipelineStatusResponse"},"PlanStepOut":{"properties":{"number":{"type":"integer","title":"Number","description":"Its place in the order the steps run, from 1."},"runbook_code":{"type":"string","title":"Runbook Code","description":"The runbook this step runs."},"device":{"type":"string","title":"Device","description":"The one device it runs on."},"parameters":{"additionalProperties":true,"type":"object","title":"Parameters","description":"This step's own checked values, for example the address, the AS number or the network. Each value came from the request."},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary","description":"What the step does, in plain words, by AFF Copilot."},"status":{"type":"string","title":"Status","description":"`pending` until it runs, then `running`, `done`, `failed`, `rolled_back` or `skipped` (a step after one that failed)."},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At","description":"When the first run of this step began; none until it has run."},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At","description":"When the last run of this step ended; none until it has."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Why the step failed, in the words the executor recorded (the device's own message is in `runs`); none unless the step failed."}},"type":"object","required":["number","runbook_code","device","parameters","summary","status"],"title":"PlanStepOut"},"PodsSummary":{"properties":{"namespace":{"type":"string","title":"Namespace"},"ready":{"type":"integer","title":"Ready","default":0},"running":{"type":"integer","title":"Running","default":0},"pending":{"type":"integer","title":"Pending","default":0},"failed":{"type":"integer","title":"Failed","default":0},"succeeded":{"type":"integer","title":"Succeeded","default":0},"unknown":{"type":"integer","title":"Unknown","default":0}},"type":"object","required":["namespace"],"title":"PodsSummary","description":"Pods in the configured namespace by phase, and how many pass their readiness check."},"Prediction":{"properties":{"rank":{"type":"integer","title":"Rank"},"kind":{"type":"string","enum":["repeat","rising","due"],"title":"Kind","description":"repeat: happened 3+ times and likely again within 7 days; rising: much more frequent lately; due: steady gaps and the usual gap is up"},"issue":{"type":"string","title":"Issue"},"issue_key":{"type":"string","title":"Issue Key"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"where":{"$ref":"#/components/schemas/Where"},"likelihood":{"type":"string","enum":["low","medium","high"],"title":"Likelihood","description":"high or medium. No chance figure is given: the one the bands are made from overstates (incidents come in bursts)"},"expected_incidents_next_7_days":{"anyOf":[{"$ref":"#/components/schemas/Range"},{"type":"null"}],"description":"rising only"},"reason":{"type":"string","title":"Reason","description":"Written by the model, from the numbers in `evidence`"},"precaution":{"type":"string","title":"Precaution","description":"Written by the model: something to look at beforehand"},"evidence":{"$ref":"#/components/schemas/Evidence"}},"type":"object","required":["rank","kind","issue","issue_key","where","likelihood","reason","precaution","evidence"],"title":"Prediction"},"ProposedChange":{"properties":{"needed":{"type":"boolean","title":"Needed"},"title":{"type":"string","maxLength":160,"minLength":1,"title":"Title"},"description":{"type":"string","maxLength":1200,"minLength":1,"title":"Description"},"why":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Why"}},"additionalProperties":false,"type":"object","required":["needed","title","description"],"title":"ProposedChange","description":"Whether the analysis calls for a change, and how it is described to the person who approves\nit (the title and description the change carries when it is raised)."},"QueueBlock":{"properties":{"queue":{"type":"string","title":"Queue"},"count":{"type":"integer","title":"Count"},"tickets":{"items":{"$ref":"#/components/schemas/Ticket"},"type":"array","title":"Tickets"},"tickets_not_shown":{"type":"integer","title":"Tickets Not Shown"}},"type":"object","required":["queue","count","tickets","tickets_not_shown"],"title":"QueueBlock"},"Range":{"properties":{"low":{"type":"integer","title":"Low"},"high":{"type":"integer","title":"High"}},"type":"object","required":["low","high"],"title":"Range"},"Rca":{"properties":{"summary":{"type":"string","maxLength":4000,"minLength":1,"title":"Summary"},"root_cause":{"$ref":"#/components/schemas/RcaRootCause"},"confidence":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Confidence"},"generated_by":{"$ref":"#/components/schemas/GeneratedBy"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"contributing_factors":{"items":{"$ref":"#/components/schemas/ContributingFactor"},"type":"array","maxItems":50,"title":"Contributing Factors"},"alternatives":{"items":{"$ref":"#/components/schemas/RcaAlternative"},"type":"array","maxItems":10,"title":"Alternatives"},"evidence":{"items":{"$ref":"#/components/schemas/RcaEvidence"},"type":"array","maxItems":100,"title":"Evidence"},"recommended_actions":{"items":{"$ref":"#/components/schemas/RecommendedAction"},"type":"array","maxItems":20,"title":"Recommended Actions"},"proposed_change":{"anyOf":[{"$ref":"#/components/schemas/ProposedChange"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["summary","root_cause","confidence","generated_by","generated_at"],"title":"Rca"},"RcaAlternative":{"properties":{"description":{"type":"string","maxLength":2000,"minLength":1,"title":"Description"},"confidence":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Confidence"},"device_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Device Key"},"fault_class":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Fault Class"},"evidence":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Evidence"}},"additionalProperties":false,"type":"object","required":["description","confidence"],"title":"RcaAlternative"},"RcaEvidence":{"properties":{"kind":{"type":"string","enum":["alert","link","topology","metric","situation","note"],"title":"Kind"},"ref":{"type":"string","maxLength":200,"minLength":1,"title":"Ref"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["kind","ref"],"title":"RcaEvidence"},"RcaRootCause":{"properties":{"description":{"type":"string","maxLength":2000,"minLength":1,"title":"Description"},"alert_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Alert Id"},"source_alert_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Source Alert Id"},"device_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Device Key"},"fault_class":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Fault Class"}},"additionalProperties":false,"type":"object","required":["description"],"title":"RcaRootCause"},"RecommendedAction":{"properties":{"action":{"type":"string","maxLength":1000,"minLength":1,"title":"Action"},"rationale":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Rationale"},"runbook_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Runbook Id"},"risk":{"type":"string","enum":["read-only","low","medium","high"],"title":"Risk","default":"read-only"},"requires_human":{"type":"boolean","title":"Requires Human","default":true},"checks":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Checks"},"scale_by":{"anyOf":[{"type":"integer","maximum":8.0,"minimum":-8.0},{"type":"null"}],"title":"Scale By"}},"additionalProperties":false,"type":"object","required":["action"],"title":"RecommendedAction"},"RegisterCount":{"properties":{"name":{"type":"string","title":"Name"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["name","total"],"title":"RegisterCount"},"RejectIn":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason","description":"Why the change is turned down: required, 1 to 1000 characters.","examples":["The subnet is the old one; it was replaced in the design."]}},"additionalProperties":false,"type":"object","required":["reason"],"title":"RejectIn"},"ReportCheck":{"properties":{"name":{"type":"string","title":"Name","description":"What was checked, in words."},"host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host","description":"The device it was checked on."},"ok":{"type":"boolean","title":"Ok","description":"Whether the check passed."},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity","description":"`block` (a failure stops the change), `warn` (a failure is noted) or `deferred` (in a plan, a test that needs an earlier step, so it is tested when its step starts; it is listed as passed until then)."},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail","description":"What was found, for example `matched` or `absent`."},"step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Step","description":"The step this check belongs to, for a plan of several steps; none for a check on the whole change."}},"type":"object","required":["name","host","ok","severity","detail"],"title":"ReportCheck"},"ReportHost":{"properties":{"device":{"type":"string","title":"Device","description":"The device's name."},"ok":{"type":"boolean","title":"Ok","description":"Whether every step on it worked."},"tasks":{"items":{"$ref":"#/components/schemas/ReportTask"},"type":"array","title":"Tasks","description":"The steps, in order."}},"type":"object","required":["device","ok","tasks"],"title":"ReportHost"},"ReportProposal":{"properties":{"runbook_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Runbook Code","description":"The runbook AFF proposed."},"reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning","description":"Why AFF Copilot chose it, written for an L1 engineer: what the request asks, what the runbook does, why it fits, which values came from the request and what the request did not say."},"what_the_runbook_does":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"What The Runbook Does","description":"What the chosen runbook does, step by step, in plain words."},"generated_by":{"type":"string","title":"Generated By","description":"`AFF Copilot`. The model's name is never shown."}},"type":"object","required":["runbook_code","reasoning","what_the_runbook_does","generated_by"],"title":"ReportProposal"},"ReportRun":{"properties":{"step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Step","description":"For a plan, the number of the step this run belongs to; empty for a run of the whole change (the reachability check) and for a change that is one runbook."},"stage":{"type":"string","title":"Stage","description":"Why it ran: `evidence` (the devices before approval), `before` (a fresh read when the change started), `reachability` (the check that every device answers, before the devices are read and again before a change that reads nothing else), `execution` (the change), `post_check` (the read after it) or `rollback`."},"runbook_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Runbook Code","description":"The runbook that ran."},"runbook_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Runbook Version","description":"Its version."},"status":{"type":"string","title":"Status","description":"`success`, `failed` or `running`."},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At","description":"When it started."},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At","description":"When it ended."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Why it failed, when it did."},"hosts":{"items":{"$ref":"#/components/schemas/ReportHost"},"type":"array","title":"Hosts","description":"What happened on each device."}},"type":"object","required":["stage","runbook_code","runbook_version","status","started_at","completed_at","error","hosts"],"title":"ReportRun"},"ReportTask":{"properties":{"name":{"type":"string","title":"Name","description":"The step the runbook ran on the device."},"ok":{"type":"boolean","title":"Ok","description":"Whether the step worked."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","description":"Why it failed, when it did."},"commands":{"items":{"type":"string"},"type":"array","title":"Commands","description":"The configuration lines or commands that step sent, where they are known."},"output":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output","description":"What the device answered, cut to a reasonable length. A line that may hold a secret (a password, a key, an SNMP community) is hidden."}},"type":"object","required":["name","ok","message","commands","output"],"title":"ReportTask"},"Requester":{"properties":{"oid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Oid","description":"The requester's Entra object id."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Their display name."},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"Their email address."}},"type":"object","required":["oid","name","email"],"title":"Requester"},"ReviewList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ReviewOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"ReviewList"},"ReviewOut":{"properties":{"review_id":{"type":"string","format":"uuid","title":"Review Id"},"incident_id":{"type":"string","format":"uuid","title":"Incident Id"},"incident_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Incident Number"},"kind":{"type":"string","enum":["approval","feedback"],"title":"Kind"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"author":{"type":"string","title":"Author"},"author_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Email"},"incident_revision":{"type":"integer","title":"Incident Revision"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"steps_current":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Steps Current"}},"type":"object","required":["review_id","incident_id","kind","author","incident_revision","created_at"],"title":"ReviewOut","description":"One thing a person did on an incident page: an approval or a note."},"RollbackOut":{"properties":{"change_number":{"type":"string","title":"Change Number","description":"The change that does the rollback."},"change_id":{"type":"string","format":"uuid","title":"Change Id"},"status":{"type":"string","title":"Status","description":"Where it is: `submitted` when it was just raised."},"undoes":{"type":"string","title":"Undoes","description":"The change it rolls back: that change's number."},"steps":{"items":{"$ref":"#/components/schemas/RollbackStepOut"},"type":"array","title":"Steps","description":"What it will run, in order. The guardian checks it like any other change and shows the exact commands to whoever approves it."},"next":{"type":"string","title":"Next","description":"What happens now and what a person does."}},"type":"object","required":["change_number","change_id","status","undoes","steps","next"],"title":"RollbackOut"},"RollbackStepOut":{"properties":{"number":{"type":"integer","title":"Number","description":"Where it runs in the rollback: the last step undone first."},"runbook_code":{"type":"string","title":"Runbook Code","description":"The runbook that undoes it (the original's rollback)."},"device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device","description":"The device it runs on; null when it runs on every device of the change."},"undoes_step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Undoes Step","description":"The step of the original change it undoes; null for a change that was one runbook and not a list of steps."}},"type":"object","required":["number","runbook_code","device","undoes_step"],"title":"RollbackStepOut"},"RunOut":{"properties":{"slot_label":{"type":"string","title":"Slot Label"},"slot_date":{"type":"string","format":"date","title":"Slot Date"},"state":{"type":"string","enum":["waiting","raised","skipped","done"],"title":"State"},"reason":{"type":"string","title":"Reason"},"capacity_before":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Capacity Before"},"capacity_target":{"type":"integer","title":"Capacity Target"},"cpu_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpu Percent"},"change_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Change Id"},"change_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Number"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["slot_label","slot_date","state","reason","capacity_before","capacity_target","cpu_percent","change_id","change_number","updated_at"],"title":"RunOut"},"RunbookDetail":{"properties":{"code":{"type":"string","title":"Code","description":"Use this as a change's `runbook_code`."},"name":{"type":"string","title":"Name","description":"A short name."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"What the runbook does."},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version","description":"The registered version."},"runner_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Runner Type","description":"How it is run, `ansible`."},"read_only":{"type":"boolean","title":"Read Only","description":"True when it only reads from the device."},"requires_approval":{"type":"boolean","title":"Requires Approval","description":"Whether a change using it needs approval."},"rollback_supported":{"type":"boolean","title":"Rollback Supported","description":"Whether it can be undone."},"max_blast_radius":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Blast Radius","description":"The most devices one change may name for it."},"ai_selectable":{"type":"boolean","title":"Ai Selectable","description":"Whether the planner may choose it from a request."},"allowed":{"type":"boolean","title":"Allowed","description":"On the allowed list: only an allowed runbook can run."},"parameters":{"items":{"$ref":"#/components/schemas/RunbookParameter"},"type":"array","title":"Parameters","description":"What a change must pass in `parameters`."},"evidence_runbook":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Runbook","description":"Read before the change, as evidence."},"post_check_runbook":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Check Runbook","description":"Read after the change, to check it."},"rollback_runbook":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rollback Runbook","description":"Run to undo the change."},"use_cases":{"items":{"type":"string"},"type":"array","title":"Use Cases","description":"The use cases of the register this runbook serves (`UC-002`). Empty when none is named for it (the network runbooks, and the access check)."},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind","description":"The part it plays: `change` (changes something), `rollback` (undoes a change), `evidence` (read before a change), `post_check` (read after it) or `check` (only reads, on its own or both before and after)."},"pre_checks":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Pre Checks","description":"Tests of the device before the change; a blocking one that fails denies it."},"post_checks":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Post Checks","description":"Tests of the device after the change; a blocking one that fails rolls it back."}},"type":"object","required":["code","name","description","version","runner_type","read_only","requires_approval","rollback_supported","max_blast_radius","ai_selectable","allowed","parameters","evidence_runbook","post_check_runbook","rollback_runbook","pre_checks","post_checks"],"title":"RunbookDetail","description":"One runbook in full: the checks it makes before and after a change.","examples":[{"ai_selectable":false,"allowed":true,"code":"advertise-subnet","description":"Adds a network statement for one subnet under the BGP address family.","evidence_runbook":"bgp-subnet-state","kind":"change","max_blast_radius":2,"name":"Advertise a subnet into BGP","parameters":[{"description":"The local BGP AS number the network statement goes under.","max_length":200,"maximum":4294967295,"minimum":1,"name":"bgp_asn","required":true,"type":"int"},{"description":"The subnet to advertise, with its prefix length, like 10.20.30.0/24.","max_length":200,"minimum":16,"name":"subnet","required":true,"type":"cidr"}],"post_check_runbook":"bgp-subnet-state","post_checks":[{"command":"show running-config | section router bgp","kind":"contains","name":"the network statement is in the configuration","severity":"block","value":"network ${subnet_network} mask ${subnet_netmask}"}],"pre_checks":[{"command":"show ip route ${subnet_network} ${subnet_netmask}","kind":"contains","name":"the subnet is in the routing table","severity":"block","value":"Routing entry for ${subnet_network}/${subnet_prefixlen}"}],"read_only":false,"requires_approval":true,"rollback_runbook":"advertise-subnet-rollback","rollback_supported":true,"runner_type":"ansible","use_cases":[],"version":"1"}]},"RunbookList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RunbookOut"},"type":"array","title":"Items","description":"The runbooks, by code."},"total":{"type":"integer","title":"Total","description":"How many match."}},"type":"object","required":["items","total"],"title":"RunbookList","examples":[{"items":[{"ai_selectable":false,"allowed":true,"code":"advertise-subnet","description":"Adds a network statement for one subnet under the BGP address family.","evidence_runbook":"bgp-subnet-state","kind":"change","max_blast_radius":2,"name":"Advertise a subnet into BGP","parameters":[{"description":"The local BGP AS number the network statement goes under.","max_length":200,"maximum":4294967295,"minimum":1,"name":"bgp_asn","required":true,"type":"int"},{"description":"The subnet to advertise, with its prefix length, like 10.20.30.0/24.","max_length":200,"minimum":16,"name":"subnet","required":true,"type":"cidr"}],"post_check_runbook":"bgp-subnet-state","read_only":false,"requires_approval":true,"rollback_runbook":"advertise-subnet-rollback","rollback_supported":true,"runner_type":"ansible","use_cases":[],"version":"1"}],"total":1}]},"RunbookOut":{"properties":{"code":{"type":"string","title":"Code","description":"Use this as a change's `runbook_code`."},"name":{"type":"string","title":"Name","description":"A short name."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"What the runbook does."},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version","description":"The registered version."},"runner_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Runner Type","description":"How it is run, `ansible`."},"read_only":{"type":"boolean","title":"Read Only","description":"True when it only reads from the device."},"requires_approval":{"type":"boolean","title":"Requires Approval","description":"Whether a change using it needs approval."},"rollback_supported":{"type":"boolean","title":"Rollback Supported","description":"Whether it can be undone."},"max_blast_radius":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Blast Radius","description":"The most devices one change may name for it."},"ai_selectable":{"type":"boolean","title":"Ai Selectable","description":"Whether the planner may choose it from a request."},"allowed":{"type":"boolean","title":"Allowed","description":"On the allowed list: only an allowed runbook can run."},"parameters":{"items":{"$ref":"#/components/schemas/RunbookParameter"},"type":"array","title":"Parameters","description":"What a change must pass in `parameters`."},"evidence_runbook":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Runbook","description":"Read before the change, as evidence."},"post_check_runbook":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Check Runbook","description":"Read after the change, to check it."},"rollback_runbook":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rollback Runbook","description":"Run to undo the change."},"use_cases":{"items":{"type":"string"},"type":"array","title":"Use Cases","description":"The use cases of the register this runbook serves (`UC-002`). Empty when none is named for it (the network runbooks, and the access check)."},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind","description":"The part it plays: `change` (changes something), `rollback` (undoes a change), `evidence` (read before a change), `post_check` (read after it) or `check` (only reads, on its own or both before and after)."}},"type":"object","required":["code","name","description","version","runner_type","read_only","requires_approval","rollback_supported","max_blast_radius","ai_selectable","allowed","parameters","evidence_runbook","post_check_runbook","rollback_runbook"],"title":"RunbookOut","examples":[{"ai_selectable":false,"allowed":true,"code":"advertise-subnet","description":"Adds a network statement for one subnet under the BGP address family.","evidence_runbook":"bgp-subnet-state","kind":"change","max_blast_radius":2,"name":"Advertise a subnet into BGP","parameters":[{"description":"The local BGP AS number the network statement goes under.","max_length":200,"maximum":4294967295,"minimum":1,"name":"bgp_asn","required":true,"type":"int"},{"description":"The subnet to advertise, with its prefix length, like 10.20.30.0/24.","max_length":200,"minimum":16,"name":"subnet","required":true,"type":"cidr"}],"post_check_runbook":"bgp-subnet-state","read_only":false,"requires_approval":true,"rollback_runbook":"advertise-subnet-rollback","rollback_supported":true,"runner_type":"ansible","use_cases":[],"version":"1"}]},"RunbookParameter":{"properties":{"name":{"type":"string","title":"Name","description":"The key to use in a change's `parameters`."},"type":{"type":"string","title":"Type","description":"`cidr` (an IPv4 network with its prefix, like 10.20.30.0/24), `ipv4` (an address), `int` (a whole number) or `string` (text)."},"required":{"type":"boolean","title":"Required","description":"Whether a change must give it."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"What it is for."},"minimum":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minimum","description":"`int`: the lowest value. `cidr`: the shortest prefix length allowed."},"maximum":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maximum","description":"`int`: the highest value."},"pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pattern","description":"`string`: a regular expression the whole value must match."},"max_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Length","description":"`string`: the longest allowed."}},"type":"object","required":["name","type","required"],"title":"RunbookParameter"},"SavedBucket":{"properties":{"records":{"type":"integer","title":"Records"},"manual_hours":{"type":"number","title":"Manual Hours"},"saved_hours":{"type":"number","title":"Saved Hours"}},"type":"object","required":["records","manual_hours","saved_hours"],"title":"SavedBucket"},"ScalingChange":{"properties":{"change_number":{"type":"string","title":"Change Number"},"status":{"type":"string","title":"Status","description":"`executing`, `awaiting_approval`, ... or `closed`."},"finished":{"type":"boolean","title":"Finished","description":"False while it is still on its way; true once closed."},"to_vms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"To Vms","description":"The count it sets, when it names one (UC-005, UC-028)."},"by_vms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"By Vms","description":"How many VMs it adds, when it adds some (UC-001)."}},"type":"object","required":["change_number","status","finished","to_vms","by_vms"],"title":"ScalingChange"},"ScheduleIn":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"resource_group":{"type":"string","maxLength":100,"minLength":1,"title":"Resource Group"},"name_prefix":{"type":"string","pattern":"^[a-z][a-z0-9]{2,11}$","title":"Name Prefix","description":"The scale set is \"<name_prefix>-vmss\"."},"timezone":{"type":"string","maxLength":64,"minLength":1,"title":"Timezone","description":"An IANA zone name; slot times are local to it.","default":"UTC"},"floor":{"type":"integer","maximum":4.0,"minimum":0.0,"title":"Floor","description":"The fewest VMs any slot may ask for. Below 2 only if `non_production`.","default":2},"non_production":{"type":"boolean","title":"Non Production","default":false},"cooldown_minutes":{"type":"integer","maximum":1440.0,"minimum":0.0,"title":"Cooldown Minutes","description":"Nothing is raised this long after a scale action.","default":10},"reconcile_drift":{"type":"boolean","title":"Reconcile Drift","description":"Also put the VM count back to the slot's when it stays above it with nothing to justify it (UC-028). Part of what is approved: changing it ends the approval.","default":false},"slots":{"items":{"$ref":"#/components/schemas/SlotIn"},"type":"array","maxItems":50,"minItems":1,"title":"Slots"}},"additionalProperties":false,"type":"object","required":["name","resource_group","name_prefix","slots"],"title":"ScheduleIn"},"ScheduleList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ScheduleOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"ScheduleList"},"ScheduleOut":{"properties":{"schedule_id":{"type":"string","format":"uuid","title":"Schedule Id"},"name":{"type":"string","title":"Name"},"resource_group":{"type":"string","title":"Resource Group"},"name_prefix":{"type":"string","title":"Name Prefix"},"scale_set":{"type":"string","title":"Scale Set"},"timezone":{"type":"string","title":"Timezone"},"floor":{"type":"integer","title":"Floor"},"non_production":{"type":"boolean","title":"Non Production"},"cooldown_minutes":{"type":"integer","title":"Cooldown Minutes"},"reconcile_drift":{"type":"boolean","title":"Reconcile Drift","description":"Whether it also corrects excess capacity (UC-028)."},"enabled":{"type":"boolean","title":"Enabled","description":"Off until a person switches it on."},"frozen_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Frozen Until"},"approval":{"$ref":"#/components/schemas/ApprovalOut"},"slots":{"items":{"$ref":"#/components/schemas/SlotOut"},"type":"array","title":"Slots"},"runs":{"items":{"$ref":"#/components/schemas/RunOut"},"type":"array","title":"Runs","description":"What the slots did lately, newest first."},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["schedule_id","name","resource_group","name_prefix","scale_set","timezone","floor","non_production","cooldown_minutes","reconcile_drift","enabled","frozen_until","approval","slots","runs","created_by","created_at","updated_at"],"title":"ScheduleOut"},"ScheduledCapacity":{"properties":{"vms":{"type":"integer","title":"Vms","description":"How many VMs the schedule asks for now (the slot in force)."},"slot":{"type":"string","title":"Slot"},"off_hours":{"type":"boolean","title":"Off Hours","description":"Whether that slot is off hours (UC-028)."},"until":{"type":"string","format":"date-time","title":"Until","description":"When the next slot begins."},"active":{"type":"boolean","title":"Active","description":"Switched on and approved as it reads now."}},"type":"object","required":["vms","slot","off_hours","until","active"],"title":"ScheduledCapacity"},"ServiceMapLayer":{"properties":{"category_code":{"type":"string","title":"Category Code"},"category_name":{"type":"string","title":"Category Name"},"nodes":{"items":{"$ref":"#/components/schemas/TopologyNodeRecord"},"type":"array","title":"Nodes"}},"type":"object","required":["category_code","category_name"],"title":"ServiceMapLayer"},"ServiceMapResponse":{"properties":{"summary":{"$ref":"#/components/schemas/TopologySummaryResponse"},"layers":{"items":{"$ref":"#/components/schemas/ServiceMapLayer"},"type":"array","title":"Layers"},"edges":{"items":{"$ref":"#/components/schemas/TopologyEdgeRecord"},"type":"array","title":"Edges"},"active_alerts":{"items":{"$ref":"#/components/schemas/TopologyAlertItem"},"type":"array","title":"Active Alerts"}},"type":"object","required":["summary"],"title":"ServiceMapResponse"},"ServiceState":{"properties":{"stopped_vm":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stopped Vm","description":"The VM whose web service a demo action stopped and nobody has put back."}},"type":"object","required":["stopped_vm"],"title":"ServiceState"},"SituationBlastRadius":{"properties":{"available":{"type":"boolean","title":"Available"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"situation_id":{"type":"string","format":"uuid","title":"Situation Id"},"topology_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topology Version"},"blast_radius":{"anyOf":[{"$ref":"#/components/schemas/BlastRadius"},{"type":"null"}]}},"type":"object","required":["available","situation_id"],"title":"SituationBlastRadius"},"SituationDetail":{"properties":{"situation_id":{"type":"string","format":"uuid","title":"Situation Id"},"status":{"type":"string","title":"Status"},"confidence_band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidence Band"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"member_count":{"type":"integer","title":"Member Count","default":0},"devices":{"items":{"type":"string"},"type":"array","title":"Devices"},"root_cause":{"anyOf":[{"$ref":"#/components/schemas/SituationRootCause"},{"type":"null"}]},"incident":{"anyOf":[{"$ref":"#/components/schemas/SituationIncident"},{"type":"null"}]},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"score_factors":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Score Factors"},"readiness":{"anyOf":[{"$ref":"#/components/schemas/SituationReadiness"},{"type":"null"}]},"suspected_upstream":{"items":{"$ref":"#/components/schemas/SuspectedUpstream"},"type":"array","title":"Suspected Upstream"},"is_storm":{"type":"boolean","title":"Is Storm","default":false},"first_alert_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Alert At"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"engine_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine Version"},"members":{"items":{"$ref":"#/components/schemas/SituationMember"},"type":"array","title":"Members"},"links":{"items":{"$ref":"#/components/schemas/SituationLink"},"type":"array","title":"Links"},"merged_from":{"items":{"type":"string"},"type":"array","title":"Merged From"}},"type":"object","required":["situation_id","status"],"title":"SituationDetail"},"SituationIncident":{"properties":{"incident_id":{"type":"string","format":"uuid","title":"Incident Id"},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number"},"status":{"type":"string","title":"Status"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"}},"type":"object","required":["incident_id","status"],"title":"SituationIncident","description":"The AFF incident made for a situation."},"SituationItem":{"properties":{"situation_id":{"type":"string","format":"uuid","title":"Situation Id"},"status":{"type":"string","title":"Status"},"confidence_band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidence Band"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"member_count":{"type":"integer","title":"Member Count","default":0},"devices":{"items":{"type":"string"},"type":"array","title":"Devices"},"root_cause":{"anyOf":[{"$ref":"#/components/schemas/SituationRootCause"},{"type":"null"}]},"incident":{"anyOf":[{"$ref":"#/components/schemas/SituationIncident"},{"type":"null"}]},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"score_factors":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Score Factors"},"readiness":{"anyOf":[{"$ref":"#/components/schemas/SituationReadiness"},{"type":"null"}]},"suspected_upstream":{"items":{"$ref":"#/components/schemas/SuspectedUpstream"},"type":"array","title":"Suspected Upstream"},"is_storm":{"type":"boolean","title":"Is Storm","default":false},"first_alert_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Alert At"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"engine_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine Version"}},"type":"object","required":["situation_id","status"],"title":"SituationItem"},"SituationLink":{"properties":{"alert_a":{"type":"string","title":"Alert A"},"alert_b":{"type":"string","title":"Alert B"},"score":{"type":"integer","title":"Score"},"band":{"type":"string","title":"Band"},"signals":{"additionalProperties":{"type":"integer"},"type":"object","title":"Signals"},"evidence":{"additionalProperties":true,"type":"object","title":"Evidence"}},"type":"object","required":["alert_a","alert_b","score","band"],"title":"SituationLink","description":"Why two alerts were linked: the score and what it was made of."},"SituationListResponse":{"properties":{"available":{"type":"boolean","title":"Available"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"total":{"type":"integer","title":"Total","default":0},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"items":{"items":{"$ref":"#/components/schemas/SituationItem"},"type":"array","title":"Items"}},"type":"object","required":["available","limit","offset"],"title":"SituationListResponse"},"SituationMember":{"properties":{"alert_id":{"type":"string","format":"uuid","title":"Alert Id"},"source_alert_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Alert Id"},"integration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integration"},"device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device"},"fault_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fault Class"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"raised_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Raised At"},"cleared_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cleared At"},"link_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Link Confidence"},"is_root_cause":{"type":"boolean","title":"Is Root Cause","default":false}},"type":"object","required":["alert_id"],"title":"SituationMember"},"SituationReadiness":{"properties":{"state":{"type":"string","title":"State"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"route":{"type":"string","title":"Route"},"is_storm":{"type":"boolean","title":"Is Storm","default":false},"ready_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ready At"},"seconds_to_ready":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seconds To Ready"}},"type":"object","required":["state","route"],"title":"SituationReadiness","description":"Whether the situation has settled, and what to do with it once it has."},"SituationRootCause":{"properties":{"alert_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Alert Id"},"source_alert_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Alert Id"},"fault_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fault Class"},"device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device"},"tied_candidates":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tied Candidates"},"som_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Som Number"},"som_sys_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Som Sys Id"}},"type":"object","title":"SituationRootCause"},"SlotIn":{"properties":{"label":{"type":"string","maxLength":100,"minLength":1,"title":"Label","description":"What the slot is called; unique in the schedule."},"days":{"items":{"type":"integer"},"type":"array","maxItems":7,"minItems":1,"title":"Days","description":"ISO weekdays it applies to: 1 Monday to 7 Sunday."},"starts_at":{"type":"string","format":"time","title":"Starts At","description":"Local time of day it begins (HH:MM); it holds until the next slot begins."},"capacity":{"type":"integer","maximum":8.0,"minimum":0.0,"title":"Capacity","description":"How many VMs the scale set should have."},"cpu_below_percent":{"anyOf":[{"type":"number","maximum":100.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Cpu Below Percent","description":"A slot that lowers the count waits until the average CPU is below this. Required for a slot below 4 VMs."},"off_hours":{"type":"boolean","title":"Off Hours","description":"This slot is off hours. The change that puts the scale set back to the schedule (cost drift, UC-028) is approved by the schedule in an off-hours slot and by a person in any other. Part of what is approved: changing it ends the approval.","default":false}},"additionalProperties":false,"type":"object","required":["label","days","starts_at","capacity"],"title":"SlotIn"},"SlotOut":{"properties":{"label":{"type":"string","title":"Label"},"days":{"items":{"type":"integer"},"type":"array","title":"Days"},"starts_at":{"type":"string","format":"time","title":"Starts At"},"capacity":{"type":"integer","title":"Capacity"},"cpu_below_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpu Below Percent"},"off_hours":{"type":"boolean","title":"Off Hours","description":"Whether cost drift is put back without a person here."}},"type":"object","required":["label","days","starts_at","capacity","cpu_below_percent","off_hours"],"title":"SlotOut"},"SomIncidentItem":{"properties":{"id":{"type":"integer","title":"Id"},"sys_id":{"type":"string","title":"Sys Id"},"number":{"type":"string","title":"Number"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"urgency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Urgency"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"},"cmdb_ci":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cmdb Ci"},"event_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Class"},"event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"},"alert_ids":{"items":{"type":"string"},"type":"array","title":"Alert Ids"},"sys_created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sys Created At"},"opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opened At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"},"sys_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sys Updated At"},"first_fetched_at":{"type":"string","format":"date-time","title":"First Fetched At"},"fetched_at":{"type":"string","format":"date-time","title":"Fetched At"}},"type":"object","required":["id","sys_id","number","first_fetched_at","fetched_at"],"title":"SomIncidentItem","description":"One ServiceNow SOM incident as aff-correlator saved it (som_incident). SOM's display values\n(\"3 - Medium\", \"Resolved\") are kept as SOM sent them."},"SomIncidentList":{"properties":{"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"items":{"items":{"$ref":"#/components/schemas/SomIncidentItem"},"type":"array","title":"Items"}},"type":"object","required":["total","limit","offset"],"title":"SomIncidentList"},"Stage":{"properties":{"key":{"type":"string","enum":["detect","classify","assign","remediate","close"],"title":"Key"},"label":{"type":"string","title":"Label"},"available":{"type":"boolean","title":"Available"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"},"detail":{"additionalProperties":{"type":"integer"},"type":"object","title":"Detail"}},"type":"object","required":["key","label","available"],"title":"Stage"},"StageFailure":{"properties":{"kind":{"type":"string","title":"Kind","description":"`denied` (a policy check, an approver or the authority level said no), `cancelled` (the requester withdrew it), `expired` (its window ended), `failed` (a person must look) or `rolled_back` (the change was made, then undone)."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"The reason as recorded: an approver's comment, a policy reason, or the executor's, such as `the step did not complete: afflabwan1: <task>: <the device's message>`."},"actor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor","description":"Who or what moved the change: a person or a service."},"step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Step","description":"The step that went wrong, when one did."},"device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device","description":"The device of that step."},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"At","description":"When it happened."}},"type":"object","required":["kind","reason","actor","step","device","at"],"title":"StageFailure","description":"Why a stage did not go through, in the words the services recorded."},"StageOut":{"properties":{"number":{"type":"integer","title":"Number","description":"The stage's place in the flow, from 0 (Change Submission) to `total` - 1 (Closure)."},"total":{"type":"integer","title":"Total","description":"How many stages there are (11)."},"key":{"type":"string","title":"Key","description":"`submitted`, `analysis`, `planning`, `request_check`, `device_check`, `risk`, `assessment`, `approval`, `execution`, `verification` or `closure`."},"label":{"type":"string","title":"Label","description":"The name to show: Change Submission, Request Analysis, Runbook Selection, Policy Validation, Pre-Change Validation, Risk Assessment, Execution Planning, Change Approval, Orchestrator Execution, Post-Execution Validation, Closure."},"description":{"type":"string","title":"Description","description":"What happens at this stage, for a tooltip."},"state":{"type":"string","title":"State","description":"`current` (being worked on), `waiting` (for an approver or the change window), `done`, `skipped` (not needed), `stopped` (denied, cancelled or expired here), `failed` (the reason is in `detail`) or `rolled_back` (the change was made, then undone)."},"detail":{"type":"string","title":"Detail","description":"One line on what is happening, for example `Waiting for an approver`."},"outcome":{"type":"string","title":"Outcome","description":"How the whole change stands: `in_progress`, `waiting` (on a person or a window), `completed`, `rolled_back`, `failed`, `denied`, `cancelled` or `expired`."}},"type":"object","required":["number","total","key","label","description","state","detail","outcome"],"title":"StageOut","description":"Where a change is, in one of eleven stages.","examples":[{"description":"Independent authorisation by a person other than the requester.","detail":"Waiting for an approver","key":"approval","label":"Change Approval","number":7,"outcome":"waiting","state":"waiting","total":11}]},"StageStep":{"properties":{"number":{"type":"integer","title":"Number","description":"The stage's place in the flow, from 0."},"key":{"type":"string","title":"Key","description":"The stage's key."},"label":{"type":"string","title":"Label","description":"The name to show."},"description":{"type":"string","title":"Description","description":"What happens at this stage, for a tooltip."},"state":{"type":"string","title":"State","description":"`pending` (not reached), `current`, `waiting`, `done`, `skipped` (not needed), `stopped`, `failed` or `rolled_back`."},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail","description":"What is happening, on the stage the change is at."},"entered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Entered At","description":"When the change reached this stage."},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At","description":"When it left it, once it has."},"result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result","description":"What happened in this stage, in a sentence, once it has finished: for example `Both devices answered. 10 checks passed.` or `Approved by <person> at 10:12:09 UTC.` None while the stage is pending, current, waiting or not applicable. Not set by `GET .../stages`, which is worked out from the status alone."},"failure":{"anyOf":[{"$ref":"#/components/schemas/StageFailure"},{"type":"null"}],"description":"Set on the stage a change stopped, failed or was rolled back at: the kind, the reason as recorded, who or what moved it and, in execution, the step and device."}},"type":"object","required":["number","key","label","description","state","detail","entered_at","completed_at"],"title":"StageStep"},"StandaloneAlert":{"properties":{"alert_id":{"type":"string","format":"uuid","title":"Alert Id"},"source_alert_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Alert Id"},"integration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integration"},"device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device"},"port":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Port"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"source_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"},"status":{"type":"string","title":"Status"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"raised_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Raised At"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"cleared_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cleared At"},"occurrence_count":{"type":"integer","title":"Occurrence Count","default":1},"is_inference":{"type":"boolean","title":"Is Inference","default":false},"som_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Som Number"},"som_sys_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Som Sys Id"},"incident":{"anyOf":[{"$ref":"#/components/schemas/StandaloneIncident"},{"type":"null"}]},"incident_state":{"type":"string","enum":["incident_created","waiting","ready","not_eligible"],"title":"Incident State"},"incident_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Incident Reason"},"ready_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ready At"},"seconds_to_ready":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seconds To Ready"}},"type":"object","required":["alert_id","status","incident_state"],"title":"StandaloneAlert"},"StandaloneAlertDetail":{"properties":{"alert_id":{"type":"string","format":"uuid","title":"Alert Id"},"source_alert_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Alert Id"},"integration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integration"},"device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device"},"port":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Port"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"source_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"},"status":{"type":"string","title":"Status"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"raised_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Raised At"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"cleared_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cleared At"},"occurrence_count":{"type":"integer","title":"Occurrence Count","default":1},"is_inference":{"type":"boolean","title":"Is Inference","default":false},"som_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Som Number"},"som_sys_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Som Sys Id"},"incident":{"anyOf":[{"$ref":"#/components/schemas/StandaloneIncident"},{"type":"null"}]},"incident_state":{"type":"string","enum":["incident_created","waiting","ready","not_eligible"],"title":"Incident State"},"incident_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Incident Reason"},"ready_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ready At"},"seconds_to_ready":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seconds To Ready"},"incident_alerts":{"items":{"$ref":"#/components/schemas/IncidentAlert"},"type":"array","title":"Incident Alerts"}},"type":"object","required":["alert_id","status","incident_state"],"title":"StandaloneAlertDetail"},"StandaloneAlertList":{"properties":{"available":{"type":"boolean","title":"Available"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"total":{"type":"integer","title":"Total","default":0},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"items":{"items":{"$ref":"#/components/schemas/StandaloneAlert"},"type":"array","title":"Items"},"by_device":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Device","description":"The devices with the most alerts among ALL that match the filters (not only this page), most first, at most ten: the answer to 'which device has the most'."}},"type":"object","required":["available","limit","offset"],"title":"StandaloneAlertList"},"StandaloneIncident":{"properties":{"incident_id":{"type":"string","format":"uuid","title":"Incident Id"},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number"},"source_system":{"type":"string","title":"Source System"},"status":{"type":"string","title":"Status"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"}},"type":"object","required":["incident_id","source_system","status"],"title":"StandaloneIncident"},"StandaloneSummary":{"properties":{"available":{"type":"boolean","title":"Available"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"hours":{"type":"integer","title":"Hours"},"total":{"type":"integer","title":"Total","default":0},"active":{"type":"integer","title":"Active","default":0},"cleared":{"type":"integer","title":"Cleared","default":0},"with_incident":{"type":"integer","title":"With Incident","default":0},"waiting":{"type":"integer","title":"Waiting","default":0},"ready":{"type":"integer","title":"Ready","default":0},"not_eligible":{"type":"integer","title":"Not Eligible","default":0},"by_severity":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Severity"},"by_kind":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Kind"}},"type":"object","required":["available","hours"],"title":"StandaloneSummary"},"SuspectedUpstream":{"properties":{"device_key":{"type":"string","title":"Device Key"},"tier":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tier"},"covers":{"type":"integer","title":"Covers"},"of":{"type":"integer","title":"Of"},"devices":{"items":{"type":"string"},"type":"array","title":"Devices"},"alerting_elsewhere":{"type":"boolean","title":"Alerting Elsewhere","default":false}},"type":"object","required":["device_key","covers","of"],"title":"SuspectedUpstream","description":"A device above the situation that raised no alert. A hint beside the cause, never\nthe cause: it is either the real problem with weak monitoring, or healthy."},"TaskSaving":{"properties":{"level":{"type":"string","enum":["L1","L2","L3"],"title":"Level"},"task":{"type":"string","title":"Task"},"units_without_aff":{"type":"number","title":"Units Without Aff"},"minutes_each_without_aff":{"type":"number","title":"Minutes Each Without Aff"},"units_with_aff":{"type":"number","title":"Units With Aff"},"minutes_each_with_aff":{"type":"number","title":"Minutes Each With Aff"},"minutes_without_aff":{"type":"number","title":"Minutes Without Aff"},"minutes_with_aff":{"type":"number","title":"Minutes With Aff"},"minutes_saved":{"type":"number","title":"Minutes Saved"}},"type":"object","required":["level","task","units_without_aff","minutes_each_without_aff","units_with_aff","minutes_each_with_aff","minutes_without_aff","minutes_with_aff","minutes_saved"],"title":"TaskSaving"},"TaskTotal":{"properties":{"task":{"type":"string","title":"Task"},"stage":{"type":"string","title":"Stage"},"records_credited":{"type":"integer","title":"Records Credited"},"devices":{"type":"integer","title":"Devices"},"manual_minutes":{"type":"number","title":"Manual Minutes"}},"type":"object","required":["task","stage","records_credited","devices","manual_minutes"],"title":"TaskTotal"},"Ticket":{"properties":{"incident_id":{"type":"string","format":"uuid","title":"Incident Id"},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"status":{"type":"string","title":"Status"},"short_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Description"},"domain":{"type":"string","enum":["dcn","campus"],"title":"Domain"},"kind":{"type":"string","title":"Kind"},"root_cause_device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Root Cause Device"},"device_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Role"},"site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site"},"assignment_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignment Group"},"assigned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Assigned At"},"opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opened At"},"blast_radius_devices":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Blast Radius Devices"}},"type":"object","required":["incident_id","number","priority","status","short_description","domain","kind","root_cause_device","device_role","site","assignment_group","assigned_at","opened_at","blast_radius_devices"],"title":"Ticket"},"TimeSavingsResponse":{"properties":{"window":{"$ref":"#/components/schemas/models_analytics__Window"},"measured":{"$ref":"#/components/schemas/Measured"},"per_day":{"$ref":"#/components/schemas/PerDay"},"assumptions":{"$ref":"#/components/schemas/Assumptions"},"levels":{"items":{"$ref":"#/components/schemas/LevelSaving"},"type":"array","title":"Levels"},"total":{"$ref":"#/components/schemas/TotalSaving"},"mttr":{"$ref":"#/components/schemas/Mttr"},"coverage":{"$ref":"#/components/schemas/Coverage"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"}},"type":"object","required":["window","measured","per_day","assumptions","levels","total","mttr","coverage","notes"],"title":"TimeSavingsResponse"},"TimeToClose":{"properties":{"closed":{"type":"integer","title":"Closed"},"overall":{"$ref":"#/components/schemas/CloseView"},"by_origin":{"additionalProperties":{"$ref":"#/components/schemas/CloseView"},"type":"object","title":"By Origin"},"by_change_type":{"additionalProperties":{"$ref":"#/components/schemas/CloseView"},"type":"object","title":"By Change Type"},"split":{"$ref":"#/components/schemas/CloseSplit"},"unmeasured":{"$ref":"#/components/schemas/CloseUnmeasured"},"open":{"$ref":"#/components/schemas/OpenChanges"}},"type":"object","required":["closed","overall","by_origin","by_change_type","split","unmeasured","open"],"title":"TimeToClose","description":"Raised (created_at) to closed (the `closed` row of change_status_history), with and without\nthe time spent waiting for approval. Only changes in status `closed` count here."},"TimelineEvent":{"properties":{"time":{"type":"string","format":"date-time","title":"Time"},"source":{"type":"string","maxLength":100,"minLength":1,"title":"Source"},"device_key":{"type":"string","maxLength":255,"minLength":1,"title":"Device Key"},"fault_class":{"type":"string","maxLength":50,"minLength":1,"title":"Fault Class"},"severity":{"type":"string","enum":["critical","high","medium","low","info"],"title":"Severity"},"message":{"type":"string","maxLength":2000,"title":"Message"},"alert_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Alert Id"},"source_alert_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Source Alert Id"}},"additionalProperties":false,"type":"object","required":["time","source","device_key","fault_class","severity","message"],"title":"TimelineEvent"},"TopologyAlertItem":{"properties":{"incident_id":{"type":"string","format":"uuid","title":"Incident Id"},"som_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Som Number"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"node_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Node Id"},"node_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Node Name"},"short_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Description"},"status":{"type":"string","title":"Status"},"opened_at":{"type":"string","format":"date-time","title":"Opened At"},"relative_time":{"type":"string","title":"Relative Time"}},"type":"object","required":["incident_id","status","opened_at","relative_time"],"title":"TopologyAlertItem"},"TopologyEdgeRecord":{"properties":{"edge_id":{"type":"string","format":"uuid","title":"Edge Id"},"parent_node_id":{"type":"string","format":"uuid","title":"Parent Node Id"},"child_node_id":{"type":"string","format":"uuid","title":"Child Node Id"},"relationship_type":{"type":"string","title":"Relationship Type"},"is_directional":{"type":"boolean","title":"Is Directional","default":true},"hop_weight":{"type":"integer","title":"Hop Weight","default":1},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"type":"object","required":["edge_id","parent_node_id","child_node_id","relationship_type"],"title":"TopologyEdgeRecord"},"TopologyNodeDetail":{"properties":{"node_id":{"type":"string","format":"uuid","title":"Node Id"},"external_id":{"type":"string","title":"External Id"},"name":{"type":"string","title":"Name"},"node_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Node Category"},"layer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layer"},"device_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Type"},"vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor"},"health_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Health Status"},"site_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Site Id"},"site_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Code"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"metrics":{"items":{"$ref":"#/components/schemas/NodeMetricItem"},"type":"array","title":"Metrics"},"active_incidents":{"items":{"$ref":"#/components/schemas/TopologyAlertItem"},"type":"array","title":"Active Incidents"}},"type":"object","required":["node_id","external_id","name"],"title":"TopologyNodeDetail"},"TopologyNodeRecord":{"properties":{"node_id":{"type":"string","format":"uuid","title":"Node Id"},"external_id":{"type":"string","title":"External Id"},"name":{"type":"string","title":"Name"},"node_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Node Category"},"layer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layer"},"device_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Type"},"vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor"},"health_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Health Status"},"site_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Code"},"attributes":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Attributes"}},"type":"object","required":["node_id","external_id","name"],"title":"TopologyNodeRecord"},"TopologySummaryResponse":{"properties":{"total_nodes":{"type":"integer","title":"Total Nodes","default":0},"healthy":{"type":"integer","title":"Healthy","default":0},"degraded":{"type":"integer","title":"Degraded","default":0},"critical":{"type":"integer","title":"Critical","default":0},"monitoring":{"type":"integer","title":"Monitoring","default":0}},"type":"object","title":"TopologySummaryResponse"},"TotalSaving":{"properties":{"hours_per_day":{"type":"number","title":"Hours Per Day"},"hours_per_month":{"type":"number","title":"Hours Per Month"},"fte_equivalent":{"type":"number","title":"Fte Equivalent"},"conservative_hours_per_day":{"type":"number","title":"Conservative Hours Per Day"},"conservative_hours_per_month":{"type":"number","title":"Conservative Hours Per Month"}},"type":"object","required":["hours_per_day","hours_per_month","fte_equivalent","conservative_hours_per_day","conservative_hours_per_month"],"title":"TotalSaving"},"UseCaseRegisterDetail":{"properties":{"available":{"type":"boolean","title":"Available"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"item":{"anyOf":[{"$ref":"#/components/schemas/UseCaseRegisterItem"},{"type":"null"}]}},"type":"object","required":["available"],"title":"UseCaseRegisterDetail"},"UseCaseRegisterItem":{"properties":{"uc_id":{"type":"string","title":"Uc Id"},"register_no":{"type":"integer","title":"Register No"},"offer_family":{"type":"string","title":"Offer Family"},"foundry_bucket":{"type":"string","title":"Foundry Bucket"},"sub_domain":{"type":"string","title":"Sub Domain"},"sovereignty":{"type":"string","title":"Sovereignty"},"use_case":{"type":"string","title":"Use Case"},"external_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Description"},"priority":{"type":"string","title":"Priority"},"priority_rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rationale"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["uc_id","register_no","offer_family","foundry_bucket","sub_domain","sovereignty","use_case","priority"],"title":"UseCaseRegisterItem"},"UseCaseRegisterList":{"properties":{"available":{"type":"boolean","title":"Available"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"total":{"type":"integer","title":"Total","default":0},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"items":{"items":{"$ref":"#/components/schemas/UseCaseRegisterItem"},"type":"array","title":"Items"}},"type":"object","required":["available","limit","offset"],"title":"UseCaseRegisterList"},"UseCaseRegisterSummary":{"properties":{"available":{"type":"boolean","title":"Available"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"total":{"type":"integer","title":"Total","default":0},"by_bucket":{"items":{"$ref":"#/components/schemas/BucketPriorityCount"},"type":"array","title":"By Bucket"},"by_priority":{"items":{"$ref":"#/components/schemas/RegisterCount"},"type":"array","title":"By Priority"},"by_sovereignty":{"items":{"$ref":"#/components/schemas/RegisterCount"},"type":"array","title":"By Sovereignty"},"by_offer_family":{"items":{"$ref":"#/components/schemas/RegisterCount"},"type":"array","title":"By Offer Family"}},"type":"object","required":["available"],"title":"UseCaseRegisterSummary"},"ValidateTokenRequest":{"properties":{"access_token":{"type":"string","title":"Access Token","description":"Azure Entra access token to validate."}},"type":"object","required":["access_token"],"title":"ValidateTokenRequest","description":"Body for POST /validate."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VmOut":{"properties":{"name":{"type":"string","title":"Name"},"up":{"type":"boolean","title":"Up","description":"True when the VM reported its CPU within the last 3 minutes or so. False: it has not reported for longer (starting, stopping, or in trouble); it is dropped from the list after 6 minutes."},"state":{"type":"string","enum":["up","not reporting"],"title":"State"},"cpu_percent":{"type":"number","title":"Cpu Percent","description":"Its last CPU reading, in percent."},"last_seen_seconds":{"type":"integer","title":"Last Seen Seconds","description":"About how long ago that reading was."}},"type":"object","required":["name","up","state","cpu_percent","last_seen_seconds"],"title":"VmOut"},"Volume":{"properties":{"next_7_days":{"$ref":"#/components/schemas/VolumeNext7Days"},"by_weekday":{"items":{"$ref":"#/components/schemas/WeekdayVolume"},"type":"array","title":"By Weekday"},"busiest_day":{"type":"string","title":"Busiest Day"},"quietest_day":{"type":"string","title":"Quietest Day"},"busiest_hours_ist":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Busiest Hours Ist","description":"The two hours in a row with the most incidents, in IST; null: too few"}},"type":"object","required":["next_7_days","by_weekday","busiest_day","quietest_day"],"title":"Volume"},"VolumeNext7Days":{"properties":{"likely":{"type":"integer","title":"Likely"},"low":{"type":"integer","title":"Low","description":"Likely, less how far the same method missed in past weeks"},"high":{"type":"integer","title":"High"}},"type":"object","required":["likely","low","high"],"title":"VolumeNext7Days"},"WeekdayVolume":{"properties":{"day":{"type":"string","enum":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"title":"Day"},"expected":{"type":"number","title":"Expected"}},"type":"object","required":["day","expected"],"title":"WeekdayVolume"},"Where":{"properties":{"site_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Code"},"device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device"}},"type":"object","title":"Where"},"WorkNote":{"properties":{"note_id":{"type":"string","format":"uuid","title":"Note Id"},"incident_id":{"type":"string","format":"uuid","title":"Incident Id"},"incident_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Incident Number"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"kind":{"type":"string","title":"Kind"},"author":{"type":"string","title":"Author"},"author_kind":{"type":"string","enum":["person","service"],"title":"Author Kind"},"text":{"type":"string","title":"Text"},"change_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Change Id"},"change_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Number"}},"type":"object","required":["note_id","incident_id","created_at","kind","author","author_kind","text"],"title":"WorkNote","description":"One thing that was done about an incident, written as it happened."},"WorkflowResponse":{"properties":{"window":{"$ref":"#/components/schemas/models_workflow__Window"},"stages":{"items":{"$ref":"#/components/schemas/Stage"},"type":"array","title":"Stages"},"detect_to_assign":{"$ref":"#/components/schemas/DetectToAssign"},"queues":{"items":{"$ref":"#/components/schemas/QueueBlock"},"type":"array","title":"Queues"},"domains":{"items":{"$ref":"#/components/schemas/DomainBlock"},"type":"array","title":"Domains"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"}},"type":"object","required":["window","stages","detect_to_assign","queues","domains","notes"],"title":"WorkflowResponse"},"models_analytics__DetectionHeadline":{"properties":{"median_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Minutes"},"p90_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"P90 Minutes"},"incidents":{"type":"integer","title":"Incidents"},"late_incidents":{"type":"integer","title":"Late Incidents"},"cap_minutes":{"type":"integer","title":"Cap Minutes"}},"type":"object","required":["median_minutes","p90_minutes","incidents","late_incidents","cap_minutes"],"title":"DetectionHeadline","description":"What to show for the time from first alert to incident: the typical case, without the\nincidents made long afterwards (catch-up), which are counted apart."},"models_analytics__Window":{"properties":{"hours":{"type":"integer","title":"Hours"},"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"days":{"type":"number","title":"Days"}},"type":"object","required":["hours","start","end","days"],"title":"Window"},"models_workflow__DetectionHeadline":{"properties":{"median":{"anyOf":[{"$ref":"#/components/schemas/Duration"},{"type":"null"}]},"p90":{"anyOf":[{"$ref":"#/components/schemas/Duration"},{"type":"null"}]},"incidents":{"type":"integer","title":"Incidents"},"late_incidents":{"type":"integer","title":"Late Incidents"},"cap_minutes":{"type":"integer","title":"Cap Minutes"}},"type":"object","required":["median","p90","incidents","late_incidents","cap_minutes"],"title":"DetectionHeadline","description":"What to show: the typical time and the p90 of the incidents assigned within the cap, as the\nanalytics API's `detection_headline` gives for the time to an incident."},"models_workflow__Window":{"properties":{"hours":{"type":"integer","title":"Hours"},"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"}},"type":"object","required":["hours","start","end"],"title":"Window"}}}}