server.web.schemas.task_concurrency =================================== .. py:module:: server.web.schemas.task_concurrency .. autoapi-nested-parse:: Pydantic schemas for Task Concurrency Timeline endpoints. Classes ------- .. autoapisummary:: server.web.schemas.task_concurrency.TaskConcurrencyResponse server.web.schemas.task_concurrency.TaskStatusAuditRecord server.web.schemas.task_concurrency.TaskStatusAuditResponse server.web.schemas.task_concurrency.WorkflowTaskTemplatesResponse server.web.schemas.task_concurrency.TemplateTimelineRow server.web.schemas.task_concurrency.TemplateTimelineResponse Module Contents --------------- .. py:class:: TaskConcurrencyResponse Bases: :py:obj:`pydantic.BaseModel` Response model for task concurrency timeline. Contains time-bucketed concurrent task counts grouped by status, with optional template breakdown for hover details. .. py:attribute:: buckets :type: List[str] .. py:attribute:: series :type: Dict[str, List[int]] .. py:attribute:: template_breakdown :type: Optional[Dict[str, List[Dict[str, int]]]] .. py:class:: TaskStatusAuditRecord Bases: :py:obj:`pydantic.BaseModel` A single task status audit record. .. py:attribute:: task_id :type: int .. py:attribute:: previous_status :type: Optional[str] :value: None .. py:attribute:: new_status :type: str .. py:attribute:: entered_at :type: Optional[str] :value: None .. py:attribute:: exited_at :type: Optional[str] :value: None .. py:class:: TaskStatusAuditResponse Bases: :py:obj:`pydantic.BaseModel` Response model for task status audit records. .. py:attribute:: audit_records :type: List[TaskStatusAuditRecord] .. py:class:: WorkflowTaskTemplatesResponse Bases: :py:obj:`pydantic.BaseModel` Response model for workflow task templates list. .. py:attribute:: task_templates :type: List[str] .. py:class:: TemplateTimelineRow Bases: :py:obj:`pydantic.BaseModel` One row in the timeline — a single task template's event series. Each entry in ``timestamps`` marks an actual status transition; the corresponding index in each ``series`` list gives the number of tasks in that status immediately after the transition. .. py:attribute:: template_name :type: str .. py:attribute:: total_tasks :type: int .. py:attribute:: timestamps :type: List[str] .. py:attribute:: series :type: Dict[str, List[int]] .. py:class:: TemplateTimelineResponse Bases: :py:obj:`pydantic.BaseModel` Response for template execution timeline. Each template carries its own ``timestamps`` array (the moments where any task in the template changed status) together with per-status counts, suitable for rendering as a continuous stacked area chart. .. py:attribute:: templates :type: List[TemplateTimelineRow]