Skip to content

Commit

Permalink
New manip modify invocation effective timeout (#69)
Browse files Browse the repository at this point in the history
Add a manipulation that triggers the
device to set @InvocationEffectiveTimeout less than or equal to the
requested threshold.

# Checklist

The following aspects have been respected by the author of this pull
request, confirmed by both pull request assignee **and** reviewer:

* Changelog update (necessity checked and entry added or not added
respectively)
  * [x] Pull Request Assignee
  * [x] Reviewer
* README update (necessity checked and entry added or not added
respectively)
  * [x] Pull Request Assignee
  * [x] Reviewer

---------

Co-authored-by: Staeck, Philipp <[email protected]>
  • Loading branch information
pstaeck and pstaeck authored Oct 18, 2023
1 parent 8c9a8dc commit 8360b1f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- manipulation SetInvocationEffectiveTimeoutLessThanOrEqualToThreshold for operations
- manipulation SetModeOfOperationAndSetOperatingMode for combined settings
- manipulation ConveyMetricDemoValues for metrics
- manipulation SetAlertConditionAndAlertSignalActivationState for alert activation states
Expand Down
16 changes: 15 additions & 1 deletion src/t2iapi/operation/operation_requests.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ syntax = "proto3";
package t2iapi.operation;

import "t2iapi/operation/types.proto";
import "google/protobuf/duration.proto";

option java_package = "com.draeger.medical.t2iapi.operation";
option java_outer_classname = "OperationRequests";
Expand All @@ -20,4 +21,17 @@ Request to change the devices state, which results in setting the requested Oper
message SetOperatingModeRequest {
string handle = 1;
OperatingMode operating_mode = 2;
}
}

/*
Request to set the @InvocationEffectiveTimeout of the pm:AbstractOperationDescriptor with the given handle to a value
that is less than or equal to the requested threshold.
*/
message SetInvocationEffectiveTimeoutLessThanOrEqualToThresholdRequest {
string handle = 1; // handle of the pm:AbstractOperationDescriptor for which the @InvocationEffectiveTimeout
// shall be set
google.protobuf.Duration threshold = 2; // threshold value for which applies that the @InvocationEffectiveTimeout
// is less than or equal to this threshold value
// threshold value is represented as a count of seconds and fractions of
// seconds at nanosecond resolution
}
7 changes: 7 additions & 0 deletions src/t2iapi/operation/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,11 @@ service OperationService {
rpc SetOperatingMode (t2iapi.operation.SetOperatingModeRequest)
returns (BasicResponse);

/*
Set the @InvocationEffectiveTimeout of the pm:AbstractOperationDescriptor with the given handle to a value that is
less than or equal to the requested threshold.
*/
rpc SetInvocationEffectiveTimeoutLessThanOrEqualToThreshold (
SetInvocationEffectiveTimeoutLessThanOrEqualToThresholdRequest)
returns (BasicResponse);
}

0 comments on commit 8360b1f

Please sign in to comment.