Skip to content

Instantly share code, notes, and snippets.

@lmazuel
Last active March 20, 2023 22:41
Show Gist options
  • Save lmazuel/d629a0d85e8b31869cfd4529f0483ce1 to your computer and use it in GitHub Desktop.
Save lmazuel/d629a0d85e8b31869cfd4529f0483ce1 to your computer and use it in GitHub Desktop.
Train Anomaly Detector
Status code: 201
Headers:
'Content-Length': '594',
'Content-Type': 'application/json'
'Location': 'https://lmazuelanom.cognitiveservices.azure.com:443/anomalydetector/v1.1/multivariate/models/0c46cef0-c76e-11ed-83a5-8247640b151e'
'x-envoy-upstream-service-time': '247'
'apim-request-id': 'b5437cd9-f2f1-401b-b431-0993c096350c'
'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload'
'x-content-type-options': 'nosniff'
'x-ms-region': 'East US'
'Date': 'Mon, 20 Mar 2023 22:24:57 GMT'
{
"modelId": "0c46cef0-c76e-11ed-83a5-8247640b151e",
"createdTime": "2023-03-20T22:24:58Z",
"lastUpdatedTime": "2023-03-20T22:24:58Z",
"modelInfo": {
"dataSource": "{Your Blob Url}",
"dataSchema": "MultiTable",
"startTime": "2021-01-02T00:00:00Z",
"endTime": "2021-01-02T05:00:00Z",
"displayName": "sample",
"slidingWindow": 200,
"alignPolicy": {
"alignMode": "Outer",
"fillNAMethod": "Linear",
"paddingValue": 0.0
},
"status": "CREATED",
"errors": [],
"diagnosticsInfo": {
"modelState": {
"epochIds": [],
"trainLosses": [],
"validationLosses": [],
"latenciesInSeconds": []
},
"variableStates": []
}
}
}
{
"modelId": "0c46cef0-c76e-11ed-83a5-8247640b151e",
"createdTime": "2023-03-20T22:24:58Z",
"lastUpdatedTime": "2023-03-20T22:25:00Z",
"modelInfo": {
"dataSource": "{Your Blob Url}",
"dataSchema": "MultiTable",
"startTime": "2021-01-02T00:00:00Z",
"endTime": "2021-01-02T05:00:00Z",
"displayName": "sample",
"slidingWindow": 200,
"alignPolicy": {
"alignMode": "Outer",
"fillNAMethod": "Linear",
"paddingValue": 0.0
},
"status": "FAILED",
"errors": [{
"code": "GetDataError",
"message": "InvalidBlobURLError('Parse blob url failed, url does not contain container name', inner_exception=None)"
}],
"diagnosticsInfo": {
"modelState": {
"epochIds": [],
"trainLosses": [],
"validationLosses": [],
"latenciesInSeconds": []
},
"variableStates": []
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment