Skip to content

Commit

Permalink
add min/max last update properties
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarman committed Jun 2, 2017
1 parent 0744010 commit 1a52afa
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/cbapi/response/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2536,13 +2536,41 @@ def last_update(self):
"""
return convert_from_solr(self.get('last_update', -1))

@property
def min_last_update(self):
"""
Returns a pretty version of the earliest event in this process segment
"""
return convert_from_solr(self.get('last_update', -1))

@property
def max_last_update(self):
"""
Returns a pretty version of the latest event in this process segment
"""
return convert_from_solr(self.get('last_update', -1))

@property
def last_server_update(self):
"""
Returns a pretty version of when this process last updated
"""
return convert_from_solr(self.get('last_server_update', -1))

@property
def min_last_server_update(self):
"""
Returns a pretty version of the earliest event in this process segment
"""
return convert_from_solr(self.get('min_last_server_update', -1))

@property
def max_last_server_update(self):
"""
Returns a pretty version of the latest event in this process segment
"""
return convert_from_solr(self.get('max_last_server_update', -1))

@property
def username(self):
"""
Expand Down

0 comments on commit 1a52afa

Please sign in to comment.