Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Getting started

This component helps you to automatically validate the project in the CleverMaps platform and ensure that nothing was broken in the data or configuration during the updates. Validation is configured with the set of checks.

Currently you can validate following scenarios:

  • All metrics are computable (real value is returned)

  • Metric value falls into the expected range

  • Column has expected distinct values (e.g. fixed string values which are used further in analysis)

  • Metric is computable on expected dimensions

Configuration

CleverMaps connection

{
  "project_id": "<YOUR-CLEVERMAPS-PROJECT_ID>",
  "#access_token": "<YOUR-CLEVERMAPS-TOKEN>",
  "server_url": "https://secure.clevermaps.io"
}

All metrics validation

{
  "project_id": "<YOUR-CLEVERMAPS-PROJECT_ID>",
  "#access_token": "<YOUR-CLEVERMAPS-TOKEN>",
  "server_url": "https://secure.clevermaps.io",
  "validations": {
    "metrics_all": []
  }
}

Expected metric values

{
  "project_id": "<YOUR-CLEVERMAPS-PROJECT_ID>",
  "#access_token": "<YOUR-CLEVERMAPS-TOKEN>",
  "server_url": "https://secure.clevermaps.io",
  "validations": {
    "metrics_expected": [
      {
        "metric": "<METRIC-NAME>",
        "expected_between": [
          <EXPECTED-MIN>,
          <EXPECTED-MAX>
        ]
      }
    ]
  }
}

Available datasets

{
  "project_id": "<YOUR-CLEVERMAPS-PROJECT_ID>",
  "#access_token": "<YOUR-CLEVERMAPS-TOKEN>",
  "server_url": "https://secure.clevermaps.io",
  "validations": {
    "available_datasets": [
      {
        "metric_name": "<METRIC-NAME>",
        "expected_datasets": [
          "<EXPECTED-DATASET-1>",
          "<EXPECTED-DATASET-2>"",
          "<EXPECTED-DATASET-3>""
        ]
      }
    ]
  }
}

Distinct column values

{
  "project_id": "<YOUR-CLEVERMAPS-PROJECT_ID>",
  "#access_token": "<YOUR-CLEVERMAPS-TOKEN>",
  "server_url": "https://secure.clevermaps.io",
  "validations": {
    "property_values": [
      {
        "property_name": "<DATASET-NAME>.<COLUMN-NAME>",
        "expected_values": [
          <EXPECTED-VALUE-1>,
          <EXPECTED-VALUE-2>,
          <EXPECTED-VALUE-3>
        ]
      }
    ]
  }
}
  • No labels