Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetComponentActivationAndSetOperatingMode and SetAlertActivationAndSe… #62

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- manipulation SetComponentActivationAndSetOperatingMode for components and operations
- manipulation SetAlertActivationAndSetOperatingMode for alerts and operations
- manipulation TransitionFromCreateStateWithIdentificationToRemoveIdentification for contexts
- manipulation TransitionFromCreateStateWithIdentificationToChangeIdentification for contexts
- manipulation TransitionProvideValueToExpressNoValueAvailable for metrics
Expand Down
26 changes: 26 additions & 0 deletions src/t2iapi/combined/combined_requests.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,29 @@ message CreateContextStateWithAssociationAndSetOperatingModeRequest {
// shall be set
t2iapi.operation.OperatingMode operating_mode = 4; // the requested @OperatingMode value of the operation state
}

/*
Request to create a new or adapt an existing component activation state to the given ComponentActivation value and
set the requested @OperatingMode for the referenced operation.
*/
NerijusKondrotas marked this conversation as resolved.
Show resolved Hide resolved
message SetComponentActivationAndSetOperatingModeRequest {
string component_metric_descriptor_handle = 1; // descriptor handle of the descriptor for which the ActivationState
// shall be set in the corresponding state element
ComponentActivation activation = 2; // value to set as the ActivationState value
NerijusKondrotas marked this conversation as resolved.
Show resolved Hide resolved
string operation_descriptor_handle = 3; // the operation descriptor handle for which the @OperatingMode value
// shall be set
t2iapi.operation.OperatingMode operating_mode = 4; // the requested @OperatingMode value of the operation state
}

/*
Request to create a new or adapt an existing alert activation state to the given AlertActivation value and
set the requested @OperatingMode for the referenced operation.
*/
NerijusKondrotas marked this conversation as resolved.
Show resolved Hide resolved
message SetAlertActivationAndSetOperatingModeRequest {
string alert_descriptor_handle = 1; // descriptor handle of the descriptor for which the ActivationState shall be
// set in the corresponding state element
AlertActivation activation = 2; // value to set as the ActivationState value
NerijusKondrotas marked this conversation as resolved.
Show resolved Hide resolved
string operation_descriptor_handle = 3; // the operation descriptor handle for which the @OperatingMode value
// shall be set
t2iapi.operation.OperatingMode operating_mode = 4; // the requested @OperatingMode value of the operation state
}
NerijusKondrotas marked this conversation as resolved.
Show resolved Hide resolved
22 changes: 22 additions & 0 deletions src/t2iapi/combined/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,26 @@ service CombinedService {
rpc CreateContextStateWithAssociationAndSetOperatingMode (
t2iapi.combined.CreateContextStateWithAssociationAndSetOperatingModeRequest)
returns (t2iapi.context.CreateContextStateWithAssociationResponse);

/*
Request to create a new or adapt an existing component activation state to the given ComponentActivation value and
set the requested @OperatingMode for the referenced operation.
The component state @Handle which was created or adapted shall be returned.
The manipulated states shall be persistent until a next manipulation call or an SDC operation invocation.
If the device is not able to maintain the static states, it shall return RESULT_NOT_SUPPORTED.
*/
NerijusKondrotas marked this conversation as resolved.
Show resolved Hide resolved
rpc SetComponentActivationAndSetOperatingMode (
t2iapi.combined.SetComponentActivationAndSetOperatingModeRequest)
returns (t2iapi.context.SetComponentActivationAndSetOperatingModeResponse);
NerijusKondrotas marked this conversation as resolved.
Show resolved Hide resolved

/*
Request to create a new or adapt an existing alert activation state to the given AlertActivation value and
set the requested @OperatingMode for the referenced operation.
The alert state @Handle which was created or adapted shall be returned.
The manipulated states shall be persistent until a next manipulation call or an SDC operation invocation.
If the device is not able to maintain the static states, it shall return RESULT_NOT_SUPPORTED.
*/
NerijusKondrotas marked this conversation as resolved.
Show resolved Hide resolved
rpc SetAlertActivationAndSetOperatingMode (
t2iapi.combined.SetAlertActivationAndSetOperatingModeRequest)
returns (t2iapi.context.SetAlertActivationAndSetOperatingModeResponse);
NerijusKondrotas marked this conversation as resolved.
Show resolved Hide resolved
}