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

Update flow model doc #383

Merged
merged 3 commits into from
Sep 14, 2023
Merged

Conversation

jotak
Copy link
Member

@jotak jotak commented Sep 11, 2023

Regenerating netflows model API doc (that's the first step, another PR will follow on operator repo)

@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

Patch coverage: 93.25% and project coverage change: -0.37% ⚠️

Comparison is base (bffb860) 57.69% compared to head (af3964c) 57.33%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #383      +/-   ##
==========================================
- Coverage   57.69%   57.33%   -0.37%     
==========================================
  Files         166      168       +2     
  Lines        7817     7936     +119     
  Branches      962      968       +6     
==========================================
+ Hits         4510     4550      +40     
- Misses       3030     3107      +77     
- Partials      277      279       +2     
Flag Coverage Δ
uitests 58.24% <93.25%> (+0.22%) ⬆️
unittests 54.79% <ø> (-1.98%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
web/src/api/ipfix.ts 100.00% <ø> (ø)
web/src/model/filters.ts 78.46% <ø> (ø)
web/src/utils/filter-definitions.ts 66.66% <ø> (ø)
web/src/components/netflow-traffic.tsx 55.24% <80.00%> (-0.04%) ⬇️
web/src/utils/back-and-forth.ts 94.73% <94.73%> (ø)
web/src/utils/metrics.ts 88.16% <94.87%> (+1.80%) ⬆️
web/src/model/flow-query.ts 87.50% <100.00%> (-10.07%) ⬇️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

OlivierCazade
OlivierCazade previously approved these changes Sep 11, 2023
Copy link
Collaborator

@OlivierCazade OlivierCazade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -218,6 +354,14 @@ Timestamp when this flow was received and processed by the flow collector, in se

___

### TimeFlowRttNs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will RTT be included in the product docs regeneration? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, every field is present here even if it's feature related. However we may add a mention like *Dev Preview* in between to clarify it.


• `Optional` **PktDropPackets**: `number`

Number of packets dropped by the kernel in this flow
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Number of packets dropped by the kernel in this flow
Number of packets dropped by the kernel in a specific flow

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about that: all those fields are related to a given flow, hence the this. If I read in a specific flow then I would wonder: which flow are we talking about? Whereas this is contextual. I think I can just remove the in this flow part, as it isn't ambiguous anyway.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the in this flow part can be removed that may be best because when I read this I was also wondering which flow is this? I can see how it may be more clear in context though, like you say.


• `Optional` **PktDropBytes**: `number`

Number of bytes dropped by the kernel in this flow
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Number of bytes dropped by the kernel in this flow
Number of bytes dropped by the kernel in a specific flow


• **Ingress** = ``"0"``

Incoming traffic, from network interface observation point
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Incoming traffic, from network interface observation point
Incoming traffic, from the network interface observation point


• **Egress** = ``"1"``

Outgoing traffic, from network interface observation point
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Outgoing traffic, from network interface observation point
Outgoing traffic, from the network interface observation point


• **Inner** = ``"2"``

Inner traffic, ie. same source and destination node
Copy link
Contributor

@skrthomas skrthomas Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Inner traffic, ie. same source and destination node
Inner traffic, such as source and destination node

Copy link
Contributor

@skrthomas skrthomas Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IBM Style Guide suggests to always use the text "for example" or "such as". Never use the phrase "for instance" or the Latin abbreviations e.g. or i.e. Can we avoid i.e.?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here this isn't an example, but a clarification, so "such as" doesn't work, need to find something else

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw I was wondering if that's "node" or "nodes" here ... bc we say "A and B" so that should be plural, except that A is B so it's singular? :-)

Copy link
Contributor

@skrthomas skrthomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a few comments :)

@jotak
Copy link
Member Author

jotak commented Sep 12, 2023

thanks @skrthomas , PR updated, better like that?


• **Inner** = ``"2"``

Inner traffic, with same source and destination node
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Inner traffic, with same source and destination node
Inner traffic, with source and destination traffic in the same node

I think singular node is what we want here for sure. Alternatively, maybe just this:

Inner traffic, with the same source and destination node

@skrthomas
Copy link
Contributor

@jotak those updates look good. I left one small note about inner traffic mostly just requiring a "the" before "same" but otherwise, lgtm.

@jotak
Copy link
Member Author

jotak commented Sep 12, 2023

thanks @skrthomas , done!

Copy link
Contributor

@skrthomas skrthomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@jotak
Copy link
Member Author

jotak commented Sep 14, 2023

/approve

@openshift-ci
Copy link

openshift-ci bot commented Sep 14, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jotak

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit c5eaa19 into netobserv:main Sep 14, 2023
9 checks passed
@jotak jotak deleted the update-doc branch September 18, 2023 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants