All Downloads are FREE. Search and download functionalities are using the official Maven repository.

api.cluster.exporter-api.yaml Maven / Gradle / Ivy

There is a newer version: 8.7.0-alpha1
Show newest version
openapi: "3.0.2"
info:
  title: API Title
  version: "1.0"
servers:
  - url: "{schema}://{host}:{port}/actuator/exporters"
    variables:
     host:
       default: localhost
       description: Management server hostname
     port:
       default: "9600"
       description: Management server port
     schema:
       default: http
       description: Management server schema
paths:
  /{exporterId}/disable:
    post:
      summary: Disable an exporter
      description: Disable the exporter with the given exporterId. After the exporter is disabled, the records are not exported to this exporter anymore.
      parameters:
        - $ref: '#/components/parameters/ExporterId'
      responses:
        '202':
          $ref: "#/components/responses/ExporterOperationResponse"
        '400':
          $ref: 'components.yaml#/responses/InvalidRequest'
        '409':
          $ref: 'components.yaml#/responses/ConcurrentChangeError'
        '500':
          $ref: 'components.yaml#/responses/InternalError'
        '502':
          $ref: 'components.yaml#/responses/GatewayError'
        '504':
          $ref: 'components.yaml#/responses/TimeoutError'

  /{exporterId}/enable:
    summary: Enable an exporter
    description: Enable the exporter with the given exporterId. After the exporter is enabled, the records are exported to this exporter.
    post:
      parameters:
        - $ref: '#/components/parameters/ExporterId'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/EnableExporterRequest"
      responses:
        '202':
          $ref: "#/components/responses/ExporterOperationResponse"
        '400':
          $ref: 'components.yaml#/responses/InvalidRequest'
        '409':
          $ref: 'components.yaml#/responses/ConcurrentChangeError'
        '500':
          $ref: 'components.yaml#/responses/InternalError'
        '502':
          $ref: 'components.yaml#/responses/GatewayError'
        '504':
          $ref: 'components.yaml#/responses/TimeoutError'

  /:
    get:
      summary: List all exporters
      description: List all exporters and their status whether they are enabled or disabled.
      responses:
        '200':
          description: "List of exporters"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ExporterList"
components:
  parameters:
    ExporterId:
      name: exporterId
      required: true
      in: path
      description: Id of the exporter
      schema:
        $ref: 'components.yaml#/schemas/ExporterId'

  responses:
    ExporterOperationResponse:
      description: Request to disable or enable exporter is accepted.
      content:
        application.json:
          schema:
            $ref: "components.yaml#/schemas/PlannedOperationsResponse"

  schemas:
    ExporterList:
        type: array
        items:
            $ref: "#/components/schemas/ExporterStatus"

    ExporterStatus:
      type: object
      properties:
        exporterId:
          type: string
          description: Id of the exporter
        status:
          type: string
          enum:
            - ENABLING
            - ENABLED
            - DISABLING
            - DISABLED
            - UNKNOWN
          description: Status of the exporter
          example: "ENABLED"

    EnableExporterRequest:
      type: object
      properties:
        initializeFrom:
          type: string
          description: Id of the exporter to initialize from
          example: "exporter-1"





© 2015 - 2024 Weber Informatics LLC | Privacy Policy