I have been trying to understand a few things in sensu. First up,
1- How does sensu handle the alarm state when an event is generated ?
2- What are the different states that the alarms can be transitioned to ? (like., active, cleared, acknowledged etc)
3- Is there an API which is available to query on the alarms in sensu ?
I’m of the opinion that all of this should be in sensu…but i haven’t been able to understand where to look for this…I have done a code walk-through to understand if there is anything stored in sensu but with no luck 
Would be really helpful if someone could point me where to look for the above questions or may be help me understand them.
Thanks,
Akshay
1- How does sensu handle the alarm state when an event is generated ?
The event data is sent to whatever handlers are configured for that check
http://sensuapp.org/docs/latest/adding_a_handler
2- What are the different states that the alarms can be transitioned to ?
(like., active, cleared, acknowledged etc)
An event has either a "create" or "resolve" state.
The output of a check can have different "severities" which match up
with the standard nagios return codes:
http://sensuapp.org/docs/latest/checks
3- Is there an API which is available to query on the alarms in sensu ?
Yes. http://sensuapp.org/docs/latest/api_events
I'm of the opinion that all of this should be in sensu...but i haven't been
able to understand where to look for this...I have done a code walk-through
to understand if there is anything stored in sensu but with no luck 
Would be really helpful if someone could point me where to look for the
above questions or may be help me understand them.
I would read the docs.
http://sensuapp.org/docs/latest