/telegrafs POST are requestBody properties up-to-date?
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- openapi
- Domain
- api
Research direction
Start with components/schemas/TelegrafPluginRequest.yml and compare it with the documented POST /telegrafs request example and the observed response fields. Review related issue #610 and verify whether agent, metadata, and config match the API behavior. Done means the schema accurately describes the accepted request and returned fields, or clearly documents the legacy behavior.
Written by the indexing model from the issue text.
Description
After comparing a POST request to /telegrafs sent from the UI to the definitions in openapi
(components/schemas/TelegrafPluginRequest) there appears to be a number of differences.
The UI request body looks like this.
{
"name":"Ferret Config",
"description":"asdf",
"agent":{"collectionInterval":10000},
"orgID":"9c5955fc99a60b8f",
"plugins":
[
{
"name":"influxdb_v2",
"type":
"output",
"config":
{
"urls":
[
"https://twodotoh-dev-bonitoo-kk.remocal.influxdev.co"
],
"token":"$INFLUX_TOKEN",
"organization":"dev",
"bucket":"devbucket"
}
},
{
"name":"cpu",
"type":"input"
}
]
}
There are five top level properties name, description, agent, orgID, plugins.
The document components/schemas/TelegrafPluginRequest.yml also includes fields for metadata and config, however it makes no mention of an agent field. Also during blackbox testing, when sending a request body with a combination {name, description, orgID, config} the server returns HTTP 500.
The fields metadata and config do show up as part of the response, however the response config field seems to ignore the config field sent in the request. I see the word "legacy" in the comments of the yaml document, So, the question arises: are these schema definitions up-to-date?
# This defines the 'legacy' `TelegrafConfigDecode` type in the api.
type: object
properties:
name:
type: string
description:
type: string
plugins:
type: array
items:
type: object
properties:
type:
type: string
name:
type: string
alias:
type: string
description:
type: string
config:
type: string
metadata:
type: object
properties:
buckets:
type: array
items:
type: string
config:
type: string
orgID:
type: string
Related Issue
#610
- Dominant language
- Shell
- Stars
- 18
- Forks
- 9
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from influxdata/openapi
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
influxdata/openapi#657 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
influxdata/openapi#653 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
influxdata/openapi#240 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
influxdata/openapi#636 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
influxdata/openapi#622 ·
All issues in influxdata/openapi
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
docs: tutorial 7 still references removed A2AStarletteApplicationPossibly taken @FOWEPJF255 claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
a2aproject/A2A#2321 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
OpenSlides/OpenSlides#7180 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
magicmonty/bash-git-prompt#581 ·