[Hawkular-commits] [hawkular/hawkular-metrics] cf849d: [HWKMETRICS-24] /data endpoint became too complex ...

Stefan Negrea snegrea at redhat.com
Fri Apr 1 12:07:29 EDT 2016


  Branch: refs/heads/HWKMETRICS-24
  Home:   https://github.com/hawkular/hawkular-metrics
  Commit: cf849da4dc860a9966df821a42e266fc15e4f563
      https://github.com/hawkular/hawkular-metrics/commit/cf849da4dc860a9966df821a42e266fc15e4f563
  Author: Stefan Negrea <snegrea at redhat.com>
  Date:   2016-04-01 (Fri, 01 Apr 2016)

  Changed paths:
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/handler/AvailabilityHandler.java
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/handler/CounterHandler.java
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/handler/GaugeHandler.java
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/handler/MetricHandler.java
    M clients/ptranslator/ptrans.conf
    M clients/ptranslator/src/assembly/dist/assets/ptrans.conf
    M clients/ptranslator/src/main/java/org/hawkular/metrics/clients/ptrans/Configuration.java
    M clients/ptranslator/src/test/java/org/hawkular/metrics/clients/ptrans/backend/MetricsSenderITest.java
    M clients/ptranslator/src/test/java/org/hawkular/metrics/clients/ptrans/data/ServerDataHelper.java
    M clients/ptranslator/src/test/java/org/hawkular/metrics/clients/ptrans/fullstack/FullStackITest.java
    M clients/ptranslator/src/test/resources/ptrans.conf
    M integration-tests/rest-tests-jaxrs/src/test/groovy/org/hawkular/metrics/rest/AvailabilityITest.groovy
    M integration-tests/rest-tests-jaxrs/src/test/groovy/org/hawkular/metrics/rest/AvailabilityMetricStatisticsITest.groovy
    M integration-tests/rest-tests-jaxrs/src/test/groovy/org/hawkular/metrics/rest/BaseITest.groovy
    M integration-tests/rest-tests-jaxrs/src/test/groovy/org/hawkular/metrics/rest/CORSITest.groovy
    M integration-tests/rest-tests-jaxrs/src/test/groovy/org/hawkular/metrics/rest/CassandraBackendITest.groovy
    M integration-tests/rest-tests-jaxrs/src/test/groovy/org/hawkular/metrics/rest/CountersITest.groovy
    M integration-tests/rest-tests-jaxrs/src/test/groovy/org/hawkular/metrics/rest/ErrorsITest.groovy
    M integration-tests/rest-tests-jaxrs/src/test/groovy/org/hawkular/metrics/rest/GaugeMetricStatisticsITest.groovy
    M integration-tests/rest-tests-jaxrs/src/test/groovy/org/hawkular/metrics/rest/GaugesITest.groovy
    M integration-tests/rest-tests-jaxrs/src/test/groovy/org/hawkular/metrics/rest/MetricsITest.groovy
    M integration-tests/rest-tests-jaxrs/src/test/groovy/org/hawkular/metrics/rest/RESTTest.groovy

  Log Message:
  -----------
  [HWKMETRICS-24] /data endpoint became too complex to maintain since it was serving two purposes (retreive raw and statistical data). This is also consfusing to users because the decision as to what data to return was made at runtime based on the parameters.

Here are the changes in this commit:
1) all /data APIs have been deprecated
2) POST /data has been moved to POST /raw
3) GET $id/data has been split into two
  a) $id/raw - to retrieve raw data
  b) $id/stats - to retrieve bucketed/statistical data
4) Documentation for deprecated APIs has been updated to point to the new APIs.




More information about the hawkular-commits mailing list