Abbotware.Interop.Aws.Timestream 5.0.166

Prefix Reserved
dotnet add package Abbotware.Interop.Aws.Timestream --version 5.0.166
                    
NuGet\Install-Package Abbotware.Interop.Aws.Timestream -Version 5.0.166
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Abbotware.Interop.Aws.Timestream" Version="5.0.166" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Abbotware.Interop.Aws.Timestream" Version="5.0.166" />
                    
Directory.Packages.props
<PackageReference Include="Abbotware.Interop.Aws.Timestream" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Abbotware.Interop.Aws.Timestream --version 5.0.166
                    
#r "nuget: Abbotware.Interop.Aws.Timestream, 5.0.166"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Abbotware.Interop.Aws.Timestream@5.0.166
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Abbotware.Interop.Aws.Timestream&version=5.0.166
                    
Install as a Cake Addin
#tool nuget:?package=Abbotware.Interop.Aws.Timestream&version=5.0.166
                    
Install as a Cake Tool

Abbotware.Interop.Aws.Timestream

C# Fluent and Attribute based publishers for AWS Timestream. Quick and easy support for single measure and multi-measure values based off POCOs

POCO via Attributes

Attributes can be used to define dimensions, measures, and time fields.

[MeasureName("Data")]
public class Poco
{
    [Dimension]
    public string PropertyA { get; set; }

    [Dimension]
    public string PropertyB { get; set; }

    [MeasureValue]
    public int? ValueA { get; set; }

    [MeasureValue]
    public string ValueB { get; set; }

    [MeasureValue]
    public decimal? ValueC { get; set; }

    [MeasureValue]
    public bool? ValueD { get; set; }

    [Time]
    public DateTimeOffset? Time { get; set; }
}

Poco Publisher Example

// create write options for target database / table
var options = new TimestreamOptions() { Database = "database", Table = "table" };
            
// create publisher with options + logger
using var c = new PocoPublisher<MultiMeasureTest>(options, NullLogger.Instance);

// create message
var poco = new Poco() { ... }

// publish
var p = await c.PublishAsync(poco, ct);

POCO via Fluent API

The Fluent API requires a little more setup, but can be used on objects you have no control over.

public class Poco
{
    public string PropertyA { get; set; }
    public string PropertyB { get; set; }
    public int? ValueA { get; set; }
    public string ValueB { get; set; }
    public decimal? ValueC { get; set; }
    public bool? ValueD { get; set; }
    public DateTimeOffset? Time { get; set; }
}

Define Protocol via Builder

// supply name for multi measure name
var pb = new ProtocolBuilder<Poco>("metrics");
    pb.AddDimension(x => x.PropertyA);
    pb.AddDimension(x => x.PropertyB);
    pb.AddMeasure(x => x.ValueA);
    pb.AddMeasure(x => x.ValueB);
    pb.AddMeasure(x => x.ValueC);
    pb.AddMeasure(x => x.ValueD);
    pb.AddTime(x => x.Time, TimeUnitType.Milliseconds);

var protocol = pb.Build();

Create Publisher

// create write options for target database / table
var options = new TimestreamOptions() { Database = "database", Table = "table" };

// create publisher with options + protocol + logger
using var p = new TimestreamPublisher<SingleMeasureTest>(options, protocol, NullLogger.Instance);

// create message
var poco = new Poco() { ... }

// publish
var p = await c.PublishAsync(poco, ct);

Settings File

var options = ConfigurationHelper.AppSettingsJson("settings.json").BindSection<TimestreamOptions>(TimestreamOptions.DefaultSection);
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.166 253 1/8/2025
5.0.163 212 12/20/2024
5.0.162 215 12/20/2024
5.0.160 199 12/19/2024
5.0.152 197 12/8/2024
5.0.149 211 12/8/2024
5.0.141 243 3/19/2024
5.0.140 217 3/18/2024
5.0.130 234 2/18/2024
5.0.127 214 2/17/2024
5.0.123 245 2/14/2024
5.0.107 948 10/22/2023
5.0.93 1,610 9/8/2023
5.0.92 257 9/8/2023
5.0.91 277 8/31/2023
5.0.89 298 8/31/2023
5.0.88 271 8/30/2023
5.0.87 485 8/21/2023
5.0.82 771 7/9/2023
5.0.81 648 6/20/2023
Loading failed