跳转至

日程列出



GET /api/v1/notification_schedule/list

概述

Query 请求参数

参数名 类型 必选 说明
mySchedule string 查看我的日程, 默认 false: 查看所有日程
允许为空: True
可选值: ['true', 'false']
notificationScheduleUUIDs commaArray 过滤 日程 UUID
允许为空: False
issueNotificationPolicyUUIDs commaArray 过滤 通知策略 UUID
允许为空: False
notifyTargets commaArray 过滤 通知对象, acnt_xxx,notify_yyy,jj@qq.com
允许为空: False
search string 搜索名称
允许为空: True
pageIndex integer 页码
允许为空: False
例子: 1
$minValue: 1
pageSize integer 每页返回数量
允许为空: False
例子: 10
$minValue: 1
$maxValue: 100

参数补充说明

请求例子

curl 'https://openapi.guance.com/api/v1/notification_schedule/list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--compressed

响应

{
    "code": 200,
    "content": {
        "data": [
            {
                "createAt": 1735798360,
                "creator": "acnt_8b4bd2b8782646f3ba8f6554193f5997",
                "deleteAt": -1,
                "effectiveTimeInfos": {
                    "expired": false,
                    "timeStr": ""
                },
                "end": "23:59",
                "extend": {
                    "enableRotateNotification": false,
                    "rotationCycle": "day"
                },
                "id": 132,
                "inEffectNotifyTargetsInfos": [
                    {
                        "name": "tempN",
                        "status": 0,
                        "type": "HTTPRequest",
                        "uuid": "notify_1c08db8458ba4ecabd27b8ce805e8502"
                    }
                ],
                "issueNotificationPolicyInfos": [],
                "name": "temp22",
                "notifyTargets": [
                    "notify_1c08db8458ba4ecabd27b8ce805e8502"
                ],
                "notifyTargetsInfos": [
                    {
                        "name": "tempN",
                        "status": 0,
                        "type": "HTTPRequest",
                        "uuid": "notify_1c08db8458ba4ecabd27b8ce805e8502"
                    }
                ],
                "rotationUpdateAt": 1735798360,
                "start": "00:00",
                "status": 0,
                "timezone": "Asia/Shanghai",
                "updateAt": -1,
                "updator": "",
                "uuid": "nsche_6c18b90a5900413f960114058fce4d4c",
                "workspaceUUID": "wksp_798c5e0f589e4992994196832f64b6ba"
            },
            {
                "createAt": 1735797896,
                "creator": "wsak_f2ba9858f4414655be39efc882b120dd",
                "deleteAt": -1,
                "effectiveTimeInfos": {
                    "expired": false,
                    "timeStr": "2025/01/02 00:00:00~2025/01/23 11:37:52"
                },
                "end": "23:59",
                "extend": {
                    "effectiveTime": {
                        "end": 1737603472,
                        "start": 1735747200
                    },
                    "enableRotateNotification": false
                },
                "id": 131,
                "inEffectNotifyTargetsInfos": [
                    {
                        "acntWsNickname": "",
                        "email": "jinlei940@guance.com",
                        "iconUrl": "",
                        "mobile": "17621725046",
                        "name": "金磊lll",
                        "status": 0,
                        "username": "金磊lll",
                        "uuid": "acnt_8b4bd2b8782646f3ba8f6554193f5997",
                        "wsAccountStatus": 0
                    }
                ],
                "issueNotificationPolicyInfos": [],
                "name": "schecule_modify",
                "notifyTargets": [
                    "acnt_8b4bd2b8782646f3ba8f6554193f5997"
                ],
                "notifyTargetsInfos": [
                    {
                        "acntWsNickname": "",
                        "email": "jinlei940@guance.com",
                        "iconUrl": "",
                        "mobile": "17621725046",
                        "name": "金磊lll",
                        "status": 0,
                        "username": "金磊lll",
                        "uuid": "acnt_8b4bd2b8782646f3ba8f6554193f5997",
                        "wsAccountStatus": 0
                    }
                ],
                "rotationUpdateAt": 1735798211,
                "start": "11:00",
                "status": 0,
                "timezone": "Asia/Shanghai",
                "updateAt": 1735798211,
                "updator": "wsak_f2ba9858f4414655be39efc882b120dd",
                "uuid": "nsche_3512c1f4d176433484676225b547ef7a",
                "workspaceUUID": "wksp_798c5e0f589e4992994196832f64b6ba"
            }
        ],
        "declaration": {},
        "myScheduleCount": 0,
        "totalScheduleCount": 2
    },
    "errorCode": "",
    "message": "",
    "pageInfo": {
        "count": 2,
        "pageIndex": 1,
        "pageSize": 10,
        "totalCount": 2
    },
    "success": true,
    "traceId": "TRACE-0D517EFF-5D02-4672-9189-1C9DEB248E23"
} 

文档评价

文档内容是否对您有帮助? ×