Skip to content

[Logs UI] Refactor ML job management hooks to be module-agnostic #50322

@weltenwort

Description

@weltenwort

Summary

The React hook useLogAnalysisJobs is currently coupled to the log entry rate analysis job. Since the management tasks required to match the upcoming log category analysis job are mostly identical, this hook should be prepared for re-use with that module.

Acceptance criteria

  • The useLogAnalysisJobs hook is parameterized so it can manage various ML modules, in particular
    • the module name
    • the jobs list
    • the api calls performed to set up the module
    • the configuration check performed to verify job consistency
    • the validation route called to validate the setup parameters
  • A new log entry rate hook exists, which is a slim wrapper around the generic job management hook with specific parameters.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions