mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 06:24:48 +08:00
Previously, low-volume crawler traffic without measured interaction could avoid classification, and crawler and data-center ASN signals had the same weight. Added metrics: - Separate verified crawler and data-centre ASN scores; - Detect unengaged single direct requests, including localised URLs; - Add a small signal for stale Chrome fingerprints.
28 lines
1.2 KiB
Ruby
Vendored
28 lines
1.2 KiB
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
class BrowserPageviewEventScore < ActiveRecord::Base
|
|
belongs_to :event, class_name: "BrowserPageviewEvent"
|
|
end
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: browser_pageview_event_scores
|
|
#
|
|
# id :bigint not null, primary key
|
|
# automation_ua_score :integer default(0), not null
|
|
# churn_score :integer default(0), not null
|
|
# datacenter_asn_score :integer default(0), not null
|
|
# engagement_score :integer default(0), not null
|
|
# ip_rotation_score :integer default(0), not null
|
|
# known_asn_score :integer default(0), not null
|
|
# rapid_nav_score :integer default(0), not null
|
|
# referrer_score :integer default(0), not null
|
|
# single_request_no_referrer_score :integer default(0), not null
|
|
# stale_browser_score :integer default(0), not null
|
|
# velocity_score :integer default(0), not null
|
|
# event_id :bigint not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_browser_pageview_event_scores_on_event_id (event_id) UNIQUE
|
|
#
|