Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InfluxDB 2.0: The "Variables" should has a concrete example [area/api] #13187

Closed
bednar opened this issue Apr 5, 2019 · 2 comments
Closed

InfluxDB 2.0: The "Variables" should has a concrete example [area/api] #13187

bednar opened this issue Apr 5, 2019 · 2 comments

Comments

@bednar
Copy link
Contributor

bednar commented Apr 5, 2019

The Variables schema is defined as:

Variables:
      type: object
      example:
        variables:
        - id: '1221432'
          name: ":ok:"
          selected:
          - hello
          arguments:
            type: constant
            values:
            - howdy
            - hello
            - hi
            - yo
            - oy
        - id: '1221432'
          name: ":ok:"
          selected:
          - c
          arguments:
            type: map
            values:
              a: fdjaklfdjkldsfjlkjdsa
              b: dfaksjfkljekfajekdljfas
              c: fdjksajfdkfeawfeea
        - id: '1221432'
          name: ":ok:"
          selected:
          - host
          arguments:
            type: query
            query: 'from(bucket: "foo") |> showMeasurements()'
            language: flux
      properties:
        variables:
          type: array
          items:
            $ref: "#/components/schemas/Variable"

I think the better example will be something like:

 Variables:
      type: object
      example:
        variables:
        - id: '1'
          name: ":status:"
          selected:
          - running
          arguments:
            type: constant
            values:
            - created
            - running
            - canceled
            - deleted
        - id: '2'
          name: ":states:"
          selected:
          - FL
          arguments:
            type: map
            values:
              CO: Colorado
              HI: Hawaii
              MO: Missouri
              NJ: New Jersey
              FL: Florida
              ME: Maine
        - id: '3'
          name: ":show_measurements:"
          arguments:
            type: query
            query: 'from(bucket: "foo") |> showMeasurements()'
            language: flux
@stale
Copy link

stale bot commented Jul 23, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 23, 2019
@stale
Copy link

stale bot commented Jul 30, 2019

This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions.

@stale stale bot closed this as completed Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants