Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 2.57 KB

HALResourceEntity.md

File metadata and controls

46 lines (37 loc) · 2.57 KB

HALResourceEntity

HAL Representation of a Waylay Resource

Properties

Name Type Description Notes
links HALResourceEntityAllOfLinks
id ResourceId
resource_type_id ResourceTypeId Id of the linked Resource Type [optional]
parent_id ResourceId Id of the parent Resource [optional]
name str Name for the Resource [optional]
alias str Alias for the name of the Resource [optional]
last_message_timestamp int Epoch time of the last contact [optional]
owner str Owner of the Resource [optional]
tags List[str] Custom classifiers for this Resource. [optional]
provider str [optional]
provider_id str [optional]
customer str Customer name [optional]
firmware str [optional]
location MetadataEntityLocation [optional]
metrics List[ResourceMetric] A documentation of possible measurements that are to be expected on Waylay Events associated with this Resource. [optional]
sensors List[ResourceSensor] Set of sensors that are applicable for a given Resource. Please note that there is no explicit action taken by the Waylay platform on this meta key. The idea behind this abstraction is to assist integrations where an architect of the digital twin can specify which sensors from waylay library are applicable for a given Resource (or Resource Type). [optional]
embedded HALResourceEntityAllOfEmbedded [optional]

Example

from waylay.services.resources.models.hal_resource_entity import HALResourceEntity

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

# convert the object into a dict
hal_resource_entity_dict = hal_resource_entity_instance.to_dict()
# create an instance of HALResourceEntity from a dict
hal_resource_entity_form_dict = hal_resource_entity.from_dict(hal_resource_entity_dict)

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