{"openapi":"3.1.0","info":{"title":"Axiom Tech Backend Service","version":"0.1.0"},"servers":[{"url":"/"}],"paths":{"/info":{"get":{"summary":"Info","description":"Returns the release number.","operationId":"info_info_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Info Info Get"}}}}},"logging_code":"O001"}},"/loggers":{"get":{"summary":"Get Loggers","description":"Returns a list of loggers.","operationId":"get_loggers_loggers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Get Loggers Loggers Get"}}}}},"logging_code":"O001"}},"/loggers/main":{"get":{"summary":"Get Logging Level","description":"Returns the currently set logging level in the system.","operationId":"get_logging_level_loggers_main_get","security":[{"keycloak":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Get Logging Level Loggers Main Get"}}}}},"logging_code":"O001"},"post":{"summary":"Set Logging Level","description":"Set logging level from meta db.","operationId":"set_logging_level_loggers_main_post","security":[{"keycloak":[]}],"parameters":[{"name":"level","in":"query","required":true,"schema":{"type":"string","description":"Logging level","title":"Level"},"description":"Logging level"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Set Logging Level Loggers Main Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"logging_code":"O001"}},"/health":{"get":{"summary":"Get Health","description":"Health check for all components.","operationId":"get_health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthSchema"}}}}},"logging_code":"O001"}},"/health/readiness":{"get":{"summary":"Get Health Readiness","description":"Returns readiness.","operationId":"get_health_readiness_health_readiness_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadinessSchema"}}}}},"logging_code":"O001"}},"/health/liveness":{"get":{"summary":"Get Health Liveness","description":"Returns liveness.","operationId":"get_health_liveness_health_liveness_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Get Health Liveness Health Liveness Get"}}}}},"logging_code":"O001"}}},"components":{"schemas":{"AppLockSchema":{"properties":{"task_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Task Id","description":"Celery task identifier"},"task_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Name","description":"Task status details"},"start_dttm":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Dttm","description":"Task start datetime"}},"type":"object","title":"AppLockSchema"},"ComponentState":{"type":"string","enum":["up","down","off"],"title":"ComponentState","description":"Tech components state enum."},"ExecutorHealthSchema":{"properties":{"state":{"$ref":"#/components/schemas/ComponentState","description":"State of component"},"broker_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Broker Url","description":"Broker URL"},"queue":{"type":"string","title":"Queue","description":"Queue prefix"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail","description":"Details of error"},"workers":{"additionalProperties":{"$ref":"#/components/schemas/WorkerHealthSchema"},"type":"object","title":"Workers","description":"Workers health","default":{}}},"type":"object","required":["state","broker_url","queue"],"title":"ExecutorHealthSchema","description":"Axiom executor health schema."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthSchema":{"properties":{"metastore":{"$ref":"#/components/schemas/MetastoreHealthSchema","description":"State of META DB"},"sources":{"additionalProperties":{"$ref":"#/components/schemas/SourceHealthSchema"},"type":"object","title":"Sources","description":"State of sources"},"s3":{"$ref":"#/components/schemas/S3HealthSchema","description":"State of S3"},"executor":{"$ref":"#/components/schemas/ExecutorHealthSchema","description":"State of executor broker"},"app_lock":{"$ref":"#/components/schemas/AppLockSchema","description":"Current application lock"}},"type":"object","required":["metastore","sources","s3","executor","app_lock"],"title":"HealthSchema","description":"Health check schema."},"HealthStateEnum":{"type":"string","enum":["ok","error","warning"],"title":"HealthStateEnum"},"HealthStateSchema":{"properties":{"state":{"$ref":"#/components/schemas/HealthStateEnum","description":"Health state value"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail","description":"Error description"}},"type":"object","required":["state"],"title":"HealthStateSchema","description":"Health state schema."},"MetastoreHealthSchema":{"properties":{"state":{"$ref":"#/components/schemas/ComponentState","description":"State of component"},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri","description":"URI of component"},"revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision","description":"Alembic revision"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail","description":"Details of error"}},"type":"object","required":["state"],"title":"MetastoreHealthSchema","description":"Tech component schema."},"ReadinessSchema":{"properties":{"metastore":{"$ref":"#/components/schemas/MetastoreHealthSchema","description":"State of META DB"},"executor":{"$ref":"#/components/schemas/ExecutorHealthSchema","description":"State of executor broker"}},"type":"object","required":["metastore","executor"],"title":"ReadinessSchema","description":"Health check schema."},"S3AuthTypeEnum":{"type":"string","enum":["openid","access_key"],"title":"S3AuthTypeEnum","description":"S3 Auth Type enum."},"S3HealthSchema":{"properties":{"state":{"$ref":"#/components/schemas/ComponentState","description":"State of component"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"URI of component"},"auth_type":{"anyOf":[{"$ref":"#/components/schemas/S3AuthTypeEnum"},{"type":"null"}],"description":"S3 auth type"},"bucket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bucket","description":"Details of error"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail","description":"Details of error"}},"type":"object","required":["state"],"title":"S3HealthSchema","description":"Tech component schema."},"SourceHealthSchema":{"properties":{"url":{"type":"string","title":"Url","description":"Source URL"},"connection":{"$ref":"#/components/schemas/HealthStateSchema","description":"Connection state"},"work_schema":{"anyOf":[{"$ref":"#/components/schemas/HealthStateSchema"},{"type":"null"}],"description":"Work schema state"},"store_schema":{"anyOf":[{"$ref":"#/components/schemas/HealthStateSchema"},{"type":"null"}],"description":"Store schema state"},"fs_types":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/HealthStateSchema"},"type":"object"},{"type":"null"}],"title":"Fs Types","description":"Data types states"}},"type":"object","required":["url","connection"],"title":"SourceHealthSchema","description":"Health schema of source."},"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"},"WorkerHealthSchema":{"properties":{"state":{"$ref":"#/components/schemas/HealthStateEnum","description":"State of of worker"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail","description":"Details of error"},"app_version":{"type":"string","title":"App Version","description":"App version in worker"},"core_version":{"type":"string","title":"Core Version","description":"Core version in worker"},"engine_version":{"type":"string","title":"Engine Version","description":"Engine version in worker"},"stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Stats","description":"Worker stats"}},"type":"object","required":["state","app_version","core_version","engine_version"],"title":"WorkerHealthSchema","description":"Worker health schema."}},"securitySchemes":{"keycloak":{"type":"oauth2","flows":{"password":{"scopes":{"openid":"OpenID"},"tokenUrl":"https://keycloak.mh.mena.alphyn.ai/realms/mh/protocol/openid-connect/token"}}}}}}