Пример #1
0
 public void counter_sample_rate()
 {
     // A sample rate over 1 doesn't really make sense, but it allows
     // the test to pass every time
     CloudInsightStatsd.Counter("counter", 1, sampleRate: 1.1);
     AssertWasReceived("counter:1|c|@1.1");
 }
Пример #2
0
 public void counter()
 {
     CloudInsightStatsd.Counter("counter", 1337);
     AssertWasReceived("counter:1337|c");
 }
Пример #3
0
 public void counter_tags()
 {
     CloudInsightStatsd.Counter("counter", 1, tags: new[] { "tag1:true", "tag2" });
     AssertWasReceived("counter:1|c|#tag1:true,tag2");
 }
Пример #4
0
 public void counter_sample_rate_tags_double()
 {
     CloudInsightStatsd.Counter("counter", 1337.3, sampleRate: 12.2, tags: new[] { "tag1:true", "tag2" });
     AssertWasReceived("counter:1337.3|c|@12.2|#tag1:true,tag2");
 }