Download and Install

Usage

Initialize

Track

The track method sends a request to the track API, and returns the response as a string. The following snippets were taken from this example file.

Basic Tracking. Adds a new stat with default value of 1 to the metric.

smClient.track("Metric Name");

Track with a value other than one

smClient.track("Metric Name", 5.2);

Track with additional properties

var properties = new Dictionary<string, string>();
properties.Add("value", "5.1"); //If you do not include value, it will default to 1
properties.Add("ref_id", "Test01");
properties.Add("generated_at", DateTime.Now.ToString());
smClient.track("metric_name", properties);