generated-scene: add scheduled monitoring runtime and helper lifecycle hardening
This commit is contained in:
39
tests/fixtures/generated_scene/g2_prediction_compute/index.html
vendored
Normal file
39
tests/fixtures/generated_scene/g2_prediction_compute/index.html
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>G2 Prediction Compute Fixture</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
const sourceUrl = "http://20.76.57.61:18080/gsllys";
|
||||
const reportType = "predictionCompute";
|
||||
const period_mode = "prediction";
|
||||
|
||||
async function queryHighLossForecast(orgno, fdate) {
|
||||
const params = {
|
||||
orgno,
|
||||
fdate,
|
||||
tjzq: "month",
|
||||
mode: "prediction",
|
||||
page: 1,
|
||||
rows: 60,
|
||||
reportType: "predictionCompute"
|
||||
};
|
||||
return $.ajax({
|
||||
url: "http://20.76.57.61:18080/gsllys/tqLinelossStatis/highLineLossForecast",
|
||||
type: "POST",
|
||||
contentType: "application/x-www-form-urlencoded",
|
||||
data: JSON.stringify(params)
|
||||
});
|
||||
}
|
||||
|
||||
function runPredictionMode() {
|
||||
return queryHighLossForecast("6201001", "2026-04");
|
||||
}
|
||||
|
||||
function normalizePredictionRow(lineId, lineName, lineLossType, lineLossRate, powerLoss) {
|
||||
return { lineId, lineName, lineLossType, lineLossRate, powerLoss };
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user