Ejemplo n.º 1
0
    def get_created_date(self):
        """Returns the creation datetime of the dashboard

        Returns:
            datetime: The created datetime
        """
        return PySenseUtils.sisense_time_to_python(self.json['created'])
Ejemplo n.º 2
0
    def get_last_login(self):
        """Returns the time the user last logged in.

        Returns:
            datetime: The datetime the user last logged in
        """

        return PySenseUtils.sisense_time_to_python(self.json['lastLogin'])
Ejemplo n.º 3
0
    def get_last_update(self):
        """Get the plugins last update time.

        Returns:
            datetime: The time the plugin was last updated
        """

        return PySenseUtils.sisense_time_to_python(self.json['lastUpdate'])
Ejemplo n.º 4
0
    def get_last_opened(self):
        """Returns the last opened time for the dashboard

        Returns:
            datetime: The last opened datetime
        """

        if 'lastOpened' in self.json:
            return PySenseUtils.sisense_time_to_python(self.json['lastOpened'])
        else:
            return None