1.4 KiB
1.4 KiB
Search Channels
Example search request:
curl "https://data-api.psi.ch/api/4/search/channel?nameRegex=S10CB08-KBOC-HP.*PI-OUT"
Parameters:
nameRegexsearches for a channel name by regular expression.backendrestricts search to the given backend (optional).icase=trueuses case-insensitive search (optional, default case-sensitive).
Example response:
{
"channels": [
{
"backend": "sf-archiver",
"name": "S10CB08-KBOC-HPPI1:PI-OUT",
"seriesId": 6173407188734815544,
"source": "",
"type": "f64",
"shape": [],
"unit": "",
"description": ""
}
]
}
The response contains a list of matching channels. For each channel, the search returns:
backendnameseriesId: a 63 bit id which identifies the combination of name, type and shape in a unique way within a backend. Therefore, if the type of a channel changes, it will also generate an additional newseriesId.type: the scalar data type, for examplei16,u64,f32,enum,string,bool.shape: a[]means scalar, a[512]indicates a 512 element waveform.
Note that "source", "unit" and "description" are in the return value for historical reasons. Unfortunately, the data is often not available, and in general may also change over time. Therefore, "source", "unit" and "description" are deprecated and will get removed.