From 3d7d3efc8697f534305f52e82e1925d86518ee2c Mon Sep 17 00:00:00 2001 From: zhouhao Date: Tue, 14 May 2024 10:41:43 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E4=BC=9A=E8=AF=9D=E7=BB=9F=E8=AE=A1=E6=97=B6=E9=95=BF?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=B8=BAlong?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../session/DeviceSessionMeasurementProvider.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/jetlinks-manager/network-manager/src/main/java/org/jetlinks/community/network/manager/session/DeviceSessionMeasurementProvider.java b/jetlinks-manager/network-manager/src/main/java/org/jetlinks/community/network/manager/session/DeviceSessionMeasurementProvider.java index 7496a24f4..84a33de8e 100644 --- a/jetlinks-manager/network-manager/src/main/java/org/jetlinks/community/network/manager/session/DeviceSessionMeasurementProvider.java +++ b/jetlinks-manager/network-manager/src/main/java/org/jetlinks/community/network/manager/session/DeviceSessionMeasurementProvider.java @@ -176,10 +176,14 @@ public void init() { .registerMetadata( TimeSeriesMetadata.of( metric, + SimplePropertyMetadata.of("type", "type", StringType.GLOBAL), + SimplePropertyMetadata.of("creatorId", "creatorId", StringType.GLOBAL), + SimplePropertyMetadata.of("deviceId", "deviceId", StringType.GLOBAL), + SimplePropertyMetadata.of("productId", "productId", StringType.GLOBAL), SimplePropertyMetadata.of("server", "server", StringType.GLOBAL), - SimplePropertyMetadata.of("duration", "duration", IntType.GLOBAL), - SimplePropertyMetadata.of("count", "count", IntType.GLOBAL), - SimplePropertyMetadata.of("bindings", "bindings", new ArrayType().elementType(StringType.GLOBAL)), + SimplePropertyMetadata.of("name", "name", StringType.GLOBAL), + SimplePropertyMetadata.of("duration", "duration", LongType.GLOBAL), + SimplePropertyMetadata.of("count", "count", LongType.GLOBAL), SimplePropertyMetadata.of("connectTime", "connectTime", DateTimeType.GLOBAL) )) .block(Duration.ofSeconds(30));