Skip to content

Commit

Permalink
refactor: 修改设备会话统计时长类型为long
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-hao committed May 14, 2024
1 parent 9157c88 commit 3d7d3ef
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 3d7d3ef

Please sign in to comment.