epicsarchiver.statistics.services.channelfinder
Minimal Channel Finder interface for calculating archiver statistics.
Attributes
Exceptions
Exception raised when error running requests against the channelfinder. |
Classes
Outline class of a channel finder channel data. |
|
Outline class of a channel finder channel data. |
|
Minimal Channel Finder client. |
Functions
|
Module Contents
- epicsarchiver.statistics.services.channelfinder.LOG: logging.Logger[source]
- class epicsarchiver.statistics.services.channelfinder.Channel[source]
Outline class of a channel finder channel data.
- Returns:
includes name, properties and tags of a channel.
- Return type:
- class epicsarchiver.statistics.services.channelfinder.ScrollChannels[source]
Outline class of a channel finder channel data.
- Returns:
includes name, properties and tags of a channel.
- Return type:
- exception epicsarchiver.statistics.services.channelfinder.ChannelFinderRequestError[source]
Bases:
BaseExceptionException raised when error running requests against the channelfinder.
- epicsarchiver.statistics.services.channelfinder._channel_list_to_dict(channels: list[Channel], pvs_set: set[str] | None) dict[str, Channel][source]
- class epicsarchiver.statistics.services.channelfinder.ChannelFinder(hostname: str = 'localhost')[source]
Bases:
epicsarchiver.common.async_service.ServiceClientMinimal Channel Finder client.
Hold a session to the Channel Finder web application.
- Parameters:
hostname – Channel Finder url [default: localhost]
Examples:
from epicsarchiver.channelfinder import ChannelFinder channelfinder = ChannelFinder("channelfinder.tn.esss.lu.se") channel = channelfinder.get_channels(["AccPSS::FBIS-BP_A"])
- __repr__() str[source]
String representation of Channel Finder.
- Returns:
details including hostname of Channel Finder.
- Return type:
- async get_channels(pvs: set[str] | None, properties: dict[str, str] | None = None) list[Channel][source]
Get the list of channels matching the pv name from channelfinder.
- async get_channels_chunked(pvs: list[str] | None, properties: dict[str, str] | None = None, chunk_size: int = 10) dict[str, Channel][source]
Get the list of channels matching the pv names from channelfinder.
- async get_ioc_channels(ioc_name: str) list[Channel][source]
Get the list of channels with the specified ioc_name.