apache / apache/hertzbeat

Split AbstractHistoryDataStorage class

Open
#1,885 0 comments 1 reaction 1 assignee Claimed by @xuziyang View on GitHub
status: volunteer wanted
Dominant language
Java
Stars
7.4k
Forks
1.3k
Avg merge
1d 20h
Merged PRs (30d)
32

Description

### Description

org.apache.hertzbeat.warehouse.store.AbstractHistoryDataStorage violates the interface segregation principle:

In this class, there are the following three methods: saveData (), getHistoryMetricData () and getHistoryIntervalMetricData (). DataStorageDispatch uses the method saveData () to save historical data, and does not use the other two query-related methods. Similarly, the alarm and chart modules only use two query-related methods, and do not use data-related methods.

Can be assigned to me @tomsun28

### Task List

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.