Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix topContributorCount to be optional with default of 10 #23806

Merged
merged 1 commit into from
May 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,9 @@ to be detected.
dataSource: url;

@doc("""
Number of top contributed
variables for one anomalous time stamp in the response. The default is
10.
Number of top contributed variables for one anomalous time stamp in the response.
""")
topContributorCount: int32;
topContributorCount?: int32 = 10;
heaths marked this conversation as resolved.
Show resolved Hide resolved

@doc("""
Start date/time of data for detection, which should
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,8 @@
"topContributorCount": {
"type": "integer",
"format": "int32",
"description": "Number of top contributed\nvariables for one anomalous time stamp in the response. The default is\n10."
"description": "Number of top contributed variables for one anomalous time stamp in the response.",
"default": 10
},
"startTime": {
"type": "string",
Expand All @@ -952,7 +953,6 @@
"description": "Detection request for batch inference. This is an asynchronous inference that\nwill need another API to get detection results.",
"required": [
"dataSource",
"topContributorCount",
"startTime",
"endTime"
]
Expand Down