User
- class perses_api.user.User[source]
Bases:
objectThe class includes all necessary methods to access the Perses users API
- Parameters:
perses_api_model (APIModel) – Inject a Perses API model object that includes all necessary values and information
- delete_user(name: str) None[source]
The method includes a functionality to delete a user by name
- Parameters:
name (str) – Specify the name of the user to delete
- Raises:
ValueError – Missed specifying a necessary value
- get_user(name: str) dict[source]
The method includes a functionality to retrieve a single user by name
- Parameters:
name (str) – Specify the name of the user to retrieve
- Raises:
ValueError – Missed specifying a necessary value
Exception – Unspecified error by executing the API call
- Returns:
The user dict
- Return type: