Permalink
Browse files

README fix

  • Loading branch information...
1 parent 45e4432 commit 9a72d20b766fa36b983b2c259a4ed14d51c08ab3 @tsileo committed Sep 30, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 README.rst
View
@@ -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()

0 comments on commit 9a72d20

Please sign in to comment.