---
title: "获取业务分布统计数据"
method: GET
path: "/dashboard/business-distribution"
tags: ["看板管理"]
---

# 获取业务分布统计数据

`GET /dashboard/business-distribution`

获取各业务线的服务数量分布，包括总服务数量和各业务线的服务占比

## Headers

- `Authorization` string, required

## Response `200`

OK

- object
  - `code` integer — 状态码
  - `data` object — 返回的数据
    - `businessLines` ModelBusinessLineStats[] — 业务线列表
      - `id` integer — 业务组ID
      - `name` string — 业务线名称
      - `percentage` number — 占比
      - `serviceCount` integer — 服务数量
    - `totalServices` integer — 总服务数量
  - `message` string — 提示信息

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/opsre/apis/devops.md) · [All operations](https://skmtc.net/opsre/apis/devops/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opsre/devops/revisions/25cac8835c4c/schema)
