Skip to content

metarank/metarank-snowplow

Repository files navigation

Snowplow Iglu schemas for Metarank

CI Status License: Apache 2 Last commit

This repo contains a set of JSON schemas for Snowplow Iglu registry to integrate Snowplow and Metarank. See the main Metarank Snowplow integration document for details on setting this thing up.

Contents

Schemas in schemas directory are regular JSONSchema schemas, so you can use these to validate your events even without the Snowplow Enrich.

There are four different Metarank event types with the corresponding schemas:

  1. ai.metarank/item/jsonschema/1-0-0: item metadata event
  2. ai.metarank/user/jsonschema/1-0-0: user metadata event
  3. ai.metarank/ranking/jsonschema/1-0-0: ranking event
  4. ai.metarank/interaction/jsonschema/1-0-0: interaction event

Check out the main metarank docs about event type format details.

Schema resolution

These schemas are published automatically on https://iglu.metarank.ai, you can use the following resolver.json snippet to use it in the enrichment pass:

{
  "schema": "iglu:com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-1",
  "data": {
    "cacheSize": 500,
    "repositories": [
      {
        "name": "Metarank",
        "priority": 0,
        "vendorPrefixes": [ "ai.metarank" ],
        "connection": {
          "http": {
            "uri": "https://iglu.metarank.ai"
          }
        }
      }
    ]
  }
}

Both http and https schemas are supported, but https is recommended.

License

Licensed under the Apache 2.0 license.

About

Iglu schemas for Snowplow-Metarank integration

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages