Skip to content

Commit

Permalink
README fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tsileo committed Sep 30, 2013
1 parent 45e4432 commit 9a72d20
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,20 @@ Usage

cube = Cube()
# or
cube = Cube("localhost")
cube = Cube('localhost')

# Create an event
cube.put("myevent", {"temp": 30})
cube.put("myevent", {'temp': 30})
# or
cube.put("myevent", {"temp": 30}, time=datatime.now().isoformat())
cube.put("myevent", {'temp': 30}, time=datetime.now().isoformat())

# Request events data
# See Cube queries:
# https://github.com/square/cube/wiki/Queries#wiki-metric
cube.event("myevent(temp)")
cube.event('myevent(temp)')

# Request metrics
cube.metric(c.metric("sum(myevent)", step="36e5", start="2012-10-01"))
cube.metric(c.metric('sum(myevent)', step='36e5', start='2013-9-01'))

# Request known event types
cube.types()
Expand Down

0 comments on commit 9a72d20

Please sign in to comment.