# 获取统计信息

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/namespaces/{namespace}/stat:
    get:
      summary: 获取统计信息
      deprecated: false
      description: ''
      operationId: getStat
      tags:
        - 统计
        - stat-controller
      parameters:
        - name: namespace
          in: path
          description: ''
          required: true
          example: ''
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetStatResponse'
          headers: {}
          x-apifox-name: OK
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers: {}
          x-apifox-name: Bad Request
      security:
        - bearer: []
      x-apifox-folder: 统计
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/3525375/apis/api-121737381-run
components:
  schemas:
    GetStatResponse:
      required:
        - namespaces
        - services
        - instances
        - configs
      type: object
      properties:
        namespaces:
          type: integer
          format: int32
        services:
          $ref: '#/components/schemas/Services'
        instances:
          type: integer
          format: int32
        configs:
          type: integer
          format: int32
      x-apifox-orders:
        - namespaces
        - services
        - instances
        - configs
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    Services:
      required:
        - total
        - health
      type: object
      properties:
        total:
          type: integer
          format: int32
        health:
          type: integer
          format: int32
      x-apifox-orders:
        - total
        - health
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    ErrorResponse:
      required:
        - code
        - msg
      type: object
      properties:
        code:
          type: string
        msg:
          type: string
      x-apifox-orders:
        - code
        - msg
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: http://dev-cn.your-api-server.com
    description: 开发环境
security:
  - bearer: []

```
