mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-27 21:46:04 +02:00
![twitter-team](/assets/img/avatar_default.png)
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
54 lines
1.3 KiB
Scala
54 lines
1.3 KiB
Scala
package com.twitter.home_mixer.module
|
|
|
|
import com.twitter.conversions.DurationOps.RichDuration
|
|
import com.twitter.home_mixer.param.HomeMixerFlagName
|
|
import com.twitter.inject.TwitterModule
|
|
import com.twitter.util.Duration
|
|
|
|
object HomeMixerFlagsModule extends TwitterModule {
|
|
|
|
import HomeMixerFlagName._
|
|
|
|
flag[Boolean](
|
|
name = ScribeClientEventsFlag,
|
|
default = false,
|
|
help = "Toggles logging client events to Scribe"
|
|
)
|
|
|
|
flag[Boolean](
|
|
name = ScribeServedEntriesFlag,
|
|
default = false,
|
|
help = "Toggles logging served entries to Scribe"
|
|
)
|
|
|
|
flag[Boolean](
|
|
name = ScribeServedCommonFeaturesAndCandidateFeaturesFlag,
|
|
default = false,
|
|
help = "Toggles logging served common features and candidates features to Scribe"
|
|
)
|
|
|
|
flag[String](
|
|
name = DataRecordMetadataStoreConfigsYmlFlag,
|
|
default = "",
|
|
help = "The YML file that contains the necessary info for creating metadata store MySQL client."
|
|
)
|
|
|
|
flag[String](
|
|
name = DarkTrafficFilterDeciderKey,
|
|
default = "dark_traffic_filter",
|
|
help = "Dark traffic filter decider key"
|
|
)
|
|
|
|
flag[Duration](
|
|
TargetFetchLatency,
|
|
300.millis,
|
|
"Target fetch latency from candidate sources for Quality Factor"
|
|
)
|
|
|
|
flag[Duration](
|
|
TargetScoringLatency,
|
|
700.millis,
|
|
"Target scoring latency for Quality Factor"
|
|
)
|
|
}
|