Skip to content

feat: implement events feature#39

Merged
lethanhdat762003 merged 12 commits intodevfrom
feat/implement-events-feature
Feb 5, 2026
Merged

feat: implement events feature#39
lethanhdat762003 merged 12 commits intodevfrom
feat/implement-events-feature

Conversation

@lethanhdat762003
Copy link
Contributor

What?

Why?

How?

Testing?

  • Functional Testing
  • Security
  • Performance
  • Error Handling
  • Code Quality
  • Documentation
  • Database
  • Deployment
  • Final Review

Anything Else?

ngovinh2k2 and others added 5 commits January 12, 2026 16:21
Co-authored-by: Vinh Ngo <vinh.ngo@df.technology>
Co-authored-by: Dat Le <dat.le@df.technology>
Co-authored-by: Khoa Tran <khoa.tran@df.technology>
Co-authored-by: Luu Le <luu.le@df.technology>
Co-authored-by: Quynh Nguyen <quynh.nguyen@df.technology>
…ource

feat: add license apache 2.0 to source

// LoadEventRulesFromDir loads all event rule YAML files from a directory
// Each file should contain a single device model's rules
func LoadEventRulesFromDir(dir string) (*EventRulesConfig, error) {
Copy link
Member

Choose a reason for hiding this comment

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

Where we will call this function, Dat

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When we first start the services anh

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I mean at the initialization

// Get event rules
e.GET("/event-rules", getEventRules(logger, tsClient))
// Create a new event rule
e.POST("/event-rules", createEventRule(logger, tsClient))
Copy link
Member

Choose a reason for hiding this comment

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

Who will call these APIs, Dat?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Users will call these APIs anh @Quynh-Nguyen

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Or other levels like manufacturer or system if there's any further updates.

@lethanhdat762003 lethanhdat762003 merged commit d59cdcb into dev Feb 5, 2026
2 checks passed
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 this pull request may close these issues.

4 participants