AxiomNet 0.1.0
dotnet add package AxiomNet --version 0.1.0
NuGet\Install-Package AxiomNet -Version 0.1.0
<PackageReference Include="AxiomNet" Version="0.1.0" />
paket add AxiomNet --version 0.1.0
#r "nuget: AxiomNet, 0.1.0"
// Install AxiomNet as a Cake Addin #addin nuget:?package=AxiomNet&version=0.1.0 // Install AxiomNet as a Cake Tool #tool nuget:?package=AxiomNet&version=0.1.0
AxiomNet
Introduction
AxiomNet is a .Net library for accessing the Axiom API.
Installation
You can add the library via nuget in your project folder with the following command:
dotnet add package AxiomNet --version 0.1.0
Authentication
The client is initialized with the url of the deployment and an access token when using Axiom Selfhost or an access token and the users organization id when using Axiom Cloud.
The access token can be a personal token retrieved from the users profile page or an ingest token retrieved from the settings of the Axiom deployment.
The personal access token grants access to all resources available to the user on his behalf.
The ingest token just allows ingestion into the datasets the token is configured for.
Usage
using AxiomNet;
HttpClient httpClient = new HttpClient(); // or use an appropriate factory
string token = "yourAccessToken";
string organizationId = "axiom";
Uri baseUrl = new Uri("http://localhost:8080/axiom/");
Client client = new Client(httpCLient, baseUrl, token, organizationId);
var ingestEvents = new[]
{
new
{
time = "17/May/2015:08:05:32 +0000",
remote_ip = "93.180.71.1",
remote_user = "-",
request = "GET /downloads/product_1 HTTP/1.1",
response = 304,
bytes = 0,
referrer = "-",
agent = "Debian APT-HTTP/1.3 (0.8.16~exp12ubuntu10.21)"
},
new
{
time = "17/May/2015:08:05:33 +0000",
remote_ip = "93.180.71.2",
remote_user = "-",
request = "GET /downloads/product_1 HTTP/1.1",
response = 304,
bytes = 0,
referrer = "-",
agent = "Debian APT-HTTP/1.3 (0.8.16~exp12ubuntu10.21)"
}
};
var ingestEventsStatus = await client.Datasets.IngestEvents("dataSetId", ingestEvents, null, CancellationToken.None);
Documentation
You can find the Axiom documentation on the docs website. A documentation of this library can be found here.
License
© Jens Sauer, 2022
Distributed under MIT License (The MIT License
).
See LICENSE.md for more information.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- System.Net.Http.Json (>= 0.1.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AxiomNet:
Package | Downloads |
---|---|
AxiomSink
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.1.0 | 2,038 | 7/26/2022 |