Consistent resource.prop for timestamps and booleans (metric)

This patch set updates all metric objects to use consistent
resource.prop for timestamps and booleans. In particular, the
following changes were made:
  - Clarify documentation for timestamp and boolean attributes

Change-Id: Icd5b55eb072dc68935b5378db7ec0965f3b06e73
Partial-Bug: #1544584
This commit is contained in:
Richard Theis 2016-03-07 13:27:35 -06:00
parent 1417c9a3a3
commit 45a9cab653
1 changed files with 2 additions and 0 deletions

View File

@ -37,9 +37,11 @@ class Generic(resource.Resource):
#: The ID of the project
project_id = resource.prop('project_id')
#: Timestamp when this resource was started
#: *Type: datetime object parsed from ISO 8601 formatted string*
started_at = resource.prop('started_at',
type=format.ISO8601)
#: Timestamp when this resource was ended
#: *Type: datetime object parsed from ISO 8601 formatted string*
ended_at = resource.prop('ended_at',
type=format.ISO8601)
#: A dictionary of metrics collected on this resource