Skip to content

Instantly share code, notes, and snippets.

@jdkealy
Created January 2, 2014 17:05
Show Gist options
  • Save jdkealy/8222456 to your computer and use it in GitHub Desktop.
Save jdkealy/8222456 to your computer and use it in GitHub Desktop.
def source_available_metrics
{
"friends" => {'cumulative'=>true, 'name'=>"Friends", 'primary'=>'true'},
"likes" => {'cumulative'=>false, 'name'=>"Likes Count"},
"posts" => {'cumulative'=>false, 'name'=>"Posts", 'primary'=>'true'},
"comments" => {'cumulative'=>false, 'name'=>"Comments", 'primary'=>'true'},
"post_comment_count" => {'cumulative'=>false, 'name'=>"Post Comments"}
}
end
@jdkealy
Copy link
Author

jdkealy commented Jan 2, 2014

def source_available_metrics
{
"friends" => {'cumulative'=>true, 'name'=>"Friends", 'primary'=>'true'},
"likes" => {'cumulative'=>false, 'name'=>"Likes Count", 'available_filters'=>['post_comment_count']},
"posts" => {'cumulative'=>false, 'name'=>"Posts", 'primary'=>'true', 'available_filters'=>['post_comment_count', 'likes']},
"comments" => {'cumulative'=>false, 'name'=>"Comments", 'primary'=>'true'},
"post_comment_count" => {'cumulative'=>false, 'name'=>"Post Comments", 'available_filters'=>['likes']}
}
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment