Skip to content

Commit 66e6396

Browse files
authored
Fix topContributorCount to be optional with default of 10 (#23806)
1 parent 53240eb commit 66e6396

File tree

2 files changed

+4
-6
lines changed
  • specification/cognitiveservices

2 files changed

+4
-6
lines changed

specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,9 @@ to be detected.
129129
dataSource: url;
130130

131131
@doc("""
132-
Number of top contributed
133-
variables for one anomalous time stamp in the response. The default is
134-
10.
132+
Number of top contributed variables for one anomalous time stamp in the response.
135133
""")
136-
topContributorCount: int32;
134+
topContributorCount?: int32 = 10;
137135

138136
@doc("""
139137
Start date/time of data for detection, which should

specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/openapi.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,8 @@
936936
"topContributorCount": {
937937
"type": "integer",
938938
"format": "int32",
939-
"description": "Number of top contributed\nvariables for one anomalous time stamp in the response. The default is\n10."
939+
"description": "Number of top contributed variables for one anomalous time stamp in the response.",
940+
"default": 10
940941
},
941942
"startTime": {
942943
"type": "string",
@@ -952,7 +953,6 @@
952953
"description": "Detection request for batch inference. This is an asynchronous inference that\nwill need another API to get detection results.",
953954
"required": [
954955
"dataSource",
955-
"topContributorCount",
956956
"startTime",
957957
"endTime"
958958
]

0 commit comments

Comments
 (0)