Skip to content

Commit ce76680

Browse files
committed
Stats and Events のドキュメントに具体例を追記
1 parent 6553a9d commit ce76680

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/stats_and_events_aggregation.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# rake statistics:aggregation[from,to,provider,dojo_id]
1+
# $ rails statistics:aggregation[from,to,provider,dojo_id]
22

33
## 概要
44

@@ -24,7 +24,7 @@ dojo_id が指定されたとき、指定 Dojo に対してのみ集計を行う
2424
+ from, to を共に省略した場合、前週一週間分の履歴を集計する。
2525
+ 全期間(2012年以降前日まで)を集計する場合、from/to 共に '-' を指定する。
2626
```
27-
rake statistics:aggregation[-,-,]
27+
rails statistics:aggregation[-,-,]
2828
```
2929
+ from/to に期間を指定する場合、それぞれ以下の形式で指定可能。
3030
```
@@ -59,7 +59,7 @@ $ [ $(date +%u) = 1 ] && bundle exec rails statistics:aggregation
5959

6060
<br>
6161

62-
# rake upcoming_events:aggregation[provider]
62+
# $ rails upcoming_events:aggregation[provider]
6363

6464
## 概要
6565

@@ -77,7 +77,10 @@ $ [ $(date +%u) = 1 ] && bundle exec rails statistics:aggregation
7777

7878
provider が指定されたとき、指定プロバイダに対してのみ集計を行う。
7979

80-
+ provider には、connpass, doorkeeper, facebook が指定可能。ただし、現時点で facebook は収集対象外のため処理を skip する。
80+
- provider には、connpass, doorkeeper, facebook が指定可能。ただし、現時点で facebook は収集対象外のため処理を skip する。
81+
- `$ bundle exec rails upcoming_events:aggregation\[connpass\]
82+
- `$ bundle exec rails upcoming_events:aggregation\[doorkeeper\]
83+
- `$ bundle exec rails upcoming_events:aggregation\[facebook\] # NOT available provider for now due to API.
8184

8285
## 本番環境で実行しているコマンド
8386

0 commit comments

Comments
 (0)