Skip to content

Commit

Permalink
Revert "Merge branch 'main' into juaduan/mvad_swagger_latest"
Browse files Browse the repository at this point in the history
This reverts commit 9524fe7, reversing
changes made to fef9721.
  • Loading branch information
juaduan committed Nov 9, 2021
1 parent 7b99f27 commit c2d340d
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 429 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,63 +243,6 @@
"x-nullable": false,
"description": "Custom Interval is used to set non-standard time interval, for example, if the series is 5 minutes, request can be set as {\"granularity\":\"minutely\", \"customInterval\":5}."
},
"ImputeMode": {
"type": "string",
"description": "Define the impute method, can be one of auto, previous, linear, fixed, zero, notFill.",
"x-nullable": false,
"x-ms-enum": {
"name": "ImputeMode",
"modelAsString": false,
"values": [
{
"value": "auto"
},
{
"value": "previous"
},
{
"value": "linear"
},
{
"value": "fixed"
},
{
"value": "zero"
},
{
"value": "notFill"
}
],
"enum": [
"auto",
"previous",
"linear",
"fixed",
"zero",
"notFill"
]
}
},
"ImputeValue": {
"type": "number",
"format": "float",
"x-nullable": false,
"description": "Used when imputeMode set to \"fixed\", in this case, it will be used to impute the missing values."
},
"ImputeSrtategy": {
"type": "object",
"required": [
"imputeMode"
],
"properties": {
"imputeMode": {
"$ref": "#/definitions/ImputeMode"
},
"imputeValue": {
"$ref": "#/definitions/ImputeValue"
}
}
},
"DetectRequest": {
"type": "object",
"required": [
Expand Down Expand Up @@ -334,10 +277,6 @@
"type": "integer",
"format": "int32",
"description": "Optional argument, advanced model parameter, between 0-99, the lower the value is, the larger the margin value will be which means less anomalies will be accepted."
},
"imputeStrategy": {
"description": "Used to specify how to deal with missing values in the input series, it's used when granularity is not \"none\"",
"$ref": "#/definitions/ImputeSrtategy"
}
}
},
Expand Down Expand Up @@ -368,8 +307,7 @@
"isPositiveAnomaly",
"lowerMargins",
"period",
"upperMargins",
"severity"
"upperMargins"
],
"properties": {
"period": {
Expand Down Expand Up @@ -427,15 +365,6 @@
"type": "boolean",
"x-nullable": false
}
},
"severity": {
"type": "array",
"description": "The severity score for each input point. The larger the value is, the more sever the anomaly is. For normal points, the \"severity\" is always 0.",
"items": {
"type": "number",
"format": "float",
"x-nullable": false
}
}
}
},
Expand All @@ -449,8 +378,7 @@
"lowerMargin",
"period",
"upperMargin",
"suggestedWindow",
"severity"
"suggestedWindow"
],
"properties": {
"period": {
Expand Down Expand Up @@ -489,11 +417,6 @@
"isPositiveAnomaly": {
"type": "boolean",
"description": "Anomaly status in positive direction of the latest point. True means the latest point is an anomaly and its real value is larger than the expected one."
},
"severity": {
"type": "number",
"format": "float",
"description": "The severity score of the lates point. The larger the value is, the more sever the anomaly is. For normal points, the \"severity\" is always 0."
}
}
},
Expand Down Expand Up @@ -578,4 +501,4 @@
"x-ms-skip-url-encoding": true
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@
}
}
},
"summary": "Train a Multivariate Anomaly Detection Model",
"summary": "Train a Multivariate Anomaly Detection Model",
"operationId": "TrainMultivariateModel",
"parameters": [
{
"name": "modelRequest",
"in": "body",
"name": "modelRequest",
"in": "body",
"required": true,
"description": "Training request",
"description": "Training request",
"schema": {
"$ref": "#/definitions/ModelInfo"
}
Expand All @@ -76,7 +76,7 @@
"tags": [
"MultivariateAnomalyDetection"
],
"x-ms-examples": {
"x-ms-examples": {
"Train Multivariate model": {
"$ref": "./examples/TrainModel.json"
}
Expand All @@ -88,7 +88,7 @@
"parameters": [
{
"name": "modelId",
"description": "Model identifier.",
"description": "Model identifier.",
"format": "uuid",
"in": "path",
"required": true,
Expand All @@ -110,13 +110,13 @@
}
}
},
"summary": "Get Multivariate Model",
"summary": "Get Multivariate Model",
"description": "Get detailed information of multivariate model, including the training status and variables used in the model.",
"operationId": "GetMultivariateModel",
"tags": [
"MultivariateAnomalyDetection"
],
"x-ms-examples": {
"x-ms-examples": {
"Get multivariate model": {
"$ref": "./examples/GetModel.json"
}
Expand All @@ -134,7 +134,7 @@
}
}
},
"x-ms-examples": {
"x-ms-examples": {
"Delete multivariate model": {
"$ref": "./examples/DeleteModel.json"
}
Expand All @@ -151,9 +151,9 @@
"parameters": [
{
"name": "modelId",
"description": "Model identifier.",
"description": "Model identifier.",
"in": "path",
"format": "uuid",
"format": "uuid",
"required": true,
"type": "string"
}
Expand All @@ -176,18 +176,18 @@
}
}
},
"summary": "Detect Multivariate Anomaly",
"summary": "Detect Multivariate Anomaly",
"description": "Submit detection multivariate anomaly task with the trained model of modelId, the input schema should be the same with the training request. Thus request will be complete asynchronously and will return a resultId for querying the detection result.The request should be a source link to indicate an externally accessible Azure storage Uri (preferably a Shared Access Signature Uri). All time-series used in generate the model must be zipped into one single file. Each time-series will be as follows: the first column is timestamp and the second column is value.",
"operationId": "DetectAnomaly",
"x-ms-examples": {
"x-ms-examples": {
"Detect anomaly with multivariate Model": {
"$ref": "./examples/DetectAnomaly.json"
}
},
"parameters": [
{
"name": "detectionRequest",
"description": "Detect anomaly request",
"name": "detectionRequest",
"description": "Detect anomaly request",
"required": true,
"in": "body",
"schema": {
Expand All @@ -200,15 +200,15 @@
]
}
},
"/multivariate/results/{resultId}": {
"/multivariate/results/{resultId}": {
"parameters": [
{
"name": "resultId",
"description": "Result identifier.",
"description": "Result identifier.",
"in": "path",
"required": true,
"type": "string",
"format": "uuid"
"format": "uuid"
}
],
"get": {
Expand All @@ -226,14 +226,14 @@
}
}
},
"x-ms-examples": {
"x-ms-examples": {
"Get detection result": {
"$ref": "./examples/GetResult.json"
}
},
"summary": "Get Multivariate Anomaly Detection Result",
"operationId": "GetDetectionResult",
"description": "Get multivariate anomaly detection result based on resultId returned by the DetectAnomalyAsync api",
"description": "Get multivariate anomaly detection result based on resultId returned by the DetectAnomalyAsync api",
"tags": [
"MultivariateAnomalyDetection"
]
Expand All @@ -243,11 +243,11 @@
"parameters": [
{
"name": "modelId",
"description": "Model identifier.",
"description": "Model identifier.",
"in": "path",
"required": true,
"type": "string",
"format": "uuid"
"format": "uuid"
}
],
"get": {
Expand All @@ -259,8 +259,8 @@
"description": "application/zip",
"type": "string"
}
},
"schema": {
},
"schema": {
"type": "object",
"format": "file"
}
Expand All @@ -272,7 +272,7 @@
}
}
},
"x-ms-examples": {
"x-ms-examples": {
"Get detection result": {
"$ref": "./examples/ExportModel.json"
}
Expand Down Expand Up @@ -779,19 +779,19 @@
"properties": {
"modelId": {
"type": "string",
"format": "uuid",
"description": "Model identifier.",
"format": "uuid",
"description": "Model identifier.",
"example": "45aad126-aafd-11ea-b8fb-d89ef3400c5f"
},
"createdTime": {
"type": "string",
"format": "date-time",
"format": "date-time",
"description": "Date and time (UTC) when the model was created.",
"example": "2020-06-30T00:00:00Z"
},
"lastUpdatedTime": {
"type": "string",
"format": "date-time",
"format": "date-time",
"description": "Date and time (UTC) when the model was last updated.",
"example": "2020-06-30T00:00:00Z"
},
Expand Down Expand Up @@ -827,7 +827,7 @@
"currentCount": {
"type": "integer",
"description": "Current count of trained multivariate models.",
"x-nullable": false,
"x-nullable": false,
"example": 10
},
"lastUpdatedTime": {
Expand All @@ -841,7 +841,7 @@
"DetectionRequest": {
"required": [
"source",
"endTime",
"endTime",
"startTime"
],
"properties": {
Expand Down Expand Up @@ -998,7 +998,7 @@
"properties": {
"timestamp": {
"type": "string",
"format": "date-time",
"format": "date-time",
"description": "timestamp",
"example": "2020-01-01T00:00:00Z"
},
Expand All @@ -1018,7 +1018,6 @@
"AnomalyValue": {
"required": [
"isAnomaly",
"score",
"severity"
],
"properties": {
Expand Down
Loading

0 comments on commit c2d340d

Please sign in to comment.