All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sunnylabs.report.Reporting Maven / Gradle / Ivy

There is a newer version: 4.8
Show newest version
/**
 * Autogenerated by Avro
 * 
 * DO NOT EDIT DIRECTLY
 */
package sunnylabs.report;

@SuppressWarnings("all")
@org.apache.avro.specific.AvroGenerated
public interface Reporting {
  public static final org.apache.avro.Protocol PROTOCOL = org.apache.avro.Protocol.parse("{\"protocol\":\"Reporting\",\"namespace\":\"sunnylabs.report\",\"types\":[{\"type\":\"record\",\"name\":\"ReportEvent\",\"namespace\":\"sunnylabs.event\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"startTime\",\"type\":\"long\"},{\"name\":\"endTime\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"annotations\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}},{\"name\":\"hosts\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"default\":[]},{\"name\":\"summarizedEvents\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"tags\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"default\":null},{\"name\":\"isUserEvent\",\"type\":[\"null\",\"boolean\"],\"default\":null},{\"name\":\"table\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"default\":\"tsdb\"}]},{\"type\":\"enum\",\"name\":\"DataType\",\"symbols\":[\"DOUBLE\",\"LONG\",\"STRING\",\"NUMERICAL\"]},{\"type\":\"record\",\"name\":\"ReportPoint\",\"fields\":[{\"name\":\"metric\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"timestamp\",\"type\":\"long\"},{\"name\":\"value\",\"type\":[\"double\",\"long\",{\"type\":\"string\",\"avro.java.string\":\"String\"}]},{\"name\":\"host\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"default\":\"unknown\"},{\"name\":\"table\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"default\":\"tsdb\"},{\"name\":\"annotations\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"},\"default\":{}}]},{\"type\":\"record\",\"name\":\"IndexUpdate\",\"fields\":[{\"name\":\"table\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"metricKey\",\"type\":\"bytes\"},{\"name\":\"hostKey\",\"type\":\"bytes\"},{\"name\":\"tagIds\",\"type\":{\"type\":\"array\",\"items\":\"bytes\"}},{\"name\":\"timestamp\",\"type\":\"long\"}]}],\"messages\":{\"reportPoint\":{\"javaAnnotation\":\"com.wavefront.data.Idempotent\",\"request\":[{\"name\":\"point\",\"type\":\"ReportPoint\"}],\"response\":\"null\"},\"reportPoints\":{\"javaAnnotation\":\"com.wavefront.data.Idempotent\",\"request\":[{\"name\":\"points\",\"type\":{\"type\":\"array\",\"items\":\"ReportPoint\"}}],\"response\":\"null\"},\"updateMetricHostTagsIndex\":{\"javaAnnotation\":\"com.wavefront.data.Idempotent\",\"request\":[{\"name\":\"table\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"metricKey\",\"type\":\"bytes\"},{\"name\":\"hostKey\",\"type\":\"bytes\"},{\"name\":\"tagIds\",\"type\":{\"type\":\"array\",\"items\":\"bytes\"}},{\"name\":\"timestamp\",\"type\":\"long\"}],\"response\":\"null\"},\"updateMetricHostTagsIndices\":{\"javaAnnotation\":\"com.wavefront.data.Idempotent\",\"request\":[{\"name\":\"indexUpdates\",\"type\":{\"type\":\"array\",\"items\":\"IndexUpdate\"}}],\"response\":\"null\"}}}");
    @com.wavefront.data.Idempotent
    java.lang.Void reportPoint(sunnylabs.report.ReportPoint point) throws org.apache.avro.AvroRemoteException;
    @com.wavefront.data.Idempotent
    java.lang.Void reportPoints(java.util.List points) throws org.apache.avro.AvroRemoteException;
    @com.wavefront.data.Idempotent
    java.lang.Void updateMetricHostTagsIndex(java.lang.String table, java.nio.ByteBuffer metricKey, java.nio.ByteBuffer hostKey, java.util.List tagIds, long timestamp) throws org.apache.avro.AvroRemoteException;
    @com.wavefront.data.Idempotent
    java.lang.Void updateMetricHostTagsIndices(java.util.List indexUpdates) throws org.apache.avro.AvroRemoteException;

  @SuppressWarnings("all")
  public interface Callback extends Reporting {
    public static final org.apache.avro.Protocol PROTOCOL = sunnylabs.report.Reporting.PROTOCOL;
    void reportPoint(sunnylabs.report.ReportPoint point, org.apache.avro.ipc.Callback callback) throws java.io.IOException;
    void reportPoints(java.util.List points, org.apache.avro.ipc.Callback callback) throws java.io.IOException;
    void updateMetricHostTagsIndex(java.lang.String table, java.nio.ByteBuffer metricKey, java.nio.ByteBuffer hostKey, java.util.List tagIds, long timestamp, org.apache.avro.ipc.Callback callback) throws java.io.IOException;
    void updateMetricHostTagsIndices(java.util.List indexUpdates, org.apache.avro.ipc.Callback callback) throws java.io.IOException;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy