Skip to content

Commit fab9b92

Browse files
committed
Expose USGS Water refresh interval
1 parent 900ba92 commit fab9b92

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

publishers/usgs_water/bootstrap_usgs_water.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
# Series semantics
8585
STATISTIC_INSTANTANEOUS = "00011"
8686
STATISTIC_INSTANTANEOUS_NAME = "Instantaneous"
87+
PUBLISH_INTERVAL_SECONDS = 900
8788

8889

8990
def _load_stations() -> list[dict]:
@@ -532,6 +533,27 @@ def _system_sml(station: dict) -> dict:
532533
},
533534
],
534535
"capabilities": [
536+
{
537+
"definition": "http://www.w3.org/ns/ssn/systems/SystemCapability",
538+
"label": "Publisher Capabilities",
539+
"capabilities": [
540+
{
541+
"type": "Quantity",
542+
"name": "publish_interval",
543+
"definition": "http://qudt.org/vocab/quantitykind/Period",
544+
"label": "Publish Interval",
545+
"uom": {"code": "s"},
546+
"value": PUBLISH_INTERVAL_SECONDS,
547+
},
548+
{
549+
"type": "Text",
550+
"name": "source_query_mode",
551+
"definition": "http://sensorml.com/ont/swe/property/ReportingFrequency",
552+
"label": "Source Query Mode",
553+
"value": "Latest USGS Water instantaneous discharge and gage-height values polled from OGC API continuous observations",
554+
},
555+
],
556+
},
535557
{
536558
"definition": "http://www.w3.org/ns/ssn/systems/SystemCapability",
537559
"label": "Published Datastreams",

0 commit comments

Comments
 (0)