From 16ac34dac9970e53780c512d22c5cea2de8dab69 Mon Sep 17 00:00:00 2001 From: Matthias Hogerheijde Date: Tue, 6 Aug 2024 14:51:29 +0200 Subject: [PATCH] 0.204.0 --- CHANGELOG.md | 10 + asset.proto | 19 +- docs/enum-json/asset.json | 6 + docs/html/asset.html | 2506 +++++++++++++++++++++++- docs/html/asset_service.html | 70 +- docs/html/assignment.html | 70 +- docs/html/event.html | 70 +- docs/html/field_service.html | 70 +- docs/html/value_service.html | 70 +- docs/md/asset.md | 769 +++++++- docs/md/asset_service.md | 16 +- docs/md/assignment.md | 16 +- docs/md/event.md | 16 +- docs/md/field_service.md | 16 +- docs/md/value_service.md | 16 +- event-json-examples/asset-created.json | 12 +- 16 files changed, 3712 insertions(+), 40 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d83e1ec..79567e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog Hiber API +### 0.204 (2024-08-06) + +##### AssetService + +- Added extra information to `Asset.AssignedDevice`: + - `last_message_sent_at` and `last_message_received_at` + - `assignment_time_range` +- Added `Asset.inactive_devices` to list previously assigned devices. + These have less information available than a currently assigned device, but ues the same object type. + ### 0.203 (2024-07-30) ##### AssignmentService diff --git a/asset.proto b/asset.proto index 147749a..85b196e 100644 --- a/asset.proto +++ b/asset.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package hiber.asset; import "google/protobuf/struct.proto"; +import "base.proto"; import "tag.proto"; import "value.proto"; @@ -30,17 +31,26 @@ message Asset { WELL_ANNULUS_C = 3; WELL_ANNULUS_D = 4; WELL_TUBING_HEAD = 5; + WELL_TUBING = 6; + WELL_FLOW_LINE = 7; + WELL_CASING = 8; + WELL_PRODUCTION_CASING_PRESSURE = 9; + WELL_INTERMITTENT_CASING_PRESSURE = 10; + PIPELINE = 11; } - /* A device assigned to an asset. + /* A device assigned to this asset. * Non-operational values that the device produces will be linked to this asset * (i.e. pressure, but not battery level). */ message AssignedDevice { string number = 1; repeated string identifiers = 2; - string name = 3; - string type = 4; + optional string name = 3; + optional string type = 4; + optional Timestamp last_message_sent_at = 5; + optional Timestamp last_message_received_at = 6; + optional TimeRange assignment_time_range = 7; } string identifier = 1; @@ -76,6 +86,9 @@ message Asset { /* Devices assigned to this asset */ repeated AssignedDevice devices = 10; + /* Devices that were assigned to this asset in the past */ + repeated AssignedDevice inactive_devices = 12; + /* The organization that owns this asset. * Typically only relevant if child organizations are included. */ diff --git a/docs/enum-json/asset.json b/docs/enum-json/asset.json index 630c25a..9adb6f9 100644 --- a/docs/enum-json/asset.json +++ b/docs/enum-json/asset.json @@ -8,5 +8,11 @@ , "WELL_ANNULUS_C": "" , "WELL_ANNULUS_D": "" , "WELL_TUBING_HEAD": "" + , "WELL_TUBING": "" + , "WELL_FLOW_LINE": "" + , "WELL_CASING": "" + , "WELL_PRODUCTION_CASING_PRESSURE": "" + , "WELL_INTERMITTENT_CASING_PRESSURE": "" + , "PIPELINE": "" } }] \ No newline at end of file diff --git a/docs/html/asset.html b/docs/html/asset.html index 08b0498..aab660c 100644 --- a/docs/html/asset.html +++ b/docs/html/asset.html @@ -201,6 +201,217 @@

Table of Contents

+
  • + base.proto + +
  • + +
  • tag.proto