You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
swagger: Fix specification for sampling in xy output (#238)
server: Fix SeriesModel xValues swagger definition/serializers/tests
Use xValues for array of longs for x values, e.g. timestamps
Use xCategoires for array of category strings for x values
use XRanges for arrays of range (start/stop) for x values
This simplifies the swagger definition and implemntation for xValues of
SeriesModel for both server and client side.
Update TSP version to 0.6.0
Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Signed-off-by: Siwei Zhang <siwei.zhang@ericsson.com>
Co-authored-by: Siwei Zhang <siwei.zhang@ericsson.com>
Co-authored-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Copy file name to clipboardExpand all lines: trace-server/org.eclipse.tracecompass.incubator.trace.server.jersey.rest.core.tests/src/org/eclipse/tracecompass/incubator/trace/server/jersey/rest/core/tests/webapp/SamplingSerializerTest.java
Copy file name to clipboardExpand all lines: trace-server/org.eclipse.tracecompass.incubator.trace.server.jersey.rest.core/src/org/eclipse/tracecompass/incubator/internal/trace/server/jersey/rest/core/model/Sampling.java
Copy file name to clipboardExpand all lines: trace-server/org.eclipse.tracecompass.incubator.trace.server.jersey.rest.core/src/org/eclipse/tracecompass/incubator/internal/trace/server/jersey/rest/core/model/SeriesModel.java
@Schema(description = "X values as list of int64 values (e.g. timestamps). Example: [100, 200, 350]. Mutually exclusive with xCategories/xRanges.")
48
+
publicList<Long> getXValues();
49
+
50
+
/**
51
+
* @return The X values as list of strings
52
+
*/
53
+
@JsonProperty("xCategories")
54
+
@Schema(description = "X values as list of category strings. Example: [\"READ\", \"WRITE\"]. Mutually exclusive with xValues/xRanges.")
55
+
publicList<String> getXCategories();
56
+
57
+
/**
58
+
* @return The X values as list of ranges
59
+
*/
60
+
@JsonProperty("xRanges")
61
+
@Schema(description = "X values as list of start/end range objects. Example: [{\"start\": 10, \"end\": 20}, {\"start\": 50, \"end\": 75}]. Mutually exclusive with xValues/xCategories.")
Copy file name to clipboardExpand all lines: trace-server/org.eclipse.tracecompass.incubator.trace.server.jersey.rest.core/src/org/eclipse/tracecompass/incubator/internal/trace/server/jersey/rest/core/services/EndpointConstants.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ public final class EndpointConstants {
Copy file name to clipboardExpand all lines: trace-server/org.eclipse.tracecompass.incubator.trace.server.jersey.rest.core/src/org/eclipse/tracecompass/incubator/internal/trace/server/jersey/rest/core/webapp/SamplingSerializer.java
+16-15Lines changed: 16 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,13 @@
26
26
27
27
/**
28
28
* Custom serializer for all Sampling subtypes.
29
-
* - Timestamps → flat array: [1, 2, 3]
30
-
* - Categories → array of strings: ["Read", "Write"]
Copy file name to clipboardExpand all lines: trace-server/org.eclipse.tracecompass.incubator.trace.server.jersey.rest.core/src/org/eclipse/tracecompass/incubator/internal/trace/server/jersey/rest/core/webapp/SeriesModelSerializer.java
0 commit comments