コード例 #1
0
ファイル: Program.cs プロジェクト: bist/riemann-csharp
        static void Main(string[] args)
        {
            Riemann cli = new Riemann("10.40.8.11", 5555);

            while (true)
            {
                try
                {
                    String[] tags        = new string[] { "top10", "top5" };
                    long     time        = 9988;
                    String   host        = "host";
                    String   service     = "servis";
                    String   state       = "durum";
                    String   description = "açıklama";
                    float    metric_f    = 15;
                    float    ttl         = 300;

                    EventData data = new EventData(time, host, service, state, description, metric_f, ttl, tags);
                    cli.sendEvent(data);
                }
                catch (Exception e)
                {
                    Console.WriteLine(e.Message);
                }
            }
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: bist/riemann-csharp
        static void Main(string[] args)
        {
            Riemann cli = new Riemann("10.40.8.11", 5555);

            while (true)
            {

                try
                {
                    String[] tags = new string[] { "top10", "top5" };
                    long time = 9988;
                    String host = "host";
                    String service = "servis";
                    String state = "durum";
                    String description = "açıklama";
                    float metric_f = 15;
                    float ttl = 300;

                    EventData data = new EventData(time, host, service, state, description, metric_f, ttl, tags);
                    cli.sendEvent(data);

                }
                catch (Exception e)
                {
                    Console.WriteLine(e.Message);
                }

            }
        }