# 流量预警

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /customerNotifyUrl:
    post:
      summary: 流量预警
      deprecated: false
      description: |-
        客户提供接收异步通知的地址（HTTP/HTTPS）
        流量余量不足的卡片预警通知
      tags:
        - API接口/CloudESIM异步通知
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                timestamp:
                  type: integer
                  description: 当前时间戳，10位数字
                  x-apifox-mock: '{{TIMESTAMP}}'
                nonce:
                  type: integer
                  description: 5位随机正整数
                  minimum: 10000
                  maximum: 99999
                sign:
                  type: string
                  description: 签名串，通知参数的签名，通过它验证请求数据的合法性。
                  x-apifox-mock: '{{SIGN}}'
                id:
                  type: string
                  description: 请求的唯一标识
                event:
                  type: string
                  description: 通知的类型，此通知为 CloudESimFlowAlert
                alert_type:
                  type: integer
                  description: 预警类型 1:流量用量预警 不足100M 2:流量使用百分比预警 不足10% 3:周期预警 不足7天
                alert_value:
                  type: string
                  description: 触发值
                eid:
                  type: string
                  description: eid
              x-apifox-orders:
                - id
                - timestamp
                - nonce
                - event
                - sign
                - eid
                - alert_type
                - alert_value
              required:
                - timestamp
                - nonce
                - sign
                - event
                - id
                - eid
                - alert_type
                - alert_value
            example:
              alert_type: 1
              alert_value: '100'
              event: CloudESimFlowAlert
              eid: '898520123456789012341111111111111'
              id: CNTUlkm0pzRujPBr2tN8NNa7
              nonce: 40974
              sign: 88426183D4F6A984E9EA2F8BB2F7221D732F2EDF
              timestamp: 1703142059
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: 成功接收响应SUCCESS
                x-apifox-orders:
                  - status
                required:
                  - status
              example:
                status: SUCCESS
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: API接口/CloudESIM异步通知
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/2330898/apis/api-441022831-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://oapi.eiotclub.com
    description: 生产环境
security: []

```
