Skip to content

Commit 00caf38

Browse files
gokulvijclaude
andauthored
feat: add Enabled, Notes, and ExpectedRttMs fields to endpoint updates (#150)
Co-authored-by: Claude <[email protected]>
1 parent ea2083f commit 00caf38

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ThingConnect.Pulse.Server/Services/ConfigurationService.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,9 @@ public async Task InitializeSampleConfigurationAsync()
296296
existingEndpoint.Retries = endpoint.Retries;
297297
existingEndpoint.HttpPath = endpoint.HttpPath;
298298
existingEndpoint.HttpMatch = endpoint.HttpMatch;
299+
existingEndpoint.Enabled = endpoint.Enabled;
300+
existingEndpoint.Notes = endpoint.Notes;
301+
existingEndpoint.ExpectedRttMs = endpoint.ExpectedRttMs;
299302
updatedCount++;
300303
}
301304
else
@@ -377,7 +380,10 @@ private static (int Added, int Updated, int Removed) CalculateEndpointChanges(
377380
existingEndpoint.TimeoutMs != endpoint.TimeoutMs ||
378381
existingEndpoint.Retries != endpoint.Retries ||
379382
existingEndpoint.HttpPath != endpoint.HttpPath ||
380-
existingEndpoint.HttpMatch != endpoint.HttpMatch)
383+
existingEndpoint.HttpMatch != endpoint.HttpMatch ||
384+
existingEndpoint.Enabled != endpoint.Enabled ||
385+
existingEndpoint.Notes != endpoint.Notes ||
386+
existingEndpoint.ExpectedRttMs != endpoint.ExpectedRttMs)
381387
{
382388
updatedCount++;
383389
}

0 commit comments

Comments
 (0)