This commit is contained in:
Michal 2024-08-18 00:57:42 +01:00
parent 9c7d7928e9
commit f1be1e80b9
32 changed files with 204 additions and 140 deletions

View File

@ -0,0 +1,13 @@
# 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

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

View File

@ -0,0 +1,4 @@
<?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

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

View File

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

View File

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

View File

@ -13,49 +13,39 @@ using System.Linq;
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)
public ApiClient(string authToken, string orgID)
{
_client = new HttpClient();
_authToken = authToken;
_orgid = orgID;
_client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue(_authToken);
}
public async Task<T> MakeApiRequest<T>(string url, string jsonPath)
public async Task<dynamic> MakeApiRequest<T>(string path)
{
try
{
HttpResponseMessage response = await _client.GetAsync(url);
HttpResponseMessage response = await _client.GetAsync($"{_apimainurl}/{_orgid}{path}");
if (response.IsSuccessStatusCode)
{
string content = await response.Content.ReadAsStringAsync();
using JsonDocument doc = JsonDocument.Parse(content);
JsonElement root = doc.RootElement;
// Navigate the JSON path
string[] pathSegments = jsonPath.Split('.');
JsonElement current = root;
foreach (var segment in pathSegments)
{
if (current.TryGetProperty(segment, out JsonElement next))
{
current = next;
}
else
{
throw new JsonException($"JSON path '{jsonPath}' not found in the response.");
}
}
// Convert the JsonElement to the desired type
return JsonSerializer.Deserialize<T>(current.GetRawText());
}
return JsonSerializer.Deserialize<dynamic>(content); }
else
{
throw new HttpRequestException($"Error: {response.StatusCode}");
@ -72,12 +62,25 @@ namespace PrometheusExporterEdenic
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 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();
}
@ -119,64 +122,15 @@ namespace PrometheusExporterEdenic
var temperature = Metrics.CreateGauge("edenic_temperature", "Edenic temperature");
var ec = Metrics.CreateGauge("edenic_ec", "Edenic EC");
Task.Run(async () =>
{
string orgID = Environment.GetEnvironmentVariable("EDENIC_ORGID") ?? "9ffb9b70-461c-11ef-92e1-85f1b2168e5a";
string authToken = Environment.GetEnvironmentVariable("EDENIC_API") ?? "ed_tjf14py97vz1cf4ugxljiiqwckxkhzim0coqogqmk1x99rfjlgi1q2vxesav4z55";
string DeviceName = Environment.GetEnvironmentVariable("EDENIC_API") ?? "The First One";
var client = new ApiClient(authToken);
while (true)
{
try
{
// Get devices
var devices = await client.MakeApiRequest<JsonElement>($"https://api.edenic.io/api/v1/device/{orgID}", "");
var targetDevice = devices.EnumerateArray()
.FirstOrDefault(d => d.GetProperty("label").GetString() == DeviceName);
if (targetDevice.ValueKind != JsonValueKind.Undefined)
{
string deviceId = targetDevice.GetProperty("id").GetString();
// Get telemetry
var telemetry = await client.MakeApiRequest<JsonElement>($"https://api.edenic.io/api/v1/telemetry/{deviceId}", "");
if (telemetry.TryGetProperty("temperature", out var tempArray) && tempArray.GetArrayLength() > 0)
{
var tempValue = tempArray[0].GetProperty("value").GetString();
if (double.TryParse(tempValue, out double tempDouble))
{
temperature.Set(tempDouble);
}
}
if (telemetry.TryGetProperty("electrical_conductivity", out var ecArray) && ecArray.GetArrayLength() > 0)
{
var ecValue = ecArray[0].GetProperty("value").GetString();
if (double.TryParse(ecValue, out double ecDouble))
{
ec.Set(ecDouble);
}
}
if (telemetry.TryGetProperty("ph", out var phArray) && phArray.GetArrayLength() > 0)
{
var phValue = phArray[0].GetProperty("value").GetString();
if (double.TryParse(phValue, out double phDouble))
{
ph.Set(phDouble);
}
}
}
}
catch (Exception ex)
{
Console.WriteLine($"Error updating metrics: {ex.Message}");
}
await Task.Delay(15000); // Wait for 15 seconds before the next update
ph.Set(1);
temperature.Set(1);
ec.Set(1);
await Task.Delay(15000);
}
});
}

View File

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

Binary file not shown.

View File

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

View File

@ -1 +1 @@
0ba8152071c66376fc77d639d67faf462fae8128c3dce52b1d3106f76a0e8f90
8b3979b2670092c3f16be63c7eaee07a5d3524e94fa5f7a6b9b1b75cbc91ce4c

View File

@ -7,7 +7,7 @@ build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = DotNet.Docker
build_property.RootNamespace = EdenicExporter
build_property.ProjectDir = /home/michal/develop/michal/edenic-exporter/EdenicExporter/
build_property.EnableComHosting =
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.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.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/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/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.HealthChecks.dll
/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",
"restore": {
"projectUniqueName": "/home/michal/develop/michal/edenic-exporter/EdenicExporter/DotNet.Docker.csproj",
"projectName": "DotNet.Docker",
"projectName": "EdenicExporter",
"projectPath": "/home/michal/develop/michal/edenic-exporter/EdenicExporter/DotNet.Docker.csproj",
"packagesPath": "/home/michal/.nuget/packages/",
"outputPath": "/home/michal/develop/michal/edenic-exporter/EdenicExporter/obj/",

View File

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

View File

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

View File

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

View File

@ -1 +1 @@
"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"}}
"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"}}

View File

@ -1 +1 @@
17238577923198423
17239344048523465