definitions:
  common.BaseResp:
    properties:
      code:
        type: integer
      message:
        type: string
    type: object
  entity.AlertSubscriberType:
    enum:
    - EMAIL
    - SLACK
    - ZOOM
    - FLASHDUTY
    - PAGERDUTY
    - WEBHOOK
    - LARK
    type: string
    x-enum-varnames:
    - AlertSubscriberTypeEmail
    - AlertSubscriberTypeSlack
    - AlertSubscriberTypeZoom
    - AlertSubscriberTypeFlashDuty
    - AlertSubscriberTypePagerDuty
    - AlertSubscriberTypeWebhook
    - AlertSubscriberTypeLark
  entity.AlertSubscribersItem:
    properties:
      email:
        type: string
      flashDutyUrl:
        type: string
      id:
        type: integer
      larkSecret:
        type: string
      larkWebhookUrl:
        type: string
      name:
        type: string
      pagerDutyKey:
        type: string
      slackUrl:
        type: string
      subscriberType:
        $ref: '#/definitions/entity.AlertSubscriberType'
      webhookUrl:
        type: string
      zoomToken:
        type: string
      zoomUrl:
        type: string
    type: object
  entity.CreateAlertSubscriberRequest:
    properties:
      dryRun:
        type: boolean
      email:
        type: string
      flashDutyUrl:
        type: string
      larkSecret:
        type: string
      larkWebhookUrl:
        type: string
      name:
        type: string
      pagerDutyKey:
        type: string
      slackUrl:
        type: string
      subscriberType:
        $ref: '#/definitions/entity.AlertSubscriberType'
      webhookUrl:
        type: string
      zoomToken:
        type: string
      zoomUrl:
        type: string
    required:
    - subscriberType
    type: object
  entity.GetAlertSubscriberQuotaResponse:
    properties:
      maxAlertSubscribersCount:
        type: integer
      supportPlan:
        $ref: '#/definitions/entity.SupportPlanType'
    type: object
  entity.ListAlertSubscribersResponse:
    properties:
      alertSubscribers:
        items:
          $ref: '#/definitions/entity.AlertSubscribersItem'
        type: array
      totalSize:
        type: integer
    type: object
  entity.SupportPlanType:
    enum:
    - Basic
    - Developer
    - Enterprise
    - Premium
    type: string
    x-enum-varnames:
    - SupportPlanTypeBasic
    - SupportPlanTypeDeveloper
    - SupportPlanTypeEnterprise
    - SupportPlanTypePremium
  event.BaseResp:
    properties:
      err_code:
        type: string
      err_msg:
        type: string
    type: object
  event.Event:
    properties:
      author:
        type: string
      calibration_time:
        type: integer
      status:
        type: string
      summary:
        type: string
      type:
        type: string
    type: object
  event.EventStatus:
    enum:
    - started
    - succeeded
    - failed
    - canceled
    - skipped
    - running
    - paused
    - resumed
    type: string
    x-enum-varnames:
    - EventStatusStarted
    - EventStatusSucceeded
    - EventStatusFailed
    - EventStatusCanceled
    - EventStatusSkipped
    - EventStatusRunning
    - EventStatusPaused
    - EventStatusResumed
  event.ListEventFiltersResp:
    properties:
      base_resp:
        $ref: '#/definitions/event.BaseResp'
      event_status:
        items:
          $ref: '#/definitions/event.EventStatus'
        type: array
      event_types:
        items:
          type: string
        type: array
    type: object
  event.ListEventsResp:
    properties:
      base_resp:
        $ref: '#/definitions/event.BaseResp'
      cursor:
        type: string
      events:
        items:
          $ref: '#/definitions/event.Event'
        type: array
      partial:
        type: boolean
    type: object
  userdebug.UserDebugAuthorization:
    properties:
      token:
        type: string
      valid:
        type: boolean
    type: object
  userdebug.UserDebugAuthorizationDetail:
    properties:
      authorized_by:
        $ref: '#/definitions/userdebug.UserDebugAuthorizedBy'
      cluster_id:
        type: string
      cluster_name:
        type: string
      created_at:
        type: integer
      expires_at:
        type: integer
      id:
        type: string
      project_id:
        type: string
      project_name:
        type: string
      status:
        type: string
      updated_at:
        type: integer
    type: object
  userdebug.UserDebugAuthorizationList:
    properties:
      items:
        items:
          $ref: '#/definitions/userdebug.UserDebugAuthorizationDetail'
        type: array
      total:
        type: integer
    type: object
  userdebug.UserDebugAuthorizationRecordItem:
    properties:
      auth_id:
        type: string
      created_at:
        type: integer
      expires_at:
        type: integer
      operation:
        type: string
      time_span:
        type: integer
      user:
        $ref: '#/definitions/userdebug.UserDebugAuthorizedBy'
    type: object
  userdebug.UserDebugAuthorizationRecords:
    properties:
      items:
        items:
          $ref: '#/definitions/userdebug.UserDebugAuthorizationRecordItem'
        type: array
      total:
        type: integer
    type: object
  userdebug.UserDebugAuthorizedBy:
    properties:
      email:
        type: string
      first_name:
        type: string
      id:
        type: string
      last_name:
        type: string
    type: object
  userdebug.UserDebugFeatureList:
    properties:
      features:
        items:
          $ref: '#/definitions/userdebug.UserDebugFeatureListFeaturesItems'
        type: array
      org_id:
        type: string
    type: object
  userdebug.UserDebugFeatureListFeaturesItems:
    properties:
      key:
        type: string
      status:
        type: string
    type: object
