version_query_url

dqsegdb2.api.version_query_url(host, ifo, name)

Returns the URL to use in querying for flag versions

Parameters
hoststr

the URL of the target DQSEGDB2 host

ifostr

the interferometer prefix

namestr

the name of the flag

Returns
urlstr

the full REST URL to query for information

Examples

>>> from dqsegdb2.api import version_query_url
>>> print(version_query_url('https://segments.ligo.org', 'G1',
...                         'GEO-SCIENCE'))
'https://segments.ligo.org/dq/G1/GEO-SCIENCE'