Migrate from Azure in 90 Seconds

Two lines of code. That's it.

1

Get Your API Key

  1. Sign up at canaryedge.com
  2. Create an organization and project
  3. Copy your API key — it starts with cnry_live_
CE

Your API Key

cnry_live_sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

2

Change Two Lines

Before (Azure)
-from azure.ai.anomalydetector import AnomalyDetectorClient
-from azure.core.credentials import AzureKeyCredential
-
-endpoint = "https://your-resource.cognitiveservices.azure.com"
-key = "your-azure-key"
-
-client = AnomalyDetectorClient(endpoint, AzureKeyCredential(key))
After (Canary Edge)
+from azure.ai.anomalydetector import AnomalyDetectorClient
+from azure.core.credentials import AzureKeyCredential
+
+endpoint = "https://api.canaryedge.com"
+key = "cnry_live_your_key_here"
+
+client = AnomalyDetectorClient(endpoint, AzureKeyCredential(key))
3

Verify

Run this test request to confirm everything works:

Test request
curl -X POST "https://api.canaryedge.com/anomalydetector/v1.1/timeseries/entire/detect" \
  -H "Ocp-Apim-Subscription-Key: cnry_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "series": [
      {"timestamp": "2024-01-01T00:00:00Z", "value": 10.0},
      {"timestamp": "2024-01-02T00:00:00Z", "value": 10.2},
      {"timestamp": "2024-01-03T00:00:00Z", "value": 10.1},
      {"timestamp": "2024-01-04T00:00:00Z", "value": 50.0},
      {"timestamp": "2024-01-05T00:00:00Z", "value": 10.3}
    ],
    "granularity": "daily"
  }'

Expected response:

Response
{
  "isAnomaly": [false, false, false, true, false],
  "expectedValues": [10.1, 10.1, 10.1, 10.1, 10.1],
  "severity": [0.0, 0.0, 0.0, 0.92, 0.0],
  "period": 0
}

Field Mapping Reference

Every Azure response field maps 1:1 to Canary Edge.

Azure FieldCanary Edge FieldNotes
isAnomalyisAnomalyIdentical
isPositiveAnomalyisPositiveAnomalyIdentical
isNegativeAnomalyisNegativeAnomalyIdentical
expectedValuesexpectedValuesIdentical
upperMarginsupperMarginsIdentical
lowerMarginslowerMarginsIdentical
periodperiodIdentical
severityseverityIdentical (v1.1)
scorescoreIdentical (v1.1)

Frequently Asked Questions

Ready to migrate?

Free tier includes 10,000 data points per month.