Chaitin Tech statistic/monitoring/daily/cpu_usage API

统计分析/监控/每日/CPU 使用率

OpenAPI Specification

chaitin-statistic-monitoring-daily-cpu-usage-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: APISec Management account statistic/monitoring/daily/cpu_usage API
  version: '26.05'
  description: Generated from APISec skyview APIView classes.
tags:
- name: statistic/monitoring/daily/cpu_usage
  description: 统计分析/监控/每日/CPU 使用率
paths:
  /statistic/monitoring/daily/cpu_usage:
    post:
      summary: CPU使用率
      deprecated: false
      description: ''
      tags:
      - statistic/monitoring/daily/cpu_usage
      parameters:
      - name: X-Cs-Header-Module
        in: header
        description: ''
        required: true
        example: system/config/export-task
        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: Accept
        in: header
        description: ''
        required: true
        example: application/json
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        instance:
                          type: string
                        job:
                          type: string
                        values:
                          type: object
                          properties:
                            last:
                              type: object
                              properties:
                                timestamp:
                                  type: string
                                value:
                                  type: integer
                              required:
                              - timestamp
                              - value
                            current:
                              type: object
                              properties:
                                timestamp:
                                  type: string
                                value:
                                  type: number
                              required:
                              - timestamp
                              - value
                          required:
                          - last
                          - current
                      required:
                      - instance
                      - job
                      - values
                required:
                - code
                - msg
                - data
              example:
                code: 0
                msg: success
                data:
                - instance: dev-qzh:9100
                  job: node_exporter
                  values:
                    last:
                      timestamp: 11-21 10:00
                      value: 22
                    current:
                      timestamp: 11-22 10:00
                      value: 159.6
                - instance: dev-qzh:9100
                  job: physical-machine
                  values:
                    last:
                      timestamp: 11-21 10:00
                      value: 22.8
                    current:
                      timestamp: 11-22 10:00
                      value: 162.1
                - instance: zstack-m:9100
                  job: physical-machine
                  values:
                    last:
                      timestamp: 11-21 10:00
                      value: 72.2
                    current:
                      timestamp: 11-22 10:00
                      value: 475.8
                - instance: zstack-n1:9100
                  job: physical-machine
                  values:
                    last:
                      timestamp: 11-21 10:00
                      value: 70.4
                    current:
                      timestamp: 11-22 10:00
                      value: 112.6
                - instance: zstack-n2:9100
                  job: physical-machine
                  values:
                    last:
                      timestamp: 11-21 10:00
                      value: 28.6
                    current:
                      timestamp: 11-22 10:00
                      value: 384.3
      security: []