-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<LangVersion>10</LangVersion> | ||
<Nullable>enable</Nullable> | ||
|
||
<IsPackable>false</IsPackable> | ||
<AssemblyName>InfluxDB3.Examples.Downsampling</AssemblyName> | ||
<RootNamespace>InfluxDB3.Examples.Downsampling</RootNamespace> | ||
|
||
<AssemblyOriginatorKeyFile>../../Keys/Key.snk</AssemblyOriginatorKeyFile> | ||
<SignAssembly>true</SignAssembly> | ||
|
||
<OutputType>Exe</OutputType> | ||
<StartupObject>InfluxDB3.Examples.Downsampling.DownsamplingExample</StartupObject> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\Client\Client.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Threading.Tasks; | ||
using InfluxDB3.Client; | ||
|
||
namespace InfluxDB3.Examples.Downsampling; | ||
|
||
public class DownsamplingExample | ||
{ | ||
static async Task Main(string[] args) | ||
Check warning on line 8 in Examples/Downsampling/DownsamplingExample.cs GitHub Actions / CodeQL-Build
Check warning on line 8 in Examples/Downsampling/DownsamplingExample.cs GitHub Actions / CodeQL-Build
|
||
{ | ||
const string host = "https://us-east-1-1.aws.cloud2.influxdata.com"; | ||
const string token = "my-token"; | ||
const string database = "my-database"; | ||
|
||
using var client = new InfluxDBClient(host: host, token: token, database: database); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# Examples | ||
|
||
## Basic | ||
|
||
- [IOxExample](IOx/IOxExample.cs) - How to use write and query data from InfluxDB IOx | ||
- [Downsampling](Downsampling/Downsampling.cs) - How to use queries to structure data for downsampling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters