Skip to content

Commit

Permalink
New manip set alert condition and alert signal activation state (#67)
Browse files Browse the repository at this point in the history
// new manipulation SetAlertConditionAndAlertSignalActivationState

# 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
  • Loading branch information
jannast authored Sep 25, 2023
1 parent c581f76 commit 272a40b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- manipulation SetAlertConditionAndAlertSignalActivationState for alert activation states

### Changed

- gRPC version to 1.58.0
Expand Down
13 changes: 13 additions & 0 deletions src/t2iapi/activation_state/activation_state_requests.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,19 @@ message SetAlertActivationRequest {
AlertActivation activation = 2; // value to set as the ActivationState value
}

/*
Request to set the ActivationState for the given alert condition handle and alert signal handle to the
given AlertActivation value.
*/
message SetAlertConditionAndAlertSignalActivationStateRequest {
string alert_condition_handle = 1; // alert condition descriptor handle for which the
// ActivationState shall be set in the corresponding state element
string alert_signal_handle = 2; // alert signal descriptor handle for which the
// ActivationState shall be set in the corresponding state element
AlertActivation alert_condition_activation = 3; // ActivationState value to set for the alert condition
AlertActivation alert_signal_activation = 4; // ActivationState value to set for the alert signal
}

/*
Request for a transition of the value of the ActivationState of the DeviceComponent or Metric with the given handle
from the starting ActivationState value, given as "start_activation", to the final ActivationState value,
Expand Down
10 changes: 10 additions & 0 deletions src/t2iapi/activation_state/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ service ActivationStateService {
rpc ComponentActivationTransition (t2iapi.activation_state.ComponentActivationTransitionRequest)
returns (BasicResponse);

/*
Set the ActivationStates for the given alert condition handle and alert signal handle to the given
AlertActivation values.
The manipulated state shall be persistent until a next manipulation call or an SDC operation invocation.
If the device is not able to maintain the static state, it shall return RESULT_NOT_SUPPORTED.
*/
rpc SetAlertConditionAndAlertSignalActivationState (
t2iapi.activation_state.SetAlertConditionAndAlertSignalActivationStateRequest)
returns (BasicResponse);

/*
Set a SystemSignalActivation for a alert system with the given handle.
*/
Expand Down

0 comments on commit 272a40b

Please sign in to comment.