mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2026-05-26 17:18:37 +00:00
feat: implement the Status API on Settings page (#470)
This commit is contained in:
@@ -222,9 +222,9 @@ limitations under the License. -->
|
||||
appStore.setDuration(timeFormat(val));
|
||||
}
|
||||
|
||||
function setTTL() {
|
||||
getMetricsTTL();
|
||||
getRecordsTTL();
|
||||
async function setTTL() {
|
||||
await getMetricsTTL();
|
||||
await getRecordsTTL();
|
||||
changeDataMode();
|
||||
}
|
||||
async function getRecordsTTL() {
|
||||
@@ -250,6 +250,7 @@ limitations under the License. -->
|
||||
}
|
||||
const gap = Math.max(day, hour, minute);
|
||||
const dates: Date[] = [new Date(new Date().getTime() - dayToMS(gap + 1)), new Date()];
|
||||
|
||||
appStore.setMaxRange(dates);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user