-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev-back' into be-feat#135
- Loading branch information
Showing
23 changed files
with
505 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
backend/console-server/src/log/dto/get-avg-elapsed-time.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { IsNotEmpty, IsNumber } from 'class-validator'; | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { Expose, Type } from 'class-transformer'; | ||
|
||
export class GetAvgElapsedTimeDto { | ||
@IsNotEmpty() | ||
@IsNumber() | ||
@ApiProperty({ | ||
example: 9, | ||
description: '기수', | ||
type: 'number', | ||
}) | ||
@Type(() => Number) | ||
@Expose() | ||
generation: number; | ||
} |
3 changes: 3 additions & 0 deletions
3
backend/console-server/src/log/dto/get-traffic-daily-difference-response.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { Expose } from 'class-transformer'; | ||
import { IsNotEmpty, IsNumber, IsString } from 'class-validator'; | ||
|
||
export class GetTrafficDailyDifferenceResponseDto { | ||
@ApiProperty({ | ||
example: '+9100', | ||
description: '전일 대비 총 트래픽 증감량', | ||
type: String, | ||
}) | ||
@IsString() | ||
@IsNotEmpty() | ||
@Expose() | ||
traffic_daily_difference: string; | ||
} |
16 changes: 16 additions & 0 deletions
16
backend/console-server/src/log/dto/get-traffic-rank.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { Expose, Type } from 'class-transformer'; | ||
import { IsNotEmpty, IsNumber } from 'class-validator'; | ||
|
||
export class GetTrafficRankDto { | ||
@ApiProperty({ | ||
example: 9, | ||
description: '기수', | ||
type: 'number', | ||
}) | ||
@Type(() => Number) | ||
@IsNumber() | ||
@IsNotEmpty() | ||
@Expose() | ||
generation: number; | ||
} |
26 changes: 26 additions & 0 deletions
26
backend/console-server/src/log/dto/get-traffic-top5-chart-response.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Expose } from 'class-transformer'; | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class TrafficTop5Chart { | ||
name: string; | ||
traffic: [string, string][]; | ||
} | ||
|
||
export class GetTrafficTop5ChartResponseDto { | ||
@ApiProperty({ | ||
example: [ | ||
{ | ||
name: 'watchducks', | ||
traffic: [ | ||
['2024-01-01 11:12:00', '100'], | ||
['2024-01-02 11:13:00', '100'], | ||
['2024-01-02 11:14:00', '100'], | ||
['2024-01-02 11:15:00', '100'], | ||
], | ||
}, | ||
], | ||
description: '해당 기수의 트래픽 Top5 프로젝트에 대한 작일 차트 데이터', | ||
}) | ||
@Expose() | ||
trafficCharts: TrafficTop5Chart[]; | ||
} |
14 changes: 14 additions & 0 deletions
14
backend/console-server/src/log/dto/get-traffic-top5-chart.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { IsNumber } from 'class-validator'; | ||
import { Type } from 'class-transformer'; | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class GetTrafficTop5ChartDto { | ||
@IsNumber() | ||
@Type(() => Number) | ||
@ApiProperty({ | ||
description: '기수', | ||
example: 9, | ||
required: true, | ||
}) | ||
generation: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
backend/console-server/src/log/metric/traffic-rank-top5.metric.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { IsString } from 'class-validator'; | ||
|
||
export class TrafficChartMetric { | ||
@IsString() | ||
host: string; | ||
|
||
@IsString() | ||
traffic: string[][]; | ||
} |
Oops, something went wrong.