---
title: "GET /v1/metric/strategy/{strategyUID}"
method: GET
path: "/v1/metric/strategy/{strategyUID}"
tags: ["StrategyMetric"]
---

# GET /v1/metric/strategy/{strategyUID}

`GET /v1/metric/strategy/{strategyUID}`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `strategyUID` string, required

## Response `200`

OK

- MarksmanApiV1StrategyMetricItem
  - `strategyUID` string
  - `expr` string
  - `labels` object
  - `summary` string
  - `description` string
  - `datasourceFilter` MarksmanApiV1DatasourceFilter: DatasourceFilter scopes which datasources a strategy metric evaluates. Exclude rules apply first; include rules restrict the remaining set (OR between include dimensions).
    - `datasourceUids` string[]
    - `excludeDatasourceUids` string[]
    - `datasourceLabels` object
    - `excludeDatasourceLabels` object
  - `levels` MarksmanApiV1StrategyMetricLevelItem[]
    - `levelUID` string
    - `strategyUID` string
    - `level` MarksmanApiV1LevelItem
      - `uid` string
      - `name` string
      - `remark` string
      - `status` integer
      - `metadata` object
      - `createdAt` string
      - `updatedAt` string
      - `bgColor` string
      - `type` integer
    - `mode` integer
    - `condition` integer
    - `values` number[]
    - `duration` string
    - `status` integer
  - `createdAt` string
  - `updatedAt` string
  - `strategy` MarksmanApiV1StrategyItem
    - `uid` string
    - `name` string
    - `remark` string
    - `type` integer
    - `driver` integer
    - `status` integer
    - `metadata` object
    - `createdAt` string
    - `updatedAt` string
    - `strategyGroup` MarksmanApiV1StrategyGroupItem
      - `uid` string
      - `name` string
      - `remark` string
      - `status` integer
      - `metadata` object
      - `createdAt` string
      - `updatedAt` string
  - `includeDatasources` MarksmanApiV1DatasourceItem[]
    - `uid` string
    - `name` string
    - `type` integer
    - `driver` integer
    - `metadata` object
    - `status` integer
    - `createdAt` string
    - `updatedAt` string
    - `url` string
    - `remark` string
    - `levelUid` string
    - `level` MarksmanApiV1LevelItem
      - `uid` string
      - `name` string
      - `remark` string
      - `status` integer
      - `metadata` object
      - `createdAt` string
      - `updatedAt` string
      - `bgColor` string
      - `type` integer
  - `excludeDatasources` MarksmanApiV1DatasourceItem[]
    - `uid` string
    - `name` string
    - `type` integer
    - `driver` integer
    - `metadata` object
    - `status` integer
    - `createdAt` string
    - `updatedAt` string
    - `url` string
    - `remark` string
    - `levelUid` string
    - `level` MarksmanApiV1LevelItem
      - `uid` string
      - `name` string
      - `remark` string
      - `status` integer
      - `metadata` object
      - `createdAt` string
      - `updatedAt` string
      - `bgColor` string
      - `type` integer

## Changes

- **2026-07-17** `26ae221fccba`: 1 warning, 3 info
  - removed the optional property `datasourceUIDs` from the response with the `200` status
  - added the optional property `datasourceFilter` to the response with the `200` status
  - added the optional property `excludeDatasources` to the response with the `200` status
  - added the optional property `includeDatasources` to the response with the `200` status
- **2026-03-25** `650c5b44c427`: 1 info
  - added the optional property `levels/items/level/type` to the response with the `200` status
- **2026-03-24** `b6c8a3179fcc`: 1 info
  - added the optional property `levels/items/level/bgColor` to the response with the `200` status
- **2026-03-12** `00fc22ea8b5a`: 2 warning, 2 info
  - removed the optional property `levels/items/uid` from the response with the `200` status
  - removed the optional property `status` from the response with the `200` status
  - added the optional property `levels/items/levelUID` to the response with the `200` status
  - added the optional property `strategy` to the response with the `200` status
- …earlier changes not shown

[Operation history](https://skmtc.dev/aide-family/apis/aide-family-marksman-api/changes/v1/metric/strategy/:strategyUID/get.md)

---

[API](https://skmtc.dev/aide-family/apis/aide-family-marksman-api.md) - [All operations](https://skmtc.dev/aide-family/apis/aide-family-marksman-api/llms.txt) - [OpenAPI document](https://skmtc.dev/aide-family/apis/aide-family-marksman-api/revisions/26ae221fccba?raw)
