Skip to content
Snippets Groups Projects
Commit faeed6d7 authored by Waleed Akbar's avatar Waleed Akbar
Browse files

Metric pool sub-module name changed from "RPC" to "KpiManager"

parent a39e8f07
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!207Resolve "(CTTC) Separation of Monitoring"
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment