コンテンツにスキップ

一覧表示


GET /api/v1/slo/list

概要

Query リクエストパラメータ

パラメータ名 タイプ 必須 説明
refSli string いいえ 指定した SLI UUID を含む SLO を返します
空を許可: True
search string いいえ SLO 名
空を許可: True
tags string いいえ タグ名でフィルタリングします。複数のタグはカンマ区切りで指定します
空を許可: True
例: page_scope:status_page,site:cn1
tagMode string いいえ 複数タグのマッチング方法。デフォルトは and
空を許可: False
選択可能な値: ['and', 'or']
pageIndex integer いいえ ページ番号
空を許可: False
例: 1
$minValue: 1
pageSize integer いいえ 1ページあたりの返却件数
空を許可: False
例: 10
$minValue: 1
$maxValue: 10000

パラメータ補足説明

リクエスト例

curl 'https://openapi.guance.com/api/v1/slo/list?pageIndex=1&pageSize=2' \
-H 'Content-Type: application/json' \
-H 'DF-API-KEY: <DF-API-KEY>' \

レスポンス

{
    "code": 200,
    "content": {
        "data": [
            {
                "alertPolicyInfos": [
                    {
                        "name": "lwc SLO Convert to Alert Policy Test",
                        "uuid": "altpl_xxxx"
                    }
                ],
                "config": {
                    "checkRange": 604800,
                    "describe": "LWCTestOpenAPI",
                    "goal": 90.0,
                    "interval": "10m",
                    "minGoal": 60.0,
                    "sli_infos": [
                        {
                            "id": "rul_9eb74xxxxx",
                            "name": "whytest-Feedback Problem Verification",
                            "status": 2
                        },
                        {
                            "id": "rul_7a88xxxxx",
                            "name": "lml-tes",
                            "status": 0
                        }
                    ]
                },
                "createAt": 1722913524,
                "creator": "wsak_a2d55c91bxxxxx",
                "deleteAt": -1,
                "id": 4901,
                "name": "LWC-Test-2024-08-06-002",
                "score": 0,
                "status": 0,
                "tagInfo": [],
                "type": "slo",
                "updateAt": -1,
                "updator": "",
                "uuid": "monitor_5ebbxxxxxx",
                "workspaceUUID": "wksp_4b57c7babxxxxxx"
            },
            {
                "alertPolicyInfos": [],
                "config": {
                    "checkRange": 604800,
                    "describe": "",
                    "goal": 99.0,
                    "interval": "5m",
                    "minGoal": 90.0,
                    "sli_infos": [
                        {
                            "id": "rul_7a88xxxxx",
                            "name": "lml-tes",
                            "status": 0
                        }
                    ]
                },
                "createAt": 1722913303,
                "creator": "acnt_35be770xxxxxx",
                "deleteAt": -1,
                "id": 4899,
                "name": "lml-test3",
                "score": 0,
                "status": 0,
                "tagInfo": [],
                "type": "slo",
                "updateAt": 1722913478,
                "updator": "acnt_35be770xxxxxx",
                "uuid": "monitor_7d0662bexxxxx",
                "workspaceUUID": "wksp_4b57c7babxxxxxx"
            }
        ],
        "declaration": {
            "asd": "aa,bb,cc,1,True",
            "asdasd": "dawdawd",
            "business": "aaa",
            "fawf": "afawf",
            "organization": "xxxxxx"
        }
    },
    "errorCode": "",
    "message": "",
    "pageInfo": {
        "count": 2,
        "pageIndex": 1,
        "pageSize": 2,
        "totalCount": 43
    },
    "success": true,
    "traceId": "10111844508613776745"
} 

フィードバック

このページは役に立ちましたか?