Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #26 from ooglek/master
Browse files Browse the repository at this point in the history
Updating Gauge Documentation
  • Loading branch information
Dominik Liebler committed Apr 14, 2015
2 parents 1dbb6c4 + 6f647d0 commit c6ef246
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion README.md
Expand Up @@ -68,11 +68,20 @@ $statsd->memory('foo.memory_peak_usage');

### [Gauges](https://github.com/etsy/statsd/blob/master/docs/metric_types.md#gauges)

statsd supports gauges, arbitrary values which can be recorded.
statsd supports gauges, arbitrary values which can be recorded.

This method accepts both absolute (3) and delta (+11) values.

*NOTE:* Negative values are treated as delta values, not absolute.

```php
<?php
// Absolute value
$statsd->gauge('foobar', 3);

// Pass delta values as a string.
// Accepts both positive (+11) and negative (-4) delta values.
$statsd->gauge('foobar', '+11');
```

### [Sets](https://github.com/etsy/statsd/blob/master/docs/metric_types.md#sets)
Expand Down
2 changes: 1 addition & 1 deletion lib/Connection/InMemory.php
Expand Up @@ -6,7 +6,7 @@

/**
* This connection collects all messages but is not sending them. This eases

* feature testing when you want to assert that a specific set of messages where created.

* feature testing when you want to assert that a specific set of messages were created.

*/
class InMemory implements Connection
{
Expand Down

0 comments on commit c6ef246

Please sign in to comment.