Skip to content

Commit 9932971

Browse files
catalinaperaltalmazuelweidongxu-microsoftpshao25jr-MS
authored
[AnomalyDetector] Add CADL specification for Anomaly Detector v1.1 (#21525)
* add univariate cadl definitions * add cadl project yaml and main cadl * add package.json * add initial multivariate cadl definitions * update cadl-project.yaml and package.json * update route names * add univariate azure core operation defs * update multivariate models for correctness * update routes to reflect service instead of using cadl azure operation signatures * update multivariate models for correctness with original swagger * a note about errors * decorate request and response bodies with body decorator * update package.json to point to next package versions * fix routes to match swagger names * add client.cadl * remove client.cadl * fix GetBatchDetectionResult def * add namespace for univariate models * Version AD (#21497) * Update main.cadl * fix versioning * leave api version as required Co-authored-by: Catalina Peralta <[email protected]> * add extensible api version enum * update cadl-project.yaml with python config * update sdk version * clean up routes * clean up cadl-project.yaml * clean up models * update package.json to ref latest deps * add newline * add more models docs * fix error response models * rename get multivariate batch result * Cadl dpg add convenience api (#21575) * add @convenienceAPI * move @convenienceAPI to client.cadl * add placeholder examples file * add generated openapi spec * delete older swaggers * update cadl-project.yaml * update package.json * Add cadl-csharp parameters for AnomalyDetector (#21647) * Change cadl-project * Add .net parameters * Fix * update error header uvad * Make model-namespace false for .net (#21686) * [AnomalyDetector] Archboard feedback (#21680) * rename to train only * archboard naming feedback * rename response to result * archboard renames mvad requests to options * rename uvad request to options * rename model * rename model on operations * more mvad renames * update body naming * update body param naming to not use a reserved keyword * restructure cadl files * move generated cadl * update client.cadl * update swagger output * Update specification/cognitiveservices/AnomalyDetector/univariate/models.cadl Co-authored-by: jr-MS <[email protected]> * Update specification/cognitiveservices/AnomalyDetector/univariate/routes.cadl Co-authored-by: jr-MS <[email protected]> * Update specification/cognitiveservices/AnomalyDetector/multivariate/models.cadl Co-authored-by: jr-MS <[email protected]> * Update specification/cognitiveservices/AnomalyDetector/multivariate/routes.cadl Co-authored-by: jr-MS <[email protected]> * Update specification/cognitiveservices/AnomalyDetector/multivariate/models.cadl Co-authored-by: jr-MS <[email protected]> * Update specification/cognitiveservices/AnomalyDetector/multivariate/models.cadl Co-authored-by: jr-MS <[email protected]> * Update specification/cognitiveservices/AnomalyDetector/multivariate/models.cadl Co-authored-by: jr-MS <[email protected]> * Update specification/cognitiveservices/AnomalyDetector/multivariate/models.cadl Co-authored-by: jr-MS <[email protected]> * Update specification/cognitiveservices/AnomalyDetector/multivariate/models.cadl Co-authored-by: jr-MS <[email protected]> * make data schema enum extensible * make errors on ModelInfo readonly * update swagger * update readme swagger refs * add apiview to custom-words.txt * update more refs in readme * move existing examples up with CADL files * configure swagger file name in emmiter * format examples * point to examples dir in cadl-project.yaml * add generated swagger and examples Co-authored-by: Laurent Mazuel <[email protected]> Co-authored-by: Weidong Xu <[email protected]> Co-authored-by: Pan Shao <[email protected]> Co-authored-by: jr-MS <[email protected]>
1 parent 878fe92 commit 9932971

33 files changed

+5929
-1818
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ apimversionsets
126126
API's
127127
apiserver
128128
apitoken
129+
apiview
129130
APNIC
130131
APNS
131132
appconfig
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
emitters:
2+
"@azure-tools/cadl-autorest":
3+
"output-file": "openapi.json"
4+
"examples-directory": ./examples
5+
"@azure-tools/cadl-python":
6+
"basic-setup-py": true
7+
"package-version": 3.0.0b6
8+
"package-name": azure-ai-anomalydetector
9+
# "output-path":
10+
# Uncomment this line and add "@azure-tools/cadl-java" to your package.json to generate Java code
11+
# "@azure-tools/cadl-java": true
12+
# Uncomment this line and add "@azure-tools/cadl-csharp" to your package.json to generate C# code
13+
"@azure-tools/cadl-csharp":
14+
save-inputs: false
15+
clear-output-folder: true
16+
namespace: Azure.AI.AnomalyDetector
17+
model-namespace: false
18+
# Uncomment this line and add "@azure-tools/cadl-typescript" to your package.json to generate Typescript code
19+
# "@azure-tools/cadl-typescript": true
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import "@azure-tools/cadl-dpg";
2+
import "./main.cadl";
3+
4+
using Azure.DPG;
5+
6+
@@convenienceAPI(AnomalyDetector.Multivariate.GetMultivariateBatchDetectionResult)
7+
@@convenienceAPI(AnomalyDetector.Multivariate.TrainMultivariateModel)
8+
@@convenienceAPI(AnomalyDetector.Multivariate.ListMultivariateModels)
9+
@@convenienceAPI(AnomalyDetector.Multivariate.DeleteMultivariateModel)
10+
@@convenienceAPI(AnomalyDetector.Multivariate.GetMultivariateModel)
11+
@@convenienceAPI(AnomalyDetector.Multivariate.DetectMultivariateBatchAnomaly)
12+
@@convenienceAPI(AnomalyDetector.Multivariate.DetectMultivariateLastAnomaly)
13+
14+
@@convenienceAPI(AnomalyDetector.Univariate.DetectUnivariateEntireSeries)
15+
@@convenienceAPI(AnomalyDetector.Univariate.DetectUnivariateLastPoint)
16+
@@convenienceAPI(AnomalyDetector.Univariate.DetectUnivariateChangePoint)

0 commit comments

Comments
 (0)