Last active
January 5, 2016 16:35
-
-
Save pavolloffay/6be31935ccb08acf5407 to your computer and use it in GitHub Desktop.
Inventory relationships, Predictions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#tenant | |
curl -ivX GET 'http://jdoe:password@localhost:8080/hawkular/inventory/tenant' | |
{ | |
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf", | |
"id" : "28026b36-8fe4-4332-84c8-524e173a68bf" | |
* Connection #0 to host localhost left intact | |
} | |
#relationships | |
curl -ivX GET 'http://jdoe:password@localhost:8080/hawkular/inventory/feeds/dhcp130-144/relationships' | |
curl -ivX GET 'http://jdoe:password@localhost:8080/hawkular/inventory/tenants/relationships?named=__inPrediction' | |
curl -ivX GET 'http://jdoe:password@localhost:8080/hawkular/inventory/relationships/8m8-zk-13it-16o' | |
curl -ivX POST -H "Content-Type: application/json" 'http://jdoe:password@localhost:8080/hawkular/inventory/tenants/relationships' -d '{"name": "__inPrediction", "source": "/t;28026b36-8fe4-4332-84c8-524e173a68bf", "target": "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;dhcp130-144/m;MI~R~%5Bplatform~%2FOPERATING_SYSTEM=dhcp130-144_OperatingSystem%2FPROCESSOR=7%5D~MT~CPU%20Usage", "properties": {"predictionInterval": 150}}' | |
curl -ivX POST -H "Content-Type: application/json" 'http://jdoe:password@localhost:8080/hawkular/inventory/tenants/relationships' -d '{"name": "__inPrediction", "source": "/t;28026b36-8fe4-4332-84c8-524e173a68bf", "target": "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;dhcp130-144/mt;Total%20Memory", "properties": {"predictionInterval": 150}}' | |
curl -ivX POST -H "Content-Type: application/json" 'http://jdoe:password@localhost:8080/hawkular/inventory/tenants/relationships' -d '{"name": "__inPrediction", "source": "/t;28026b36-8fe4-4332-84c8-524e173a68bf", "target": "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;dhcp130-144/mt;Usable%20Space", "properties": {"predictionInterval": 15}}' | |
curl -ivX POST -H "Content-Type: application/json" 'http://jdoe:password@localhost:8080/hawkular/inventory/tenants/relationships' -d '{"name": "__inPrediction", "source": "/t;28026b36-8fe4-4332-84c8-524e173a68bf", "target": "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;dhcp130-144/m;MI~R~%5BLocal~%2Fsubsystem=transactions%5D~MT~Transactions%20Metrics~Number%20of%20Committed%20Transactions", "properties": {"predictionInterval": 77}}' | |
curl -ivX DELETE -H "Content-Type: application/json" 'http://jdoe:password@localhost:8080/hawkular/inventory/tenants/relationships/' -d '{"id": "auao-74-1hqt-de68"}' | |
curl -ivX PUT -H "Content-Type: application/json" 'http://jdoe:password@localhost:8080/hawkular/inventory/tenants/relationships' -d '{"id": "1s2u8-74-4fmd-kjk", "properties": {"predictionInterval": "30"}}' | |
#metrics | |
curl -ivX GET 'http://jdoe:password@localhost:8080/hawkular/inventory/feeds/dhcp130-144/metrics' | |
curl -ivX GET 'http://jdoe:password@localhost:8080/hawkular/inventory/test/metrics?feedless=true' | |
curl -ivX GET 'http://jdoe:password@localhost:8080/hawkular/inventory/feeds/dhcp130-144/metrics/MI~R~%5Bplatform~%2FOPERATING_SYSTEM%3Ddhcp130-144_OperatingSystem%2FPROCESSOR%3D7%5D~MT~CPU%20Usage' | |
{ | |
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;dhcp130-144/m;MI~R~%5Bplatform~%2FOPERATING_SYSTEM=dhcp130-144_OperatingSystem%2FPROCESSOR=7%5D~MT~CPU%20Usage", | |
"type" : { | |
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;dhcp130-144/mt;CPU%20Usage", | |
"name" : "CPU Usage", | |
"unit" : "PERCENTAGE", | |
"type" : "GAUGE", | |
"collectionInterval" : 60, | |
"id" : "CPU Usage" | |
}, | |
"name" : "CPU Usage", | |
"id" : "MI~R~[platform~/OPERATING_SYSTEM=dhcp130-144_OperatingSystem/PROCESSOR=7]~MT~CPU Usage" | |
* Connection #0 to host localhost left intact | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment