Skip to content

Instantly share code, notes, and snippets.

@pavolloffay
Last active April 8, 2016 15:55
Show Gist options
  • Save pavolloffay/681d10a1568df365a101 to your computer and use it in GitHub Desktop.
Save pavolloffay/681d10a1568df365a101 to your computer and use it in GitHub Desktop.
Datamining
curl -ivX POST -H 'Hawkular-Tenant: jdoe' -H 'Content-Type: application/json' 'http://localhost:8080/hawkular/datamining/metrics' -d '{"metricId": "metric1", "collectionInterval": "15" }'
curl -ivX PUT -H 'Hawkular-Tenant: jdoe' -H 'Content-Type: application/json' 'http://localhost:8080/hawkular/datamining/metrics/metric1' -d '{"collectionInterval": "22", "forecastingHorizon": 66 }'
curl -ivX PUT -H 'Hawkular-Tenant: jdoe' -H 'Content-Type: application/json' 'http://localhost:8080/hawkular/datamining/metrics/metric1/forecaster' -d '{"windowSize" : "150"}'
curl -ivX PUT -H 'Hawkular-Tenant: jdoe' -H 'Content-Type: application/json' 'http://localhost:8080/hawkular/datamining/metrics/metric1/forecaster' -d '{"ic" : "BIC"}'
curl -ivX PUT -H 'Hawkular-Tenant: jdoe' -H 'Content-Type: application/json' 'http://localhost:8080/hawkular/datamining/metrics/metric1/forecaster' -d '{"modelToUse" : "SimpleExponentialSmoothing"}'
curl -ivX PUT -H 'Hawkular-Tenant: jdoe' -H 'Content-Type: application/json' 'http://localhost:8080/hawkular/datamining/metrics/metric1/forecaster' -d '{"conceptDriftStrategy" : {"period": "69"}}'
curl -ivX GET -H 'Hawkular-Tenant: jdoe' -H 'Content-Type: application/json' 'http://localhost:8080/hawkular/datamining/metrics/metric1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment