{"openapi":"3.1.0","info":{"title":"芯化和云监控平台 API","version":"1.0.0"},"paths":{"/api/auth/login":{"post":{"tags":["认证"],"summary":"Login","operationId":"login_api_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/ApiResponse_LoginResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/userinfo":{"get":{"tags":["认证"],"summary":"Userinfo","operationId":"userinfo_api_auth_userinfo_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UserInfo_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/dashboard/hosts":{"get":{"tags":["驾驶舱"],"summary":"Get Hosts","operationId":"get_hosts_api_dashboard_hosts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_DashHostGroup__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/dashboard/health-score":{"get":{"tags":["驾驶舱"],"summary":"Get Health Score","operationId":"get_health_score_api_dashboard_health_score_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_DashboardHealthScore_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/dashboard/alert-summary":{"get":{"tags":["驾驶舱"],"summary":"Get Alert Summary","operationId":"get_alert_summary_api_dashboard_alert_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_DashboardAlertSummary_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/dashboard/asset-cards":{"get":{"tags":["驾驶舱"],"summary":"Get Asset Cards","operationId":"get_asset_cards_api_dashboard_asset_cards_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_DashboardAssetCards_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/dashboard/active-alerts":{"get":{"tags":["驾驶舱"],"summary":"Get Active Alerts","operationId":"get_active_alerts_api_dashboard_active_alerts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":9,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_DashboardActiveAlerts_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/sla-monthly":{"get":{"tags":["驾驶舱"],"summary":"Get Sla Monthly","operationId":"get_sla_monthly_api_dashboard_sla_monthly_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Month"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_DashboardMonthlySla_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/alert-trend-weekly":{"get":{"tags":["驾驶舱"],"summary":"Get Alert Trend Weekly","operationId":"get_alert_trend_weekly_api_dashboard_alert_trend_weekly_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"week","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Week"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_DashboardWeeklyAlertTrend_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/alert/rules":{"get":{"tags":["告警中心"],"summary":"List Rules","operationId":"list_rules_api_alert_rules_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["告警中心"],"summary":"Create Rule","operationId":"create_rule_api_alert_rules_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/alert/rules/{rule_id}":{"put":{"tags":["告警中心"],"summary":"Update Rule","operationId":"update_rule_api_alert_rules__rule_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["告警中心"],"summary":"Delete Rule","operationId":"delete_rule_api_alert_rules__rule_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/alert/rules/test":{"post":{"tags":["告警中心"],"summary":"Test Rule","operationId":"test_rule_api_alert_rules_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleTestPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/alert/active":{"get":{"tags":["告警中心"],"summary":"List Active","operationId":"list_active_api_alert_active_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}},{"name":"level","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/alert/count":{"get":{"tags":["告警中心"],"summary":"Get Count","operationId":"get_count_api_alert_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/alert/history":{"get":{"tags":["告警中心"],"summary":"List History","operationId":"list_history_api_alert_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}},{"name":"level","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/alert/{record_id}":{"get":{"tags":["告警中心"],"summary":"Get Detail","operationId":"get_detail_api_alert__record_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/alert/{record_id}/acknowledge":{"post":{"tags":["告警中心"],"summary":"Acknowledge","operationId":"acknowledge_api_alert__record_id__acknowledge_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertActionPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/alert/{record_id}/close":{"post":{"tags":["告警中心"],"summary":"Close Alert","operationId":"close_alert_api_alert__record_id__close_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertActionPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/hosts":{"get":{"tags":["监控配置"],"summary":"List Assets","operationId":"list_assets_api_monitor_hosts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["监控配置"],"summary":"Create Asset","operationId":"create_asset_api_monitor_hosts_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBase"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/hosts/{asset_id}":{"put":{"tags":["监控配置"],"summary":"Update Asset","operationId":"update_asset_api_monitor_hosts__asset_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBase"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["监控配置"],"summary":"Delete Asset","operationId":"delete_asset_api_monitor_hosts__asset_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/hosts/{asset_id}/status":{"patch":{"tags":["监控配置"],"summary":"Set Status","operationId":"set_status_api_monitor_hosts__asset_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/apis":{"get":{"tags":["监控配置"],"summary":"List Assets","operationId":"list_assets_api_monitor_apis_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["监控配置"],"summary":"Create Asset","operationId":"create_asset_api_monitor_apis_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBase"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/apis/{asset_id}":{"put":{"tags":["监控配置"],"summary":"Update Asset","operationId":"update_asset_api_monitor_apis__asset_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBase"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["监控配置"],"summary":"Delete Asset","operationId":"delete_asset_api_monitor_apis__asset_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/apis/{asset_id}/status":{"patch":{"tags":["监控配置"],"summary":"Set Status","operationId":"set_status_api_monitor_apis__asset_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/searches":{"get":{"tags":["监控配置"],"summary":"List Assets","operationId":"list_assets_api_monitor_searches_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["监控配置"],"summary":"Create Asset","operationId":"create_asset_api_monitor_searches_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBase"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/searches/{asset_id}":{"put":{"tags":["监控配置"],"summary":"Update Asset","operationId":"update_asset_api_monitor_searches__asset_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBase"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["监控配置"],"summary":"Delete Asset","operationId":"delete_asset_api_monitor_searches__asset_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/searches/{asset_id}/status":{"patch":{"tags":["监控配置"],"summary":"Set Status","operationId":"set_status_api_monitor_searches__asset_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/webs":{"get":{"tags":["监控配置"],"summary":"List Assets","operationId":"list_assets_api_monitor_webs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["监控配置"],"summary":"Create Asset","operationId":"create_asset_api_monitor_webs_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBase"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/webs/{asset_id}":{"put":{"tags":["监控配置"],"summary":"Update Asset","operationId":"update_asset_api_monitor_webs__asset_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBase"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["监控配置"],"summary":"Delete Asset","operationId":"delete_asset_api_monitor_webs__asset_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/webs/{asset_id}/status":{"patch":{"tags":["监控配置"],"summary":"Set Status","operationId":"set_status_api_monitor_webs__asset_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/mysqls":{"get":{"tags":["监控配置"],"summary":"List Assets","operationId":"list_assets_api_monitor_mysqls_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["监控配置"],"summary":"Create Asset","operationId":"create_asset_api_monitor_mysqls_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBase"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/mysqls/{asset_id}":{"put":{"tags":["监控配置"],"summary":"Update Asset","operationId":"update_asset_api_monitor_mysqls__asset_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBase"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["监控配置"],"summary":"Delete Asset","operationId":"delete_asset_api_monitor_mysqls__asset_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/mysqls/{asset_id}/status":{"patch":{"tags":["监控配置"],"summary":"Set Status","operationId":"set_status_api_monitor_mysqls__asset_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/sqlservers":{"get":{"tags":["监控配置"],"summary":"List Assets","operationId":"list_assets_api_monitor_sqlservers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["监控配置"],"summary":"Create Asset","operationId":"create_asset_api_monitor_sqlservers_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBase"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/sqlservers/{asset_id}":{"put":{"tags":["监控配置"],"summary":"Update Asset","operationId":"update_asset_api_monitor_sqlservers__asset_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBase"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["监控配置"],"summary":"Delete Asset","operationId":"delete_asset_api_monitor_sqlservers__asset_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/sqlservers/{asset_id}/status":{"patch":{"tags":["监控配置"],"summary":"Set Status","operationId":"set_status_api_monitor_sqlservers__asset_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"integer","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/databases":{"get":{"tags":["监控配置"],"summary":"List Databases","operationId":"list_databases_api_monitor_databases_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["监控配置"],"summary":"Create Database","operationId":"create_database_api_monitor_databases_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseAssetCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/targets/options":{"get":{"tags":["监控配置"],"summary":"Get Options","operationId":"get_options_api_monitor_targets_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/monitor/rules":{"get":{"tags":["监控配置"],"summary":"List Rules","operationId":"list_rules_api_monitor_rules_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}},{"name":"asset_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Type"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["监控配置"],"summary":"Create Rule","operationId":"create_rule_api_monitor_rules_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorRuleCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/rules/sync":{"post":{"tags":["监控配置"],"summary":"Sync Probe Rules","operationId":"sync_probe_rules_api_monitor_rules_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/monitor/rules/sync-probe-logs":{"post":{"tags":["监控配置"],"summary":"Sync Probe Logs","operationId":"sync_probe_logs_api_monitor_rules_sync_probe_logs_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/monitor/rules/sync-db-probe-logs":{"post":{"tags":["监控配置"],"summary":"Sync Db Probe Logs","operationId":"sync_db_probe_logs_api_monitor_rules_sync_db_probe_logs_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/monitor/rules/init":{"post":{"tags":["监控配置"],"summary":"Init Missing Rules","operationId":"init_missing_rules_api_monitor_rules_init_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/monitor/subscriptions":{"get":{"tags":["监控配置"],"summary":"List Subscriptions","operationId":"list_subscriptions_api_monitor_subscriptions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["监控配置"],"summary":"Create Subscription","operationId":"create_subscription_api_monitor_subscriptions_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionBase"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/subscriptions/{sub_id}":{"put":{"tags":["监控配置"],"summary":"Update Subscription","operationId":"update_subscription_api_monitor_subscriptions__sub_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"integer","title":"Sub Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionBase"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["监控配置"],"summary":"Delete Subscription","operationId":"delete_subscription_api_monitor_subscriptions__sub_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"integer","title":"Sub Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monitor/rules/{rule_id}":{"put":{"tags":["监控配置"],"summary":"Update Rule","operationId":"update_rule_api_monitor_rules__rule_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorRuleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["监控配置"],"summary":"Delete Rule","operationId":"delete_rule_api_monitor_rules__rule_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/log/query":{"get":{"tags":["日志查询"],"summary":"Query Logs","operationId":"query_logs_api_log_query_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Time"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_LogQueryResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/report/list":{"get":{"tags":["报告中心"],"summary":"List Reports","operationId":"list_reports_api_report_list_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_type","in":"query","required":false,"schema":{"enum":["daily","weekly","monthly"],"type":"string","default":"daily","title":"Report Type"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Page Size"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["pending","success","failed"],"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/report/{report_id}/download":{"get":{"tags":["报告中心"],"summary":"Download Report","operationId":"download_report_api_report__report_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"integer","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/report/{report_id}/preview":{"get":{"tags":["报告中心"],"summary":"Preview Report","operationId":"preview_report_api_report__report_id__preview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"integer","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ReportPreviewOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/report/recipients":{"get":{"tags":["报告中心"],"summary":"Get Recipients","operationId":"get_recipients_api_report_recipients_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ReportRecipientsConfig_"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["报告中心"],"summary":"Save Recipients","operationId":"save_recipients_api_report_recipients_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportRecipientsConfig"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/subscription":{"get":{"tags":["订阅续费"],"summary":"List Subscriptions","operationId":"list_subscriptions_api_subscription_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Page Size"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["normal","expiring","expired","archived"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["订阅续费"],"summary":"Create Subscription","operationId":"create_subscription_api_subscription_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscription/{sub_id}":{"put":{"tags":["订阅续费"],"summary":"Update Subscription","operationId":"update_subscription_api_subscription__sub_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"integer","title":"Sub Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscription/{sub_id}/renew":{"post":{"tags":["订阅续费"],"summary":"Renew Subscription","operationId":"renew_subscription_api_subscription__sub_id__renew_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"integer","title":"Sub Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscription/{sub_id}/archive":{"post":{"tags":["订阅续费"],"summary":"Archive Subscription","operationId":"archive_subscription_api_subscription__sub_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sub_id","in":"path","required":true,"schema":{"type":"integer","title":"Sub Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscription/stats":{"get":{"tags":["订阅续费"],"summary":"Get Stats","operationId":"get_stats_api_subscription_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/system/users/options":{"get":{"tags":["系统设置"],"summary":"Get User Options","operationId":"get_user_options_api_system_users_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/system/users":{"get":{"tags":["系统设置"],"summary":"List Users","operationId":"list_users_api_system_users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Page Size"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["系统设置"],"summary":"Create User","operationId":"create_user_api_system_users_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/system/users/{user_id}":{"put":{"tags":["系统设置"],"summary":"Update User","operationId":"update_user_api_system_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/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/system/users/{user_id}/reset-password":{"post":{"tags":["系统设置"],"summary":"Reset Password","operationId":"reset_password_api_system_users__user_id__reset_password_post","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/ResetPasswordPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/system/users/{user_id}/status":{"patch":{"tags":["系统设置"],"summary":"Set User Enabled","operationId":"set_user_enabled_api_system_users__user_id__status_patch","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/SetEnabledPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/system/notify":{"get":{"tags":["系统设置"],"summary":"Get Notify","operationId":"get_notify_api_system_notify_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_NotifyConfigOut_"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["系统设置"],"summary":"Save Notify","operationId":"save_notify_api_system_notify_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotifyConfig"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/system/notify/test-wechat":{"post":{"tags":["系统设置"],"summary":"Test Wechat Endpoint","operationId":"test_wechat_endpoint_api_system_notify_test_wechat_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/system/notify/test-smtp":{"post":{"tags":["系统设置"],"summary":"Test Smtp Endpoint","operationId":"test_smtp_endpoint_api_system_notify_test_smtp_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestSmtpPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/system/contacts":{"get":{"tags":["系统设置"],"summary":"List Contacts","operationId":"list_contacts_api_system_contacts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Page Size"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["系统设置"],"summary":"Create Contact","operationId":"create_contact_api_system_contacts_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/system/contacts/{contact_id}":{"put":{"tags":["系统设置"],"summary":"Update Contact","operationId":"update_contact_api_system_contacts__contact_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["系统设置"],"summary":"Delete Contact","operationId":"delete_contact_api_system_contacts__contact_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/system/contacts/{contact_id}/status":{"patch":{"tags":["系统设置"],"summary":"Set Contact Enabled","operationId":"set_contact_enabled_api_system_contacts__contact_id__status_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetEnabledPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/system/audit-logs":{"get":{"tags":["系统设置"],"summary":"List Audit Logs","operationId":"list_audit_logs_api_system_audit_logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Page Size"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/system/engine/state":{"get":{"tags":["系统设置"],"summary":"Get Engine State","operationId":"get_engine_state_api_system_engine_state_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_EngineStateOut_"}}}}},"security":[{"HTTPBearer":[]}]}},"/healthz":{"get":{"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}}}}}},"components":{"schemas":{"AlertActionPayload":{"properties":{"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"AlertActionPayload"},"AlertRuleCreate":{"properties":{"name":{"type":"string","title":"Name"},"asset_id":{"type":"integer","title":"Asset Id"},"rule_type":{"type":"string","enum":["metric","log","probe"],"title":"Rule Type","default":"metric"},"expr":{"type":"string","title":"Expr"},"threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Threshold"},"compare":{"anyOf":[{"type":"string","enum":[">","<",">=","<="]},{"type":"null"}],"title":"Compare"},"duration":{"type":"string","title":"Duration","default":"5m"},"level":{"type":"string","enum":["P1","P2","P3"],"title":"Level"},"notify_contact_ids":{"items":{"type":"integer"},"type":"array","title":"Notify Contact Ids"}},"type":"object","required":["name","asset_id","expr","level"],"title":"AlertRuleCreate"},"AlertRuleTestPayload":{"properties":{"expr":{"type":"string","title":"Expr"},"threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Threshold"},"compare":{"anyOf":[{"type":"string","enum":[">","<",">=","<="]},{"type":"null"}],"title":"Compare"}},"type":"object","required":["expr"],"title":"AlertRuleTestPayload"},"AlertRuleUpdate":{"properties":{"name":{"type":"string","title":"Name"},"asset_id":{"type":"integer","title":"Asset Id"},"rule_type":{"type":"string","enum":["metric","log","probe"],"title":"Rule Type","default":"metric"},"expr":{"type":"string","title":"Expr"},"threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Threshold"},"compare":{"anyOf":[{"type":"string","enum":[">","<",">=","<="]},{"type":"null"}],"title":"Compare"},"duration":{"type":"string","title":"Duration","default":"5m"},"level":{"type":"string","enum":["P1","P2","P3"],"title":"Level"},"notify_contact_ids":{"items":{"type":"integer"},"type":"array","title":"Notify Contact Ids"}},"type":"object","required":["name","asset_id","expr","level"],"title":"AlertRuleUpdate"},"ApiResponse":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{},{"type":"null"}],"title":"Data"}},"type":"object","title":"ApiResponse"},"ApiResponse_DashboardActiveAlerts_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"$ref":"#/components/schemas/DashboardActiveAlerts"},{"type":"null"}]}},"type":"object","title":"ApiResponse[DashboardActiveAlerts]"},"ApiResponse_DashboardAlertSummary_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"$ref":"#/components/schemas/DashboardAlertSummary"},{"type":"null"}]}},"type":"object","title":"ApiResponse[DashboardAlertSummary]"},"ApiResponse_DashboardAssetCards_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"$ref":"#/components/schemas/DashboardAssetCards"},{"type":"null"}]}},"type":"object","title":"ApiResponse[DashboardAssetCards]"},"ApiResponse_DashboardHealthScore_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"$ref":"#/components/schemas/DashboardHealthScore"},{"type":"null"}]}},"type":"object","title":"ApiResponse[DashboardHealthScore]"},"ApiResponse_DashboardMonthlySla_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"$ref":"#/components/schemas/DashboardMonthlySla"},{"type":"null"}]}},"type":"object","title":"ApiResponse[DashboardMonthlySla]"},"ApiResponse_DashboardWeeklyAlertTrend_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"$ref":"#/components/schemas/DashboardWeeklyAlertTrend"},{"type":"null"}]}},"type":"object","title":"ApiResponse[DashboardWeeklyAlertTrend]"},"ApiResponse_EngineStateOut_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"$ref":"#/components/schemas/EngineStateOut"},{"type":"null"}]}},"type":"object","title":"ApiResponse[EngineStateOut]"},"ApiResponse_LogQueryResult_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"$ref":"#/components/schemas/LogQueryResult"},{"type":"null"}]}},"type":"object","title":"ApiResponse[LogQueryResult]"},"ApiResponse_LoginResult_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"$ref":"#/components/schemas/LoginResult"},{"type":"null"}]}},"type":"object","title":"ApiResponse[LoginResult]"},"ApiResponse_NotifyConfigOut_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"$ref":"#/components/schemas/NotifyConfigOut"},{"type":"null"}]}},"type":"object","title":"ApiResponse[NotifyConfigOut]"},"ApiResponse_ReportPreviewOut_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"$ref":"#/components/schemas/ReportPreviewOut"},{"type":"null"}]}},"type":"object","title":"ApiResponse[ReportPreviewOut]"},"ApiResponse_ReportRecipientsConfig_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"$ref":"#/components/schemas/ReportRecipientsConfig"},{"type":"null"}]}},"type":"object","title":"ApiResponse[ReportRecipientsConfig]"},"ApiResponse_UserInfo_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"$ref":"#/components/schemas/UserInfo"},{"type":"null"}]}},"type":"object","title":"ApiResponse[UserInfo]"},"ApiResponse_dict_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Data"}},"type":"object","title":"ApiResponse[dict]"},"ApiResponse_list_DashHostGroup__":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/DashHostGroup"},"type":"array"},{"type":"null"}],"title":"Data"}},"type":"object","title":"ApiResponse[list[DashHostGroup]]"},"AssetBase":{"properties":{"name":{"type":"string","title":"Name"},"host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host"},"port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Port"},"enabled":{"type":"boolean","title":"Enabled","default":true},"remark":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remark"},"extra":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Extra"}},"type":"object","required":["name"],"title":"AssetBase"},"ContactCreate":{"properties":{"name":{"type":"string","title":"Name"},"mobile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mobile"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"remark":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remark"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["name"],"title":"ContactCreate"},"ContactUpdate":{"properties":{"name":{"type":"string","title":"Name"},"mobile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mobile"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"remark":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remark"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["name"],"title":"ContactUpdate"},"DashHostGroup":{"properties":{"vendor":{"type":"string","title":"Vendor"},"hosts":{"items":{"$ref":"#/components/schemas/DashHostItem"},"type":"array","title":"Hosts"}},"type":"object","required":["vendor"],"title":"DashHostGroup"},"DashHostItem":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"host":{"type":"string","title":"Host"},"status":{"type":"string","enum":["up","down","unknown"],"title":"Status"},"lastCheckAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lastcheckat"},"cpuPercent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpupercent"},"memPercent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mempercent"},"diskPercent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Diskpercent"},"netIn":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Netin"},"netOut":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Netout"}},"type":"object","required":["id","name","host","status"],"title":"DashHostItem","description":"驾驶舱服务器行（与 web/src/types/dashboard.d.ts 对齐）"},"DashboardActiveAlertItem":{"properties":{"id":{"type":"integer","title":"Id"},"level":{"type":"string","title":"Level"},"name":{"type":"string","title":"Name"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"asset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Name"},"fired_at":{"type":"integer","title":"Fired At"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","level","name","fired_at","status"],"title":"DashboardActiveAlertItem"},"DashboardActiveAlerts":{"properties":{"list":{"items":{"$ref":"#/components/schemas/DashboardActiveAlertItem"},"type":"array","title":"List"},"total":{"type":"integer","title":"Total","default":0},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":9}},"type":"object","title":"DashboardActiveAlerts"},"DashboardAlertSummary":{"properties":{"p1":{"type":"integer","title":"P1","default":0},"p2":{"type":"integer","title":"P2","default":0},"p3":{"type":"integer","title":"P3","default":0},"total":{"type":"integer","title":"Total","default":0},"updated_at":{"type":"integer","title":"Updated At"}},"type":"object","required":["updated_at"],"title":"DashboardAlertSummary"},"DashboardAssetCards":{"properties":{"hosts":{"$ref":"#/components/schemas/DashboardStatBucket"},"apis":{"$ref":"#/components/schemas/DashboardStatBucket"},"webs":{"$ref":"#/components/schemas/DashboardStatBucket"},"searches":{"$ref":"#/components/schemas/DashboardStatBucket"},"databases":{"$ref":"#/components/schemas/DashboardStatBucket"},"subscriptions":{"$ref":"#/components/schemas/DashboardStatBucket"},"updated_at":{"type":"integer","title":"Updated At"}},"type":"object","required":["hosts","apis","webs","searches","databases","subscriptions","updated_at"],"title":"DashboardAssetCards"},"DashboardHealthScore":{"properties":{"score":{"type":"number","title":"Score"},"label":{"type":"string","title":"Label"},"critical_count":{"type":"integer","title":"Critical Count"},"warn_count":{"type":"integer","title":"Warn Count"},"updated_at":{"type":"integer","title":"Updated At"}},"type":"object","required":["score","label","critical_count","warn_count","updated_at"],"title":"DashboardHealthScore"},"DashboardMonthlySla":{"properties":{"month":{"type":"string","title":"Month"},"items":{"items":{"$ref":"#/components/schemas/DashboardMonthlySlaItem"},"type":"array","title":"Items"},"updated_at":{"type":"integer","title":"Updated At"}},"type":"object","required":["month","updated_at"],"title":"DashboardMonthlySla"},"DashboardMonthlySlaItem":{"properties":{"name":{"type":"string","title":"Name"},"value":{"type":"number","title":"Value"},"target":{"type":"number","title":"Target"},"warn":{"type":"boolean","title":"Warn"}},"type":"object","required":["name","value","target","warn"],"title":"DashboardMonthlySlaItem"},"DashboardStatBucket":{"properties":{"total":{"type":"integer","title":"Total","default":0},"normal":{"type":"integer","title":"Normal","default":0},"warning":{"type":"integer","title":"Warning","default":0},"critical":{"type":"integer","title":"Critical","default":0}},"type":"object","title":"DashboardStatBucket"},"DashboardWeeklyAlertTrend":{"properties":{"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"series":{"$ref":"#/components/schemas/DashboardWeeklyTrendSeries"},"updated_at":{"type":"integer","title":"Updated At"}},"type":"object","required":["series","updated_at"],"title":"DashboardWeeklyAlertTrend"},"DashboardWeeklyTrendSeries":{"properties":{"p1":{"items":{"type":"integer"},"type":"array","title":"P1"},"p2":{"items":{"type":"integer"},"type":"array","title":"P2"},"p3":{"items":{"type":"integer"},"type":"array","title":"P3"}},"type":"object","title":"DashboardWeeklyTrendSeries"},"DatabaseAssetCreate":{"properties":{"name":{"type":"string","title":"Name"},"host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host"},"port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Port"},"enabled":{"type":"boolean","title":"Enabled","default":true},"remark":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remark"},"extra":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Extra"},"db_type":{"type":"string","enum":["mysql","sqlserver"],"title":"Db Type","default":"mysql"}},"type":"object","required":["name"],"title":"DatabaseAssetCreate"},"EngineJobState":{"properties":{"job_id":{"type":"string","title":"Job Id"},"last_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Status"},"last_success_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Success At"},"last_error_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Error At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"}},"type":"object","required":["job_id"],"title":"EngineJobState"},"EngineStateOut":{"properties":{"updated_at":{"type":"integer","title":"Updated At"},"jobs":{"items":{"$ref":"#/components/schemas/EngineJobState"},"type":"array","title":"Jobs"}},"type":"object","required":["updated_at","jobs"],"title":"EngineStateOut"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LogEntry":{"properties":{"id":{"type":"string","title":"Id"},"timestamp":{"type":"integer","title":"Timestamp"},"service":{"type":"string","title":"Service","default":""},"host":{"type":"string","title":"Host","default":""},"level":{"type":"string","title":"Level","default":"INFO"},"message":{"type":"string","title":"Message"},"stack":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stack"},"target":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target"},"rule_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rule Id"}},"type":"object","required":["id","timestamp","message"],"title":"LogEntry"},"LogQueryResult":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/LogEntry"},"type":"array","title":"Entries"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["entries","total"],"title":"LogQueryResult"},"LoginRequest":{"properties":{"username":{"type":"string","maxLength":50,"minLength":1,"title":"Username"},"password":{"type":"string","maxLength":128,"minLength":1,"title":"Password"}},"type":"object","required":["username","password"],"title":"LoginRequest"},"LoginResult":{"properties":{"token":{"type":"string","title":"Token"},"token_type":{"type":"string","title":"Token Type","default":"Bearer"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["token","expires_in"],"title":"LoginResult"},"MonitorRuleCreate":{"properties":{"asset_id":{"type":"integer","title":"Asset Id"},"pull_mode":{"type":"string","enum":["interval","cron"],"title":"Pull Mode","default":"interval"},"pull_interval_sec":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Interval Sec","default":60},"cron_expr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cron Expr"},"timeout_sec":{"type":"integer","title":"Timeout Sec","default":10},"retry_times":{"type":"integer","title":"Retry Times","default":3},"agent_managed":{"type":"boolean","title":"Agent Managed","default":false},"enabled":{"type":"boolean","title":"Enabled","default":true},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["asset_id"],"title":"MonitorRuleCreate"},"MonitorRuleUpdate":{"properties":{"asset_id":{"type":"integer","title":"Asset Id"},"pull_mode":{"type":"string","enum":["interval","cron"],"title":"Pull Mode","default":"interval"},"pull_interval_sec":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Interval Sec","default":60},"cron_expr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cron Expr"},"timeout_sec":{"type":"integer","title":"Timeout Sec","default":10},"retry_times":{"type":"integer","title":"Retry Times","default":3},"agent_managed":{"type":"boolean","title":"Agent Managed","default":false},"enabled":{"type":"boolean","title":"Enabled","default":true},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["asset_id"],"title":"MonitorRuleUpdate"},"NotifyConfig":{"properties":{"wechat_webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wechat Webhook Url"},"wechat_webhook_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wechat Webhook Token"},"smtp_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp Host"},"smtp_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Smtp Port"},"smtp_user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp User"},"smtp_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp Password"},"smtp_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp From"}},"type":"object","title":"NotifyConfig"},"NotifyConfigOut":{"properties":{"wechat_webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wechat Webhook Url"},"smtp_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp Host"},"smtp_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Smtp Port"},"smtp_user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp User"},"smtp_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp From"},"smtp_password_set":{"type":"boolean","title":"Smtp Password Set","default":false},"wechat_token_set":{"type":"boolean","title":"Wechat Token Set","default":false}},"type":"object","title":"NotifyConfigOut"},"ReportPreviewOut":{"properties":{"html":{"type":"string","title":"Html"}},"type":"object","required":["html"],"title":"ReportPreviewOut","description":"报告列表「预览」：前端将 `html` 写入新窗口。"},"ReportRecipientsConfig":{"properties":{"daily":{"items":{"type":"integer"},"type":"array","title":"Daily"},"weekly":{"items":{"type":"integer"},"type":"array","title":"Weekly"},"monthly":{"items":{"type":"integer"},"type":"array","title":"Monthly"}},"type":"object","title":"ReportRecipientsConfig"},"ResetPasswordPayload":{"properties":{"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["new_password"],"title":"ResetPasswordPayload"},"SetEnabledPayload":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"SetEnabledPayload"},"StatusPayload":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"StatusPayload"},"SubscriptionBase":{"properties":{"service_name":{"type":"string","title":"Service Name"},"service_type":{"type":"string","title":"Service Type"},"provider":{"type":"string","title":"Provider"},"expire_date":{"type":"string","format":"date","title":"Expire Date"},"amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"remind_days":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remind Days","default":"30,7,3"},"remark":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remark"},"status":{"type":"string","title":"Status","default":"normal"}},"type":"object","required":["service_name","service_type","provider","expire_date"],"title":"SubscriptionBase"},"SubscriptionCreate":{"properties":{"service_name":{"type":"string","title":"Service Name"},"service_type":{"type":"string","enum":["cloud_server","domain","network_tool","llm","cdn","certificate","other"],"title":"Service Type"},"provider":{"type":"string","title":"Provider"},"expire_date":{"type":"string","format":"date","title":"Expire Date"},"amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"remind_days":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remind Days","default":"30,7,3"},"remark":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remark"}},"type":"object","required":["service_name","service_type","provider","expire_date"],"title":"SubscriptionCreate"},"SubscriptionUpdate":{"properties":{"service_name":{"type":"string","title":"Service Name"},"service_type":{"type":"string","enum":["cloud_server","domain","network_tool","llm","cdn","certificate","other"],"title":"Service Type"},"provider":{"type":"string","title":"Provider"},"expire_date":{"type":"string","format":"date","title":"Expire Date"},"amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"remind_days":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remind Days","default":"30,7,3"},"remark":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remark"}},"type":"object","required":["service_name","service_type","provider","expire_date"],"title":"SubscriptionUpdate"},"TestSmtpPayload":{"properties":{"to":{"type":"string","title":"To"}},"type":"object","required":["to"],"title":"TestSmtpPayload"},"UserCreate":{"properties":{"username":{"type":"string","title":"Username"},"display_name":{"type":"string","title":"Display Name"},"password":{"type":"string","title":"Password"},"role":{"type":"string","enum":["admin","ops","viewer"],"title":"Role","default":"viewer"}},"type":"object","required":["username","display_name","password"],"title":"UserCreate"},"UserInfo":{"properties":{"id":{"type":"integer","title":"Id"},"username":{"type":"string","title":"Username"},"display_name":{"type":"string","title":"Display Name"},"role":{"type":"string","enum":["admin","ops","viewer"],"title":"Role"}},"type":"object","required":["id","username","display_name","role"],"title":"UserInfo"},"UserUpdate":{"properties":{"display_name":{"type":"string","title":"Display Name"},"role":{"type":"string","enum":["admin","ops","viewer"],"title":"Role"}},"type":"object","required":["display_name","role"],"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"}}}}