Chaitin Tech policy/realtime_monitor/record/list API

策略管理/实时监控/记录/列表

OpenAPI Specification

chaitin-policy-realtime-monitor-record-list-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: APISec Management account policy/realtime_monitor/record/list API
  version: '26.05'
  description: Generated from APISec skyview APIView classes.
tags:
- name: policy/realtime_monitor/record/list
  description: 策略管理/实时监控/记录/列表
paths:
  /policy/realtime_monitor/record/list:
    post:
      summary: 实时监控固证信息列表
      deprecated: false
      description: ''
      tags:
      - policy/realtime_monitor/record/list
      parameters:
      - name: page
        in: query
        description: ''
        required: true
        example: '1'
        schema:
          type: string
      - name: limit
        in: query
        description: ''
        required: true
        example: '10'
        schema:
          type: string
      - name: search
        in: query
        description: ''
        required: true
        example: string
        schema:
          type: string
      - name: X-CS-Header-App
        in: header
        description: 应用id
        required: true
        example: '{{app}}'
        schema:
          type: string
      - name: X-CS-Header-Company
        in: header
        description: 公司id
        required: true
        example: '{{company_id}}'
        schema:
          type: string
      - name: X-CS-Header-Crypt
        in: header
        description: 加密算法,请参考:https://servaltech.feishu.cn/docs/doccnQCZ2cw32uazgNSO0DFwceb
        required: true
        example: ''
        schema:
          type: string
      - name: If-None-Match
        in: header
        description: 对于支持「ETAG」的接口,将上一次请求的响应header的Etag,填入到下一次请求。若匹配,则返回304(无变更),否则会返回新版本的数据 + 新Etag
        required: true
        example: string
        schema:
          type: string
      - name: X-CS-Header-Debug
        in: header
        description: ''
        required: true
        example: '{{debug}}'
        schema:
          type: string
      - name: Accept-Language
        in: header
        description: ''
        required: true
        example: zh
        schema:
          type: string
      - name: X-Cs-Header-Timezone
        in: header
        description: ''
        required: true
        example: Asia/Shanghai
        schema:
          type: string
      - name: Content-Type
        in: header
        description: ''
        required: true
        example: application/json
        schema:
          type: string
      - name: Accept
        in: header
        description: ''
        required: true
        example: application/json
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                time_range:
                  type: object
                  properties:
                    begin:
                      type: string
                    end:
                      type: string
                  required:
                  - begin
                  - end
                queries:
                  type: array
                  items:
                    type: object
                    properties:
                      field:
                        type: string
                      operator:
                        type: string
                      value:
                        type: string
                      is_order_used:
                        type: boolean
                      field_type:
                        type: string
                      is_filter_used:
                        type: boolean
              required:
              - time_range
              - queries
            example:
              time_range:
                begin: '2025-03-21T07:59:00Z'
                end: '2025-03-21T08:29:59Z'
              queries:
              - field: policy_id
                operator: is
                value: 3c0d72ee-71dc-4de7-8ba9-9d80679a1939
                is_order_used: false
                field_type: keyword
                is_filter_used: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      index:
                        type: array
                        items:
                          type: string
                      page:
                        type: integer
                      limit:
                        type: integer
                      search_total:
                        type: integer
                      total:
                        type: integer
                      search_after:
                        type: array
                        items:
                          type: integer
                      results:
                        type: array
                        items:
                          type: object
                          properties:
                            console_user:
                              type: string
                            status:
                              type: string
                            company_id:
                              type: string
                            agent_version:
                              type: string
                            storage_time:
                              type: string
                            monitor_mode:
                              type: string
                            action:
                              type: string
                            event_id:
                              type: string
                            device_code:
                              type: string
                            hostname:
                              type: string
                            policy_name:
                              type: string
                            ip_address:
                              type: string
                            os_name:
                              type: string
                            os_friendly_name:
                              type: string
                            screenshot_part:
                              type: string
                            mac:
                              type: string
                            monitor_mode_options:
                              type: object
                              properties:
                                interval:
                                  type: integer
                                resolution_ratio:
                                  type: string
                              required:
                              - interval
                              - resolution_ratio
                            expand:
                              type: object
                              properties: {}
                            storage_time_options:
                              type: object
                              properties:
                                cycles:
                                  type: object
                                  properties:
                                    value:
                                      type: integer
                                    unit:
                                      type: string
                                  required:
                                  - value
                                  - unit
                              required:
                              - cycles
                            time:
                              type: integer
                            screenshot_name:
                              type: integer
                            screenshot_ext:
                              type: string
                            device_id:
                              type: string
                            policy_id:
                              type: string
                            '@timestamp':
                              type: integer
                            timestamp:
                              type: string
                            created_timestamp:
                              type: string
                            category:
                              type: string
                            staff_id:
                              type: string
                            staff_name:
                              type: string
                            staff_email:
                              type: string
                            staff_code:
                              type: string
                            staff_number:
                              type: string
                            staff_tag_ids:
                              type: array
                              items: {}
                            staff_tags:
                              type: array
                              items: {}
                            dept_ids:
                              type: array
                              items:
                                type: string
                            dept_names:
                              type: array
                              items:
                                type: string
                            dept_paths:
                              type: array
                              items:
                                type: string
                            uid:
                              type: string
                            _type:
                              type: string
                            _index:
                              type: string
                            _score:
                              type: 'null'
                            file_meta:
                              type: object
                              properties:
                                etag:
                                  type: string
                                relative_path:
                                  type: string
                                last_modified:
                                  type: string
                                size:
                                  type: integer
                                content_type:
                                  type: string
                                filename:
                                  type: string
                                url:
                                  type: string
                                file_system:
                                  type: string
                              required:
                              - etag
                              - relative_path
                              - last_modified
                              - size
                              - content_type
                              - filename
                              - url
                              - file_system
                            comments:
                              type: array
                              items:
                                type: object
                                properties:
                                  update_time:
                                    type: string
                                  expand:
                                    type: object
                                    properties: {}
                                  event_id:
                                    type: string
                                  create_by_id:
                                    type: string
                                  update_by_id:
                                    type: string
                                  comment:
                                    type: string
                                  company_id:
                                    type: string
                                  user:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                      username:
                                        type: string
                                      dept_name:
                                        type: string
                                    required:
                                    - name
                                    - username
                                    - dept_name
                                  uid:
                                    type: string
                                  create_time:
                                    type: string
                                  id:
                                    type: integer
                    required:
                    - index
                    - page
                    - limit
                    - search_total
                    - total
                    - search_after
                    - results
                required:
                - code
                - msg
                - data
              example:
                code: 0
                msg: 正常
                data:
                  index:
                  - qzhddr_policy_realtime_monitor_logs
                  page: 1
                  limit: 10
                  search_total: 1
                  total: 1
                  search_after:
                  - 1693987875694
                  results:
                  - console_user: nanzhi
                    status: created
                    company_id: eeff7c64-5070-4582-8b93-fbcc57db7771
                    agent_version: 3.5.0
                    storage_time: permanent
                    monitor_mode: general
                    action: notify
                    event_id: 3FDE9C7D-4029-4DE7-AAE6-76004106BBF1
                    device_code: PC-000043
                    hostname: administrator
                    policy_name: 实时监控test
                    ip_address: 192.168.88.171
                    os_name: macOS
                    os_friendly_name: macOS 12.2.1
                    screenshot_part: 2025/03/21
                    mac: e6:4c:1e:10:7e:82
                    monitor_mode_options:
                      interval: 30
                      resolution_ratio: balance
                    expand: {}
                    storage_time_options:
                      cycles:
                        value: 3
                        unit: day
                    time: 1693987875694
                    screenshot_name: 1742522698972
                    screenshot_ext: png
                    device_id: 90c7b062-d02f-4a71-8165-3680b054f230
                    policy_id: 3c0d72ee-71dc-4de7-8ba9-9d80679a1939
                    '@timestamp': 1693987875694
                    timestamp: '2023-09-06T16:11:15+08:00'
                    created_timestamp: '2025-03-21T16:48:52+08:00'
                    category: realtime_monitor
                    staff_id: 66a02d1b-8191-46b4-a2b9-9218c25514eb
                    staff_name: 边禆
                    staff_email: <null>
                    staff_code: '+8615697406219'
                    staff_number: ''
                    staff_tag_ids: []
                    staff_tags: []
                    dept_ids:
                    - b716f2b0-d62a-4ac7-a041-6e59e196d04c
                    dept_names:
                    - 交付部
                    dept_paths:
                    - 陈宇珊的公司们/交付部
                    uid: scDkt5UBZcl0n2phIbB9
                    _type: _doc
                    _index: .ds-qzhddr_policy_realtime_monitor_logs_s-2025.03.21-000001
                    _score: null
                    file_meta:
                      etag: '"6EFE9D98B690DD7A8337C2DA66C799AD"'
                      relative_path: eeff7c64-5070-4582-8b93-fbcc57db7771/realtime_monitor/screenshot/2025/03/21/1742522698972.png
                      last_modified: '2025-03-21T10:58:13Z'
                      size: 152651
                      content_type: ''
                      filename: 1742522698972.png
                      url: https://qzh-develop.oss-cn-wulanchabu.aliyuncs.com/eeff7c64-5070-4582-8b93-fbcc57db7771%2Frealtime_monitor%2Fscreenshot%2F2025%2F03%2F21%2F1742522698972.png?Expires=1743144162&OSSAccessKeyId=LTAI5tQAConb9M5QkZk49Vn3&Signature=EKgLSwEfACGEA7Y8TNU8%2FNqwYyI%3D&response-content-disposition=attachment%3B%20filename%2A%3Dutf-8%27%271742522698972.png
                      file_system: aliyun_oss
                    comments:
                    - update_time: '2025-03-25T02:38:29.439184Z'
                      expand: {}
                      event_id: 3FDE9C7D-4029-4DE7-AAE6-76004106BBF1
                      create_by_id: fc1d36eb-98ce-486c-83e7-4f041e22d164
                      update_by_id: fc1d36eb-98ce-486c-83e7-4f041e22d164
                      comment: 这是一个评论测试
                      company_id: eeff7c64-5070-4582-8b93-fbcc57db7771
                      user:
                        name: xuxingwangusername
                        username: xuxingwang
                        dept_name: ''
                      uid: ee3fd528-025e-49dc-a9ac-348b4332c618
                      create_time: '2025-03-25T02:38:29.439162Z'
                      id: 1
      security: []