info:
  contact: {}
  description: This is a clinic cloud-server for TiDBCloud.
  title: Clinic Cloud Server
  version: "1.0"
paths:
  /{organization}/{cluster}/authorization:
    delete:
      description: revokes the userdebug auth code
      operationId: DeleteUserDebugAuth
      parameters:
      - description: organization id
        in: path
        name: organization
        required: true
        type: string
      - description: cluster id
        in: path
        name: cluster
        required: true
        type: string
      - description: provider aws/gcp
        in: header
        name: X-Provider
        required: true
        type: string
      - description: region
        in: header
        name: X-Region
        required: true
        type: string
      - description: organization id from dbaas
        in: header
        name: X-Org-Id
        required: true
        type: string
      - description: project id from dbaas
        in: header
        name: X-Project-Id
        required: true
        type: string
      - description: cluster id from dbaas
        in: header
        name: X-Cluster-Id
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            type: string
      summary: revokes the userdebug auth code
      tags:
      - userdebug
    get:
      description: get userdebug auth code
      operationId: GetUserDebugAuthCode
      parameters:
      - description: organization id
        in: path
        name: organization
        required: true
        type: string
      - description: cluster id
        in: path
        name: cluster
        required: true
        type: string
      - description: provider aws/gcp
        in: header
        name: X-Provider
        required: true
        type: string
      - description: region
        in: header
        name: X-Region
        required: true
        type: string
      - description: organization id from dbaas
        in: header
        name: X-Org-Id
        required: true
        type: string
      - description: project id from dbaas
        in: header
        name: X-Project-Id
        required: true
        type: string
      - description: cluster id from dbaas
        in: header
        name: X-Cluster-Id
        required: true
        type: string
      - description: user name
        in: query
        name: user
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/userdebug.UserDebugAuthorization'
      summary: get userdebug auth code
      tags:
      - userdebug
    post:
      description: create the userdebug auth code
      operationId: CreateUserDebugAuthCode
      parameters:
      - description: organization id
        in: path
        name: organization
        required: true
        type: string
      - description: cluster id
        in: path
        name: cluster
        required: true
        type: string
      - description: provider aws/gcp
        in: header
        name: X-Provider
        required: true
        type: string
      - description: region
        in: header
        name: X-Region
        required: true
        type: string
      - description: organization id from dbaas
        in: header
        name: X-Org-Id
        required: true
        type: string
      - description: project id from dbaas
        in: header
        name: X-Project-Id
        required: true
        type: string
      - description: cluster id from dbaas
        in: header
        name: X-Cluster-Id
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            type: string
      summary: create the userdebug auth code
      tags:
      - userdebug
  /{organization}/{cluster}/authorization/details/{auth_id}:
    get:
      description: get the detail of a userdebug auth code
      operationId: GetUserDebugAuthDetail
      parameters:
      - description: organization id
        in: path
        name: organization
        required: true
        type: string
      - description: cluster id
        in: path
        name: cluster
        required: true
        type: string
      - description: auth id
        in: path
        name: auth_id
        required: true
        type: string
      - description: provider aws/gcp
        in: header
        name: X-Provider
        required: true
        type: string
      - description: region
        in: header
        name: X-Region
        required: true
        type: string
      - description: organization id from dbaas
        in: header
        name: X-Org-Id
        required: true
        type: string
      - description: project id from dbaas
        in: header
        name: X-Project-Id
        required: true
        type: string
      - description: cluster id from dbaas
        in: header
        name: X-Cluster-Id
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/userdebug.UserDebugAuthorizationDetail'
      summary: get the detail of a userdebug auth code
      tags:
      - userdebug
  /{organization}/{cluster}/authorization/records:
    get:
      description: get use userdebug auth code records
      operationId: GetUserDebugAuthRecords
      parameters:
      - description: organization id
        in: path
        name: organization
        required: true
        type: string
      - description: cluster id
        in: path
        name: cluster
        required: true
        type: string
      - description: provider aws/gcp
        in: header
        name: X-Provider
        required: true
        type: string
      - description: region
        in: header
        name: X-Region
        required: true
        type: string
      - description: organization id from dbaas
        in: header
        name: X-Org-Id
        required: true
        type: string
      - description: project id from dbaas
        in: header
        name: X-Project-Id
        required: true
        type: string
      - description: cluster id from dbaas
        in: header
        name: X-Cluster-Id
        required: true
        type: string
      - description: page number
        in: query
        name: page
        type: string
      - description: records per page
        in: query
        name: per_page
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/userdebug.UserDebugAuthorizationRecords'
      summary: get userdebug auth code records
      tags:
      - userdebug
  /{organization}/{cluster}/authorization/records/{auth_id}:
    get:
      description: get userdebug auth code records for a specific auth code
      operationId: GetUserDebugAuthRecordsForAuth
      parameters:
      - description: organization id
        in: path
        name: organization
        required: true
        type: string
      - description: cluster id
        in: path
        name: cluster
        required: true
        type: string
      - description: auth id
        in: path
        name: auth_id
        required: true
        type: string
      - description: provider aws/gcp
        in: header
        name: X-Provider
        required: true
        type: string
      - description: region
        in: header
        name: X-Region
        required: true
        type: string
      - description: organization id from dbaas
        in: header
        name: X-Org-Id
        required: true
        type: string
      - description: project id from dbaas
        in: header
        name: X-Project-Id
        required: true
        type: string
      - description: cluster id from dbaas
        in: header
        name: X-Cluster-Id
        required: true
        type: string
      - description: page number
        in: query
        name: page
        type: string
      - description: records per page
        in: query
        name: per_page
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/userdebug.UserDebugAuthorizationRecords'
      summary: get userdebug auth code records for a specific auth code
      tags:
      - userdebug
  /{organization}/authorizations:
    get:
      description: get userdebug auth list
      operationId: GetUserDebugAuthList
      parameters:
      - description: organization id
        in: path
        name: organization
        required: true
        type: string
      - description: provider aws/gcp
        in: header
        name: X-Provider
        required: true
        type: string
      - description: region
        in: header
        name: X-Region
        required: true
        type: string
      - description: organization id from dbaas
        in: header
        name: X-Org-Id
        required: true
        type: string
      - description: project id from dbaas
        in: header
        name: X-Project-Id
        required: true
        type: string
      - description: cluster id from dbaas
        in: header
        name: X-Cluster-Id
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/userdebug.UserDebugAuthorizationList'
      summary: get userdebug auth list
      tags:
      - userdebug
  /{organization}/features:
    get:
      description: list userdebug features
      operationId: GetUserDebugFeatures
      parameters:
      - description: organization id
        in: path
        name: organization
        required: true
        type: string
      - description: provider aws/gcp
        in: header
        name: X-Provider
        required: true
        type: string
      - description: region
        in: header
        name: X-Region
        required: true
        type: string
      - description: organization id from dbaas
        in: header
        name: X-Org-Id
        required: true
        type: string
      - description: project id from dbaas
        in: header
        name: X-Project-Id
        required: true
        type: string
      - description: cluster id from dbaas
        in: header
        name: X-Cluster-Id
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/userdebug.UserDebugFeatureList'
      summary: List userdebug features
      tags:
      - userdebug
  /api/alert/v1/orgs/{orgId}/clusters/{clusterId}/alertSubscriberQuota:
    get:
      description: get next-gen alert subscriber quota
      operationId: GetNextGenAlertSubscriberQuota
      parameters:
      - description: organization id
        in: path
        name: orgId
        required: true
        type: string
      - description: cluster id
        in: path
        name: clusterId
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/entity.GetAlertSubscriberQuotaResponse'
        "400":
          description: Bad Request
          schema:
            $ref: '#/definitions/common.BaseResp'
        "500":
          description: Internal Server Error
          schema:
            $ref: '#/definitions/common.BaseResp'
      tags:
      - alert subscriber
  /api/alert/v1/orgs/{orgId}/clusters/{clusterId}/alertSubscribers:
    get:
      description: list next-gen alert subscribers
      operationId: ListNextGenAlertSubscribers
      parameters:
      - description: organization id
        in: path
        name: orgId
        required: true
        type: string
      - description: cluster id
        in: path
        name: clusterId
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/entity.ListAlertSubscribersResponse'
        "400":
          description: Bad Request
          schema:
            $ref: '#/definitions/common.BaseResp'
        "500":
          description: Internal Server Error
          schema:
            $ref: '#/definitions/common.BaseResp'
      tags:
      - alert subscriber
    post:
      description: create next-gen alert subscriber
      operationId: CreateNextGenAlertSubscriber
      parameters:
      - description: organization id
        in: path
        name: orgId
        required: true
        type: string
      - description: cluster id
        in: path
        name: clusterId
        required: true
        type: string
      - description: request param
        in: body
        name: req
        required: true
        schema:
          $ref: '#/definitions/entity.CreateAlertSubscriberRequest'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/common.BaseResp'
      tags:
      - alert subscriber
  /api/alert/v1/orgs/{orgId}/clusters/{clusterId}/alertSubscribers/{alertSubscriberId}:
    delete:
      description: delete next-gen alert subscriber
      operationId: DeleteNextGenAlertSubscriber
      parameters:
      - description: organization id
        in: path
        name: orgId
        required: true
        type: string
      - description: cluster id
        in: path
        name: clusterId
        required: true
        type: string
      - description: alert subscriber id
        in: path
        name: alertSubscriberId
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/common.BaseResp'
        "400":
          description: Bad Request
          schema:
            $ref: '#/definitions/common.BaseResp'
        "500":
          description: Internal Server Error
          schema:
            $ref: '#/definitions/common.BaseResp'
      tags:
      - alert subscriber
  /api/alert/v1/orgs/{orgId}/projects/{projectId}/alertSubscriberQuota:
    get:
      description: get alert subscriber quota
      operationId: GetAlertSubscriberQuota
      parameters:
      - description: organization id
        in: path
        name: orgId
        required: true
        type: string
      - description: project id
        in: path
        name: projectId
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/entity.GetAlertSubscriberQuotaResponse'
        "400":
          description: Bad Request
          schema:
            $ref: '#/definitions/common.BaseResp'
        "500":
          description: Internal Server Error
          schema:
            $ref: '#/definitions/common.BaseResp'
      tags:
      - alert subscriber
  /api/alert/v1/orgs/{orgId}/projects/{projectId}/alertSubscribers:
    get:
      description: list alert subscribers
      operationId: ListAlertSubscribers
      parameters:
      - description: organization id
        in: path
        name: orgId
        required: true
        type: string
      - description: project id
        in: path
        name: projectId
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/entity.ListAlertSubscribersResponse'
        "400":
          description: Bad Request
          schema:
            $ref: '#/definitions/common.BaseResp'
        "500":
          description: Internal Server Error
          schema:
            $ref: '#/definitions/common.BaseResp'
      tags:
      - alert subscriber
    post:
      description: create alert subscriber
      operationId: CreateAlertSubscriber
      parameters:
      - description: organization id
        in: path
        name: orgId
        required: true
        type: string
      - description: project id
        in: path
        name: projectId
        required: true
        type: string
      - description: request param
        in: body
        name: req
        required: true
        schema:
          $ref: '#/definitions/entity.CreateAlertSubscriberRequest'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/common.BaseResp'
      tags:
      - alert subscriber
  /api/alert/v1/orgs/{orgId}/projects/{projectId}/alertSubscribers/{alertSubscriberId}:
    delete:
      description: delete alert subscriber
      operationId: DeleteAlertSubscriber
      parameters:
      - description: organization id
        in: path
        name: orgId
        required: true
        type: string
      - description: project id
        in: path
        name: projectId
        required: true
        type: string
      - description: alert subscriber id
        in: path
        name: alertSubscriberId
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/common.BaseResp'
        "400":
          description: Bad Request
          schema:
            $ref: '#/definitions/common.BaseResp'
        "500":
          description: Internal Server Error
          schema:
            $ref: '#/definitions/common.BaseResp'
      tags:
      - alert subscriber
  /api/alert/v1/orgs/{orgId}/projects/{projectId}/clusters/{clusterId}/alertSubscriberQuota:
    get:
      description: get essential alert subscriber quota
      operationId: GetEssentialAlertSubscriberQuota
      parameters:
      - description: organization id
        in: path
        name: orgId
        required: true
        type: string
      - description: project id
        in: path
        name: projectId
        required: true
        type: string
      - description: cluster id
        in: path
        name: clusterId
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/entity.GetAlertSubscriberQuotaResponse'
        "400":
          description: Bad Request
          schema:
            $ref: '#/definitions/common.BaseResp'
        "500":
          description: Internal Server Error
          schema:
            $ref: '#/definitions/common.BaseResp'
      tags:
      - alert subscriber
  /api/alert/v1/orgs/{orgId}/projects/{projectId}/clusters/{clusterId}/alertSubscribers:
    get:
      description: list essential alert subscribers
      operationId: ListEssentialAlertSubscribers
      parameters:
      - description: organization id
        in: path
        name: orgId
        required: true
        type: string
      - description: project id
        in: path
        name: projectId
        required: true
        type: string
      - description: cluster id
        in: path
        name: clusterId
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/entity.ListAlertSubscribersResponse'
        "400":
          description: Bad Request
          schema:
            $ref: '#/definitions/common.BaseResp'
        "500":
          description: Internal Server Error
          schema:
            $ref: '#/definitions/common.BaseResp'
      tags:
      - alert subscriber
    post:
      description: create essential alert subscriber
      operationId: CreateEssentialAlertSubscriber
      parameters:
      - description: organization id
        in: path
        name: orgId
        required: true
        type: string
      - description: project id
        in: path
        name: projectId
        required: true
        type: string
      - description: cluster id
        in: path
        name: clusterId
        required: true
        type: string
      - description: request param
        in: body
        name: req
        required: true
        schema:
          $ref: '#/definitions/entity.CreateAlertSubscriberRequest'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/common.BaseResp'
      tags:
      - alert subscriber
  /api/alert/v1/orgs/{orgId}/projects/{projectId}/clusters/{clusterId}/alertSubscribers/{alertSubscriberId}:
    delete:
      description: delete essential alert subscriber
      operationId: DeleteEssentialAlertSubscriber
      parameters:
      - description: organization id
        in: path
        name: orgId
        required: true
        type: string
      - description: project id
        in: path
        name: projectId
        required: true
        type: string
      - description: cluster id
        in: path
        name: clusterId
        required: true
        type: string
      - description: alert subscriber id
        in: path
        name: alertSubscriberId
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/common.BaseResp'
        "400":
          description: Bad Request
          schema:
            $ref: '#/definitions/common.BaseResp'
        "500":
          description: Internal Server Error
          schema:
            $ref: '#/definitions/common.BaseResp'
      tags:
      - alert subscriber
  /orgs/{oid}/clusters/{cid}/eventfilters:
    get:
      description: list cloud cluster events type and status filters
      operationId: ListEventFiltersWithoutProject
      parameters:
      - description: organization id
        in: path
        name: oid
        required: true
        type: string
      - description: cluster id
        in: path
        name: cid
        required: true
        type: string
      - description: provider aws/gcp
        in: header
        name: X-Provider
        required: true
        type: string
      - description: region
        in: header
        name: X-Region
        required: true
        type: string
      - description: organization id from dbaas
        in: header
        name: X-Org-Id
        required: true
        type: string
      - description: cluster id from dbaas
        in: header
        name: X-Cluster-Id
        required: true
        type: string
      - description: cluster type serverless/dedicated/nextgen
        in: query
        name: cluster_type
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/event.ListEventFiltersResp'
      summary: List cloud cluster event filters
      tags:
      - cloud event
  /orgs/{oid}/clusters/{cid}/events:
    get:
      description: list cloud cluster events from activityhub
      operationId: ListEventsWithoutProject
      parameters:
      - description: organization id
        in: path
        name: oid
        required: true
        type: string
      - description: cluster id
        in: path
        name: cid
        required: true
        type: string
      - description: provider aws/gcp
        in: header
        name: X-Provider
        required: true
        type: string
      - description: region
        in: header
        name: X-Region
        required: true
        type: string
      - description: organization id from dbaas
        in: header
        name: X-Org-Id
        required: true
        type: string
      - description: cluster id from dbaas
        in: header
        name: X-Cluster-Id
        required: true
        type: string
      - description: cursor for next page
        in: header
        name: cursor
        type: string
      - description: cluster type
        in: query
        name: cluster_type
        required: true
        type: string
      - description: start time in unix seconds
        in: query
        name: begin_ts
        required: true
        type: string
      - description: end time in unix seconds
        in: query
        name: end_ts
        required: true
        type: string
      - description: result limit
        in: query
        name: limit
        type: string
      - description: event status
        in: query
        name: status
        type: string
      - collectionFormat: csv
        description: task type list; if not specified, any type is allowed
        in: query
        items:
          type: string
        name: type
        type: array
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/event.ListEventsResp'
      summary: List cloud cluster events
      tags:
      - cloud event
  /orgs/{oid}/projects/{pid}/clusters/{cid}/eventfilters:
    get:
      description: list cloud cluster events type and status filters
      operationId: ListEventFilters
      parameters:
      - description: organization id
        in: path
        name: oid
        required: true
        type: string
      - description: project id
        in: path
        name: pid
        required: true
        type: string
      - description: cluster id
        in: path
        name: cid
        required: true
        type: string
      - description: provider aws/gcp
        in: header
        name: X-Provider
        required: true
        type: string
      - description: region
        in: header
        name: X-Region
        required: true
        type: string
      - description: organization id from dbaas
        in: header
        name: X-Org-Id
        required: true
        type: string
      - description: project id from dbaas
        in: header
        name: X-Project-Id
        required: true
        type: string
      - description: cluster id from dbaas
        in: header
        name: X-Cluster-Id
        required: true
        type: string
      - description: cluster type serverless/dedicated/nextgen
        in: query
        name: cluster_type
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/event.ListEventFiltersResp'
      summary: List cloud cluster event filters
      tags:
      - cloud event
  /orgs/{oid}/projects/{pid}/clusters/{cid}/events:
    get:
      description: list cloud cluster events from activityhub
      operationId: ListEvents
      parameters:
      - description: organization id
        in: path
        name: oid
        required: true
        type: string
      - description: project id
        in: path
        name: pid
        required: true
        type: string
      - description: cluster id
        in: path
        name: cid
        required: true
        type: string
      - description: provider aws/gcp
        in: header
        name: X-Provider
        required: true
        type: string
      - description: region
        in: header
        name: X-Region
        required: true
        type: string
      - description: organization id from dbaas
        in: header
        name: X-Org-Id
        required: true
        type: string
      - description: project id from dbaas
        in: header
        name: X-Project-Id
        required: true
        type: string
      - description: cluster id from dbaas
        in: header
        name: X-Cluster-Id
        required: true
        type: string
      - description: cursor for next page
        in: header
        name: cursor
        type: string
      - description: cluster type
        in: query
        name: cluster_type
        required: true
        type: string
      - description: start time in unix seconds
        in: query
        name: begin_ts
        required: true
        type: string
      - description: end time in unix seconds
        in: query
        name: end_ts
        required: true
        type: string
      - description: result limit
        in: query
        name: limit
        type: string
      - description: event status
        in: query
        name: status
        type: string
      - collectionFormat: csv
        description: task type list; if not specified, any type is allowed
        in: query
        items:
          type: string
        name: type
        type: array
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/event.ListEventsResp'
      summary: List cloud cluster events
      tags:
      - cloud event
swagger: "2.0"
