-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Monitor query align the request bodies #16760
Monitor query align the request bodies #16760
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad we're fixing the tests! But I think at the very least additionalWorkspaces
should be in the QueryLogsOptions
bag, and I recommend renaming additionalWorkspaces
to additionalWorkspaceIds
Of course, any of our architects can veto my change request here 😄
@@ -13,15 +13,12 @@ export type AggregationType = "None" | "Average" | "Count" | "Minimum" | "Maximu | |||
|
|||
// @public | |||
export interface BatchQuery { | |||
azureResourceIds?: string[]; | |||
additionalWorkspaces?: string[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
additionalWorkspaceIds
maybe? Unless this is how all languages called it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this is across all languages
@@ -83,7 +80,7 @@ export type LogsColumnType = string; | |||
// @public | |||
export class LogsQueryClient { | |||
constructor(tokenCredential: TokenCredential, options?: LogsQueryClientOptions); | |||
queryLogs(workspaceId: string, query: string, timespan: string, options?: QueryLogsOptions): Promise<QueryLogsResult>; | |||
queryLogs(workspaceId: string, query: string, timespan: string, additionalWorkspaces?: string[], options?: QueryLogsOptions): Promise<QueryLogsResult>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think additionalWorkspaces
should be in the options
bag - at least that's how I'm used to seeing additional optional params
@@ -89,7 +91,8 @@ export class LogsQueryClient { | |||
workspaceId, | |||
{ | |||
query, | |||
timespan | |||
timespan, | |||
workspaces: additionalWorkspaces?.map((x) => x) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need this map
here right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will it just copy it completely?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just needs a changelog entry
895140f
to
ce0f506
Compare
[Hub Generated] Review request for Microsoft.BotService to add version preview/2021-05-01-preview (Azure#16760) * rename * change to enum * fix bug * fix example
Update:
-Change the tests to last 2 days to combat slower ingestion times.