-
-
Save axsuul/3420759 to your computer and use it in GitHub Desktop.
Thrift auto generated event types file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Autogenerated by Thrift | |
# | |
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING | |
# | |
require 'exception_types' | |
require 'shared_types' | |
module Scope | |
# The message is intended for the advertiser. | |
ADVERTISER = 0 | |
# The message is intended for the logged-in business user. | |
BUSINESSUSER = 1 | |
# The message is intended for the business. | |
BUSINESS = 2 | |
# The message is intended for the co-brand. | |
COBRAND = 3 | |
DIGITALPRESENCE = 4 | |
# The message is intended for the campaign related actions. | |
CAMPAIGN = 5 | |
# The message is a test | |
TEST = 6 | |
VALUE_MAP = {0 => "ADVERTISER", 1 => "BUSINESSUSER", 2 => "BUSINESS", 3 => "COBRAND", 4 => "DIGITALPRESENCE", 5 => "CAMPAIGN", 6 => "TEST"} | |
VALID_VALUES = Set.new([ADVERTISER, BUSINESSUSER, BUSINESS, COBRAND, DIGITALPRESENCE, CAMPAIGN, TEST]).freeze | |
end | |
module Aggregate | |
AVG = 0 | |
CNT = 1 | |
MIN = 2 | |
MAX = 3 | |
SUM = 4 | |
VALUE_MAP = {0 => "AVG", 1 => "CNT", 2 => "MIN", 3 => "MAX", 4 => "SUM"} | |
VALID_VALUES = Set.new([AVG, CNT, MIN, MAX, SUM]).freeze | |
end | |
.... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment