sassembla / ZuKit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZuKit

send unity editor data to InfluxDB.

https://raw.githubusercontent.com/sassembla/ZuKit/master/docs/scr.png

usage

// start sending data to influxdb.
void Start()
{
    ZuKit.Setup(
        "http://localhost:8086",
        "myZuDB",
        () =>
        {
            return new ZuValues(
                (new ZuKey("key", ("index", 0), ("temp", 1)), Time.frameCount),
                (new ZuKey("key", ("index", 1), ("temp", 2)), Random.Range(-100 * Time.frameCount, 100 * Time.frameCount))
            );
        }
    );
}


// it's good idea to stop sending when your app closed.
void OnApplicationQuit()
{
    ZuKit.Teardown();
}

license

see here

About

License:MIT License


Languages

Language:C# 100.0%