Skip to content

Commit

Permalink
Merge branch 'main' into juaduan/mvad_swagger_latest
Browse files Browse the repository at this point in the history
  • Loading branch information
juaduan authored Nov 8, 2021
2 parents fef9721 + dd1d25d commit 9524fe7
Show file tree
Hide file tree
Showing 4 changed files with 438 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,63 @@
"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 @@ -277,6 +334,10 @@
"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 @@ -307,7 +368,8 @@
"isPositiveAnomaly",
"lowerMargins",
"period",
"upperMargins"
"upperMargins",
"severity"
],
"properties": {
"period": {
Expand Down Expand Up @@ -365,6 +427,15 @@
"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 @@ -378,7 +449,8 @@
"lowerMargin",
"period",
"upperMargin",
"suggestedWindow"
"suggestedWindow",
"severity"
],
"properties": {
"period": {
Expand Down Expand Up @@ -417,6 +489,11 @@
"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 @@ -501,4 +578,4 @@
"x-ms-skip-url-encoding": true
}
}
}
}
Loading

0 comments on commit 9524fe7

Please sign in to comment.