swh.counters package#
Subpackages#
Submodules#
Module contents#
- swh.counters.get_counters(cls: str, **kwargs: Dict[str, Any]) CountersInterface[source]#
- Get an counters object of class cls with arguments args. - Parameters:
- cls – counters’s class, either ‘local’ or ‘remote’ 
- args – dictionary of arguments passed to the counters class constructor 
 
- Returns:
- an instance of swh.counters’s classes (either local or remote) 
- Raises:
- ValueError if passed an unknown counters class. – 
 
- swh.counters.get_history(cls: str, **kwargs: Dict[str, Any]) HistoryInterface[source]#
- Get a history object of class cls with arguments kwargs. - Parameters:
- cls – history’s class, only ‘prometheus’ is supported actually 
- kwargs – dictionary of arguments passed to the counters class constructor 
 
- Returns:
- an instance of swh.counters.history’s classes (either local or remote) 
- Raises:
- ValueError if passed an unknown history class. –