Skip to content

MeTLing Pot

captainmisterhagan edited this page Dec 30, 2016 · 10 revisions

MeTLing Pot is a data store of events emitted by other systems (most notably MeTL).

MeTL Events

MeTL action MeTLing Pot receives
Join Conversation Join event
Leave Conversation Leave event
Text on Canvas Text entered
Ink on Canvas Text analysed from ink
Image on Canvas Text analysed from image, classifications attributed to image
Grade awarded Grade
Poll answered Choice

Search MeTLing Pot

  1. Login to AWS
  2. Open the Lambda Console (under Compute)
  3. Go to Functions
  4. Select the searchMeTLingPot function
  5. Actions | Configure test event

Enter the following query:

{
  "before":9999999999999,
  "after":1482551459596,
  "query":{
    "source":["canvasContentChunkAnalyzer","metlRoom","metlActor"]
  }
}

API Gateway

JSON PUT -> Lambda -> JSON result

AWS

API Gateway

  1. Application Services | API Gateway
  2. MeTLingPotInputItem | Stages | [future]
  3. Export | Export as Swagger + Postman Extensions (JSON)

API Key

From usage plan.

  1. Application Services | API Keys
  2. Actions | Create API key
  3. API Key | Show ([apiKey])

AccessKey / SecretKey

From IAM user.

  1. Security, Identity and Compliance | IAM
  2. Add User
  3. Add to Group: metlingPotAccess

Postman

  1. Import
  2. Browse to exported JSON
  3. MetlingPotInputItem | smartgroups

Headers

Add header:

x-api-key = [apiKey]

Authorisation

Name Value
AccessKey [accessKey]
SecretKey [secretKey]
AWS Region us-east-1
Service name execute-api

Clone this wiki locally