Skip to content
Snippets Groups Projects
Commit 3794a4a2 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

add fetching data from reporting_provider api

parent d583327b
No related branches found
No related tags found
No related merge requests found
import requests
def fetch_services(host):
"""
Fetches the current service state from the Reporting Provider host
"""
r = requests.get(f'{host}/scid/current')
r.raise_for_status()
services = r.json()
return services
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment