{
  "openapi": "3.1.0",
  "info": {
    "title": "AIOps",
    "version": "0.1.0"
  },
  "paths": {
    "/healthz": {
      "get": {
        "summary": "<Lambda>",
        "operationId": "<lambda>",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/llm/chat_models": {
      "post": {
        "tags": ["llm"],
        "summary": "Add Chat Model",
        "operationId": "llm-add_chat_model",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateChatModelRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": ["llm"],
        "summary": "List Chat Models",
        "operationId": "llm-list_chat_models",
        "parameters": [
          {
            "name": "name_like",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Name Like"
            }
          },
          {
            "name": "name_is",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Name Is"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 50,
              "title": "Page Size"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListChatModelResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/llm/chat_models/default": {
      "get": {
        "tags": ["llm"],
        "summary": "Get Default Chat Model",
        "operationId": "llm-get_default_chat_model",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatModel"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": ["llm"],
        "summary": "Set Default Chat Model",
        "operationId": "llm-set_default_chat_model",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetDefaultChatModelRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/llm/chat_models/{id}": {
      "get": {
        "tags": ["llm"],
        "summary": "Get Chat Model",
        "operationId": "llm-get_chat_model",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": ["llm"],
        "summary": "Update Chat Model",
        "operationId": "llm-update_chat_model",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateChatModelRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["llm"],
        "summary": "Delete Chat Model",
        "operationId": "llm-delete_chat_model",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/llm/embedding_models": {
      "post": {
        "tags": ["llm"],
        "summary": "Add Embedding Model",
        "operationId": "llm-add_embedding_model",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEmbeddingModelRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmbeddingModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": ["llm"],
        "summary": "List Embedding Models",
        "operationId": "llm-list_embedding_models",
        "parameters": [
          {
            "name": "name_like",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Name Like"
            }
          },
          {
            "name": "name_is",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Name Is"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 50,
              "title": "Page Size"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListEmbeddingModelResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/llm/embedding_models/default": {
      "get": {
        "tags": ["llm"],
        "summary": "Get Default Embedding Model",
        "operationId": "llm-get_default_embedding_model",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmbeddingModel"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": ["llm"],
        "summary": "Set Default Embedding Model",
        "operationId": "llm-set_default_embedding_model",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetDefaultEmbeddingModelRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/llm/embedding_models/{id}": {
      "get": {
        "tags": ["llm"],
        "summary": "Get Embedding Model",
        "operationId": "llm-get_embedding_model",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmbeddingModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": ["llm"],
        "summary": "Update Embedding Model",
        "operationId": "llm-update_embedding_model",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateEmbeddingModelRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmbeddingModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["llm"],
        "summary": "Delete Embedding Model",
        "operationId": "llm-delete_embedding_model",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmbeddingModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/jira/issues/retrieve_by_ai": {
      "post": {
        "tags": ["jira"],
        "summary": "Retrieve Issues By Ai",
        "operationId": "jira-retrieve_issues_by_ai",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RetrieveIssuesByAIParam"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetrieveIssuesByAIOutput"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/jira/issues/batch_triage": {
      "post": {
        "tags": ["jira"],
        "summary": "Batch Triage",
        "operationId": "jira-batch_triage",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchTriageParam"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "Response Jira-Batch Triage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/jira/issues/batch_triage_async": {
      "post": {
        "tags": ["jira"],
        "summary": "Batch Triage Async",
        "operationId": "jira-batch_triage_async",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchTriageParam"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/jira/issues/{issue_id}/triage": {
      "post": {
        "tags": ["jira"],
        "summary": "Triage",
        "operationId": "jira-triage",
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Issue Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssueTriage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/jira/issues/{issue_id}/triage_async": {
      "post": {
        "tags": ["jira"],
        "summary": "Triage Async",
        "operationId": "jira-triage_async",
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Issue Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/jira/issues/{issue_id}/timeline_summary": {
      "post": {
        "tags": ["jira"],
        "summary": "Summarize Timeline",
        "operationId": "jira-summarize_timeline",
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Issue Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SummarizeTimelineParam"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssueTimelineSummary"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/jira/issues/{issue_id}/timeline_summary_async": {
      "post": {
        "tags": ["jira"],
        "summary": "Summarize Timeline Async",
        "operationId": "jira-summarize_timeline_async",
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Issue Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SummarizeTimelineParam"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/longrunning/operations": {
      "get": {
        "tags": ["longrunning"],
        "summary": "List Operations",
        "operationId": "longrunning-list_operations",
        "parameters": [
          {
            "name": "name_like",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Name Like"
            }
          },
          {
            "name": "service_name_is",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Service Name Is"
            }
          },
          {
            "name": "done_is",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Done Is"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 50,
              "title": "Page Size"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListOperationsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/longrunning/operations/{id}": {
      "get": {
        "tags": ["longrunning"],
        "summary": "Get Operations",
        "operationId": "longrunning-get_operations",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/longrunning/operations/{id}/rerun": {
      "post": {
        "tags": ["longrunning"],
        "summary": "Rerun Operations",
        "operationId": "longrunning-rerun_operations",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/kit/lark/summarize_timeline": {
      "post": {
        "tags": ["kit"],
        "summary": "Summarize Timeline",
        "operationId": "kit-summarize_timeline",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SummarizeTimelineFromLarkMessagesParam"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimelineSummary"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/kit/lark/summarize_timeline_async": {
      "post": {
        "tags": ["kit"],
        "summary": "Summarize Timeline Async",
        "operationId": "kit-summarize_timeline_async",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SummarizeTimelineFromLarkMessagesParam"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/kit/configcenter/generate_parameter_dict": {
      "post": {
        "tags": ["kit"],
        "summary": "Generate Parameter Dict",
        "operationId": "kit-generate_parameter_dict",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateParameterDictFromDocumentParam"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateParameterDictFromDocumentResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/kit/configcenter/generate_parameter_dict_async": {
      "post": {
        "tags": ["kit"],
        "summary": "Generate Parameter Dict Async",
        "operationId": "kit-generate_parameter_dict_async",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateParameterDictFromDocumentParam"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/chatbot/session/{id}": {
      "get": {
        "tags": ["chatbot"],
        "summary": "Get Session",
        "operationId": "chatbot-get_session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/guardian/analyses": {
      "post": {
        "tags": ["guardian"],
        "summary": "Create Analysis",
        "operationId": "guardian-create_analysis",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAnalysisParam"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalysisBasic"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": ["guardian"],
        "summary": "List Analyses",
        "operationId": "guardian-list_analyses",
        "parameters": [
          {
            "name": "jira_issue_id",
            "in": "query",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The ID of the jira issue to analyze.",
              "examples": ["O11Y-12345"],
              "title": "Jira Issue Id"
            },
            "description": "The ID of the jira issue to analyze."
          },
          {
            "name": "cluster_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The ID of the cluster to filter analyses by.",
              "examples": ["123456"],
              "title": "Cluster Id"
            },
            "description": "The ID of the cluster to filter analyses by."
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The status of the analyses to filter by.",
              "examples": ["QUEUED", "PROCESSING"],
              "title": "Status"
            },
            "description": "The status of the analyses to filter by."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "description": "Page number for pagination.",
              "examples": [1, 2, 3],
              "default": 1,
              "title": "Page"
            },
            "description": "Page number for pagination."
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "description": "Number of issues per page for pagination.",
              "examples": [10, 20, 50],
              "default": 50,
              "title": "Page Size"
            },
            "description": "Number of issues per page for pagination."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListAnalysesResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/guardian/analyses/{analysis_uuid}": {
      "get": {
        "tags": ["guardian"],
        "summary": "Get Analysis",
        "operationId": "guardian-get_analysis",
        "parameters": [
          {
            "name": "analysis_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Analysis Uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalysisBasic"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/guardian/analyses/{analysis_uuid}/diagnostic-package": {
      "get": {
        "tags": ["guardian"],
        "summary": "Get Diagnostic Package",
        "operationId": "guardian-get_diagnostic_package",
        "parameters": [
          {
            "name": "analysis_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Analysis Uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HeavyWorkloadDiagnosticPackage"
                    },
                    {
                      "$ref": "#/components/schemas/ComparisonRawData"
                    }
                  ],
                  "title": "Response Guardian-Get Diagnostic Package"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/guardian/analyses/{analysis_uuid}/insight": {
      "get": {
        "tags": ["guardian"],
        "summary": "Get Insight",
        "operationId": "guardian-get_insight",
        "parameters": [
          {
            "name": "analysis_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Analysis Uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HeavyWorkloadInsight"
                    },
                    {
                      "$ref": "#/components/schemas/FinalGeneralReport"
                    }
                  ],
                  "title": "Response Guardian-Get Insight"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/guardian/analyses/{analysis_uuid}/metrics_metadata": {
      "get": {
        "tags": ["guardian"],
        "summary": "List Metrics Metadata",
        "operationId": "guardian-list_metrics_metadata",
        "parameters": [
          {
            "name": "analysis_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Analysis Uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListMetricsMetadataResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/guardian/analyses/{analysis_uuid}/metrics_rawdata": {
      "get": {
        "tags": ["guardian"],
        "summary": "Get Metrics Rawdata",
        "operationId": "guardian-get_metrics_rawdata",
        "parameters": [
          {
            "name": "analysis_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Analysis Uuid"
            }
          },
          {
            "name": "metrics_profile_name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Metrics Profile Name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrometheusMatrixResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/guardian/st_cluster_id": {
      "get": {
        "tags": ["guardian"],
        "summary": "Get Cluster Id From Issue",
        "operationId": "guardian-get_cluster_id_from_issue",
        "parameters": [
          {
            "name": "jira_issue_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The ST ticket ID to retrieve the cluster ID for.",
              "examples": ["ST-12345"],
              "title": "Jira Issue Id"
            },
            "description": "The ST ticket ID to retrieve the cluster ID for."
          },
          {
            "name": "chat_model_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The ID of the chat model to use for the retrieval. If not provided, will use the default chat model.",
              "title": "Chat Model Id"
            },
            "description": "The ID of the chat model to use for the retrieval. If not provided, will use the default chat model."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClusterIDResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/audit/logs": {
      "get": {
        "tags": ["audit"],
        "summary": "List Audit Logs",
        "operationId": "audit-list_audit_logs",
        "parameters": [
          {
            "name": "type_is",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/AuditLogType"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by audit log type",
              "title": "Type Is"
            },
            "description": "Filter by audit log type"
          },
          {
            "name": "object_id_is",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by object ID",
              "title": "Object Id Is"
            },
            "description": "Filter by object ID"
          },
          {
            "name": "operation_in",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by operation types",
              "title": "Operation In"
            },
            "description": "Filter by operation types"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "description": "Page number for pagination, starting from 1",
              "default": 1,
              "title": "Page"
            },
            "description": "Page number for pagination, starting from 1"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "description": "Number of items per page for pagination",
              "default": 50,
              "title": "Page Size"
            },
            "description": "Number of items per page for pagination"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListAuditLogsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/report/metadatas": {
      "get": {
        "tags": ["report"],
        "summary": "List Reports",
        "operationId": "report-list_reports",
        "parameters": [
          {
            "name": "name_is",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by report name",
              "title": "Name Is"
            },
            "description": "Filter by report name"
          },
          {
            "name": "name_like",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by report name with LIKE",
              "title": "Name Like"
            },
            "description": "Filter by report name with LIKE"
          },
          {
            "name": "tag_contain",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by tags containing all specified key-value pairs",
              "title": "Tag Contain"
            },
            "description": "Filter by tags containing all specified key-value pairs"
          },
          {
            "name": "tag_key_in",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by tags containing any of the specified keys",
              "title": "Tag Key In"
            },
            "description": "Filter by tags containing any of the specified keys"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "description": "Page number for pagination, starting from 1",
              "default": 1,
              "title": "Page"
            },
            "description": "Page number for pagination, starting from 1"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "description": "Number of items per page for pagination",
              "default": 50,
              "title": "Page Size"
            },
            "description": "Number of items per page for pagination"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueryMetadatasResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/report/reports/{id}": {
      "get": {
        "tags": ["report"],
        "summary": "Get Report",
        "operationId": "report-get_report",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Report"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["report"],
        "summary": "Delete Report",
        "operationId": "report-delete_report",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportMetadata"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/report/generate": {
      "post": {
        "tags": ["report"],
        "summary": "Generate Report",
        "operationId": "report-generate_report",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateReportParam"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Report"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops/report/generate_async": {
      "post": {
        "tags": ["report"],
        "summary": "Generate Report Async",
        "operationId": "report-generate_report_async",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateReportParam"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops-internal/guardian/baselines": {
      "post": {
        "tags": ["guardian-internal"],
        "summary": "Generate Baseline",
        "operationId": "guardian-internal-generate_baseline",
        "parameters": [
          {
            "name": "cluster_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Cluster Id"
            }
          },
          {
            "name": "timestamp",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Timestamp"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops-internal/guardian/baselines/whitelist": {
      "post": {
        "tags": ["guardian-internal"],
        "summary": "Generate Whitelist Baseline",
        "operationId": "guardian-internal-generate_whitelist_baseline",
        "parameters": [
          {
            "name": "timestamp",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Timestamp"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aiops-external/webhook/lark/event": {
      "post": {
        "tags": ["webhook"],
        "summary": "Handle Lark Event",
        "operationId": "webhook-handle_lark_event",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AnalysisBasic": {
        "properties": {
          "analysis_uuid": {
            "type": "string",
            "format": "uuid",
            "title": "Analysis Uuid",
            "description": "The UUID of the analysis.",
            "examples": ["analysis-12345"]
          },
          "jira_issue_id": {
            "type": "string",
            "title": "Jira Issue Id",
            "description": "The ID of the Jira issue associated with this analysis.",
            "examples": ["O11Y-12345"]
          },
          "tenant_id": {
            "type": "string",
            "title": "Tenant Id",
            "description": "The ID of the tenant associated with this analysis.",
            "examples": ["12345"]
          },
          "cluster_id": {
            "type": "string",
            "title": "Cluster Id",
            "description": "The ID of the cluster associated with this analysis.",
            "examples": ["123456"]
          },
          "time_range_start_ts": {
            "type": "integer",
            "title": "Time Range Start Ts",
            "description": "The start timestamp of the analysis in milliseconds since epoch."
          },
          "time_range_end_ts": {
            "type": "integer",
            "title": "Time Range End Ts",
            "description": "The end timestamp of the analysis in milliseconds since epoch."
          },
          "chat_model_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chat Model Id",
            "description": "The ID of the chat model used for the analysis. If not provided, will use the default chat model."
          },
          "analyzer_name": {
            "type": "string",
            "title": "Analyzer Name",
            "description": "The name of the analyzer used for this analysis.",
            "examples": ["heavy_workload"]
          },
          "status": {
            "type": "string",
            "title": "Status",
            "description": "The current status of the analysis.",
            "examples": ["QUEUED", "PROCESSING", "COMPLETED", "FAILED"]
          },
          "error_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Message",
            "description": "Error message if the analysis failed. This field is optional and will be null if there is no error."
          },
          "created_at": {
            "type": "string",
            "title": "Created At",
            "description": "The creation time of the analysis, in ISO 8601 format.",
            "examples": ["2025-07-14T10:04:58.731+0800"]
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At",
            "description": "The completion time of the analysis, in ISO 8601 format. This field is optional and will be null if the analysis is not yet completed.",
            "examples": ["2025-07-14T10:04:58.731+0800"]
          }
        },
        "type": "object",
        "required": [
          "analysis_uuid",
          "jira_issue_id",
          "tenant_id",
          "cluster_id",
          "time_range_start_ts",
          "time_range_end_ts",
          "analyzer_name",
          "status",
          "created_at"
        ],
        "title": "AnalysisBasic"
      },
      "Anomaly": {
        "properties": {
          "anomaly_type": {
            "$ref": "#/components/schemas/AnomalyType",
            "description": "The type of anomaly detected.",
            "examples": ["temporal_baseline_anomaly", "cross_sectional_outlier"]
          },
          "labels": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Labels",
            "description": "The specific label values for this group.",
            "examples": [
              {
                "instance": "tikv-3"
              }
            ]
          },
          "detail": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TemporalBaselineAnomalyDetection"
              },
              {
                "$ref": "#/components/schemas/CrossSectionalOutlierDetection"
              },
              {
                "$ref": "#/components/schemas/ResourceSaturationAnomalyDetection"
              }
            ],
            "title": "Detail",
            "description": "Detailed information about the detected anomaly."
          }
        },
        "type": "object",
        "required": ["anomaly_type", "labels", "detail"],
        "title": "Anomaly"
      },
      "AnomalyType": {
        "type": "string",
        "enum": [
          "temporal_baseline_anomaly",
          "cross_sectional_outlier",
          "resource_saturation_anomaly"
        ],
        "title": "AnomalyType"
      },
      "AuditLog": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At",
            "description": "The time when the operation was created"
          },
          "type": {
            "$ref": "#/components/schemas/AuditLogType",
            "description": "The type of the audit log"
          },
          "object_id": {
            "type": "string",
            "title": "Object Id",
            "description": "The ID of the target object"
          },
          "operation": {
            "type": "string",
            "title": "Operation",
            "description": "The operation performed, e.g., 'create', 'update', 'delete'"
          },
          "operator": {
            "type": "string",
            "title": "Operator",
            "description": "The operator email who performed the action"
          },
          "operate_at": {
            "type": "string",
            "format": "date-time",
            "title": "Operate At",
            "description": "The time when the operation was performed"
          },
          "details": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Details",
            "description": "Additional details about the operation"
          }
        },
        "type": "object",
        "required": [
          "id",
          "type",
          "object_id",
          "operation",
          "operator",
          "operate_at"
        ],
        "title": "AuditLog"
      },
      "AuditLogType": {
        "type": "string",
        "enum": ["chatbot_session"],
        "title": "AuditLogType"
      },
      "BatchTriageParam": {
        "properties": {
          "chat_model_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chat Model Id"
          },
          "issue_filter": {
            "$ref": "#/components/schemas/IssueFilterParam"
          },
          "max_concurrency": {
            "type": "integer",
            "title": "Max Concurrency",
            "default": 20
          },
          "include_report": {
            "type": "boolean",
            "title": "Include Report",
            "default": false
          }
        },
        "type": "object",
        "required": ["issue_filter"],
        "title": "BatchTriageParam"
      },
      "BedrockCredential": {
        "properties": {
          "access_key_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Access Key Id"
          },
          "secret_access_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Secret Access Key"
          },
          "api_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Key"
          }
        },
        "type": "object",
        "title": "BedrockCredential"
      },
      "BedrockLLMConfig": {
        "properties": {
          "region": {
            "type": "string",
            "title": "Region"
          },
          "temperature": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Temperature",
            "default": 0.6
          },
          "max_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Tokens",
            "default": 2048
          }
        },
        "type": "object",
        "required": ["region"],
        "title": "BedrockLLMConfig"
      },
      "Block": {
        "properties": {
          "type": {
            "$ref": "#/components/schemas/BlockType",
            "description": "The type of the block."
          },
          "heading": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Heading"
              },
              {
                "type": "null"
              }
            ],
            "description": "The heading details if the block is of type 'heading'."
          },
          "paragraph": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Paragraph"
              },
              {
                "type": "null"
              }
            ],
            "description": "The paragraph details if the block is of type 'paragraph'."
          },
          "chart": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Chart"
              },
              {
                "type": "null"
              }
            ],
            "description": "The chart details if the block is of type 'chart'."
          }
        },
        "type": "object",
        "required": ["type"],
        "title": "Block"
      },
      "BlockType": {
        "type": "string",
        "enum": ["heading", "paragraph", "chart"],
        "title": "BlockType"
      },
      "Chart": {
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title",
            "description": "The title of the chart."
          },
          "chart_type": {
            "$ref": "#/components/schemas/ChartType",
            "description": "The type of the chart."
          },
          "column": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ChartColumn"
              },
              {
                "type": "null"
              }
            ],
            "description": "The column data for the chart, required for column charts."
          },
          "line": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ChartLine"
              },
              {
                "type": "null"
              }
            ],
            "description": "The line data for the chart, required for line charts."
          },
          "pie": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ChartPie"
              },
              {
                "type": "null"
              }
            ],
            "description": "The pie data for the chart, required for pie charts."
          },
          "bar": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ChartBar"
              },
              {
                "type": "null"
              }
            ],
            "description": "The bar data for the chart, required for bar charts."
          }
        },
        "type": "object",
        "required": ["chart_type"],
        "title": "Chart"
      },
      "ChartBar": {
        "properties": {
          "x_field": {
            "type": "string",
            "title": "X Field",
            "description": "The field name for the x-axis.",
            "examples": ["year"]
          },
          "y_field": {
            "type": "string",
            "title": "Y Field",
            "description": "The field name for the y-axis.",
            "examples": ["value"]
          },
          "series_field": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Series Field",
            "description": "The field name for the series, used for grouping data in stacked or grouped charts.",
            "examples": ["type"]
          },
          "is_stack": {
            "type": "boolean",
            "title": "Is Stack",
            "description": "Indicates whether the bars should be stacked.",
            "default": false
          },
          "data": {
            "items": {
              "type": "object"
            },
            "type": "array",
            "title": "Data",
            "description": "The data points for the chart.",
            "examples": [
              {
                "type": "B",
                "value": 3,
                "year": "1991"
              },
              {
                "type": "A",
                "value": 4,
                "year": "1992"
              }
            ]
          }
        },
        "type": "object",
        "required": ["x_field", "y_field", "data"],
        "title": "ChartBar"
      },
      "ChartColumn": {
        "properties": {
          "x_field": {
            "type": "string",
            "title": "X Field",
            "description": "The field name for the x-axis.",
            "examples": ["year"]
          },
          "y_field": {
            "type": "string",
            "title": "Y Field",
            "description": "The field name for the y-axis.",
            "examples": ["value"]
          },
          "series_field": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Series Field",
            "description": "The field name for the series, used for grouping data in stacked or grouped charts.",
            "examples": ["type"]
          },
          "is_stack": {
            "type": "boolean",
            "title": "Is Stack",
            "description": "Indicates whether the columns should be stacked.",
            "default": false
          },
          "data": {
            "items": {
              "type": "object"
            },
            "type": "array",
            "title": "Data",
            "description": "The data points for the chart.",
            "examples": [
              {
                "type": "B",
                "value": 3,
                "year": "1991"
              },
              {
                "type": "A",
                "value": 4,
                "year": "1992"
              }
            ]
          }
        },
        "type": "object",
        "required": ["x_field", "y_field", "data"],
        "title": "ChartColumn"
      },
      "ChartLine": {
        "properties": {
          "x_field": {
            "type": "string",
            "title": "X Field",
            "description": "The field name for the x-axis.",
            "examples": ["year"]
          },
          "y_field": {
            "type": "string",
            "title": "Y Field",
            "description": "The field name for the y-axis.",
            "examples": ["value"]
          },
          "data": {
            "items": {
              "type": "object"
            },
            "type": "array",
            "title": "Data",
            "description": "The data points for the chart.",
            "examples": [
              {
                "value": 3,
                "year": "1991"
              },
              {
                "value": 4,
                "year": "1992"
              }
            ]
          }
        },
        "type": "object",
        "required": ["x_field", "y_field", "data"],
        "title": "ChartLine"
      },
      "ChartPie": {
        "properties": {
          "angle_field": {
            "type": "string",
            "title": "Angle Field",
            "description": "The field name for the angle of the pie slices.",
            "examples": ["value"]
          },
          "color_field": {
            "type": "string",
            "title": "Color Field",
            "description": "The field name for the color of the pie slices.",
            "examples": ["type"]
          },
          "data": {
            "items": {
              "type": "object"
            },
            "type": "array",
            "title": "Data",
            "description": "The data points for the chart.",
            "examples": [
              {
                "type": "A",
                "value": 27
              },
              {
                "type": "B",
                "value": 25
              }
            ]
          }
        },
        "type": "object",
        "required": ["angle_field", "color_field", "data"],
        "title": "ChartPie"
      },
      "ChartType": {
        "type": "string",
        "enum": ["column", "line", "pie", "bar"],
        "title": "ChartType"
      },
      "ChatModel": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "model": {
            "type": "string",
            "title": "Model"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "is_default": {
            "type": "boolean",
            "title": "Is Default"
          },
          "config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OpenAILLMConfig"
              },
              {
                "$ref": "#/components/schemas/DeepSeekLLMConfig"
              },
              {
                "$ref": "#/components/schemas/BedrockLLMConfig"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config"
          },
          "credential": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DeepSeekCredential"
              },
              {
                "$ref": "#/components/schemas/OpenAICredential"
              },
              {
                "$ref": "#/components/schemas/BedrockCredential"
              }
            ],
            "title": "Credential"
          }
        },
        "type": "object",
        "required": [
          "id",
          "created_at",
          "name",
          "model",
          "provider",
          "is_default",
          "config",
          "credential"
        ],
        "title": "ChatModel"
      },
      "ClusterContext": {
        "properties": {
          "cluster_id": {
            "type": "string",
            "title": "Cluster Id"
          }
        },
        "type": "object",
        "required": ["cluster_id"],
        "title": "ClusterContext"
      },
      "ClusterIDResponse": {
        "properties": {
          "cluster_id": {
            "type": "string",
            "title": "Cluster Id"
          }
        },
        "type": "object",
        "required": ["cluster_id"],
        "title": "ClusterIDResponse"
      },
      "Comment": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "The ID of the comment",
            "examples": ["5279388"]
          },
          "created_at": {
            "type": "integer",
            "title": "Created At",
            "description": "The creation timestamp of the issue"
          },
          "updated_at": {
            "type": "integer",
            "title": "Updated At",
            "description": "The last update timestamp of the comment"
          },
          "author": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/User"
              },
              {
                "type": "null"
              }
            ],
            "description": "The author of the comment"
          },
          "content": {
            "type": "string",
            "title": "Content",
            "description": "The content of the comment"
          }
        },
        "type": "object",
        "required": ["id", "created_at", "updated_at", "content"],
        "title": "Comment"
      },
      "ComparisonFact": {
        "properties": {
          "source": {
            "type": "string",
            "title": "Source",
            "description": "Source of the comparison fact, e.g., metrics, logs, etc."
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "Description of the comparison fact."
          }
        },
        "type": "object",
        "required": ["source", "description"],
        "title": "ComparisonFact"
      },
      "ComparisonMetadata": {
        "properties": {
          "analysis_uuid": {
            "type": "string",
            "title": "Analysis Uuid",
            "description": "The UUID of the analysis associated with this diagnostic package."
          },
          "cluster_id": {
            "type": "string",
            "title": "Cluster Id",
            "description": "The ID of the cluster."
          },
          "cluster_topology": {
            "type": "string",
            "title": "Cluster Topology",
            "description": "The topology of the cluster.",
            "examples": [
              "32-tidb-64C256G / 126-tikv-32C128G-2500G (IO2) / 3-pd-64C128G-20G"
            ]
          },
          "created_at": {
            "type": "string",
            "title": "Created At",
            "description": "The creation time of the diagnostic package, in ISO 8601 format."
          },
          "time_range_start_ts": {
            "type": "integer",
            "title": "Time Range Start Ts",
            "description": "The start timestamp of the analysis in milliseconds since epoch."
          },
          "time_range_end_ts": {
            "type": "integer",
            "title": "Time Range End Ts",
            "description": "The end timestamp of the analysis in milliseconds since epoch."
          }
        },
        "type": "object",
        "required": [
          "analysis_uuid",
          "cluster_id",
          "cluster_topology",
          "time_range_start_ts",
          "time_range_end_ts"
        ],
        "title": "ComparisonMetadata"
      },
      "ComparisonRawData": {
        "properties": {
          "metadata": {
            "$ref": "#/components/schemas/ComparisonMetadata",
            "description": "Metadata about the comparison analysis."
          },
          "metrics": {
            "items": {
              "$ref": "#/components/schemas/MetricsGroup"
            },
            "type": "array",
            "title": "Metrics",
            "description": "List of metrics comparison facts."
          },
          "top_slow_queries": {
            "items": {
              "type": "object"
            },
            "type": "array",
            "title": "Top Slow Queries",
            "description": "A list of top slow queries related to the jira issue."
          },
          "top_cpu_time_sqls": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TopSQL"
              },
              {
                "type": "null"
              }
            ],
            "description": "A list of top SQLs consuming CPU time related to the jira issue."
          },
          "events": {
            "items": {},
            "type": "array",
            "title": "Events",
            "description": "List of events happened in last 2 days."
          }
        },
        "type": "object",
        "required": ["metadata", "metrics", "top_slow_queries", "events"],
        "title": "ComparisonRawData"
      },
      "Context": {
        "properties": {
          "issue": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JiraIssueContext"
              },
              {
                "type": "null"
              }
            ]
          },
          "cluster": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ClusterContext"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "Context"
      },
      "CreateAnalysisParam": {
        "properties": {
          "jira_issue_id": {
            "type": "string",
            "title": "Jira Issue Id",
            "description": "The ID of the jira issue to analyze.",
            "examples": ["O11Y-12345"]
          },
          "analyzer_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Analyzer Name",
            "description": "The name of the analyzer to use for the analysis. If empty, will use the default routing logic to select an appropriate analyzer.",
            "examples": ["heavy_workload"]
          },
          "time_range_start_ts": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Time Range Start Ts",
            "description": "The start timestamp of the analysis in milliseconds since epoch. If not provided, will use before 30 mins from the start time of the issue."
          },
          "time_range_end_ts": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Time Range End Ts",
            "description": "The end timestamp of the analysis in milliseconds since epoch. If not provided, will use the start time of the issue."
          },
          "jira_integration": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JiraIntegrationParam"
              },
              {
                "type": "null"
              }
            ],
            "description": "Additional data required for the analysis."
          },
          "chat_model_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chat Model Id",
            "description": "The ID of the chat model to use for the analysis. If not provided, will use the default chat model."
          }
        },
        "type": "object",
        "required": ["jira_issue_id"],
        "title": "CreateAnalysisParam"
      },
      "CreateChatModelRequest": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "model": {
            "type": "string",
            "title": "Model"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OpenAILLMConfig"
              },
              {
                "$ref": "#/components/schemas/DeepSeekLLMConfig"
              },
              {
                "$ref": "#/components/schemas/BedrockLLMConfig"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config"
          },
          "credential": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DeepSeekCredential"
              },
              {
                "$ref": "#/components/schemas/OpenAICredential"
              },
              {
                "$ref": "#/components/schemas/BedrockCredential"
              }
            ],
            "title": "Credential"
          }
        },
        "type": "object",
        "required": ["name", "model", "provider", "config", "credential"],
        "title": "CreateChatModelRequest"
      },
      "CreateEmbeddingModelRequest": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "model": {
            "type": "string",
            "title": "Model"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OpenAILLMConfig"
              },
              {
                "$ref": "#/components/schemas/DeepSeekLLMConfig"
              },
              {
                "$ref": "#/components/schemas/BedrockLLMConfig"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config"
          },
          "credential": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DeepSeekCredential"
              },
              {
                "$ref": "#/components/schemas/OpenAICredential"
              },
              {
                "$ref": "#/components/schemas/BedrockCredential"
              }
            ],
            "title": "Credential"
          }
        },
        "type": "object",
        "required": ["name", "model", "provider", "config", "credential"],
        "title": "CreateEmbeddingModelRequest"
      },
      "CrossSectionalOutlierDetection": {
        "properties": {
          "observed_value": {
            "type": "number",
            "title": "Observed Value",
            "description": "The current observed value of the metric.",
            "default": 0.0,
            "examples": [0.8]
          },
          "z_score": {
            "type": "number",
            "title": "Z Score",
            "description": "The Modified Z-score of the current value compared to peer group.",
            "default": 0.0,
            "examples": [3.2]
          },
          "peer_median": {
            "type": "number",
            "title": "Peer Median",
            "description": "The median value of the peer group.",
            "default": 0.0,
            "examples": [0.6]
          },
          "peer_mad": {
            "type": "number",
            "title": "Peer Mad",
            "description": "The Median Absolute Deviation (MAD) of the peer group.",
            "default": 0.0,
            "examples": [0.05]
          },
          "peer_count": {
            "type": "integer",
            "title": "Peer Count",
            "description": "The number of peer series used for comparison.",
            "default": 0,
            "examples": [5]
          }
        },
        "type": "object",
        "title": "CrossSectionalOutlierDetection"
      },
      "DeepSeekCredential": {
        "properties": {
          "api_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Key"
          }
        },
        "type": "object",
        "title": "DeepSeekCredential"
      },
      "DeepSeekLLMConfig": {
        "properties": {
          "base_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Base Url"
          },
          "temperature": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Temperature",
            "default": 0.6
          }
        },
        "type": "object",
        "title": "DeepSeekLLMConfig"
      },
      "DirectCauseReport": {
        "properties": {
          "summary": {
            "type": "string",
            "title": "Summary",
            "description": "A concise summary of the direct cause of the performance issue."
          },
          "evidences": {
            "items": {
              "$ref": "#/components/schemas/EvidenceDetail"
            },
            "type": "array",
            "title": "Evidences",
            "description": "A list of evidences supporting the direct cause analysis."
          },
          "jira_issue_related_metrics_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Jira Issue Related Metrics Name",
            "description": "\n            The name of the metric related to the Jira issue summary and description, if applicable. \n            Please only fill this field using the metrics name within the Performance Report.\n            For example:\n            1. if the issue is about high TiDB CPU usage, this could be 'tidb_cpu_usage'. \n            2. if the issue is about high TiDB SQL latency, this could be 'tidb_duration_p99'.\n        "
          }
        },
        "type": "object",
        "required": ["summary", "evidences"],
        "title": "DirectCauseReport"
      },
      "EmbeddingModel": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "model": {
            "type": "string",
            "title": "Model"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider"
          },
          "is_default": {
            "type": "boolean",
            "title": "Is Default"
          },
          "config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OpenAILLMConfig"
              },
              {
                "$ref": "#/components/schemas/DeepSeekLLMConfig"
              },
              {
                "$ref": "#/components/schemas/BedrockLLMConfig"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config"
          },
          "credential": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DeepSeekCredential"
              },
              {
                "$ref": "#/components/schemas/OpenAICredential"
              },
              {
                "$ref": "#/components/schemas/BedrockCredential"
              }
            ],
            "title": "Credential"
          }
        },
        "type": "object",
        "required": [
          "id",
          "created_at",
          "name",
          "model",
          "provider",
          "is_default",
          "config",
          "credential"
        ],
        "title": "EmbeddingModel"
      },
      "EvidenceDetail": {
        "properties": {
          "source_type": {
            "$ref": "#/components/schemas/EvidenceSource",
            "description": "The source type of the evidence."
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "Description of the evidence."
          },
          "metric_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Metric Name",
            "description": "The name of the metric if the evidence is from metrics."
          },
          "sql": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SQL"
              },
              {
                "type": "null"
              }
            ],
            "description": "The SQL statement if the evidence is from SQL analysis."
          }
        },
        "type": "object",
        "required": ["source_type", "description"],
        "title": "EvidenceDetail"
      },
      "EvidenceSource": {
        "type": "string",
        "enum": ["metrics", "top_cpu_time_sqls", "top_slow_queries", "events"],
        "title": "EvidenceSource"
      },
      "FinalGeneralReport": {
        "properties": {
          "direct_cause": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DirectCauseReport"
              },
              {
                "type": "null"
              }
            ],
            "description": "The direct cause report."
          },
          "detail": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PerformanceReport"
              },
              {
                "type": "null"
              }
            ],
            "description": "The detailed performance report."
          },
          "metadata": {
            "$ref": "#/components/schemas/InsightMetadata",
            "description": "Metadata associated with the insight."
          }
        },
        "type": "object",
        "required": ["metadata"],
        "title": "FinalGeneralReport"
      },
      "GenerateParameterDictFromDocumentParam": {
        "properties": {
          "chat_model_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chat Model Id",
            "description": "The ID of the chat model, default to None means default model.",
            "examples": [1]
          },
          "config_type": {
            "type": "string",
            "title": "Config Type",
            "description": "The config type.",
            "examples": ["pd", "tikv", "tidb"]
          },
          "version": {
            "type": "string",
            "title": "Version",
            "description": "The version of the config type.",
            "examples": ["8.5"]
          },
          "output": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/aiops__service__kit__api__OutputParam"
              },
              {
                "type": "null"
              }
            ],
            "description": "The output parameters."
          }
        },
        "type": "object",
        "required": ["config_type", "version"],
        "title": "GenerateParameterDictFromDocumentParam"
      },
      "GenerateParameterDictFromDocumentResult": {
        "properties": {
          "parameters": {
            "additionalProperties": {
              "$ref": "#/components/schemas/ParameterAttribute"
            },
            "type": "object",
            "title": "Parameters",
            "description": "The generated parameter dictionary."
          },
          "unknown_parameters": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unknown Parameters",
            "description": "The list of unknown parameters. "
          },
          "output": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutputResult"
              },
              {
                "type": "null"
              }
            ],
            "description": "The output result."
          }
        },
        "type": "object",
        "required": ["parameters"],
        "title": "GenerateParameterDictFromDocumentResult"
      },
      "GenerateReportParam": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name",
            "description": "The name of the report, used to identify the report."
          },
          "tags": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Tags",
            "description": "A dictionary of tags associated with the report"
          },
          "topic": {
            "type": "string",
            "title": "Topic",
            "description": "The topic and prompt used by AI to generate the report."
          },
          "data": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "items": {},
                "type": "array"
              }
            ],
            "title": "Data",
            "description": "The data used for generating the report."
          },
          "data_schema": {
            "type": "string",
            "title": "Data Schema",
            "description": "The json schema describing the structure of the data"
          }
        },
        "type": "object",
        "required": ["name", "topic", "data", "data_schema"],
        "title": "GenerateReportParam"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "Heading": {
        "properties": {
          "level": {
            "type": "integer",
            "title": "Level",
            "description": "The level of the heading, ranging from 2 to 5."
          },
          "content": {
            "type": "string",
            "title": "Content",
            "description": "The text content of the heading."
          }
        },
        "type": "object",
        "required": ["level", "content"],
        "title": "Heading"
      },
      "HeavyWorkloadDiagnosticPackage": {
        "properties": {
          "metadata": {
            "$ref": "#/components/schemas/HeavyWorkloadDiagnosticPackageMetadata"
          },
          "metrics": {
            "type": "object",
            "title": "Metrics",
            "description": "The metrics collected related to jira issue."
          },
          "top_slow_queries": {
            "items": {
              "type": "object"
            },
            "type": "array",
            "title": "Top Slow Queries",
            "description": "A list of top slow queries related to the jira issue."
          },
          "top_cpu_time_sqls": {
            "items": {
              "type": "object"
            },
            "type": "array",
            "title": "Top Cpu Time Sqls",
            "description": "A list of top SQLs consuming CPU time related to the jira issue."
          }
        },
        "type": "object",
        "required": [
          "metadata",
          "metrics",
          "top_slow_queries",
          "top_cpu_time_sqls"
        ],
        "title": "HeavyWorkloadDiagnosticPackage"
      },
      "HeavyWorkloadDiagnosticPackageMetadata": {
        "properties": {
          "analysis_uuid": {
            "type": "string",
            "title": "Analysis Uuid",
            "description": "The UUID of the analysis associated with this diagnostic package."
          },
          "cluster_id": {
            "type": "string",
            "title": "Cluster Id",
            "description": "The ID of the cluster."
          },
          "cluster_topology": {
            "type": "string",
            "title": "Cluster Topology",
            "description": "The topology of the cluster.",
            "examples": [
              "32-tidb-64C256G / 126-tikv-32C128G-2500G (IO2) / 3-pd-64C128G-20G"
            ]
          },
          "created_at": {
            "type": "string",
            "title": "Created At",
            "description": "The creation time of the diagnostic package, in ISO 8601 format."
          },
          "jira_issue_id": {
            "type": "string",
            "title": "Jira Issue Id",
            "description": "The ID of the Jira issue associated with this diagnostic package."
          },
          "jira_issue_payload": {
            "$ref": "#/components/schemas/IssuePayload",
            "description": "The payload of the Jira issue associated with this diagnostic package."
          },
          "time_range_start_ts": {
            "type": "integer",
            "title": "Time Range Start Ts",
            "description": "The start timestamp of the analysis in milliseconds since epoch."
          },
          "time_range_end_ts": {
            "type": "integer",
            "title": "Time Range End Ts",
            "description": "The end timestamp of the analysis in milliseconds since epoch."
          },
          "component": {
            "type": "string",
            "title": "Component",
            "description": "The component associated with this diagnostic package.",
            "examples": ["tidb"]
          },
          "instance": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Instance",
            "description": "The instance associated with jira issue.",
            "examples": ["tidb-1"]
          }
        },
        "type": "object",
        "required": [
          "analysis_uuid",
          "cluster_id",
          "cluster_topology",
          "jira_issue_id",
          "jira_issue_payload",
          "time_range_start_ts",
          "time_range_end_ts",
          "component"
        ],
        "title": "HeavyWorkloadDiagnosticPackageMetadata"
      },
      "HeavyWorkloadDirectCause": {
        "properties": {
          "summary": {
            "type": "string",
            "title": "Summary",
            "description": "Summary of the direct cause of the heavy workload."
          },
          "related_sql": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SQL"
              },
              {
                "type": "null"
              }
            ],
            "description": "Related SQL statement that caused the heavy workload, if applicable."
          }
        },
        "type": "object",
        "required": ["summary"],
        "title": "HeavyWorkloadDirectCause"
      },
      "HeavyWorkloadInsight": {
        "properties": {
          "comparison_facts": {
            "items": {
              "$ref": "#/components/schemas/ComparisonFact"
            },
            "type": "array",
            "title": "Comparison Facts",
            "description": "List of comparison facts that explain the heavy workload."
          },
          "direct_cause": {
            "$ref": "#/components/schemas/HeavyWorkloadDirectCause",
            "description": "Direct cause of the heavy workload"
          },
          "mitigation_plan": {
            "items": {
              "$ref": "#/components/schemas/MitigationPlanStep"
            },
            "type": "array",
            "title": "Mitigation Plan",
            "description": "List of steps in the mitigation plan."
          },
          "detail": {
            "type": "object",
            "title": "Detail",
            "description": "Additional details about the insight."
          },
          "metadata": {
            "$ref": "#/components/schemas/InsightMetadata",
            "description": "Metadata associated with the insight."
          }
        },
        "type": "object",
        "required": [
          "comparison_facts",
          "direct_cause",
          "mitigation_plan",
          "detail",
          "metadata"
        ],
        "title": "HeavyWorkloadInsight"
      },
      "InsightMetadata": {
        "properties": {
          "analysis_uuid": {
            "type": "string",
            "title": "Analysis Uuid",
            "description": "The UUID of the analysis associated with this diagnostic package."
          },
          "jira_issue_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Jira Issue Id",
            "description": "The ID of the Jira issue associated with this diagnostic package."
          },
          "cluster_id": {
            "type": "string",
            "title": "Cluster Id",
            "description": "The ID of the cluster."
          },
          "time_range_start_ts": {
            "type": "integer",
            "title": "Time Range Start Ts",
            "description": "The start timestamp of the analysis in milliseconds since epoch."
          },
          "time_range_end_ts": {
            "type": "integer",
            "title": "Time Range End Ts",
            "description": "The end timestamp of the analysis in milliseconds since epoch."
          },
          "created_at": {
            "type": "string",
            "title": "Created At",
            "description": "The creation time of the diagnostic package, in ISO 8601 format.",
            "examples": ["2025-07-14T10:04:58.731+0800"]
          }
        },
        "type": "object",
        "required": [
          "analysis_uuid",
          "cluster_id",
          "time_range_start_ts",
          "time_range_end_ts"
        ],
        "title": "InsightMetadata"
      },
      "IssueCustomerInfo": {
        "properties": {
          "issue_key": {
            "type": "string",
            "title": "Issue Key",
            "description": "The issue key"
          },
          "environment": {
            "type": "string",
            "title": "Environment",
            "description": "The environment of the issue"
          },
          "cluster_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cluster Id",
            "description": "The cluster ID associated with the issue"
          },
          "tenant_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tenant Id",
            "description": "The tenant ID associated with the issue"
          }
        },
        "type": "object",
        "required": ["issue_key", "environment"],
        "title": "IssueCustomerInfo"
      },
      "IssueFilterParam": {
        "properties": {
          "chat_model_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chat Model Id"
          },
          "ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Ids",
            "default": []
          },
          "ranges": {
            "items": {
              "$ref": "#/components/schemas/IssueRangeParam"
            },
            "type": "array",
            "title": "Ranges",
            "default": []
          }
        },
        "type": "object",
        "title": "IssueFilterParam"
      },
      "IssueInJira": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "The raw ID of the issue"
          },
          "key": {
            "type": "string",
            "title": "Key",
            "description": "The issue key"
          },
          "summary": {
            "type": "string",
            "title": "Summary",
            "description": "The summary of the issue"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "description": "The status of the issue"
          },
          "created_at": {
            "type": "integer",
            "title": "Created At",
            "description": "The creation timestamp of the issue"
          },
          "updated_at": {
            "type": "integer",
            "title": "Updated At",
            "description": "The last update timestamp of the issue"
          },
          "resolved_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolved At",
            "description": "The resolution timestamp of the issue"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "The description of the issue"
          },
          "priority": {
            "type": "string",
            "title": "Priority",
            "description": "The priority of the issue"
          },
          "project": {
            "$ref": "#/components/schemas/Project",
            "description": "The project of the issue"
          },
          "assignee": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/User"
              },
              {
                "type": "null"
              }
            ],
            "description": "The assignee of the issue"
          },
          "reporter": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/User"
              },
              {
                "type": "null"
              }
            ],
            "description": "The reporter of the issue"
          },
          "component": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Component",
            "description": "A list of components associated with the issue"
          },
          "issue_links": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/IssueLink"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Issue Links",
            "description": "A list of issue links"
          },
          "comments": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Comment"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Comments",
            "description": "A list of comments on the issue"
          },
          "customer_info": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IssueCustomerInfo"
              },
              {
                "type": "null"
              }
            ],
            "description": "Customer information associated with the issue"
          }
        },
        "type": "object",
        "required": [
          "id",
          "key",
          "summary",
          "status",
          "created_at",
          "updated_at",
          "description",
          "priority",
          "project"
        ],
        "title": "IssueInJira"
      },
      "IssueInRepo": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "The issue key"
          },
          "created_at": {
            "type": "integer",
            "title": "Created At",
            "description": "The creation timestamp of the issue"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At",
            "description": "The last update timestamp of the issue"
          },
          "have_triage": {
            "type": "boolean",
            "title": "Have Triage",
            "description": "Whether the issue has been triaged"
          },
          "have_timeline_summary": {
            "type": "boolean",
            "title": "Have Timeline Summary",
            "description": "Whether the issue has a timeline summary"
          },
          "snapshot": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IssueSnapshot"
              },
              {
                "type": "null"
              }
            ],
            "description": "The snapshot of the issue"
          }
        },
        "type": "object",
        "required": [
          "key",
          "created_at",
          "have_triage",
          "have_timeline_summary"
        ],
        "title": "IssueInRepo"
      },
      "IssueLink": {
        "properties": {
          "type_name": {
            "type": "string",
            "title": "Type Name",
            "description": "The type name of the issue link"
          },
          "inward_issue": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Inward Issue",
            "description": "The inward issue key"
          },
          "outward_issue": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Outward Issue",
            "description": "The outward issue key"
          }
        },
        "type": "object",
        "required": ["type_name"],
        "title": "IssueLink"
      },
      "IssuePayload": {
        "properties": {
          "summary": {
            "type": "string",
            "title": "Summary",
            "description": "The summary of the Jira issue."
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "The description of the Jira issue."
          }
        },
        "type": "object",
        "required": ["summary", "description"],
        "title": "IssuePayload"
      },
      "IssueRangeParam": {
        "properties": {
          "chat_model_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chat Model Id"
          },
          "project": {
            "type": "string",
            "title": "Project"
          },
          "start_num": {
            "type": "integer",
            "title": "Start Num"
          },
          "end_num": {
            "type": "integer",
            "title": "End Num"
          }
        },
        "type": "object",
        "required": ["project", "start_num", "end_num"],
        "title": "IssueRangeParam"
      },
      "IssueSnapshot": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "The issue key"
          },
          "id": {
            "type": "string",
            "title": "Id",
            "description": "The internal ID of the issue in the repository"
          },
          "summary": {
            "type": "string",
            "title": "Summary",
            "description": "The summary of the issue"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "description": "The status of the issue"
          },
          "priority": {
            "type": "string",
            "title": "Priority",
            "description": "The priority of the issue"
          },
          "created_at": {
            "type": "integer",
            "title": "Created At",
            "description": "The creation timestamp of the issue"
          },
          "resolved_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolved At",
            "description": "The resolution timestamp of the issue"
          },
          "project_key": {
            "type": "string",
            "title": "Project Key",
            "description": "The project key of the issue"
          },
          "assignee_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignee Email",
            "description": "The assignee email of the issue"
          },
          "reporter_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reporter Email",
            "description": "The reporter email of the issue"
          },
          "components": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Components",
            "description": "The list of components associated with the issue"
          },
          "customer_info": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IssueCustomerInfo"
              },
              {
                "type": "null"
              }
            ],
            "description": "Customer information associated with the issue"
          }
        },
        "type": "object",
        "required": [
          "key",
          "id",
          "summary",
          "status",
          "priority",
          "created_at",
          "project_key"
        ],
        "title": "IssueSnapshot"
      },
      "IssueTimelineItem": {
        "properties": {
          "begin_time": {
            "type": "integer",
            "title": "Begin Time",
            "description": "The begin timestamp of the timeline item"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "The description of the timeline item"
          }
        },
        "type": "object",
        "required": ["begin_time", "description"],
        "title": "IssueTimelineItem"
      },
      "IssueTimelineSummary": {
        "properties": {
          "timelines": {
            "items": {
              "$ref": "#/components/schemas/IssueTimelineItem"
            },
            "type": "array",
            "title": "Timelines",
            "description": "A list of timeline items"
          }
        },
        "type": "object",
        "title": "IssueTimelineSummary"
      },
      "IssueTriage": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "The issue key."
          },
          "created_at": {
            "type": "integer",
            "title": "Created At",
            "description": "The timestamp when the triage was created.",
            "default": 0
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At",
            "description": "The timestamp when the triage was last updated."
          },
          "brief_summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brief Summary",
            "description": "A brief summary of the issue."
          },
          "tags": {
            "$ref": "#/components/schemas/IssueTriageTags",
            "description": "Triage tags associated with the issue.",
            "default": {}
          }
        },
        "type": "object",
        "required": ["key"],
        "title": "IssueTriage"
      },
      "IssueTriageTags": {
        "properties": {
          "scene": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scene",
            "description": "Scene tag."
          },
          "root_cause": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Root Cause",
            "description": "Root cause tag."
          },
          "preventability": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Preventability",
            "description": "Preventability tag."
          },
          "solution": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Solution",
            "description": "Solution tag."
          }
        },
        "type": "object",
        "title": "IssueTriageTags"
      },
      "JiraIntegrationParam": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "description": "Whether Jira integration is enabled.",
            "default": false
          },
          "post_insight_as_comment": {
            "type": "boolean",
            "title": "Post Insight As Comment",
            "description": "Whether to post the insight as a comment in Jira.",
            "default": false
          },
          "upload_package_as_attachment": {
            "type": "boolean",
            "title": "Upload Package As Attachment",
            "description": "Whether to upload the package as an attachment in Jira.",
            "default": false
          }
        },
        "type": "object",
        "title": "JiraIntegrationParam"
      },
      "JiraIssueContext": {
        "properties": {
          "issue_key": {
            "type": "string",
            "title": "Issue Key"
          },
          "cluster_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cluster Id"
          }
        },
        "type": "object",
        "required": ["issue_key"],
        "title": "JiraIssueContext"
      },
      "LarkChat": {
        "properties": {
          "chat_type": {
            "$ref": "#/components/schemas/LarkChatType",
            "description": "Type of the Lark chat, either P2P or Group.",
            "examples": ["p2p", "group"]
          },
          "first_message_id": {
            "type": "string",
            "title": "First Message Id",
            "description": "The ID of the first message in the session.",
            "examples": ["om_1234567890abcdefg"]
          },
          "thread_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Thread Id",
            "description": "The ID of the thread id to represent this session.",
            "examples": ["omt_1234567890abcdefg"]
          },
          "chat_id": {
            "type": "string",
            "title": "Chat Id",
            "description": "The ID of the chat group or P2P conversation.",
            "examples": ["oc_1234567890abcdefg"]
          },
          "latest_message_id": {
            "type": "string",
            "title": "Latest Message Id",
            "description": "The ID of the latest message in the session.",
            "examples": ["om_1234567890abcdefg"]
          },
          "latest_message_time": {
            "type": "integer",
            "title": "Latest Message Time",
            "description": "The timestampof the latest message (in ms) .",
            "examples": ["1700000000000"]
          }
        },
        "type": "object",
        "required": [
          "chat_type",
          "first_message_id",
          "chat_id",
          "latest_message_id",
          "latest_message_time"
        ],
        "title": "LarkChat"
      },
      "LarkChatParam": {
        "properties": {
          "chat_id": {
            "type": "string",
            "title": "Chat Id",
            "description": "The ID of the Lark chat to collect messages from. If not provided, use the binding chat of issue.",
            "default": "",
            "examples": ["oc_1234567890abcdefg"]
          },
          "start_time": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Start Time"
          },
          "end_time": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "End Time"
          }
        },
        "type": "object",
        "title": "LarkChatParam"
      },
      "LarkChatType": {
        "type": "string",
        "enum": ["unspecified", "p2p", "group"],
        "title": "LarkChatType"
      },
      "ListAnalysesResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/AnalysisBasic"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": ["items", "total"],
        "title": "ListAnalysesResponse"
      },
      "ListAuditLogsResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/AuditLog"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": ["items", "total"],
        "title": "ListAuditLogsResponse"
      },
      "ListChatModelResponse": {
        "properties": {
          "models": {
            "items": {
              "$ref": "#/components/schemas/ChatModel"
            },
            "type": "array",
            "title": "Models"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": ["models", "total"],
        "title": "ListChatModelResponse"
      },
      "ListEmbeddingModelResponse": {
        "properties": {
          "models": {
            "items": {
              "$ref": "#/components/schemas/EmbeddingModel"
            },
            "type": "array",
            "title": "Models"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": ["models", "total"],
        "title": "ListEmbeddingModelResponse"
      },
      "ListMetricsMetadataResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/MetricsMetadata"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": ["items"],
        "title": "ListMetricsMetadataResponse"
      },
      "ListOperationsResponse": {
        "properties": {
          "operations": {
            "items": {
              "$ref": "#/components/schemas/Operation"
            },
            "type": "array",
            "title": "Operations"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": ["operations", "total"],
        "title": "ListOperationsResponse"
      },
      "ListUnifiedIssuesRequest": {
        "properties": {
          "have_triage": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Have Triage",
            "description": "Search issues that have been triaged."
          },
          "have_timeline_summary": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Have Timeline Summary",
            "description": "Search issues that have timeline summaries."
          },
          "status_in": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status In",
            "description": "List of statuses to filter issues."
          },
          "created_after": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created After",
            "description": "Created after timestamp (in second)."
          },
          "created_before": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created Before",
            "description": "Created before timestamp (in second)."
          },
          "project_in": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project In",
            "description": "Search issues that belong to the specified project keys."
          },
          "customer_env_is": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Customer Env Is",
            "description": "Customer environment to filter issues, support 'cloud' and 'on_premise'."
          },
          "cluster_id_in": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cluster Id In",
            "description": "Search issues that belong to the specified cluster IDs."
          },
          "tenant_id_in": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tenant Id In",
            "description": "Search issues that belong to the specified tenant IDs."
          },
          "component_in": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Component In",
            "description": "Search issues that are associated with the specified components."
          },
          "issue_key_in": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Issue Key In",
            "description": "Search issues that match the specified issue keys."
          },
          "with_triage": {
            "type": "boolean",
            "title": "With Triage",
            "description": "Whether to retrieve triage info. If true, `issue_triage` will be set in the response if available.",
            "default": false
          },
          "with_timeline_summary": {
            "type": "boolean",
            "title": "With Timeline Summary",
            "description": "Whether to retrieve timeline summary. If true, `issue_timeline_summary` will be set in the response if available.",
            "default": false
          },
          "with_jira": {
            "type": "boolean",
            "title": "With Jira",
            "description": "Whether to retrieve raw issue data from Jira. If true, `issue_in_jira` will be set in the response.",
            "default": false
          },
          "with_jira_comments": {
            "type": "boolean",
            "title": "With Jira Comments",
            "description": "Whether to retrieve comments from Jira issues. Effective only when `with_jira` is true.",
            "default": false
          },
          "page": {
            "type": "integer",
            "title": "Page",
            "description": "The page number to retrieve, starting from 1.",
            "default": 1
          },
          "per_page": {
            "type": "integer",
            "title": "Per Page",
            "description": "Number of issues to return per page.",
            "default": 100
          }
        },
        "type": "object",
        "title": "ListUnifiedIssuesRequest"
      },
      "MetricAnalysis": {
        "properties": {
          "profile_name": {
            "type": "string",
            "title": "Profile Name",
            "description": "The name of the profile, e.g., instance, nodegroup.",
            "examples": ["instance", "nodegroup"]
          },
          "trend_analysis": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TrendAnalysis"
              },
              {
                "type": "null"
              }
            ],
            "description": "Trend analysis results for the metric."
          },
          "anomalies": {
            "items": {
              "$ref": "#/components/schemas/Anomaly"
            },
            "type": "array",
            "title": "Anomalies",
            "description": "List of detected anomalies for this metric."
          }
        },
        "type": "object",
        "required": ["profile_name", "anomalies"],
        "title": "MetricAnalysis"
      },
      "Metrics": {
        "properties": {
          "metrics_name": {
            "type": "string",
            "title": "Metrics Name",
            "description": "The name of the metric being analyzed.",
            "examples": ["tikv_cpu_usage"]
          },
          "profiles": {
            "items": {
              "$ref": "#/components/schemas/MetricAnalysis"
            },
            "type": "array",
            "title": "Profiles",
            "description": "The data of series for this metric."
          }
        },
        "type": "object",
        "required": ["metrics_name", "profiles"],
        "title": "Metrics"
      },
      "MetricsCapacityAnalysis": {
        "properties": {
          "status": {
            "type": "string",
            "title": "Status",
            "description": "NORMAL, WARNING, CRITICAL based on thresholds."
          },
          "limit_info": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Limit Info",
            "description": "Details on threshold breach (e.g., 'Exceeded 80% quota')."
          }
        },
        "type": "object",
        "required": ["status", "limit_info"],
        "title": "MetricsCapacityAnalysis"
      },
      "MetricsGroup": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name",
            "description": "The name of the metrics group.",
            "examples": ["resource", "workload", "latency"]
          },
          "metrics": {
            "items": {
              "$ref": "#/components/schemas/Metrics"
            },
            "type": "array",
            "title": "Metrics",
            "description": "List of metrics comparison facts in this group."
          }
        },
        "type": "object",
        "required": ["name", "metrics"],
        "title": "MetricsGroup"
      },
      "MetricsMetadata": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the metrics profile."
          },
          "unit": {
            "type": "string",
            "title": "Unit",
            "description": "Unit of the metrics."
          },
          "queries": {
            "items": {
              "$ref": "#/components/schemas/MetricsQuery"
            },
            "type": "array",
            "title": "Queries",
            "description": "List of metrics queries associated with the profile."
          }
        },
        "type": "object",
        "required": ["name", "unit", "queries"],
        "title": "MetricsMetadata"
      },
      "MetricsQuery": {
        "properties": {
          "metrics_profile_name": {
            "type": "string",
            "title": "Metrics Profile Name",
            "description": "Name of the metrics query."
          },
          "legend": {
            "type": "string",
            "title": "Legend",
            "description": "Legend format for the metrics series."
          },
          "series_type": {
            "type": "string",
            "title": "Series Type",
            "description": "Type of the series (e.g., line, bar)."
          }
        },
        "type": "object",
        "required": ["metrics_profile_name", "legend", "series_type"],
        "title": "MetricsQuery"
      },
      "MetricsSeriesDescription": {
        "properties": {
          "labels": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Labels",
            "description": "Labels identifying this series (e.g., {'instance': 'tikv-1'})."
          },
          "segments": {
            "items": {
              "$ref": "#/components/schemas/TrendSegment"
            },
            "type": "array",
            "title": "Segments",
            "description": "Chronological list of trend segments."
          },
          "max_intensity": {
            "$ref": "#/components/schemas/TrendIntensity",
            "description": "The highest intensity observed in any segment of this series.",
            "default": "FLAT"
          }
        },
        "type": "object",
        "required": ["labels", "segments"],
        "title": "MetricsSeriesDescription"
      },
      "MetricsSpatialAnalysis": {
        "properties": {
          "is_imbalanced": {
            "type": "boolean",
            "title": "Is Imbalanced",
            "description": "True if one or few instances are significantly higher than others."
          },
          "outlier_instances": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Outlier Instances",
            "description": "List of instance names that are outliers."
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "E.g., 'Instance-1 is 5x higher than peers'."
          }
        },
        "type": "object",
        "required": ["is_imbalanced", "description"],
        "title": "MetricsSpatialAnalysis",
        "description": "Describe spatial distribution of the metric across instances"
      },
      "MetricsStatus": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name",
            "description": "The name of the metric.",
            "examples": ["tikv_cpu_usage"]
          },
          "status": {
            "type": "string",
            "title": "Status",
            "description": "The status of the metric analysis.",
            "examples": ["NORMAL", "WARNING", "CRITICAL"]
          },
          "current_value_summary": {
            "type": "string",
            "title": "Current Value Summary",
            "description": "Summary of the current value, e.g., 'Avg 85%, Max 99%, Min 80%'."
          },
          "spatial": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MetricsSpatialAnalysis"
              },
              {
                "type": "null"
              }
            ],
            "description": "Analysis of distribution across instances."
          },
          "temporal": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MetricsTemporalAnalysis"
              },
              {
                "type": "null"
              }
            ],
            "description": "Analysis of trends and historical anomalies."
          },
          "capacity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MetricsCapacityAnalysis"
              },
              {
                "type": "null"
              }
            ],
            "description": "Analysis of resource saturation and absolute limits."
          },
          "detected_signals": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Detected Signals",
            "description": "List of raw detector names that triggered. E.g., ['TemporalBaseline', 'ResourceSaturation']",
            "default": []
          }
        },
        "type": "object",
        "required": ["name", "status", "current_value_summary"],
        "title": "MetricsStatus"
      },
      "MetricsTemporalAnalysis": {
        "properties": {
          "trend_type": {
            "type": "string",
            "title": "Trend Type",
            "description": "RISING, FALLING, SPIKE, STABLE"
          },
          "change_point": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Change Point",
            "description": "The specific timestamp when the trend pattern started or spiked (e.g., '14:05:00'). Crucial for causality checks."
          },
          "baseline_deviation": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Baseline Deviation",
            "description": "Comparison with historical baseline (e.g., '3x higher than 7-day average'). None if normal."
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "A combined natural language summary. E.g., 'Sharp spike started at 14:05, significantly exceeding the 7-day baseline'."
          }
        },
        "type": "object",
        "required": ["trend_type", "description"],
        "title": "MetricsTemporalAnalysis",
        "description": "Describe temporal trend of the metric"
      },
      "MetricsTrendDescription": {
        "properties": {
          "series": {
            "items": {
              "$ref": "#/components/schemas/MetricsSeriesDescription"
            },
            "type": "array",
            "title": "Series",
            "description": "List of analyzed series."
          }
        },
        "type": "object",
        "required": ["series"],
        "title": "MetricsTrendDescription",
        "description": "The container for the trend analysis of the whole metric."
      },
      "MitigationPlanStep": {
        "properties": {
          "step_number": {
            "type": "integer",
            "title": "Step Number",
            "description": "Step number in the mitigation plan."
          },
          "action": {
            "type": "string",
            "title": "Action",
            "description": "Action to be taken in this step."
          },
          "justification": {
            "type": "string",
            "title": "Justification",
            "description": "Justification for this action."
          }
        },
        "type": "object",
        "required": ["step_number", "action", "justification"],
        "title": "MitigationPlanStep"
      },
      "Mode": {
        "type": "string",
        "enum": ["normal", "focus_issue", "focus_cluster"],
        "title": "Mode"
      },
      "OpenAICredential": {
        "properties": {
          "api_key": {
            "type": "string",
            "title": "Api Key"
          }
        },
        "type": "object",
        "required": ["api_key"],
        "title": "OpenAICredential"
      },
      "OpenAILLMConfig": {
        "properties": {
          "temperature": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Temperature",
            "default": 0.6
          }
        },
        "type": "object",
        "title": "OpenAILLMConfig"
      },
      "Operation": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id",
            "description": "The ID of the operation"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At",
            "description": "The time when the operation was created"
          },
          "service_name": {
            "type": "string",
            "title": "Service Name",
            "description": "The name of the service"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "The service-assigned name"
          },
          "data": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Data",
            "description": "Service-specific metadata associated with the operation."
          },
          "done": {
            "type": "boolean",
            "title": "Done",
            "description": "If the value is `false`, it means the operation is still in progress. If `done` == `true`, exactly one of `result_error` or `result_response` can be set.",
            "default": false
          },
          "done_time": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Done Time",
            "description": "The time when the operation was completed."
          },
          "result_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Result Error",
            "description": "The error result of the operation in case of failure or cancellation."
          },
          "result_response": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Result Response",
            "description": "The normal, successful response of the operation."
          }
        },
        "type": "object",
        "required": ["id", "service_name", "name", "data"],
        "title": "Operation"
      },
      "OutputResult": {
        "properties": {
          "output_lark_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Output Lark Message",
            "description": "The Lark message ID to reply the output.",
            "examples": ["om_xxxx"]
          },
          "output_s3_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Output S3 Path",
            "description": "The S3 file path to store the output.",
            "examples": ["bucket-name/path/to/file.json"]
          }
        },
        "type": "object",
        "title": "OutputResult"
      },
      "Paragraph": {
        "properties": {
          "content": {
            "type": "string",
            "title": "Content",
            "description": "The text content of the paragraph. Supports markdown formatting."
          }
        },
        "type": "object",
        "required": ["content"],
        "title": "Paragraph"
      },
      "ParameterAttribute": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "config_type": {
            "type": "string",
            "title": "Config Type"
          },
          "version": {
            "type": "string",
            "title": "Version"
          },
          "type": {
            "type": "string",
            "title": "Type"
          },
          "apply_policy": {
            "type": "string",
            "title": "Apply Policy"
          },
          "default_value": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Default Value"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "validation": {
            "type": "string",
            "title": "Validation",
            "default": ""
          }
        },
        "type": "object",
        "required": ["name", "config_type", "version", "type", "apply_policy"],
        "title": "ParameterAttribute"
      },
      "PerformanceReport": {
        "properties": {
          "cluster_topology": {
            "type": "string",
            "title": "Cluster Topology",
            "description": "The topology of the cluster.",
            "examples": [
              "32-tidb-64C256G / 126-tikv-32C128G-2500G (IO2) / 3-pd-64C128G-20G"
            ]
          },
          "workload": {
            "items": {
              "$ref": "#/components/schemas/MetricsStatus"
            },
            "type": "array",
            "title": "Workload",
            "description": "List of workload metrics status."
          },
          "resource": {
            "items": {
              "$ref": "#/components/schemas/MetricsStatus"
            },
            "type": "array",
            "title": "Resource",
            "description": "List of resource metrics status."
          },
          "latency": {
            "items": {
              "$ref": "#/components/schemas/MetricsStatus"
            },
            "type": "array",
            "title": "Latency",
            "description": "List of latency metrics status."
          },
          "events": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Events",
            "description": "List of significant events."
          }
        },
        "type": "object",
        "required": [
          "cluster_topology",
          "workload",
          "resource",
          "latency",
          "events"
        ],
        "title": "PerformanceReport"
      },
      "Project": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "The key of the project"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "The name of the project"
          }
        },
        "type": "object",
        "required": ["key", "name"],
        "title": "Project"
      },
      "PrometheusMatrixData": {
        "properties": {
          "resultType": {
            "type": "string",
            "title": "Resulttype",
            "description": "Type of result, e.g. 'matrix'"
          },
          "result": {
            "items": {
              "$ref": "#/components/schemas/PrometheusMatrixResult"
            },
            "type": "array",
            "title": "Result",
            "description": "List of metric results"
          }
        },
        "type": "object",
        "required": ["resultType", "result"],
        "title": "PrometheusMatrixData"
      },
      "PrometheusMatrixResponse": {
        "properties": {
          "status": {
            "type": "string",
            "title": "Status",
            "description": "Response status, e.g. 'success'"
          },
          "data": {
            "$ref": "#/components/schemas/PrometheusMatrixData",
            "description": "Response data containing the matrix results"
          }
        },
        "type": "object",
        "required": ["status", "data"],
        "title": "PrometheusMatrixResponse"
      },
      "PrometheusMatrixResult": {
        "properties": {
          "metric": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Metric",
            "description": "Metric labels"
          },
          "values": {
            "items": {
              "items": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "type": "array"
            },
            "type": "array",
            "title": "Values",
            "description": "List of [timestamp, value] pairs",
            "examples": [
              [
                [1622476800.0, "123.45"],
                [1622476860.0, "67.89"]
              ]
            ]
          }
        },
        "type": "object",
        "required": ["metric", "values"],
        "title": "PrometheusMatrixResult"
      },
      "Provider": {
        "type": "string",
        "enum": ["openai", "deepseek", "bedrock"],
        "title": "Provider"
      },
      "QueryMetadatasResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ReportMetadata"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": ["items", "total"],
        "title": "QueryMetadatasResponse"
      },
      "Report": {
        "properties": {
          "metadata": {
            "$ref": "#/components/schemas/ReportMetadata",
            "description": "The metadata of the report."
          },
          "content": {
            "$ref": "#/components/schemas/ReportContent",
            "description": "The content of the report."
          }
        },
        "type": "object",
        "required": ["metadata", "content"],
        "title": "Report"
      },
      "ReportContent": {
        "properties": {
          "blocks": {
            "items": {
              "$ref": "#/components/schemas/Block"
            },
            "type": "array",
            "title": "Blocks",
            "description": "A list of blocks that make up the report."
          }
        },
        "type": "object",
        "required": ["blocks"],
        "title": "ReportContent"
      },
      "ReportMetadata": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id",
            "description": "The unique identifier of the report.",
            "examples": [1]
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At",
            "description": "The time when the operation was created"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "The name of the report.",
            "default": "",
            "examples": ["Weekly Report"]
          },
          "tags": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Tags",
            "description": "A dictionary of tags associated with the report.",
            "examples": [
              {
                "env": "production",
                "team": "devops"
              }
            ]
          }
        },
        "type": "object",
        "required": ["id"],
        "title": "ReportMetadata"
      },
      "ResourceSaturationAnomalyDetection": {
        "properties": {
          "observed_value": {
            "type": "number",
            "title": "Observed Value",
            "description": "The current observed value of the metric.",
            "default": 0.0,
            "examples": [0.8]
          },
          "quota_value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Quota Value",
            "description": "The quota value of the resource, if applicable.",
            "examples": [8000]
          },
          "saturation_level": {
            "type": "string",
            "title": "Saturation Level",
            "description": "The saturation level of the resource, can be 'NORMAL', 'WARNING', or 'CRITICAL'.",
            "default": "NORMAL",
            "examples": ["NORMAL", "WARNING", "CRITICAL"]
          }
        },
        "type": "object",
        "title": "ResourceSaturationAnomalyDetection"
      },
      "RetrieveIssuesByAIOutput": {
        "properties": {
          "request": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ListUnifiedIssuesRequest"
              },
              {
                "type": "null"
              }
            ],
            "description": "The list request generated based on the user's request."
          },
          "error_message": {
            "type": "string",
            "title": "Error Message",
            "description": "An optional error message if the request could not be generated.",
            "default": ""
          },
          "issues": {
            "items": {
              "$ref": "#/components/schemas/UnifiedIssue"
            },
            "type": "array",
            "title": "Issues",
            "description": "A list of unified issues retrieved based on the generated request."
          }
        },
        "type": "object",
        "title": "RetrieveIssuesByAIOutput"
      },
      "RetrieveIssuesByAIParam": {
        "properties": {
          "user_request": {
            "type": "string",
            "title": "User Request",
            "description": "The user's request in natural language to retrieve issues."
          },
          "chat_model_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chat Model Id"
          }
        },
        "type": "object",
        "required": ["user_request"],
        "title": "RetrieveIssuesByAIParam"
      },
      "SQL": {
        "properties": {
          "sql_digest": {
            "type": "string",
            "title": "Sql Digest",
            "description": "Digest of the SQL statement."
          },
          "full_sql_text": {
            "type": "string",
            "title": "Full Sql Text",
            "description": "Full text of the SQL statement."
          }
        },
        "type": "object",
        "required": ["sql_digest", "full_sql_text"],
        "title": "SQL"
      },
      "Session": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "user_email": {
            "type": "string",
            "title": "User Email"
          },
          "mode": {
            "$ref": "#/components/schemas/Mode"
          },
          "lark_chat": {
            "$ref": "#/components/schemas/LarkChat"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "type": "object",
        "required": ["id", "user_email", "mode", "lark_chat"],
        "title": "Session"
      },
      "SetDefaultChatModelRequest": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          }
        },
        "type": "object",
        "required": ["id"],
        "title": "SetDefaultChatModelRequest"
      },
      "SetDefaultEmbeddingModelRequest": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          }
        },
        "type": "object",
        "required": ["id"],
        "title": "SetDefaultEmbeddingModelRequest"
      },
      "SummarizeTimelineFromLarkMessagesParam": {
        "properties": {
          "chat_model_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chat Model Id",
            "description": "The ID of the chat model, default to None means default model.",
            "examples": [1]
          },
          "topic": {
            "type": "string",
            "title": "Topic",
            "default": ""
          },
          "chat_id": {
            "type": "string",
            "title": "Chat Id"
          },
          "start_time": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Start Time"
          },
          "end_time": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "End Time"
          },
          "output": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/aiops__service__kit__api__OutputParam"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": ["chat_id"],
        "title": "SummarizeTimelineFromLarkMessagesParam"
      },
      "SummarizeTimelineParam": {
        "properties": {
          "chat_model_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chat Model Id"
          },
          "related_lark_chat": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LarkChatParam"
              },
              {
                "type": "null"
              }
            ]
          },
          "output": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/aiops__service__jira__api__OutputParam"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "SummarizeTimelineParam"
      },
      "TemporalBaselineAnomalyDetection": {
        "properties": {
          "observed_value": {
            "type": "number",
            "title": "Observed Value",
            "description": "The current observed value of the metric.",
            "default": 0.0,
            "examples": [0.8]
          },
          "median": {
            "type": "number",
            "title": "Median",
            "description": "The median value of the historical baseline.",
            "default": 0.0,
            "examples": [0.6]
          },
          "z_score": {
            "type": "number",
            "title": "Z Score",
            "description": "The Modified Z-score of the current value compared to its own historical baseline.",
            "default": 0.0,
            "examples": [3.5]
          },
          "mad": {
            "type": "number",
            "title": "Mad",
            "description": "The Median Absolute Deviation (MAD) of the historical baseline.",
            "default": 0.0,
            "examples": [0.1]
          },
          "p99": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "P99",
            "description": "The 99th percentile value of the historical baseline.",
            "examples": [0.9]
          }
        },
        "type": "object",
        "title": "TemporalBaselineAnomalyDetection"
      },
      "TimelineItem": {
        "properties": {
          "begin_time": {
            "type": "string",
            "title": "Begin Time"
          },
          "description": {
            "type": "string",
            "title": "Description"
          }
        },
        "type": "object",
        "required": ["begin_time", "description"],
        "title": "TimelineItem"
      },
      "TimelineSummary": {
        "properties": {
          "topic": {
            "type": "string",
            "title": "Topic"
          },
          "timelines": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/TimelineItem"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timelines"
          }
        },
        "type": "object",
        "required": ["topic"],
        "title": "TimelineSummary"
      },
      "TopSQL": {
        "properties": {
          "instance": {
            "type": "string",
            "title": "Instance",
            "description": "The instance where the SQL is executed.",
            "examples": ["tikv-1"]
          },
          "sqls": {
            "items": {
              "type": "object"
            },
            "type": "array",
            "title": "Sqls",
            "description": "A list of top SQLs consuming CPU time."
          }
        },
        "type": "object",
        "required": ["instance", "sqls"],
        "title": "TopSQL"
      },
      "TrendAnalysis": {
        "properties": {
          "short_term_aggregate_trend": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MetricsTrendDescription"
              },
              {
                "type": "null"
              }
            ],
            "description": "Analysis of the trend within the specified time range."
          }
        },
        "type": "object",
        "title": "TrendAnalysis"
      },
      "TrendIntensity": {
        "type": "string",
        "enum": ["SLIGHT", "MODERATE", "SHARP", "FLAT"],
        "title": "TrendIntensity"
      },
      "TrendPattern": {
        "type": "string",
        "enum": ["RISING", "FALLING", "STABLE", "VOLATILE"],
        "title": "TrendPattern"
      },
      "TrendSegment": {
        "properties": {
          "start_time": {
            "type": "string",
            "title": "Start Time",
            "description": "Start of this segment."
          },
          "end_time": {
            "type": "string",
            "title": "End Time",
            "description": "End of this segment."
          },
          "pattern": {
            "$ref": "#/components/schemas/TrendPattern",
            "description": "The behavior shape."
          },
          "intensity": {
            "$ref": "#/components/schemas/TrendIntensity",
            "description": "How strong the change is."
          },
          "start_value": {
            "type": "number",
            "title": "Start Value",
            "description": "Value at start of segment."
          },
          "end_value": {
            "type": "number",
            "title": "End Value",
            "description": "Value at end of segment."
          },
          "summary": {
            "type": "string",
            "title": "Summary",
            "description": "Human readable summary of this segment."
          }
        },
        "type": "object",
        "required": [
          "start_time",
          "end_time",
          "pattern",
          "intensity",
          "start_value",
          "end_value",
          "summary"
        ],
        "title": "TrendSegment",
        "description": "Represents a continuous period where the metric behaves consistently.\nExample: 10:00 to 10:15 was STABLE."
      },
      "UnifiedIssue": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "The issue key"
          },
          "issue_in_repo": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IssueInRepo"
              },
              {
                "type": "null"
              }
            ],
            "description": "The issue data stored in the database"
          },
          "issue_in_jira": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IssueInJira"
              },
              {
                "type": "null"
              }
            ],
            "description": "The raw issue data stored in Jira"
          },
          "issue_triage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IssueTriage"
              },
              {
                "type": "null"
              }
            ],
            "description": "The triage information of the issue"
          },
          "issue_timeline_summary": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IssueTimelineSummary"
              },
              {
                "type": "null"
              }
            ],
            "description": "The timeline summary of the issue"
          }
        },
        "type": "object",
        "required": ["key"],
        "title": "UnifiedIssue"
      },
      "UpdateChatModelRequest": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OpenAILLMConfig"
              },
              {
                "$ref": "#/components/schemas/DeepSeekLLMConfig"
              },
              {
                "$ref": "#/components/schemas/BedrockLLMConfig"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config"
          }
        },
        "type": "object",
        "title": "UpdateChatModelRequest"
      },
      "UpdateEmbeddingModelRequest": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OpenAILLMConfig"
              },
              {
                "$ref": "#/components/schemas/DeepSeekLLMConfig"
              },
              {
                "$ref": "#/components/schemas/BedrockLLMConfig"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config"
          }
        },
        "type": "object",
        "title": "UpdateEmbeddingModelRequest"
      },
      "User": {
        "properties": {
          "email": {
            "type": "string",
            "title": "Email",
            "description": "The email of the user"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name",
            "description": "The display name of the user"
          }
        },
        "type": "object",
        "required": ["email", "display_name"],
        "title": "User"
      },
      "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"
      },
      "aiops__service__jira__api__OutputParam": {
        "properties": {
          "output_to_jira": {
            "type": "boolean",
            "title": "Output To Jira",
            "default": false
          },
          "output_to_lark": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Output To Lark",
            "description": "The Lark chat/message ID to send the output to.",
            "examples": ["om_1234567890abcdefg", "oc_1234567890abcdefg"]
          }
        },
        "type": "object",
        "title": "OutputParam"
      },
      "aiops__service__kit__api__OutputParam": {
        "properties": {
          "output_to_lark_chat": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Output To Lark Chat",
            "description": "The Lark chat ID to send the output.",
            "examples": ["oc_xxxx"]
          },
          "output_to_lark_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Output To Lark Message",
            "description": "The Lark message ID to reply the output.",
            "examples": ["om_xxxx"]
          },
          "output_to_s3": {
            "type": "boolean",
            "title": "Output To S3",
            "description": "The S3 file path to store the output.",
            "default": false,
            "examples": ["s3://bucket-name/path/to/file.json"]
          }
        },
        "type": "object",
        "title": "OutputParam"
      }
    }
  }
}
