Advertisement
Guest User

Untitled

a guest
Oct 16th, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 2.94 KB | None | 0 0
  1. case class LogRequest(
  2.                        id: String,
  3.                        userId: String,
  4.                        siteId: Int,
  5.                        partnerSiteId: Int,
  6.                        partnerId: Int,
  7.                        geometryId: Int,
  8.                        geoId: Int,
  9.                        ip: Long,
  10.                        cats: Seq[String],
  11.                        ua: String,
  12.                        url: String,
  13.                        referer: String,
  14.                        domain: String,
  15.                        js: Boolean,
  16.                        bidFloor: Double,
  17.                        blind: Boolean,
  18.                        adPosition: Int,
  19.                        currency: String,
  20.                        currencyQuote: Double
  21.                        )
  22.  
  23. case class LogResult(
  24.                       campaignId: Int,
  25.                       strategyId: Int,
  26.                       bannerId: Int,
  27.                       creativeId: Int,
  28.                       bidprice: Double
  29.                       )
  30.  
  31.  
  32. case class LogRecord(
  33.                       eventId: Int,
  34.                       status: Int,
  35.                       statusDesc: String,
  36.                       ts: Long,
  37.                       request: LogRequest,
  38.                       result: LogResult,
  39.                       coefficients: Coefficients,
  40.                       estimates: Seq[BannerEstimate]
  41.                       )
  42.  
  43.   case class BannerEstimate(
  44.                              bannerId: Int,
  45.                              optimization: OptimizationType,
  46.                              budget: Double,
  47.                              remainingBudget: Double,
  48.                              time: Long,
  49.                              remainingTime: Long,
  50.                              p: Double,
  51.                              weight: Double,
  52.                              bannerOutPrice: Double,
  53.                              CPMbid: Double,
  54.                              v1: EstimateV1,
  55.                              v2: EstimateV2
  56.                              )
  57.  
  58.   case class EstimateV1(
  59.                          prt: Int,
  60.                          l: Double,
  61.                          bannerIncome: Double,
  62.                          bannerOutcome: Double,
  63.                          bannerShowCount: Int,
  64.                          m1: Double,
  65.                          m2: Double,
  66.                          m: Double,
  67.                          CPMmax: Double,
  68.                          lBid: Double
  69.                          )
  70.  
  71.   case class EstimateV2(
  72.                          priceMax: Double,
  73.                          Vnom: Double,
  74.                          V: Double,
  75.                          L: Double,
  76.                          income: Double,
  77.                          basePrice: Double,
  78.                          floorPrice: Double,
  79.                          T: Double,
  80.                          x: Double,
  81.                          y: Double
  82.                          )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement