Astarte.DataAccess.Data (astarte_data_access v1.0.5) View Source
Link to this section Summary
Link to this section Functions
Link to this function
fetch_last_path_update(db_client, device_id, interface_descriptor, mapping, path)
View SourceSpecs
fetch_last_path_update( :cqerl.client(), Astarte.Core.Device.device_id(), %Astarte.Core.InterfaceDescriptor{ aggregation: term(), automaton: term(), interface_id: term(), major_version: term(), minor_version: term(), name: term(), ownership: term(), storage: term(), storage_type: term(), type: term() }, %Astarte.Core.Mapping{ allow_unset: term(), database_retention_policy: term(), database_retention_ttl: term(), description: term(), doc: term(), endpoint: term(), endpoint_id: term(), expiry: term(), explicit_timestamp: term(), interface_id: term(), path: term(), reliability: term(), retention: term(), type: term(), value_type: term() }, String.t() ) :: {:ok, %{value_timestamp: DateTime.t(), reception_timestamp: DateTime.t()}} | {:error, atom()}
Link to this function
fetch_property(db_client, device_id, interface_descriptor, mapping, path)
View SourceSpecs
fetch_property( :cqerl.client(), Astarte.Core.Device.device_id(), %Astarte.Core.InterfaceDescriptor{ aggregation: term(), automaton: term(), interface_id: term(), major_version: term(), minor_version: term(), name: term(), ownership: term(), storage: term(), storage_type: term(), type: term() }, %Astarte.Core.Mapping{ allow_unset: term(), database_retention_policy: term(), database_retention_ttl: term(), description: term(), doc: term(), endpoint: term(), endpoint_id: term(), expiry: term(), explicit_timestamp: term(), interface_id: term(), path: term(), reliability: term(), retention: term(), type: term(), value_type: term() }, String.t() ) :: {:ok, any()} | {:error, atom()}
Link to this function
path_exists?(db_client, device_id, interface_descriptor, mapping, path)
View SourceSpecs
path_exists?( :cqerl.client(), Astarte.Core.Device.device_id(), %Astarte.Core.InterfaceDescriptor{ aggregation: term(), automaton: term(), interface_id: term(), major_version: term(), minor_version: term(), name: term(), ownership: term(), storage: term(), storage_type: term(), type: term() }, %Astarte.Core.Mapping{ allow_unset: term(), database_retention_policy: term(), database_retention_ttl: term(), description: term(), doc: term(), endpoint: term(), endpoint_id: term(), expiry: term(), explicit_timestamp: term(), interface_id: term(), path: term(), reliability: term(), retention: term(), type: term(), value_type: term() }, String.t() ) :: {:ok, boolean()} | {:error, atom()}