Skip to content

Commit

Permalink
0.204.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogerheijde committed Aug 6, 2024
1 parent eef50f4 commit 16ac34d
Show file tree
Hide file tree
Showing 16 changed files with 3,712 additions and 40 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
19 changes: 16 additions & 3 deletions asset.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ syntax = "proto3";
package hiber.asset;

import "google/protobuf/struct.proto";
import "base.proto";
import "tag.proto";
import "value.proto";

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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.
*/
Expand Down
6 changes: 6 additions & 0 deletions docs/enum-json/asset.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": ""
}
}]
Loading

0 comments on commit 16ac34d

Please sign in to comment.