Giter Club home page Giter Club logo

robin.net's Introduction

robin.net

RRDTool for C# (port of [jrobin.org] 1.5.14)

Creating rrd files and updates values is working fine, the graph part still need some works.

API is NOT yet stable, but it should not change a lot before v 1.0

Example :

RrdDef def = new RrdDef(SAMPLE);
def.StartTime = 920804400;
def.AddDatasource(DsDef.FromRrdToolString("DS:speed:COUNTER:600:U:U"));
def.AddArchive(ArcDef.FromRrdToolString("RRA:AVERAGE:0.5:1:24"));
def.AddArchive(ArcDef.FromRrdToolString("RRA:AVERAGE:0.5:6:10"));

using (RrdDb db = RrdDb.Create(def))
{
    Sample sample = db.CreateSample();
    sample.SetAndUpdate("920804700:12345", "920805000:12357", "920805300:12363");
    sample.SetAndUpdate("920805600:12363", "920805900:12363 ", "920806200:12373");
    sample.SetAndUpdate("920806500:12383", "920806800:12393", "920807100:12399");
    sample.SetAndUpdate("920807400:12405", "920807700:12411", "920808000:12415");
    sample.SetAndUpdate("920808300:12420", "920808600:12422", "920808900:12423");

    FetchRequest req = db.CreateFetchRequest(ConsolidationFunction.AVERAGE, 920804400, 920809200);
    FetchData data = db.FetchData(req);
    
    //Use data to retrieve values...
}

robin.net's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.