Source code for mattermostautodriver.endpoints.usage

from ._base import Base
from typing import Any, BinaryIO

__all__ = ["Usage"]


[docs]class Usage(Base):
[docs] def get_posts_usage(self): """Get current usage of posts `Read in Mattermost API docs (usage - GetPostsUsage) <https://developers.mattermost.com/api-documentation/#/operations/GetPostsUsage>`_ """ return self.client.get("""/api/v4/usage/posts""")
[docs] def get_storage_usage(self): """Get the total file storage usage for the instance in bytes. `Read in Mattermost API docs (usage - GetStorageUsage) <https://developers.mattermost.com/api-documentation/#/operations/GetStorageUsage>`_ """ return self.client.get("""/api/v4/usage/storage""")