Closed amamory closed 8 months ago
In a sample subscription gNMIc includes the heartbeat-interval
only if suppress-redundant
is true.
The spec says the following:
A heartbeat_interval MAY be specified to modify the behavior of suppress_redundant in a sampled subscription. In this case, the target MUST generate one telemetry update per heartbeat interval, regardless of whether the suppress_redundant flag is set to true. This value is specified as an unsigned 64-bit integer in nanoseconds.
I understand it as heartbeat-interval
is needed only if suppress-redundant
is true.
It sounds like a logical reason. However, from the user perspective who might not be a gNMI spec expert, it would be very nice to see an error/warning message. I suppose it's a minor effort.
It seems that the heartbeat flag is ignored when using sample mode. Consider this example:
And this is what i get in the server side. The heartbeat is not present.
If I do a similar request, but in the on_change mode:
Then i see the heartbeat flag as expected at the server side.