Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.03 KB

ResourceEvent.md

File metadata and controls

31 lines (22 loc) · 1.03 KB

ResourceEvent

Measurement object with resource identifier and optional timestamp.

Properties

Name Type Description Notes
resource str Primary identifier of a Resource
timestamp EventTimestamp [optional]

Example

from waylay.services.data.models.resource_event import ResourceEvent

# TODO update the JSON string below
json = "{}"
# create an instance of ResourceEvent from a JSON string
resource_event_instance = ResourceEvent.from_json(json)
# print the JSON string representation of the object
print ResourceEvent.to_json()

# convert the object into a dict
resource_event_dict = resource_event_instance.to_dict()
# create an instance of ResourceEvent from a dict
resource_event_form_dict = resource_event.from_dict(resource_event_dict)

[Back to Model list] [Back to API list] [Back to README]