Migrate from Azure in 90 Seconds
Two lines of code. That's it.
1
Get Your API Key
- Sign up at canaryedge.com
- Create an organization and project
- 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 Field | Canary Edge Field | Notes |
|---|---|---|
| isAnomaly | isAnomaly | Identical |
| isPositiveAnomaly | isPositiveAnomaly | Identical |
| isNegativeAnomaly | isNegativeAnomaly | Identical |
| expectedValues | expectedValues | Identical |
| upperMargins | upperMargins | Identical |
| lowerMargins | lowerMargins | Identical |
| period | period | Identical |
| severity | severity | Identical (v1.1) |
| score | score | Identical (v1.1) |
Frequently Asked Questions
Ready to migrate?
Free tier includes 10,000 data points per month.