raoulmillais / statsd-csharp-client Goto Github PK
View Code? Open in Web Editor NEWThis project forked from pereingo/statsd-csharp-client
statsd csharp client
This project forked from pereingo/statsd-csharp-client
statsd csharp client
C# Statsd Client Statsd s = new Statsd(new StatsdUDP(HOSTNAME,PORT)); //All the standard Statsd message types s.Send<Statsd.Counting>("counter",1); //counter had one hit s.Send<Statsd.Timing>("timer",5); //timer had one hit of 5ms s.Send<Statsd.Gauge>("gauge",5); //gauge had one hit of value 5 //All types have sample rate, which will be included in the message for Statsd own stats crunching s.Send<Statsd.Counting>("counter",1,1/10); //counter had one hit, this will be sent 10% of times it is called //You can add combinations of messages which will be sent in one go; s.Add<Statsd.Counting>("counter",1); s.Add<Statsd.Timer>("timer",5,1/10); s.Send(); //message will contain counter and will contain timer 10% of the times //All previous commands will be flushed after any Send //Any Adds will be ignored if using a Send directly //Optional naming conventions //environment named 'env' //application named 'app' //hostname named 'host' string name = Naming.withEnvironmentApplicationAndHostname("stat"); //== "env.app.stat.host" string anotherName = Naming.withEnvironmentAndApplication("stat"); //== "env.app.stat" //You can use Actions to time responses s.Send(()=>DoMagic(),"timer",1/10); //time the response time for DoMagic s.Send(()=>DoMagic(),"timer"); //same with no sample rate s.Add(()=>DoMagic(),"timer"); //you can just add it too..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.