-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ShdrIntervalQueueAdapter ShdrCondition Fault vs AddFault behavior. #46
Comments
Try setting OutputTimestamps = false for the ShdrAdapter. Example:var adapter = new ShdrIntervalAdapter();
adapter.OutputTimestamps = false; Otherwise, if you don't set the timestamp explicitly then a new timestamp will get set for the Condition Fault State and it will be read as unique and be sent to the Agent. Let me know if that fixes the issue or not. |
Disabling OutputTimestamp does omit timestamp from being sent with SHDR but also causes cppagent 2.1.0.6 to throw an error.
|
Do you have the raw SHDR output? It should be valid if it follows the format below:
|
|
I may have told you wrong on my first response. It should filter out duplicates regardless of the Timestamp. This was related to Issue #40. It seems to be filtering properly testing with cppagent 2.0.0.11: Are you using the ShdrIntervalAdapter class? Or are you manually sending using the SendChanged() or SendLast() methods? You should be able to set OutputTimestamps back to True. However, you did discover a new issue which is that the Agent apparently expects a preceding "|" character for a SHDR line without a timestamp. I will upload a fix for this tonight. |
I do no call SendChanged or SendLast, I let the adapter handle sending. Trace output from cppagent.
|
…output a timestamp to address Issue #46
Ok sounds like it was just an issue with the SHDR output. I just published the v5.4.1 Release (and also on Nuget) that should fix this issue with OutputTimestamps = false. See if that fixes the issue and let me know if you run into anything else. Thanks, |
5.4.1 did fix sending SHDR without timestamp by prepending a pipe. Below does filter duplicates.
|
Glad to hear it is working now. Let me know if you come across anything else. |
NuGet release 5.0.0.
Using above approach to set the condition, if I send a fault, fault, normal, normal, then all four instances register as samples at the cppagent.
Is it expected for the SHDR adapter to send conditions through even if they have not changed?
The text was updated successfully, but these errors were encountered: