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

It looks that each event type has separate component defined: #95

Closed
maheshc01 opened this issue Aug 21, 2024 · 7 comments · Fixed by #98
Closed

It looks that each event type has separate component defined: #95

maheshc01 opened this issue Aug 21, 2024 · 7 comments · Fixed by #98

Comments

@maheshc01
Copy link
Collaborator

          It looks that each event type has separate component defined:
          org.camaraproject.connectivity-insights-subscriptions.v0.network-quality-met:
            "#/components/schemas/EventNetworkQualityMet"
           org.camaraproject.connectivity-insights-subscriptions.v0.network-quality-not-met:
            "#/components/schemas/EventNetworkQualityNotMet"

Following suggestions for lines 891-898

Originally posted by @rartych in #67 (comment)

@maheshc01
Copy link
Collaborator Author

limiting to 2 events, EventNetworkQuality and EventSubscriptionEnds.
Both network-quality-met and network-quality-met is being handled in network-quality.

@maheshc01
Copy link
Collaborator Author

issue fixed in commit 630372b

@maheshc01
Copy link
Collaborator Author

Hi @rartych ,

I reviewed the approach taken by geofencing and device reachability. both of them have specific components defined for each event type which is understandable. I would still do it differently for device reachability and i will put a issue there for enhancement.

In case of connectivity insights the only event is network quality insights(other than subscription ends) and in the same components a number of threshold could either be marked as met vs not met (defined as enum). we cannot have 2 events as met vs not-met as in most cases all the define KPIs thresholds will not be mapped to same enum. In most cases will always have a combination of thresholds which are met and some of them which are not met.

Hope this makes sense.
Let me know if you need any further clarifications.

@rartych
Copy link
Collaborator

rartych commented Aug 26, 2024

I used 2 event types as they were already defined in the proposed yaml file. So I have modified the naming to follow the template Design Guidelines and used them in the discriminator.
I am fine with 1 event type (beside subscription ends or other management related) - BTW: QoD uses only "org.camaraproject.quality-on-demand.v0.qos-status-changed".

@maheshc01
Copy link
Collaborator Author

thank you for the feedback and confirmation that 1 event type is good.
I will marked this issue as closed.

@maheshc01
Copy link
Collaborator Author

i see that the code changes are yet to be merged for this change. Will keep this issue open till the PR is reviewed and merged.

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

Successfully merging a pull request may close this issue.

2 participants