Unanswered
Hi Everyone,
We Are Using Clearml In Our Setup.
I Am Trying To Retrieve Workers And Gpu Utilization From Clearml Api. Can I Get Info How Do I Get Api Token For That And What Endpoints Should Be Useful In That Case?
I Need To Retrieve Busy Workers For A Sp
Thanks for the reply.
So, all requests should be post even when I'm trying to collect data?
For https://clear.ml/docs/latest/docs/references/api/workers#post-workersget_activity_report
when I am trying this
`
import requests, json
from requests.auth import HTTPBasicAuth
request_body = {
"from_date": "1665867715",
"interval": "3600",
"to_date": "1666213315"
}
url = web_server+"/workers.get_activity_report"
response = requests.get(url, auth=HTTPBasicAuth(access_key, secret_key), json=request_body) `I get response as 200
but response.json() throwing error
response.content showing html page output.
What am I missing?
I tried with requests.post but then I got 405 Not Allowed
162 Views
0
Answers
one year ago
one year ago