aboutsummaryrefslogtreecommitdiffstats
path: root/Software
diff options
context:
space:
mode:
Diffstat (limited to 'Software')
-rw-r--r--Software/Experiments/DataDogTest/DataDogTest.sln25
-rw-r--r--Software/Experiments/DataDogTest/DataDogTest/App.config6
-rw-r--r--Software/Experiments/DataDogTest/DataDogTest/DataDogTest.csproj57
-rw-r--r--Software/Experiments/DataDogTest/DataDogTest/Program.cs35
-rw-r--r--Software/Experiments/DataDogTest/DataDogTest/Properties/AssemblyInfo.cs36
-rw-r--r--Software/Experiments/DataDogTest/DataDogTest/packages.config4
6 files changed, 163 insertions, 0 deletions
diff --git a/Software/Experiments/DataDogTest/DataDogTest.sln b/Software/Experiments/DataDogTest/DataDogTest.sln
new file mode 100644
index 000000000..f19109441
--- /dev/null
+++ b/Software/Experiments/DataDogTest/DataDogTest.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.28307.645
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataDogTest", "DataDogTest\DataDogTest.csproj", "{C4E9E97A-212E-4310-821B-03CA96C56FD3}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {C4E9E97A-212E-4310-821B-03CA96C56FD3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C4E9E97A-212E-4310-821B-03CA96C56FD3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C4E9E97A-212E-4310-821B-03CA96C56FD3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C4E9E97A-212E-4310-821B-03CA96C56FD3}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {F8F884C2-A101-4D53-BC9A-71D300578C4D}
+ EndGlobalSection
+EndGlobal
diff --git a/Software/Experiments/DataDogTest/DataDogTest/App.config b/Software/Experiments/DataDogTest/DataDogTest/App.config
new file mode 100644
index 000000000..731f6de6c
--- /dev/null
+++ b/Software/Experiments/DataDogTest/DataDogTest/App.config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <startup>
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
+ </startup>
+</configuration> \ No newline at end of file
diff --git a/Software/Experiments/DataDogTest/DataDogTest/DataDogTest.csproj b/Software/Experiments/DataDogTest/DataDogTest/DataDogTest.csproj
new file mode 100644
index 000000000..8dbb58e3a
--- /dev/null
+++ b/Software/Experiments/DataDogTest/DataDogTest/DataDogTest.csproj
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{C4E9E97A-212E-4310-821B-03CA96C56FD3}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <RootNamespace>DataDogTest</RootNamespace>
+ <AssemblyName>DataDogTest</AssemblyName>
+ <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
+ <Deterministic>true</Deterministic>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="StatsdClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=8263c6dae900cac3, processorArchitecture=MSIL">
+ <HintPath>..\packages\DogStatsD-CSharp-Client.4.0.0\lib\net461\StatsdClient.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Net.Http" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="App.config" />
+ <None Include="packages.config" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project> \ No newline at end of file
diff --git a/Software/Experiments/DataDogTest/DataDogTest/Program.cs b/Software/Experiments/DataDogTest/DataDogTest/Program.cs
new file mode 100644
index 000000000..c153bd388
--- /dev/null
+++ b/Software/Experiments/DataDogTest/DataDogTest/Program.cs
@@ -0,0 +1,35 @@
+using StatsdClient;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+
+namespace DataDogTest
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ var dogstatsdConfig = new StatsdConfig
+ {
+ StatsdServerName = "127.0.0.1",
+ StatsdPort = 8125,
+ };
+
+ DogStatsd.Configure(dogstatsdConfig);
+
+ Console.WriteLine("Started...");
+
+ for (int i = 0; i < 1000; i += 100)
+ {
+ Console.WriteLine($"Writing {i + 1}...");
+ DogStatsd.Set("Overall Temperature", i + 1, tags: new[] { "environment:dev" });
+ Thread.Sleep(1000);
+ }
+
+ Console.ReadLine();
+ }
+ }
+}
diff --git a/Software/Experiments/DataDogTest/DataDogTest/Properties/AssemblyInfo.cs b/Software/Experiments/DataDogTest/DataDogTest/Properties/AssemblyInfo.cs
new file mode 100644
index 000000000..5c1b3e92d
--- /dev/null
+++ b/Software/Experiments/DataDogTest/DataDogTest/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("DataDogTest")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("DataDogTest")]
+[assembly: AssemblyCopyright("Copyright © 2020")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("c4e9e97a-212e-4310-821b-03ca96c56fd3")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Software/Experiments/DataDogTest/DataDogTest/packages.config b/Software/Experiments/DataDogTest/DataDogTest/packages.config
new file mode 100644
index 000000000..c1d4a9b26
--- /dev/null
+++ b/Software/Experiments/DataDogTest/DataDogTest/packages.config
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="DogStatsD-CSharp-Client" version="4.0.0" targetFramework="net461" />
+</packages> \ No newline at end of file