SEEDLINK_PATH

Type: string

DATALINK_PATH

Type: string

RingserverVersion

src/ringserverweb.ts
RingserverVersion

Type: {ringserverVersion: string, serverId: string}

Properties
ringserverVersion (string)
serverId (string)
StreamsResult

Type: {accessTime: DateTime, streams: Array<StreamStat>}

Properties
accessTime (DateTime)
streams (Array<StreamStat>)
IRIS_HOST

Type: string

RingserverConnection

src/ringserverweb.ts

Web connection to a Ringserver.

new RingserverConnection(host: string?, port: number?)
Parameters
host (string?) optional host to connect to, defaults to IRIS. This maybe a full URL.
port (number?) optional host to connect to, defaults to 80
Instance Members
host(value?)
getHost()
port(value?)
getPort()
timeout(value?)
getTimeout()
pullId()
pullStreamIds(level, matchPattern)
pullStreams(matchPattern)
pullRaw(url)
getDataLinkURL()
getSeedLinkURL()
formBaseURL()
formIdURL()
formStreamsURL(queryParams?)
formStreamIdsURL(queryParams)

stationsFromStreams

src/ringserverweb.ts

Extract one StreamStat per station from an array of channel level StreamStats. The start and end times are the min and max times for all the channels within the station. Can be used to get most time of most recent packet from the stations to give an idea of current latency.

stationsFromStreams(streams: Array<StreamStat>): Array<StreamStat>
Parameters
streams (Array<StreamStat>) array of channel level StreamStats
Returns
Array<StreamStat>: array of station level StreamStats
new NslcWithType(type: string, nslc: NslcId)
Parameters
type (string)
nslc (NslcId)
Instance Members
nslc

Split type, networkCode, stationCode, locationCode and channelCode from a ringserver id formatted like net_sta_loc_chan/type

nslcSplit(id: string): NslcWithType
Parameters
id (string) id string to split
Returns
NslcWithType: object with the split fields

Object to hold start and end times for a key, usually channel or station.

new StreamStat(key: string, start: string, end: string)
Parameters
key (string) id, usually station or channel
start (string) start time
end (string) end time
Instance Members
startRaw
endRaw
start
end
calcLatency(accessTime?)