rax-maas / rackspace-monitoring-cli

Command line utility for Rackspace Cloud Monitoring (MaaS).
49 stars 18 forks source link

Adding --id flag to alarms, checks and entities #63

Closed dingus9 closed 10 years ago

dingus9 commented 10 years ago

Reasoning

I am seeing more users with enough entries to make listing --details quite long. Adding a --id flag allows me to list all objects, pick one and then list the details for that object. It also pairs nicely with the update and delete methods.

I felt adding the id field was better than providing a new command raxmon-object-get.

Example usage: raxmon-checks-list --user USERNAME --api-key ***\ --entity-id enXXXXXXXX --id chXXXXXXXX

robert-chiniquy commented 10 years ago

I feel in this case what is wanted is raxmon-checks-get, raxmon-alarms-get and raxmon-entities-get. can't believe those don't exist yet actually.

dingus9 commented 10 years ago

I can rework it into new commands... I'll do that tonight

robert-chiniquy commented 10 years ago

That'd be great, though I'm sad you have to do that. I wish I could just merge this PR.

dingus9 commented 10 years ago

I didn't spend too much time on it really