package devkit
Install
Dune Dependency
Authors
Maintainers
Sources
md5=47338eaae436aba40abd4d194ee40054
sha256=499b050b73643f6ad7349a41485539d4166d149a07fba59cb6841f508c0297f8
sha512=6a5bf77061d390ddb331ed3d5891a5c56502be91f0eff6846202f658ebfa97ef57695d7a192cbdad4c7b8835f5665df3ea4375daf46930334ebbd9a07f00feca
doc/devkit.core/Devkit_core/Var/index.html
Module Devkit_core.Var
Source
Global register for various types of counters. Logstash
module will send all Var
counters to logstash automatically. Counters must be mononotonically increasing for logstash to send correct deltas to Elasticsearch.
new typ type ?attr key
registers new type
of counters with designated attr
ibutes and key
name
cc pp type ?attr key
new set of counters with designated type
, attr
ibutes and key
name
Logstash events will have attributes as follows : * all of attr
key value pairs (if given) * class=type
* key
=X where X is value inserted into CC
Guidelines for picking names : keep number of different key
names low (makes ES happy), uniqueness of events is primarily provided by class
.
Bad example : let pages = new Var.cc "tool.pages" "pages" let index = new Var.cc "tool.index" "index" let count = new Var.cc "tool.count" "count"
Better : let pages = new Var.cc "tool.pages" "kind" let pages = new Var.cc "tool.index" "kind" let pages = new Var.cc "tool.count" "kind"
cc pp type ?attr key
new set of counters with designated type
, attr
ibutes and key
name, treated as milliseconds
callback takes attributes and value
list_stats filter