Skip to content

Commit

Permalink
Document the unmapped mapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
philbooth committed May 21, 2015
1 parent 8db3049 commit 546987f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/mappers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ to be consumed by some other process.
The choice of mapper
can be specified at the command line,
using the `-m` [option].
Three mappers are availble out-of-the-box,
[statsd], [statsd-npg], [har] and [waterfall].
Five mappers are availble out-of-the-box,
[statsd], [statsd-npg], [har], [waterfall] and [unmapped].

Defining custom mappers is simple.
The [source code for the statsd mapper][src]
Expand Down Expand Up @@ -90,5 +90,6 @@ as `'\n'`.
[statsd-npg]: statsd-npg.md
[har]: har.md
[waterfall]: waterfall.md
[unmapped]: unmapped.md
[src]: ../../src/mappers/statsd.js

20 changes: 20 additions & 0 deletions doc/mappers/unmapped.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# mappers/unmapped

The unmapped mapper
serialises the data
in its raw format.
That raw format
looks like this:

```js
{
"data": {}, // Parsed boomerang request data
"referer": "", // HTTP referer header
"userAgent": "", // User agent string
"browser": {
"name": "", // Browser name
"version": "" // Browser major rev
}
}
```

0 comments on commit 546987f

Please sign in to comment.