3.1.4
Type: string
Type: string
Type: {ringserverVersion: string, serverId: string}
Type: {accessTime: DateTime, streams: Array<StreamStat>}
(DateTime)
(Array<StreamStat>)
Type: string
Web connection to a Ringserver.
(string?)
optional host to connect to, defaults to IRIS. This maybe a full URL.
(number?)
optional host to connect to, defaults to 80
Gets/Sets the remote host to connect to.
(string?)
optional new value if setting
RingserverConnection
:
new value if getting, this if setting
Gets/Sets the remote port to connect to.
(number?)
optional new value if setting
(number | RingserverConnection)
:
new value if getting, this if setting
Get/Set the timeout in seconds for the request. Default is 30.
(number?)
optional new value if setting
RingserverConnection
:
new value if getting, this if setting
Pulls id result from ringserver /id parsed into an object with 'ringserverVersion' and 'serverId' fields.
Promise<RingserverVersion>
:
Result as a Promise.
Use numeric level (1-6) to pull just IDs from ringserver. In a default ringserver, level=1 would return all networks like CO and level=2 would return all stations like CO_JSC If level is falsy/missing, level=6 is used. The optional matchPattern is a regular expression, so for example '.+_JSC_00_HH.' would get all HH? channels from any station name JSC.
Promise<Array<string>>
:
Result as a Promise.
Pull streams, including start and end times, from the ringserver. The optional matchPattern is a regular expression, so for example '.+_JSC_00_HH.' would get all HH? channels from any station name JSC. Result returned is an Promise.
(string)
regular expression to match
Promise<StreamsResult>
:
promise to object with 'accessTime' as a DateTime
and 'streams' as an array of StreamStat objects.
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.
(Array<StreamStat>)
array of channel level StreamStats
Array<StreamStat>
:
array of station level StreamStats
(string)
(NslcId)
Split type, networkCode, stationCode, locationCode and channelCode from a ringserver id formatted like net_sta_loc_chan/type
(string)
id string to split
NslcWithType
:
object with the split fields
Object to hold start and end times for a key, usually channel or station.
Type: DateTime
Type: DateTime
Calculates latency time difference between last packet and current time.
(DateTime?)
time latency is calculated relative to
Duration
:
latency