From 268820205813e81b8bd77a6ea80b5e0bb5b30ee8 Mon Sep 17 00:00:00 2001 From: jannaste Date: Tue, 24 Oct 2023 07:59:47 +0200 Subject: [PATCH] remove ChangeOperationModeStatus manipulation --- CHANGELOG.md | 4 ++++ src/t2iapi/metric/metric_requests.proto | 8 -------- src/t2iapi/metric/service.proto | 11 ----------- src/t2iapi/metric/types.proto | 9 --------- 4 files changed, 4 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8da171b..b567b71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - gRPC version to 1.58.0 - protoc version to 24.1 +### Removed + +- manipulation ChangeOperationModeStatus for metrics + ## [3.0.0] - 2023-09-11 ### Added diff --git a/src/t2iapi/metric/metric_requests.proto b/src/t2iapi/metric/metric_requests.proto index a67bf97..660f34b 100644 --- a/src/t2iapi/metric/metric_requests.proto +++ b/src/t2iapi/metric/metric_requests.proto @@ -42,14 +42,6 @@ message SetMetricValuesInRangeRequest { string upper = 3; // upper limit for setting the new pm:MetricValue/@Value or @Samples } -/* -Request to change the status of an operation mode. - */ -message ChangeOperationModeStatusRequest { - string handle = 1; // handle of the enum metric, which represents the operation mode - OperationModeStatus operation_mode_status = 2; // defines if the operation mode status shall be applied -} - /* Request a change of the status of a metric. */ diff --git a/src/t2iapi/metric/service.proto b/src/t2iapi/metric/service.proto index 8851667..f4cf64c 100644 --- a/src/t2iapi/metric/service.proto +++ b/src/t2iapi/metric/service.proto @@ -70,17 +70,6 @@ service MetricService { rpc SetMetricValuesInRange (t2iapi.metric.SetMetricValuesInRangeRequest) returns (BasicResponse); - /* - Change the status of an operation mode. - - An operation mode represents a specific behaviour of a device that can be enabled, paused or disabled, - typically by the user. - BICEPS does not provide a model element out of the box that can be used for such a mode, thus the operation mode - is represented by a pm:EnumStringMetricDescriptor, as described by MPKP draft. - */ - rpc ChangeOperationModeStatus (t2iapi.metric.ChangeOperationModeStatusRequest) - returns (BasicResponse); - /* Set the provided measurement, calculation or setting status for the metric of the provided handle. This is not the AbstractMetricState/@ActivationState, but the internal state of the device. diff --git a/src/t2iapi/metric/types.proto b/src/t2iapi/metric/types.proto index cb3f3d9..493220f 100644 --- a/src/t2iapi/metric/types.proto +++ b/src/t2iapi/metric/types.proto @@ -36,15 +36,6 @@ enum GenerationMode{ GENERATION_MODE_DEMO = 2; } -/* -Defines the possible operation mode states according to MPKP draft. - */ -enum OperationModeStatus { - OPERATION_MODE_STATUS_ON = 0; // operation mode is applied - OPERATION_MODE_STATUS_OFF = 1; // operation mode is not applied, but available - OPERATION_MODE_STATUS_PAUSED = 2; // operation mode is not applied, but available -} - /* Defines the possible non-exclusive MODE OF OPERATION according to MPKP (11073-10701-2022). These are represented as an enum metric where the instances of pm:AllowedValue have the pm:Type of: