Skip to content
This repository has been archived by the owner on Feb 13, 2018. It is now read-only.

alphagov/govuk-tagging-events-experiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tagging events spike

The results of a spike into using Kibana for tagging analytics

What we did

First, you'll need a AWS elasticsearch service:

https://aws.amazon.com/elasticsearch-service/

Replace the AWS_SERVICE constant in send-to-aws.rb.

Then generate a CSV (events.json) with events from the publishing-api:

alphagov/publishing-api#944

Then generate the users.json with this incantation in signon:

File.write(
  "users.json",
  JSON.dump(
    User.includes(:organisation).map { |u| { user_uid: u.uid, name: u.name, organisation: u.organisation.try(:name) } }
  )
)

Then send the data to AWS:

ruby send-to-s3.rb

About

No description or website provided.

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages