{"openapi":"3.1.0","info":{"title":"Leafio Apps Monitoring","description":"Uptime monitoring system for services and endpoints","version":"1.0.0"},"paths":{"/api/v1/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_api_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh Token","operationId":"refresh_token_api_v1_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/me":{"get":{"tags":["auth"],"summary":"Get Me","operationId":"get_me_api_v1_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/oidc/login":{"get":{"tags":["auth"],"summary":"Oidc Login","operationId":"oidc_login_api_v1_auth_oidc_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/auth/oidc/callback":{"get":{"tags":["auth"],"summary":"Oidc Callback","operationId":"oidc_callback_api_v1_auth_oidc_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/":{"get":{"tags":["users"],"summary":"List Users","operationId":"list_users_api_v1_users__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UserResponse"},"type":"array","title":"Response List Users Api V1 Users  Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["users"],"summary":"Create User","operationId":"create_user_api_v1_users__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/{user_id}":{"put":{"tags":["users"],"summary":"Update User","operationId":"update_user_api_v1_users__user_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["users"],"summary":"Delete User","operationId":"delete_user_api_v1_users__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/":{"get":{"tags":["projects"],"summary":"List Projects","operationId":"list_projects_api_v1_projects__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProjectListResponse"},"type":"array","title":"Response List Projects Api V1 Projects  Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["projects"],"summary":"Create Project","operationId":"create_project_api_v1_projects__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/projects/{slug}":{"get":{"tags":["projects"],"summary":"Get Project","operationId":"get_project_api_v1_projects__slug__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["projects"],"summary":"Update Project","operationId":"update_project_api_v1_projects__slug__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["projects"],"summary":"Delete Project","operationId":"delete_project_api_v1_projects__slug__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/endpoints/":{"get":{"tags":["endpoints"],"summary":"List Endpoints","operationId":"list_endpoints_api_v1_endpoints__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"client_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EndpointResponse"},"title":"Response List Endpoints Api V1 Endpoints  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["endpoints"],"summary":"Create Endpoint","operationId":"create_endpoint_api_v1_endpoints__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/endpoints/{endpoint_id}":{"get":{"tags":["endpoints"],"summary":"Get Endpoint","operationId":"get_endpoint_api_v1_endpoints__endpoint_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"integer","title":"Endpoint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["endpoints"],"summary":"Update Endpoint","operationId":"update_endpoint_api_v1_endpoints__endpoint_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"integer","title":"Endpoint Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["endpoints"],"summary":"Delete Endpoint","operationId":"delete_endpoint_api_v1_endpoints__endpoint_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"integer","title":"Endpoint Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/endpoints/{endpoint_id}/checks":{"get":{"tags":["checks"],"summary":"List Checks","operationId":"list_checks_api_v1_endpoints__endpoint_id__checks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"integer","title":"Endpoint Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CheckResultResponse"},"title":"Response List Checks Api V1 Endpoints  Endpoint Id  Checks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/endpoints/{endpoint_id}/incidents":{"get":{"tags":["incidents"],"summary":"List Incidents","operationId":"list_incidents_api_v1_endpoints__endpoint_id__incidents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"integer","title":"Endpoint Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IncidentResponse"},"title":"Response List Incidents Api V1 Endpoints  Endpoint Id  Incidents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stats/uptime":{"get":{"tags":["stats"],"summary":"Get Endpoint Uptime","operationId":"get_endpoint_uptime_api_v1_stats_uptime_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"query","required":true,"schema":{"type":"integer","title":"Endpoint Id"}},{"name":"period","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"24h","title":"Period"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UptimeStats"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stats/project/{slug}/uptime":{"get":{"tags":["stats"],"summary":"Get Project Uptime","operationId":"get_project_uptime_api_v1_stats_project__slug__uptime_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"period","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"24h","title":"Period"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUptimeStats"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/channels/":{"get":{"tags":["notifications"],"summary":"List Channels","operationId":"list_channels_api_v1_notifications_channels__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/NotificationChannelResponse"},"type":"array","title":"Response List Channels Api V1 Notifications Channels  Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["notifications"],"summary":"Create Channel","operationId":"create_channel_api_v1_notifications_channels__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationChannelCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationChannelResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/notifications/channels/{channel_id}":{"put":{"tags":["notifications"],"summary":"Update Channel","operationId":"update_channel_api_v1_notifications_channels__channel_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"integer","title":"Channel Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationChannelUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationChannelResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["notifications"],"summary":"Delete Channel","operationId":"delete_channel_api_v1_notifications_channels__channel_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"integer","title":"Channel Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/channels/{channel_id}/test":{"post":{"tags":["notifications"],"summary":"Test Channel","operationId":"test_channel_api_v1_notifications_channels__channel_id__test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"integer","title":"Channel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Test Channel Api V1 Notifications Channels  Channel Id  Test Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/status/{project_slug}":{"get":{"tags":["status-page"],"summary":"Public Status Page","description":"Public status page — no authentication required.","operationId":"public_status_page_api_v1_status__project_slug__get","parameters":[{"name":"project_slug","in":"path","required":true,"schema":{"type":"string","title":"Project Slug"}},{"name":"period","in":"query","required":false,"schema":{"type":"string","default":"24h","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUptimeStats"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health Check","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Check Health Get"}}}}}}},"/metrics":{"get":{"summary":"Metrics Blocked","operationId":"metrics_blocked_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Public Status","description":"Public status page — no authentication required.","operationId":"public_status__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/login":{"get":{"summary":"Login Page","operationId":"login_page_login_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Login Submit","operationId":"login_submit_login_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/logout":{"get":{"summary":"Logout","operationId":"logout_logout_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/dashboard":{"get":{"summary":"Dashboard","operationId":"dashboard_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/availability":{"get":{"summary":"Global Availability","description":"Global availability matrix: endpoints × probes with latest results.","operationId":"global_availability_availability_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/projects/new":{"get":{"summary":"Project Create Form","operationId":"project_create_form_projects_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Project Create Submit","operationId":"project_create_submit_projects_new_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/projects/{slug}":{"get":{"summary":"Project Detail","operationId":"project_detail_projects__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/status/{slug}":{"get":{"summary":"Project Public Status","description":"Public status page — no auth required.","operationId":"project_public_status_status__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{slug}/edit":{"get":{"summary":"Project Edit Form","operationId":"project_edit_form_projects__slug__edit_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Project Edit Submit","operationId":"project_edit_submit_projects__slug__edit_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{slug}/delete":{"post":{"summary":"Project Delete","operationId":"project_delete_projects__slug__delete_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{slug}/test-incident":{"post":{"summary":"Create Test Incident","operationId":"create_test_incident_projects__slug__test_incident_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{slug}/endpoints/new":{"get":{"summary":"Endpoint Create Form","operationId":"endpoint_create_form_projects__slug__endpoints_new_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Endpoint Create Submit","operationId":"endpoint_create_submit_projects__slug__endpoints_new_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{slug}/endpoints/{endpoint_id}/edit":{"get":{"summary":"Endpoint Edit Form","operationId":"endpoint_edit_form_projects__slug__endpoints__endpoint_id__edit_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"integer","title":"Endpoint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Endpoint Edit Submit","operationId":"endpoint_edit_submit_projects__slug__endpoints__endpoint_id__edit_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"integer","title":"Endpoint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{slug}/endpoints/{endpoint_id}/delete":{"post":{"summary":"Endpoint Delete","operationId":"endpoint_delete_projects__slug__endpoints__endpoint_id__delete_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"integer","title":"Endpoint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users":{"get":{"summary":"Users Page","operationId":"users_page_users_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/users/{user_id}/role":{"post":{"summary":"User Change Role","operationId":"user_change_role_users__user_id__role_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}/toggle-active":{"post":{"summary":"User Toggle Active","operationId":"user_toggle_active_users__user_id__toggle_active_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}/delete":{"post":{"summary":"User Delete","operationId":"user_delete_users__user_id__delete_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/change-password":{"post":{"summary":"User Change Password","operationId":"user_change_password_users_change_password_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/probes":{"get":{"summary":"Probes Page","operationId":"probes_page_probes_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/probes/new":{"get":{"summary":"Probe Create Form","operationId":"probe_create_form_probes_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Probe Create Submit","operationId":"probe_create_submit_probes_new_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/probes/{probe_id}/edit":{"get":{"summary":"Probe Edit Form","operationId":"probe_edit_form_probes__probe_id__edit_get","parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"integer","title":"Probe Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Probe Edit Submit","operationId":"probe_edit_submit_probes__probe_id__edit_post","parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"integer","title":"Probe Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/probes/{probe_id}/init":{"post":{"summary":"Probe Init","operationId":"probe_init_probes__probe_id__init_post","parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"integer","title":"Probe Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/probes/{probe_id}/delete":{"post":{"summary":"Probe Delete","operationId":"probe_delete_probes__probe_id__delete_post","parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"integer","title":"Probe Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ping-targets":{"get":{"summary":"Ping Targets Page","operationId":"ping_targets_page_ping_targets_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/ping-targets/new":{"get":{"summary":"Ping Target New","operationId":"ping_target_new_ping_targets_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Ping Target Create","operationId":"ping_target_create_ping_targets_new_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ping-targets/{target_id}/edit":{"get":{"summary":"Ping Target Edit Form","operationId":"ping_target_edit_form_ping_targets__target_id__edit_get","parameters":[{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Ping Target Edit Submit","operationId":"ping_target_edit_submit_ping_targets__target_id__edit_post","parameters":[{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ping-targets/{target_id}/delete":{"post":{"summary":"Ping Target Delete","operationId":"ping_target_delete_ping_targets__target_id__delete_post","parameters":[{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{slug}/endpoints/{endpoint_id}/checks":{"get":{"summary":"Endpoint Checks Page","operationId":"endpoint_checks_page_projects__slug__endpoints__endpoint_id__checks_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"integer","title":"Endpoint Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{slug}/endpoints/{endpoint_id}/report":{"get":{"summary":"Endpoint Report Page","operationId":"endpoint_report_page_projects__slug__endpoints__endpoint_id__report_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"integer","title":"Endpoint Id"}},{"name":"period","in":"query","required":false,"schema":{"type":"string","default":"30d","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ping-history/{endpoint_id}":{"get":{"summary":"Ping History Api","description":"Return ping response times for all probes over the last N hours. Public endpoint.","operationId":"ping_history_api_api_ping_history__endpoint_id__get","parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"integer","title":"Endpoint Id"}},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","default":2,"title":"Hours"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/logs":{"get":{"summary":"Global Logs Page","operationId":"global_logs_page_logs_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"project","in":"query","required":false,"schema":{"type":"string","default":"","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/alerts":{"get":{"summary":"Alerts Page","operationId":"alerts_page_alerts_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"tab","in":"query","required":false,"schema":{"type":"string","default":"active","title":"Tab"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/partials/incident-category-cell/{incident_id}":{"get":{"summary":"Incident Category Cell","operationId":"incident_category_cell_partials_incident_category_cell__incident_id__get","parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"integer","title":"Incident Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/partials/incident-category-form/{incident_id}":{"get":{"summary":"Incident Category Form","operationId":"incident_category_form_partials_incident_category_form__incident_id__get","parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"integer","title":"Incident Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/alerts/{incident_id}/categorize":{"post":{"summary":"Categorize Incident","operationId":"categorize_incident_alerts__incident_id__categorize_post","parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"integer","title":"Incident Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats":{"get":{"summary":"Stats Page","operationId":"stats_page_stats_get","parameters":[{"name":"cleaned","in":"query","required":false,"schema":{"type":"string","default":"","title":"Cleaned"}},{"name":"checks","in":"query","required":false,"schema":{"type":"string","default":"","title":"Checks"}},{"name":"incidents","in":"query","required":false,"schema":{"type":"string","default":"","title":"Incidents"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/cleanup":{"post":{"summary":"Stats Cleanup","operationId":"stats_cleanup_stats_cleanup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/stats/purge-queue":{"post":{"summary":"Stats Purge Queue","operationId":"stats_purge_queue_stats_purge_queue_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oncall/test-call":{"post":{"summary":"Oncall Test Call","operationId":"oncall_test_call_oncall_test_call_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/partials/endpoint-row/{endpoint_id}":{"get":{"summary":"Partial Endpoint Row","operationId":"partial_endpoint_row_partials_endpoint_row__endpoint_id__get","parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"integer","title":"Endpoint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/partials/uptime-bar/{endpoint_id}":{"get":{"summary":"Partial Uptime Bar","operationId":"partial_uptime_bar_partials_uptime_bar__endpoint_id__get","parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"integer","title":"Endpoint Id"}},{"name":"period","in":"query","required":false,"schema":{"type":"string","default":"24h","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics":{"get":{"summary":"Analytics Page","operationId":"analytics_page_analytics_get","parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","default":"30d","title":"Period"}},{"name":"project_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AuthType":{"type":"string","enum":["none","basic","bearer"],"title":"AuthType"},"CheckResultResponse":{"properties":{"id":{"type":"integer","title":"Id"},"endpoint_id":{"type":"integer","title":"Endpoint Id"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code"},"response_time_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Response Time Ms"},"is_success":{"type":"boolean","title":"Is Success"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"}},"type":"object","required":["id","endpoint_id","checked_at","is_success"],"title":"CheckResultResponse"},"EndpointCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"client_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Client Name"},"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"},"http_method":{"$ref":"#/components/schemas/HttpMethod","default":"GET"},"request_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Body"},"request_headers":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Request Headers"},"auth_type":{"$ref":"#/components/schemas/AuthType","default":"none"},"auth_credentials":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Auth Credentials"},"check_interval_seconds":{"type":"integer","maximum":3600.0,"minimum":10.0,"title":"Check Interval Seconds","default":60},"timeout_seconds":{"type":"integer","maximum":120.0,"minimum":1.0,"title":"Timeout Seconds","default":10},"retries_before_down":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Retries Before Down","default":3},"expected_status_code":{"type":"integer","maximum":599.0,"minimum":100.0,"title":"Expected Status Code","default":200},"is_active":{"type":"boolean","title":"Is Active","default":true},"notification_channel_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Notification Channel Id"},"project_id":{"type":"integer","title":"Project Id"}},"type":"object","required":["name","url","project_id"],"title":"EndpointCreate"},"EndpointResponse":{"properties":{"id":{"type":"integer","title":"Id"},"project_id":{"type":"integer","title":"Project Id"},"name":{"type":"string","title":"Name"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"url":{"type":"string","title":"Url"},"http_method":{"$ref":"#/components/schemas/HttpMethod"},"auth_type":{"$ref":"#/components/schemas/AuthType"},"check_interval_seconds":{"type":"integer","title":"Check Interval Seconds"},"timeout_seconds":{"type":"integer","title":"Timeout Seconds"},"retries_before_down":{"type":"integer","title":"Retries Before Down"},"expected_status_code":{"type":"integer","title":"Expected Status Code"},"is_active":{"type":"boolean","title":"Is Active"},"current_status":{"type":"string","title":"Current Status"},"consecutive_failures":{"type":"integer","title":"Consecutive Failures"},"last_checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Checked At"},"last_response_time_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Response Time Ms"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","project_id","name","url","http_method","auth_type","check_interval_seconds","timeout_seconds","retries_before_down","expected_status_code","is_active","current_status","consecutive_failures","created_at"],"title":"EndpointResponse"},"EndpointUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"client_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Client Name"},"url":{"anyOf":[{"type":"string","maxLength":2048,"minLength":1},{"type":"null"}],"title":"Url"},"http_method":{"anyOf":[{"$ref":"#/components/schemas/HttpMethod"},{"type":"null"}]},"request_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Body"},"request_headers":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Request Headers"},"auth_type":{"anyOf":[{"$ref":"#/components/schemas/AuthType"},{"type":"null"}]},"auth_credentials":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Auth Credentials"},"check_interval_seconds":{"anyOf":[{"type":"integer","maximum":3600.0,"minimum":10.0},{"type":"null"}],"title":"Check Interval Seconds"},"timeout_seconds":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":1.0},{"type":"null"}],"title":"Timeout Seconds"},"retries_before_down":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":1.0},{"type":"null"}],"title":"Retries Before Down"},"expected_status_code":{"anyOf":[{"type":"integer","maximum":599.0,"minimum":100.0},{"type":"null"}],"title":"Expected Status Code"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"notification_channel_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Notification Channel Id"}},"type":"object","title":"EndpointUpdate"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HttpMethod":{"type":"string","enum":["GET","POST"],"title":"HttpMethod"},"IncidentResponse":{"properties":{"id":{"type":"integer","title":"Id"},"endpoint_id":{"type":"integer","title":"Endpoint Id"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"trigger_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Error"}},"type":"object","required":["id","endpoint_id","started_at"],"title":"IncidentResponse"},"LoginRequest":{"properties":{"username":{"type":"string","maxLength":100,"title":"Username"},"password":{"type":"string","maxLength":256,"title":"Password"}},"type":"object","required":["username","password"],"title":"LoginRequest"},"NotificationChannelCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"telegram_bot_token":{"type":"string","maxLength":200,"minLength":10,"title":"Telegram Bot Token"},"telegram_chat_id":{"type":"string","maxLength":50,"minLength":1,"title":"Telegram Chat Id"},"is_enabled":{"type":"boolean","title":"Is Enabled","default":true},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["name","telegram_bot_token","telegram_chat_id"],"title":"NotificationChannelCreate"},"NotificationChannelResponse":{"properties":{"id":{"type":"integer","title":"Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"name":{"type":"string","title":"Name"},"telegram_chat_id":{"type":"string","title":"Telegram Chat Id"},"is_enabled":{"type":"boolean","title":"Is Enabled"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","telegram_chat_id","is_enabled","created_at"],"title":"NotificationChannelResponse"},"NotificationChannelUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"telegram_bot_token":{"anyOf":[{"type":"string","maxLength":200,"minLength":10},{"type":"null"}],"title":"Telegram Bot Token"},"telegram_chat_id":{"anyOf":[{"type":"string","maxLength":50,"minLength":1},{"type":"null"}],"title":"Telegram Chat Id"},"is_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Enabled"}},"type":"object","title":"NotificationChannelUpdate"},"ProjectCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"slug":{"type":"string","maxLength":100,"minLength":2,"pattern":"^[a-z0-9][a-z0-9\\-]*[a-z0-9]$","title":"Slug"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"is_public":{"type":"boolean","title":"Is Public","default":false}},"type":"object","required":["name","slug"],"title":"ProjectCreate"},"ProjectListResponse":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"slug":{"type":"string","maxLength":100,"minLength":2,"pattern":"^[a-z0-9][a-z0-9\\-]*[a-z0-9]$","title":"Slug"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"is_public":{"type":"boolean","title":"Is Public","default":false},"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["name","slug","id","created_at"],"title":"ProjectListResponse"},"ProjectResponse":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"slug":{"type":"string","maxLength":100,"minLength":2,"pattern":"^[a-z0-9][a-z0-9\\-]*[a-z0-9]$","title":"Slug"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"is_public":{"type":"boolean","title":"Is Public","default":false},"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"endpoints_count":{"type":"integer","title":"Endpoints Count","default":0},"endpoints_up":{"type":"integer","title":"Endpoints Up","default":0},"endpoints_down":{"type":"integer","title":"Endpoints Down","default":0}},"type":"object","required":["name","slug","id","created_at"],"title":"ProjectResponse"},"ProjectUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"slug":{"anyOf":[{"type":"string","maxLength":100,"minLength":2,"pattern":"^[a-z0-9][a-z0-9\\-]*[a-z0-9]$"},{"type":"null"}],"title":"Slug"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"is_public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Public"}},"type":"object","title":"ProjectUpdate"},"ProjectUptimeStats":{"properties":{"project_id":{"type":"integer","title":"Project Id"},"project_name":{"type":"string","title":"Project Name"},"overall_uptime_percentage":{"type":"number","title":"Overall Uptime Percentage"},"endpoints":{"items":{"$ref":"#/components/schemas/UptimeStats"},"type":"array","title":"Endpoints"},"period_start":{"type":"string","format":"date-time","title":"Period Start"},"period_end":{"type":"string","format":"date-time","title":"Period End"}},"type":"object","required":["project_id","project_name","overall_uptime_percentage","endpoints","period_start","period_end"],"title":"ProjectUptimeStats"},"RefreshRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"RefreshRequest"},"Role":{"type":"string","enum":["admin","viewer"],"title":"Role"},"TokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"}},"type":"object","required":["access_token","refresh_token"],"title":"TokenResponse"},"UptimeStats":{"properties":{"endpoint_id":{"type":"integer","title":"Endpoint Id"},"endpoint_name":{"type":"string","title":"Endpoint Name"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"uptime_percentage":{"type":"number","title":"Uptime Percentage"},"total_incidents":{"type":"integer","title":"Total Incidents"},"total_downtime_seconds":{"type":"integer","title":"Total Downtime Seconds"},"period_start":{"type":"string","format":"date-time","title":"Period Start"},"period_end":{"type":"string","format":"date-time","title":"Period End"}},"type":"object","required":["endpoint_id","endpoint_name","uptime_percentage","total_incidents","total_downtime_seconds","period_start","period_end"],"title":"UptimeStats"},"UserCreate":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"username":{"type":"string","maxLength":50,"minLength":2,"pattern":"^[a-zA-Z0-9_\\-]+$","title":"Username"},"role":{"$ref":"#/components/schemas/Role","default":"viewer"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"}},"type":"object","required":["email","username","password"],"title":"UserCreate"},"UserResponse":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"username":{"type":"string","maxLength":50,"minLength":2,"pattern":"^[a-zA-Z0-9_\\-]+$","title":"Username"},"role":{"$ref":"#/components/schemas/Role","default":"viewer"},"id":{"type":"integer","title":"Id"},"is_active":{"type":"boolean","title":"Is Active"},"is_superuser":{"type":"boolean","title":"Is Superuser"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["email","username","id","is_active","is_superuser","created_at"],"title":"UserResponse"},"UserUpdate":{"properties":{"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"username":{"anyOf":[{"type":"string","maxLength":50,"minLength":2,"pattern":"^[a-zA-Z0-9_\\-]+$"},{"type":"null"}],"title":"Username"},"role":{"anyOf":[{"$ref":"#/components/schemas/Role"},{"type":"null"}]},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"UserUpdate"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}