Class MetricSummary

java.lang.Object
io.sentry.protocol.MetricSummary
All Implemented Interfaces:
JsonSerializable, JsonUnknown

public final class MetricSummary extends Object implements JsonUnknown, JsonSerializable
A summary for a metric, usually attached to spans.
  • Constructor Details

    • MetricSummary

      public MetricSummary()
    • MetricSummary

      public MetricSummary(double min, double max, double sum, int count, @Nullable @Nullable Map<String,String> tags)
  • Method Details

    • setTags

      public void setTags(@Nullable @Nullable Map<String,String> tags)
    • 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

      @Nullable public @Nullable Map<String,String> getTags()
    • getUnknown

      @Nullable public @Nullable Map<String,Object> getUnknown()
      Specified by:
      getUnknown in interface JsonUnknown
    • setUnknown

      public void setUnknown(@Nullable @Nullable Map<String,Object> unknown)
      Specified by:
      setUnknown in interface JsonUnknown
    • serialize

      public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException
      Specified by:
      serialize in interface JsonSerializable
      Throws:
      IOException