name_query_url

dqsegdb2.api.name_query_url(host, ifo)

Returns the URL to use in querying for flag names

Parameters
hoststr

the URL of the target DQSEGDB2 host

ifostr

the interferometer prefix

Returns
urlstr

the full REST URL to query for information

Examples

>>> from dqsegdb2.api import name_query_url
>>> print(name_query_url('https://segments.ligo.org', 'G1'))
'https://segments.ligo.org/dq/G1'