CorrectionDBrecords
parent
a0096e652c
commit
818900f276
|
|
@ -159,5 +159,6 @@ export class ClickhouseService {
|
||||||
// }
|
// }
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -12,7 +12,7 @@ export class ZvksmetricsController {
|
||||||
let sum: any = { value: (a + b) / 4 * b + a };
|
let sum: any = { value: (a + b) / 4 * b + a };
|
||||||
await this.metricsService.useStatusModel(inputMetrics);
|
await this.metricsService.useStatusModel(inputMetrics);
|
||||||
// let a = await this.metricsService.showStatus();
|
// let a = await this.metricsService.showStatus();
|
||||||
console.log(inputMetrics);
|
// console.log(inputMetrics);
|
||||||
return sum.value;
|
return sum.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -78,12 +78,12 @@ export class ZvksmetricsService {
|
||||||
|
|
||||||
let intermediate = await this.getComplexMetricsValues(inp, prev, complex, model, scope);
|
let intermediate = await this.getComplexMetricsValues(inp, prev, complex, model, scope);
|
||||||
|
|
||||||
console.log(intermediate);
|
// console.log(intermediate);
|
||||||
let ctp: any = classToPlain(intermediate);
|
let ctp: any = classToPlain(intermediate);
|
||||||
let copmplexParameterBody: string = JSON.stringify(ctp);
|
let copmplexParameterBody: string = JSON.stringify(ctp);
|
||||||
let rtp: any = classToPlain(inputData);
|
let rtp: any = classToPlain(inp);
|
||||||
let rawParameterBody: string = JSON.stringify(rtp);
|
let rawParameterBody: string = JSON.stringify(rtp);
|
||||||
// console.log(parameterBody);
|
// console.log(rawParameterBody);
|
||||||
let abc = new ClickhouseService();
|
let abc = new ClickhouseService();
|
||||||
await abc.ClickHouseAddRecords('raw', rawParameterBody);
|
await abc.ClickHouseAddRecords('raw', rawParameterBody);
|
||||||
await abc.ClickHouseAddRecords('complex', copmplexParameterBody);
|
await abc.ClickHouseAddRecords('complex', copmplexParameterBody);
|
||||||
|
|
@ -260,7 +260,7 @@ export class ZvksmetricsService {
|
||||||
async saveRanges(inputRanges: string): Promise<any> {
|
async saveRanges(inputRanges: string): Promise<any> {
|
||||||
let ret: any;
|
let ret: any;
|
||||||
let filePath = './src/zvksmetrics/conf/ranges.json';
|
let filePath = './src/zvksmetrics/conf/ranges.json';
|
||||||
console.log(inputRanges);
|
// console.log(inputRanges);
|
||||||
let inp: string = JSON.stringify(inputRanges);
|
let inp: string = JSON.stringify(inputRanges);
|
||||||
try {
|
try {
|
||||||
await writeFile(filePath, inp);
|
await writeFile(filePath, inp);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue