docs에 dashboard 관련 추가
This commit is contained in:
1 parent
6d09d25df7
commit
a0c352f567
4 files changed
+240
-13
No files matched your search
@@ -195,9 +195,9 @@ class DataProcessor:
|
||||
|
||||
logger.info(
|
||||
f"[DataProcessor._build_content_metrics] SUCCESS - "
|
||||
f"views={views}({views_trend:+.1f}%), "
|
||||
f"watch_time={estimated_minutes_watched}min({watch_trend:+.1f}%), "
|
||||
f"subscribers={subscribers_gained}({subs_trend:+.1f}%)"
|
||||
f"views={views}({views_trend:+.1f}), "
|
||||
f"watch_time={estimated_minutes_watched}min({watch_trend:+.1f}), "
|
||||
f"subscribers={subscribers_gained}({subs_trend:+.1f})"
|
||||
)
|
||||
|
||||
return [
|
||||
@@ -206,7 +206,7 @@ class DataProcessor:
|
||||
label="조회수",
|
||||
label_en="Total Views",
|
||||
value=self._format_number(int(views)),
|
||||
trend=views_trend,
|
||||
trend=round(float(views_trend), 1),
|
||||
trend_direction=views_dir,
|
||||
),
|
||||
ContentMetric(
|
||||
@@ -214,7 +214,7 @@ class DataProcessor:
|
||||
label="시청시간",
|
||||
label_en="Watch Time",
|
||||
value=f"{round(estimated_minutes_watched / 60, 1)}시간",
|
||||
trend=watch_trend,
|
||||
trend=round(watch_trend / 60, 1),
|
||||
trend_direction=watch_dir,
|
||||
),
|
||||
ContentMetric(
|
||||
@@ -222,7 +222,7 @@ class DataProcessor:
|
||||
label="평균 시청시간",
|
||||
label_en="Avg. View Duration",
|
||||
value=f"{round(average_view_duration / 60)}분",
|
||||
trend=duration_trend,
|
||||
trend=round(duration_trend / 60, 1),
|
||||
trend_direction=duration_dir,
|
||||
),
|
||||
ContentMetric(
|
||||
@@ -230,7 +230,7 @@ class DataProcessor:
|
||||
label="신규 구독자",
|
||||
label_en="New Subscribers",
|
||||
value=self._format_number(int(subscribers_gained)),
|
||||
trend=subs_trend,
|
||||
trend=round(float(subs_trend), 1),
|
||||
trend_direction=subs_dir,
|
||||
),
|
||||
ContentMetric(
|
||||
@@ -238,7 +238,7 @@ class DataProcessor:
|
||||
label="좋아요",
|
||||
label_en="Likes",
|
||||
value=self._format_number(int(likes)),
|
||||
trend=likes_trend,
|
||||
trend=round(float(likes_trend), 1),
|
||||
trend_direction=likes_dir,
|
||||
),
|
||||
ContentMetric(
|
||||
@@ -246,7 +246,7 @@ class DataProcessor:
|
||||
label="댓글",
|
||||
label_en="Comments",
|
||||
value=self._format_number(int(comments)),
|
||||
trend=comments_trend,
|
||||
trend=round(float(comments_trend), 1),
|
||||
trend_direction=comments_dir,
|
||||
),
|
||||
ContentMetric(
|
||||
@@ -254,7 +254,7 @@ class DataProcessor:
|
||||
label="공유",
|
||||
label_en="Shares",
|
||||
value=self._format_number(int(shares)),
|
||||
trend=shares_trend,
|
||||
trend=round(float(shares_trend), 1),
|
||||
trend_direction=shares_dir,
|
||||
),
|
||||
ContentMetric(
|
||||
@@ -263,7 +263,7 @@ class DataProcessor:
|
||||
label_en="Uploaded Videos",
|
||||
value=str(period_video_count),
|
||||
trend=0.0,
|
||||
trend_direction="up",
|
||||
trend_direction="-",
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
Reference in new issue
Block a user