Skip to content
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

OpenConfig rolling window statistics - error handling for min max and avg calculation #1211

Open
jli75024 opened this issue Oct 30, 2024 · 2 comments

Comments

@jli75024
Copy link

Hi,

I have a question about OpenConfig rolling window min/max/avg calculation. What is the general approaches to handling error during data reading within a rolling window? For example

  1. Skip the erroneous data
  2. Use a placeholder value
  3. Use a validity flag
  4. Window recalculation
  5. Separate error report

Thanks
Jin

@dplore
Copy link
Member

dplore commented Oct 31, 2024

Hi, could you describe an example scenario, including the gNMI RPC you are using (gnmi.Subscribe SAMPLE mode I guess?) and example OC paths?

@jli75024
Copy link
Author

Hi, could you describe an example scenario, including the gNMI RPC you are using (gnmi.Subscribe SAMPLE mode I guess?) and example OC paths?

I am working in Network Element and new to OC. Here is the example of OC model

+--ro output-power
+--ro instant? decimal64
+--ro avg? decimal64
+--ro min? decimal64
+--ro max? decimal64
+--ro interval? oc-types:stat-interval
+--ro min-time? oc-types:timeticks64
+--ro max-time? oc-types:timeticks64

container output-power {
description
"The output optical power of this port in units
of 0.01dBm. If avg/min/max statistics are not supported,
the target is expected to just supply the instant value";

  uses oc-types:avg-min-max-instant-stats-precision2-dBm;
}

grouping avg-min-max-instant-stats-precision2-dBm {
description
"Common grouping for recording dBm values with 2 decimal
precision. Values include the instantaneous, average,
minimum, and maximum statistics. Statistics are computed
and reported based on a moving time interval (e.g., the last
30s). If supported by the device, the time interval over which
the statistics are computed, and the times at which the minimum
and maximum values occurred, are also reported.";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants