Package io.sentry.protocol
Class MetricSummary
java.lang.Object
io.sentry.protocol.MetricSummary
- All Implemented Interfaces:
JsonSerializable
,JsonUnknown
A summary for a metric, usually attached to spans.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
-
Constructor Summary
ConstructorDescriptionMetricSummary
(double min, double max, double sum, int count, @Nullable Map<String, String> tags) -
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
double
getMax()
double
getMin()
double
getSum()
getTags()
void
serialize
(@NotNull ObjectWriter writer, @NotNull ILogger logger) void
setCount
(int count) void
setMax
(double max) void
setMin
(double min) void
setSum
(double sum) void
void
setUnknown
(@Nullable Map<String, Object> unknown)
-
Constructor Details
-
MetricSummary
public MetricSummary() -
MetricSummary
-
-
Method Details
-
setTags
-
setMin
public void setMin(double min) -
setMax
public void setMax(double max) -
setCount
public void setCount(int count) -
setSum
public void setSum(double sum) -
getMin
public double getMin() -
getMax
public double getMax() -
getSum
public double getSum() -
getCount
public int getCount() -
getTags
-
getUnknown
- Specified by:
getUnknown
in interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknown
in interfaceJsonUnknown
-
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-