Skip to content

Commit

Permalink
test value of type string
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoineausf committed Sep 6, 2023
1 parent 77a6c58 commit 9ae3bdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ else if ( protobuf )
{
LOG.info( String.format( "carbonapi request: found value [%s]",
( value == null ? "null" : (double) value ) ) );
metricsSeriesBuilder = metricsSeriesBuilder.addValues( value ).addIsAbsent( false );
metricsSeriesBuilder = metricsSeriesBuilder
.addValues( value == null ? "null" : String.format( "%d", value ) ).addIsAbsent( false );
}

MetricsResponse.Series metricsSeries = metricsSeriesBuilder.build();
Expand Down
2 changes: 1 addition & 1 deletion carbonj.service/src/main/protobuf/MetricsResponse.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ message Series {
required int32 start = 2;
required int32 end = 3;
required int32 step = 4;
repeated double values = 5;
repeated string values = 5;
repeated bool isAbsent = 6;
}

Expand Down

0 comments on commit 9ae3bdc

Please sign in to comment.