We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
##must: Auth Session Endpoint Counter
##Simple request of python:
import requests
url = "http://127.0.0.1:8080/api/v1/graph/lastpoint" payload = "[{ "Endpoint": "host1", "Counter":"cpu.idle" }]" #body必须为数组 headers = { 'apitoken': "{"name":"your_name","sig":"your_sig"}", 'x-forwarded-for': "127.0.0.1", 'content-type': "application/json", } response = requests.request("POST", url, data=payload, headers=headers) print(response.text)
##Response Status:200
##Response Data [ { "endpoint": "host1", "counter": "cpu.idle", "value": { "timestamp": 1551853560, "value": 95.309973 } } ]
The text was updated successfully, but these errors were encountered:
不支持多key单vaule或单key多vaule的数组,略坑!
Sorry, something went wrong.
No branches or pull requests
##must:
Auth Session
Endpoint
Counter
##Simple request of python:
import requests
url = "http://127.0.0.1:8080/api/v1/graph/lastpoint"
payload = "[{ "Endpoint": "host1", "Counter":"cpu.idle" }]" #body必须为数组
headers = {
'apitoken': "{"name":"your_name","sig":"your_sig"}",
'x-forwarded-for': "127.0.0.1",
'content-type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
##Response
Status:200
##Response Data
[
{
"endpoint": "host1",
"counter": "cpu.idle",
"value": {
"timestamp": 1551853560,
"value": 95.309973
}
}
]
The text was updated successfully, but these errors were encountered: