Compare commits

..

No commits in common. "f1be1e80b9c9b26103bc6df1148538674cdf99b9" and "630ae101e58234b3367c43a7b5b2552fa18ca4dc" have entirely different histories.

32 changed files with 68 additions and 244 deletions

View File

@ -1,13 +0,0 @@
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/projectSettingsUpdater.xml
/modules.xml
/contentModel.xml
/.idea.edenic-exporter.iml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

View File

@ -1 +0,0 @@
edenic-exporter

View File

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
</project>

View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>

View File

@ -5,8 +5,6 @@
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<AssemblyName>EdenicExporter</AssemblyName>
<RootNamespace>EdenicExporter</RootNamespace>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@ -6,81 +6,13 @@ using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting;
using Prometheus; using Prometheus;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text.Json;
using System.Linq;
namespace PrometheusExporterEdenic namespace PrometheusExporterEdenic
{ {
public class Device
{
public string id { get; set; }
public string name { get; set; }
public string label { get; set; }
// Add other properties as needed
}
public class ApiClient
{
private readonly HttpClient _client;
private readonly string _authToken;
private readonly string _orgid;
private readonly string _apimainurl = "https://api.edenic.io/api/v1/device";
public ApiClient(string authToken, string orgID)
{
_client = new HttpClient();
_authToken = authToken;
_orgid = orgID;
_client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue(_authToken);
}
public async Task<dynamic> MakeApiRequest<T>(string path)
{
try
{
HttpResponseMessage response = await _client.GetAsync($"{_apimainurl}/{_orgid}{path}");
if (response.IsSuccessStatusCode)
{
string content = await response.Content.ReadAsStringAsync();
return JsonSerializer.Deserialize<dynamic>(content); }
else
{
throw new HttpRequestException($"Error: {response.StatusCode}");
}
}
catch (HttpRequestException e)
{
Console.WriteLine($"Request exception: {e.Message}");
throw;
}
catch (JsonException e)
{
Console.WriteLine($"JSON parsing exception: {e.Message}");
throw;
}
}
public async Task<string> GetDeviceIdByName(string name)
{
dynamic result = await MakeApiRequest<object>("");
var jsonString = JsonSerializer.Serialize(result);
var devices = JsonSerializer.Deserialize<List<Device>>(jsonString);
var targetDevice = devices.FirstOrDefault((Func<Device, bool>)(d => d.label == name));
return targetDevice?.id;
}
}
public class Program public class Program
{ {
public static void Main(string[] args) public static void Main(string[] args)
{ {
string EDENIC_API_TOKEN = Environment.GetEnvironmentVariable("EDENIC_API_TOKEN");
string EDENIC_ORG_ID = Environment.GetEnvironmentVariable("EDENIC_ORG_ID");
ApiClient client = new ApiClient(EDENIC_API_TOKEN, EDENIC_ORG_ID);
Console.WriteLine(client.GetDeviceIdByName("The First One"));
CreateHostBuilder(args).Build().Run(); CreateHostBuilder(args).Build().Run();
} }
@ -105,6 +37,9 @@ namespace PrometheusExporterEdenic
app.UseDeveloperExceptionPage(); app.UseDeveloperExceptionPage();
} }
string EDENIC_API = Environment.GetEnvironmentVariable("EDENIC_API") ?? "placeholderapikey";
// Enable prometheus metrics
app.UseMetricServer(); app.UseMetricServer();
app.UseHttpMetrics(); app.UseHttpMetrics();
@ -118,11 +53,10 @@ namespace PrometheusExporterEdenic
}); });
}); });
// Define custom metrics
var ph = Metrics.CreateGauge("edenic_ph", "Edenic ph"); var ph = Metrics.CreateGauge("edenic_ph", "Edenic ph");
var temperature = Metrics.CreateGauge("edenic_temperature", "Edenic temperature"); var temperature = Metrics.CreateGauge("edenic_temperature", "Edenic temperature");
var ec = Metrics.CreateGauge("edenic_ec", "Edenic EC"); var ec = Metrics.CreateGauge("edenic_ec", "Edenic EC");
Task.Run(async () => Task.Run(async () =>
{ {
while (true) while (true)
@ -130,7 +64,7 @@ namespace PrometheusExporterEdenic
ph.Set(1); ph.Set(1);
temperature.Set(1); temperature.Set(1);
ec.Set(1); ec.Set(1);
await Task.Delay(15000); await Task.Delay(1000);
} }
}); });
} }

View File

@ -6,12 +6,12 @@
"compilationOptions": {}, "compilationOptions": {},
"targets": { "targets": {
".NETCoreApp,Version=v8.0": { ".NETCoreApp,Version=v8.0": {
"EdenicExporter/1.0.0": { "DotNet.Docker/1.0.0": {
"dependencies": { "dependencies": {
"prometheus-net.AspNetCore.HealthChecks": "8.2.1" "prometheus-net.AspNetCore.HealthChecks": "8.2.1"
}, },
"runtime": { "runtime": {
"EdenicExporter.dll": {} "DotNet.Docker.dll": {}
} }
}, },
"Microsoft.Extensions.Configuration/3.1.0": { "Microsoft.Extensions.Configuration/3.1.0": {
@ -123,7 +123,7 @@
} }
}, },
"libraries": { "libraries": {
"EdenicExporter/1.0.0": { "DotNet.Docker/1.0.0": {
"type": "project", "type": "project",
"serviceable": false, "serviceable": false,
"sha512": "" "sha512": ""

Binary file not shown.

View File

@ -10,12 +10,12 @@
using System; using System;
using System.Reflection; using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("EdenicExporter")] [assembly: System.Reflection.AssemblyCompanyAttribute("DotNet.Docker")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+9c7d7928e96cee04d634ce311c4f039de4040cb2")] [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+576ce11da69fc49bd84f117e4ef563dcddf8a397")]
[assembly: System.Reflection.AssemblyProductAttribute("EdenicExporter")] [assembly: System.Reflection.AssemblyProductAttribute("DotNet.Docker")]
[assembly: System.Reflection.AssemblyTitleAttribute("EdenicExporter")] [assembly: System.Reflection.AssemblyTitleAttribute("DotNet.Docker")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class. // Generated by the MSBuild WriteCodeFragment class.

View File

@ -1 +1 @@
8b3979b2670092c3f16be63c7eaee07a5d3524e94fa5f7a6b9b1b75cbc91ce4c b12bdd851226df3620379f067a2d97b7fa0c5ed9735ed922b09da25c217f93e3

View File

@ -7,7 +7,7 @@ build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly = build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules = build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = EdenicExporter build_property.RootNamespace = DotNet.Docker
build_property.ProjectDir = /home/michal/develop/michal/edenic-exporter/EdenicExporter/ build_property.ProjectDir = /home/michal/develop/michal/edenic-exporter/EdenicExporter/
build_property.EnableComHosting = build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop = build_property.EnableGeneratedComInterfaceComImportInterop =

View File

@ -1,19 +1,19 @@
/home/michal/develop/michal/edenic-exporter/EdenicExporter/bin/Debug/net8.0/DotNet.Docker
/home/michal/develop/michal/edenic-exporter/EdenicExporter/bin/Debug/net8.0/DotNet.Docker.deps.json
/home/michal/develop/michal/edenic-exporter/EdenicExporter/bin/Debug/net8.0/DotNet.Docker.runtimeconfig.json
/home/michal/develop/michal/edenic-exporter/EdenicExporter/bin/Debug/net8.0/DotNet.Docker.dll
/home/michal/develop/michal/edenic-exporter/EdenicExporter/bin/Debug/net8.0/DotNet.Docker.pdb
/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/DotNet.Docker.GeneratedMSBuildEditorConfig.editorconfig /home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/DotNet.Docker.GeneratedMSBuildEditorConfig.editorconfig
/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/DotNet.Docker.AssemblyInfoInputs.cache /home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/DotNet.Docker.AssemblyInfoInputs.cache
/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/DotNet.Docker.AssemblyInfo.cs /home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/DotNet.Docker.AssemblyInfo.cs
/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/DotNet.Docker.csproj.CoreCompileInputs.cache /home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/DotNet.Docker.csproj.CoreCompileInputs.cache
/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/DotNet.Docker.dll
/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/refint/DotNet.Docker.dll
/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/DotNet.Docker.pdb
/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/DotNet.Docker.genruntimeconfig.cache /home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/DotNet.Docker.genruntimeconfig.cache
/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/ref/DotNet.Docker.dll
/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/DotNet.Docker.csproj.AssemblyReference.cache /home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/DotNet.Docker.csproj.AssemblyReference.cache
/home/michal/develop/michal/edenic-exporter/EdenicExporter/bin/Debug/net8.0/Prometheus.NetStandard.dll /home/michal/develop/michal/edenic-exporter/EdenicExporter/bin/Debug/net8.0/Prometheus.NetStandard.dll
/home/michal/develop/michal/edenic-exporter/EdenicExporter/bin/Debug/net8.0/Prometheus.AspNetCore.dll /home/michal/develop/michal/edenic-exporter/EdenicExporter/bin/Debug/net8.0/Prometheus.AspNetCore.dll
/home/michal/develop/michal/edenic-exporter/EdenicExporter/bin/Debug/net8.0/Prometheus.AspNetCore.HealthChecks.dll /home/michal/develop/michal/edenic-exporter/EdenicExporter/bin/Debug/net8.0/Prometheus.AspNetCore.HealthChecks.dll
/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/DotNet.Docker.csproj.CopyComplete /home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/DotNet.Docker.csproj.CopyComplete
/home/michal/develop/michal/edenic-exporter/EdenicExporter/bin/Debug/net8.0/EdenicExporter
/home/michal/develop/michal/edenic-exporter/EdenicExporter/bin/Debug/net8.0/EdenicExporter.deps.json
/home/michal/develop/michal/edenic-exporter/EdenicExporter/bin/Debug/net8.0/EdenicExporter.runtimeconfig.json
/home/michal/develop/michal/edenic-exporter/EdenicExporter/bin/Debug/net8.0/EdenicExporter.dll
/home/michal/develop/michal/edenic-exporter/EdenicExporter/bin/Debug/net8.0/EdenicExporter.pdb
/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/EdenicExporter.dll
/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/refint/EdenicExporter.dll
/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/EdenicExporter.pdb
/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/Debug/net8.0/ref/EdenicExporter.dll

Binary file not shown.

Binary file not shown.

View File

@ -8,7 +8,7 @@
"version": "1.0.0", "version": "1.0.0",
"restore": { "restore": {
"projectUniqueName": "/home/michal/develop/michal/edenic-exporter/EdenicExporter/DotNet.Docker.csproj", "projectUniqueName": "/home/michal/develop/michal/edenic-exporter/EdenicExporter/DotNet.Docker.csproj",
"projectName": "EdenicExporter", "projectName": "DotNet.Docker",
"projectPath": "/home/michal/develop/michal/edenic-exporter/EdenicExporter/DotNet.Docker.csproj", "projectPath": "/home/michal/develop/michal/edenic-exporter/EdenicExporter/DotNet.Docker.csproj",
"packagesPath": "/home/michal/.nuget/packages/", "packagesPath": "/home/michal/.nuget/packages/",
"outputPath": "/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/", "outputPath": "/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/",

View File

@ -7,7 +7,7 @@
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/michal/.nuget/packages/</NuGetPackageRoot> <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/michal/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/michal/.nuget/packages/</NuGetPackageFolders> <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/michal/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.8.1</NuGetToolVersion> <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.0.0</NuGetToolVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/home/michal/.nuget/packages/" /> <SourceRoot Include="/home/michal/.nuget/packages/" />

View File

@ -8,14 +8,10 @@
"Microsoft.Extensions.Configuration.Abstractions": "3.1.0" "Microsoft.Extensions.Configuration.Abstractions": "3.1.0"
}, },
"compile": { "compile": {
"lib/netcoreapp3.1/Microsoft.Extensions.Configuration.dll": { "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/netcoreapp3.1/Microsoft.Extensions.Configuration.dll": { "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.dll": {}
"related": ".xml"
}
} }
}, },
"Microsoft.Extensions.Configuration.Abstractions/6.0.0": { "Microsoft.Extensions.Configuration.Abstractions/6.0.0": {
@ -24,14 +20,10 @@
"Microsoft.Extensions.Primitives": "6.0.0" "Microsoft.Extensions.Primitives": "6.0.0"
}, },
"compile": { "compile": {
"lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": { "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": { "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": {}
"related": ".xml"
}
} }
}, },
"Microsoft.Extensions.Configuration.Binder/3.1.0": { "Microsoft.Extensions.Configuration.Binder/3.1.0": {
@ -40,14 +32,10 @@
"Microsoft.Extensions.Configuration": "3.1.0" "Microsoft.Extensions.Configuration": "3.1.0"
}, },
"compile": { "compile": {
"lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.dll": { "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.dll": { "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.dll": {}
"related": ".xml"
}
} }
}, },
"Microsoft.Extensions.DependencyInjection/3.1.0": { "Microsoft.Extensions.DependencyInjection/3.1.0": {
@ -56,27 +44,19 @@
"Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.0" "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.0"
}, },
"compile": { "compile": {
"lib/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.dll": { "lib/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.dll": { "lib/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.dll": {}
"related": ".xml"
}
} }
}, },
"Microsoft.Extensions.DependencyInjection.Abstractions/6.0.0": { "Microsoft.Extensions.DependencyInjection.Abstractions/6.0.0": {
"type": "package", "type": "package",
"compile": { "compile": {
"lib/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": { "lib/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": { "lib/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {}
"related": ".xml"
}
}, },
"build": { "build": {
"buildTransitive/netcoreapp3.1/_._": {} "buildTransitive/netcoreapp3.1/_._": {}
@ -91,27 +71,19 @@
"Microsoft.Extensions.Options": "6.0.0" "Microsoft.Extensions.Options": "6.0.0"
}, },
"compile": { "compile": {
"lib/net6.0/Microsoft.Extensions.Diagnostics.HealthChecks.dll": { "lib/net6.0/Microsoft.Extensions.Diagnostics.HealthChecks.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/net6.0/Microsoft.Extensions.Diagnostics.HealthChecks.dll": { "lib/net6.0/Microsoft.Extensions.Diagnostics.HealthChecks.dll": {}
"related": ".xml"
}
} }
}, },
"Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions/6.0.9": { "Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions/6.0.9": {
"type": "package", "type": "package",
"compile": { "compile": {
"lib/net6.0/Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.dll": { "lib/net6.0/Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/net6.0/Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.dll": { "lib/net6.0/Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.dll": {}
"related": ".xml"
}
} }
}, },
"Microsoft.Extensions.FileProviders.Abstractions/6.0.0": { "Microsoft.Extensions.FileProviders.Abstractions/6.0.0": {
@ -120,14 +92,10 @@
"Microsoft.Extensions.Primitives": "6.0.0" "Microsoft.Extensions.Primitives": "6.0.0"
}, },
"compile": { "compile": {
"lib/net6.0/Microsoft.Extensions.FileProviders.Abstractions.dll": { "lib/net6.0/Microsoft.Extensions.FileProviders.Abstractions.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/net6.0/Microsoft.Extensions.FileProviders.Abstractions.dll": { "lib/net6.0/Microsoft.Extensions.FileProviders.Abstractions.dll": {}
"related": ".xml"
}
}, },
"build": { "build": {
"buildTransitive/netcoreapp3.1/_._": {} "buildTransitive/netcoreapp3.1/_._": {}
@ -141,14 +109,10 @@
"Microsoft.Extensions.FileProviders.Abstractions": "6.0.0" "Microsoft.Extensions.FileProviders.Abstractions": "6.0.0"
}, },
"compile": { "compile": {
"lib/netstandard2.1/Microsoft.Extensions.Hosting.Abstractions.dll": { "lib/netstandard2.1/Microsoft.Extensions.Hosting.Abstractions.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/netstandard2.1/Microsoft.Extensions.Hosting.Abstractions.dll": { "lib/netstandard2.1/Microsoft.Extensions.Hosting.Abstractions.dll": {}
"related": ".xml"
}
} }
}, },
"Microsoft.Extensions.Http/3.1.0": { "Microsoft.Extensions.Http/3.1.0": {
@ -159,14 +123,10 @@
"Microsoft.Extensions.Options": "3.1.0" "Microsoft.Extensions.Options": "3.1.0"
}, },
"compile": { "compile": {
"lib/netcoreapp3.1/Microsoft.Extensions.Http.dll": { "lib/netcoreapp3.1/Microsoft.Extensions.Http.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/netcoreapp3.1/Microsoft.Extensions.Http.dll": { "lib/netcoreapp3.1/Microsoft.Extensions.Http.dll": {}
"related": ".xml"
}
} }
}, },
"Microsoft.Extensions.Logging/3.1.0": { "Microsoft.Extensions.Logging/3.1.0": {
@ -178,27 +138,19 @@
"Microsoft.Extensions.Options": "3.1.0" "Microsoft.Extensions.Options": "3.1.0"
}, },
"compile": { "compile": {
"lib/netcoreapp3.1/Microsoft.Extensions.Logging.dll": { "lib/netcoreapp3.1/Microsoft.Extensions.Logging.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/netcoreapp3.1/Microsoft.Extensions.Logging.dll": { "lib/netcoreapp3.1/Microsoft.Extensions.Logging.dll": {}
"related": ".xml"
}
} }
}, },
"Microsoft.Extensions.Logging.Abstractions/6.0.2": { "Microsoft.Extensions.Logging.Abstractions/6.0.2": {
"type": "package", "type": "package",
"compile": { "compile": {
"lib/net6.0/Microsoft.Extensions.Logging.Abstractions.dll": { "lib/net6.0/Microsoft.Extensions.Logging.Abstractions.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/net6.0/Microsoft.Extensions.Logging.Abstractions.dll": { "lib/net6.0/Microsoft.Extensions.Logging.Abstractions.dll": {}
"related": ".xml"
}
}, },
"build": { "build": {
"buildTransitive/netcoreapp3.1/_._": {} "buildTransitive/netcoreapp3.1/_._": {}
@ -207,14 +159,10 @@
"Microsoft.Extensions.ObjectPool/7.0.0": { "Microsoft.Extensions.ObjectPool/7.0.0": {
"type": "package", "type": "package",
"compile": { "compile": {
"lib/net7.0/Microsoft.Extensions.ObjectPool.dll": { "lib/net7.0/Microsoft.Extensions.ObjectPool.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/net7.0/Microsoft.Extensions.ObjectPool.dll": { "lib/net7.0/Microsoft.Extensions.ObjectPool.dll": {}
"related": ".xml"
}
} }
}, },
"Microsoft.Extensions.Options/6.0.0": { "Microsoft.Extensions.Options/6.0.0": {
@ -224,14 +172,10 @@
"Microsoft.Extensions.Primitives": "6.0.0" "Microsoft.Extensions.Primitives": "6.0.0"
}, },
"compile": { "compile": {
"lib/netstandard2.1/Microsoft.Extensions.Options.dll": { "lib/netstandard2.1/Microsoft.Extensions.Options.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/netstandard2.1/Microsoft.Extensions.Options.dll": { "lib/netstandard2.1/Microsoft.Extensions.Options.dll": {}
"related": ".xml"
}
} }
}, },
"Microsoft.Extensions.Primitives/6.0.0": { "Microsoft.Extensions.Primitives/6.0.0": {
@ -240,14 +184,10 @@
"System.Runtime.CompilerServices.Unsafe": "6.0.0" "System.Runtime.CompilerServices.Unsafe": "6.0.0"
}, },
"compile": { "compile": {
"lib/net6.0/Microsoft.Extensions.Primitives.dll": { "lib/net6.0/Microsoft.Extensions.Primitives.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/net6.0/Microsoft.Extensions.Primitives.dll": { "lib/net6.0/Microsoft.Extensions.Primitives.dll": {}
"related": ".xml"
}
}, },
"build": { "build": {
"buildTransitive/netcoreapp3.1/_._": {} "buildTransitive/netcoreapp3.1/_._": {}
@ -260,14 +200,10 @@
"Microsoft.Extensions.ObjectPool": "7.0.0" "Microsoft.Extensions.ObjectPool": "7.0.0"
}, },
"compile": { "compile": {
"lib/net7.0/Prometheus.NetStandard.dll": { "lib/net7.0/Prometheus.NetStandard.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/net7.0/Prometheus.NetStandard.dll": { "lib/net7.0/Prometheus.NetStandard.dll": {}
"related": ".xml"
}
} }
}, },
"prometheus-net.AspNetCore/8.2.1": { "prometheus-net.AspNetCore/8.2.1": {
@ -276,14 +212,10 @@
"prometheus-net": "8.2.1" "prometheus-net": "8.2.1"
}, },
"compile": { "compile": {
"lib/net6.0/Prometheus.AspNetCore.dll": { "lib/net6.0/Prometheus.AspNetCore.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/net6.0/Prometheus.AspNetCore.dll": { "lib/net6.0/Prometheus.AspNetCore.dll": {}
"related": ".xml"
}
}, },
"frameworkReferences": [ "frameworkReferences": [
"Microsoft.AspNetCore.App" "Microsoft.AspNetCore.App"
@ -296,27 +228,19 @@
"prometheus-net.AspNetCore": "8.2.1" "prometheus-net.AspNetCore": "8.2.1"
}, },
"compile": { "compile": {
"lib/net6.0/Prometheus.AspNetCore.HealthChecks.dll": { "lib/net6.0/Prometheus.AspNetCore.HealthChecks.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/net6.0/Prometheus.AspNetCore.HealthChecks.dll": { "lib/net6.0/Prometheus.AspNetCore.HealthChecks.dll": {}
"related": ".xml"
}
} }
}, },
"System.Runtime.CompilerServices.Unsafe/6.0.0": { "System.Runtime.CompilerServices.Unsafe/6.0.0": {
"type": "package", "type": "package",
"compile": { "compile": {
"lib/net6.0/System.Runtime.CompilerServices.Unsafe.dll": { "lib/net6.0/System.Runtime.CompilerServices.Unsafe.dll": {}
"related": ".xml"
}
}, },
"runtime": { "runtime": {
"lib/net6.0/System.Runtime.CompilerServices.Unsafe.dll": { "lib/net6.0/System.Runtime.CompilerServices.Unsafe.dll": {}
"related": ".xml"
}
}, },
"build": { "build": {
"buildTransitive/netcoreapp3.1/_._": {} "buildTransitive/netcoreapp3.1/_._": {}
@ -741,7 +665,7 @@
"version": "1.0.0", "version": "1.0.0",
"restore": { "restore": {
"projectUniqueName": "/home/michal/develop/michal/edenic-exporter/EdenicExporter/DotNet.Docker.csproj", "projectUniqueName": "/home/michal/develop/michal/edenic-exporter/EdenicExporter/DotNet.Docker.csproj",
"projectName": "EdenicExporter", "projectName": "DotNet.Docker",
"projectPath": "/home/michal/develop/michal/edenic-exporter/EdenicExporter/DotNet.Docker.csproj", "projectPath": "/home/michal/develop/michal/edenic-exporter/EdenicExporter/DotNet.Docker.csproj",
"packagesPath": "/home/michal/.nuget/packages/", "packagesPath": "/home/michal/.nuget/packages/",
"outputPath": "/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/", "outputPath": "/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/",

View File

@ -1,6 +1,6 @@
{ {
"version": 2, "version": 2,
"dgSpecHash": "i5vI1uxSdQ3EytcmJTn74CzuZluLdQMKFWIzTNHu32sTKkwSbfV9bI4VlsfQ6JP5jqvxtz7hql92qGUmallnOQ==", "dgSpecHash": "TQMtngfvdN+Ons0UnmICLSwgKvWwiIUZVe16RmvySwI0w/fjWM+TpZGgxl9GL7hr3muu9MxDW0KvY57HJ9dcLA==",
"success": true, "success": true,
"projectFilePath": "/home/michal/develop/michal/edenic-exporter/EdenicExporter/DotNet.Docker.csproj", "projectFilePath": "/home/michal/develop/michal/edenic-exporter/EdenicExporter/DotNet.Docker.csproj",
"expectedPackageFiles": [ "expectedPackageFiles": [

View File

@ -1 +1 @@
"restore":{"projectUniqueName":"/home/michal/develop/michal/edenic-exporter/EdenicExporter/DotNet.Docker.csproj","projectName":"EdenicExporter","projectPath":"/home/michal/develop/michal/edenic-exporter/EdenicExporter/DotNet.Docker.csproj","outputPath":"/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net8.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net8.0":{"targetAlias":"net8.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net8.0":{"targetAlias":"net8.0","dependencies":{"prometheus-net.AspNetCore.HealthChecks":{"target":"Package","version":"[8.2.1, )"}},"imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/usr/lib/dotnet/sdk/8.0.108/PortableRuntimeIdentifierGraph.json"}} "restore":{"projectUniqueName":"/home/michal/develop/michal/edenic-exporter/EdenicExporter/DotNet.Docker.csproj","projectName":"DotNet.Docker","projectPath":"/home/michal/develop/michal/edenic-exporter/EdenicExporter/DotNet.Docker.csproj","outputPath":"/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net8.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net8.0":{"targetAlias":"net8.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net8.0":{"targetAlias":"net8.0","dependencies":{"prometheus-net.AspNetCore.HealthChecks":{"target":"Package","version":"[8.2.1, )"}},"imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/usr/lib/dotnet/sdk/8.0.108/PortableRuntimeIdentifierGraph.json"}}

View File

@ -1 +1 @@
17239344048523465 17238577923198423