Commit 87802cc7 authored by Waleed Akbar's avatar Waleed Akbar
Browse files

Update in KpiValueAPI:

- Updated `GetKpiAlarms()` to return the calculated KPI value along with the threshold.
parent ca690230
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -157,7 +157,7 @@ class KpiValueApiServiceServicerImpl(KpiValueAPIServiceServicer):
                value["window"]["end"], "%Y-%m-%dT%H:%M:%S.%fZ").timestamp()
            response.kpi_id.kpi_id.uuid  = value['kpi_id']
            for key, threshold in value.items():
                if "THRESHOLD_" in key:
                if key not in ['kpi_id', 'window']:
                    response.alarms[key] = threshold

            yield response