Skip to content

CTOR-1616 Add a way for stream connectors to store data#205

Merged
sdepassio merged 49 commits into
developfrom
add-own-cache-system
Dec 12, 2025
Merged

CTOR-1616 Add a way for stream connectors to store data#205
sdepassio merged 49 commits into
developfrom
add-own-cache-system

Conversation

@tanguyvda

@tanguyvda tanguyvda commented Apr 17, 2024

Copy link
Copy Markdown
Contributor

Description

  • add a way to store data in a persistent storage mecanism.
  • add a way to easily implement new providers for the storage mecanism
  • documentation for everything
    • new dev guidelines directory to indicate how to create your own storage backend
    • docs for every backend
    • include it in the custom code feature documentation
  • add sqlite storage backend
  • load the new sc_storage backend in every apiv2 stream connector
  • change the custom code behavior with filters. Before if the standard lib dropped an event, the custom code wasn't executed. Now the standard filters are applied, then the custom code is executed and within the custom code you can override the standard filters result with the self.is_event_validated_by_force variable. (obviously it is now documented)

Fixes # (issue)

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software

Target serie

  • 22.04.x
  • 22.10.x
  • 23.04.x
  • 23.10.x
  • 24.04.x (master)

How this pull request can be tested ?

Please describe the procedure to verify that the goal of the PR is matched. Provide clear instructions so that it can be correctly tested.

Any relevant details of the configuration to perform the test should be added.

Checklist

Community contributors & Centreon team

  • I have followed the coding style guidelines provided by Centreon
  • I have commented my code, especially new classes, functions or any legacy code modified. (docblock)
  • I have commented my code, especially hard-to-understand areas of the PR.
  • I have rebased my development branch on the base branch (master, maintenance).

@tanguyvda tanguyvda changed the title start project CTOR-1616 Add a way for stream connectors to store data Apr 23, 2025
@tanguyvda tanguyvda marked this pull request as ready for review April 23, 2025 11:10
@tanguyvda tanguyvda requested review from a team as code owners April 23, 2025 11:10
@tanguyvda tanguyvda added the new label Apr 23, 2025
@sdepassio sdepassio force-pushed the add-own-cache-system branch from 9877b56 to 7be7dff Compare August 14, 2025 07:38
sdepassio
sdepassio previously approved these changes Dec 8, 2025
@sdepassio sdepassio requested a review from cg-tw December 8, 2025 10:51
Comment thread modules/docs/README.md Outdated
Comment thread modules/docs/README.md Outdated
Comment thread modules/docs/README.md Outdated
Comment thread modules/docs/README.md Outdated
Comment thread modules/docs/README.md Outdated
Comment thread modules/docs/sc_storage.md Outdated
Comment thread modules/docs/sc_storage.md Outdated
Comment thread modules/docs/sc_storage.md Outdated
Comment thread modules/docs/sc_storage.md Outdated
Comment thread modules/docs/sc_storage.md Outdated
@github-actions

github-actions Bot commented Dec 9, 2025

Copy link
Copy Markdown

Logo
Checkmarx One – Scan Summary & Details2a912bf5-38a8-4035-a0b5-b02dabf0d603

Great job! No new security vulnerabilities introduced in this pull request

cg-tw and others added 3 commits December 9, 2025 15:22
Co-authored-by: cg-tw <83637804+cg-tw@users.noreply.github.com>
Co-authored-by: cg-tw <83637804+cg-tw@users.noreply.github.com>
@sdepassio sdepassio merged commit d1287cb into develop Dec 12, 2025
85 checks passed
@sdepassio sdepassio deleted the add-own-cache-system branch December 12, 2025 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants