diff --git a/src/kpi_manager/service/KpiManagerServiceServicerImpl.py b/src/kpi_manager/service/KpiManagerServiceServicerImpl.py index fc1ea3b96ca0610e177a44ffa0e32a48bea8a8b3..4ffa1d2a68978ba74a7fee170a1b17502cbd8404 100644 --- a/src/kpi_manager/service/KpiManagerServiceServicerImpl.py +++ b/src/kpi_manager/service/KpiManagerServiceServicerImpl.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +# do tests to verify the "grpc.ServicerContext" is required or not. import logging, grpc from common.method_wrappers.Decorator import MetricsPool, safe_and_metered_rpc_method from common.proto.context_pb2 import Empty @@ -23,7 +24,7 @@ from monitoring.service import ManagementDBTools LOGGER = logging.getLogger(__name__) -METRICS_POOL = MetricsPool('Monitoring', 'RPC') +METRICS_POOL = MetricsPool('Monitoring', 'KpiManager') class KpiManagerServiceServicerImpl(KpiManagerServiceServicer): def __init__(self, name_mapping : NameMapping): @@ -36,7 +37,7 @@ class KpiManagerServiceServicerImpl(KpiManagerServiceServicer): @safe_and_metered_rpc_method(METRICS_POOL, LOGGER) def SetKpiDescriptor( self, request: KpiDescriptor, grpc_context: grpc.ServicerContext - ) -> KpiId: + ) -> KpiId: response = KpiId() kpi_description = request.kpi_description kpi_sample_type = request.kpi_sample_type