datalust / seq-api

HTTP API client for Seq
https://datalust.co/seq
Apache License 2.0
77 stars 21 forks source link

Synchronizing Signals between Servers #85

Closed JuergenBu closed 3 years ago

JuergenBu commented 3 years ago

Hi, I am trying to synchronize signals between seq servers using the SignalCopy example. As suggested here, I set shared: true in ListAsync(), which I did for dstConnection.Signals.ListAsync() and srcConnection.Signals.ListAsync() in order to receive the servers signals (Exception happens otherwise). Adding signals works as expected. However, updating extisting signals does not work, because dstConnection.Signals.ListAsync(shared: true) assumes, that the added signals are shared, which is not possible to set when adding them.

Would be nice if you could set a Shared property in SignalEntity.

I am using Seq.Api, Version=2020.1.0.0

Thanks in advance for your help.

Best Regards, Jürgen

nblumhardt commented 3 years ago

Hi Jürgen,

I'm sorry - I forgot all about OwnerId, which is the property to use. If OwnerId is null, the signal will be shared.

Best regards, Nick

JuergenBu commented 3 years ago

Thanks for the info Nick. OwnerId = null did the trick.

Best Regards, Jürgen