| |
Methods defined here:
- __init__(self)
- Initialize self. See help(type(self)) for accurate signature.
- getMeasurements(self, monitorUrl, authToken)
- Method to get measurements from single monitor
:param monitorUrl: Url of single monitor from where are served measurements
:param authToken: Authorization token given from JWT server
:type monitorUrl: str
:type authToken: str
:return: returns response parsed as JSON
- getResponse(self)
- Abstract response analyzer. It detects positive or negative result of request
:return: returns response parsed as JSON if HTTP code is equal to 201
- login(self, serverUrl, username, password)
- Method to get authorization token from JWT server
:param serverUrl: Url of JWT authorization server
:param username: Name of user who wants to be logged
:param password: Password of user who wants to be logged
:type serverUrl: str
:type username: str
:type password: str
:return: returns response parsed as JSON (fields: message, auth_token)
- register(self, serverUrl, username, password)
- Method to retister in JWT server
:param serverUrl: Url of JWT authorization server
:param username: Name of user who wants to be logged
:param password: Password of user who wants to be logged
:type serverUrl: str
:type username: str
:type password: str
:return: returns response parsed as JSON (fields: message, auth_token)
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|