Consultar status do servidor

GET /status

Retorna a versão em execução, a distribuição das instâncias por estado e um resumo da saúde do servidor. Este endpoint é público e não exige token.

Autenticação

[]
{}

Respostas

{
  "200": {
    "description": "Status atual do servidor",
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "required": [
            "info",
            "build",
            "instance_counts",
            "status"
          ],
          "properties": {
            "info": {
              "type": "string",
              "example": "Server health check completed"
            },
            "build": {
              "type": "object",
              "required": [
                "version",
                "revision",
                "date"
              ],
              "properties": {
                "version": {
                  "type": "string",
                  "example": "2.2.2"
                },
                "revision": {
                  "type": "string",
                  "example": "a1b2c3d4e"
                },
                "date": {
                  "type": "string",
                  "example": "2026-08-31"
                }
              }
            },
            "instance_counts": {
              "type": "object",
              "required": [
                "total",
                "connected",
                "reconnecting",
                "connecting",
                "queued_reconnect",
                "disconnected",
                "hibernated",
                "other",
                "observed_at"
              ],
              "properties": {
                "total": {
                  "type": "integer",
                  "format": "int64"
                },
                "connected": {
                  "type": "integer",
                  "format": "int64"
                },
                "reconnecting": {
                  "type": "integer",
                  "format": "int64"
                },
                "connecting": {
                  "type": "integer",
                  "format": "int64"
                },
                "queued_reconnect": {
                  "type": "integer",
                  "format": "int64"
                },
                "disconnected": {
                  "type": "integer",
                  "format": "int64"
                },
                "hibernated": {
                  "type": "integer",
                  "format": "int64"
                },
                "other": {
                  "type": "integer",
                  "format": "int64"
                },
                "observed_at": {
                  "type": "string",
                  "format": "date-time"
                }
              }
            },
            "status": {
              "type": "object",
              "required": [
                "server_status",
                "total_instances",
                "last_check",
                "dc",
                "node"
              ],
              "properties": {
                "server_status": {
                  "type": "string",
                  "example": "running"
                },
                "total_instances": {
                  "type": "integer",
                  "format": "int64"
                },
                "last_check": {
                  "type": "string",
                  "format": "date-time"
                },
                "dc": {
                  "type": "string"
                },
                "node": {
                  "type": "string"
                },
                "database_status": {
                  "type": "string",
                  "description": "Presente quando a verificação do banco está degradada."
                },
                "database_error": {
                  "type": "string",
                  "description": "Diagnóstico do banco quando disponível."
                },
                "checked_instance": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "is_healthy": {
                      "type": "boolean"
                    },
                    "connection_status": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Guias relacionados

Autenticação · Erros e retries · Server URL