Description
The metrics web service returns an overview of all metrics requested that are either generally available, or that have measurements for the channels or times specified.
Query Parameters
Metrics Descriptions
The metrics service provides descriptions for metrics available through the measurements service. For summaries of each metric and links to more detailed documentation, select the Current list of all metrics button above.
Metrics Not Described by the metrics Service
MUSTANG also includes metrics that are not described by the metrics service, but can be found as separate services by referring to https://service.earthscope.org/mustang. They include
Channel Options
Specifying channels is optional for the metrics service. When channels and times are absent from the query, the service returns a description of the requested metric(s). If channel options are included, the service will only return a metric description of the requested metric exists for any of the specified channels.
There are two ways to define desired channels when requesting metric descriptions:
- target – labeled as N.S.L.C.Q (SEED Network.Station.Location.Channel.Quality)
&target=IU.ANMO.00.BHZ.M
- SNCLQ filter – where the SNCLQ (SEED Sta[tion], Net[work], Chan[nel], Loc[ation] and Qual[ity]) are listed as separate key/value parameters in any order:
&net=IU&sta=ANMO&loc=00&chan=BHZ&qual=M
SNCLQ filter parameters are optional. Omitting a parameter (e.g. channel) is equivalent to wildcarding (&channel=*) and returns metric descriptions that match any name.
Both channel options accept virtual networks, such as _GSN, but the station name is ignored and metric descriptions matching any station is returned. An exception to this occurs when a station list is provided – the metrics service returns an error.
All SEED data in the IRIS archive is now stored as M-quality (merged) data. It represents the most complete and best-quality version of the original data received. All measurements except the latency measurements are calculated using archived data, and so have quality M. Latency metrics run on real time data before it is archived and has quality D or R.
Time Constraints
Specifying time constraints is optional for the metrics service. When channels and times are absent from the query, the service returns a description of the requested metric(s). If time constraints are included, the service will only return a metric description of the requested metric exists during any of the specified time span.
Output Format
The metrics service offers these output formats to facilitate readability for both people and web service software:
- HTML (default)
HTML (Hypertext Markup Language) is a markup language designed for web exchange and display.
- XML
XML (Extensible Markup Language) is a human- and machine-readable markup language.
- XSD
XSD (XML Schema Definition) is a description of the schema returned as XML for this service.
Server Response
It’s possible to choose which HTTP status code the service returns when the query is successful but there is no data to return. Although status code 204 is defined as describing this case, browsers receiving status code 204 do not refresh their previous contents, so it can be difficult to tell that the query completed successfully. Selecting status code 404 when there is no data to return causes the browsers to refresh and display a blank or nearly blank page. Note that the URL Builder
always appeands &nodata=404
to each query.
Problems with this service?
Please send an email report of which service you were using, your URL query, and any error feedback to:
[email protected]
We will address your issue as soon as possible.