forked from Azure/azure-sdk-for-js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MetricsAdvisor] Flatten DataFeedOptions in data feed (Azure#12263)
and remove the wrapping `options`. We were putting into it all the rest of optional settings that don't fit into any of groupings but it's not necessary.
- Loading branch information
1 parent
25464c7
commit e918a3e
Showing
11 changed files
with
179 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -197,18 +197,16 @@ async function createDataFeed(adminClient, sqlServerConnectionString, sqlServerQ | |
ingestionRetryDelayInSeconds: -1, | ||
stopRetryAfterInSeconds: -1 | ||
}, | ||
options: { | ||
rollupSettings: { | ||
rollupType: "AutoRollup", | ||
rollupMethod: "Sum", | ||
rollupIdentificationValue: "__CUSTOM_SUM__" | ||
}, | ||
missingDataPointFillSettings: { | ||
fillType: "SmartFilling" | ||
}, | ||
accessMode: "Private", | ||
adminEmails: ["[email protected]"] | ||
} | ||
rollupSettings: { | ||
rollupType: "AutoRollup", | ||
rollupMethod: "Sum", | ||
rollupIdentificationValue: "__CUSTOM_SUM__" | ||
}, | ||
missingDataPointFillSettings: { | ||
fillType: "SmartFilling" | ||
}, | ||
accessMode: "Private", | ||
adminEmails: ["[email protected]"] | ||
}; | ||
const result = await adminClient.createDataFeed(dataFeed); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,18 +116,16 @@ async function createDataFeed(adminClient, sqlServerConnectionString, sqlServerQ | |
ingestionRetryDelayInSeconds: -1, | ||
stopRetryAfterInSeconds: -1 | ||
}, | ||
options: { | ||
rollupSettings: { | ||
rollupType: "AutoRollup", | ||
rollupMethod: "Sum", | ||
rollupIdentificationValue: "__SUM__" | ||
}, | ||
missingDataPointFillSettings: { | ||
fillType: "SmartFilling" | ||
}, | ||
accessMode: "Private", | ||
adminEmails: ["[email protected]"] | ||
} | ||
rollupSettings: { | ||
rollupType: "AutoRollup", | ||
rollupMethod: "Sum", | ||
rollupIdentificationValue: "__SUM__" | ||
}, | ||
missingDataPointFillSettings: { | ||
fillType: "SmartFilling" | ||
}, | ||
accessMode: "Private", | ||
adminEmails: ["[email protected]"] | ||
}; | ||
const result = await adminClient.createDataFeed(dataFeed); | ||
return result; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,18 +128,16 @@ async function createDataFeed( | |
ingestionRetryDelayInSeconds: -1, | ||
stopRetryAfterInSeconds: -1 | ||
}, | ||
options: { | ||
rollupSettings: { | ||
rollupType: "AutoRollup", | ||
rollupMethod: "Sum", | ||
rollupIdentificationValue: "__SUM__" | ||
}, | ||
missingDataPointFillSettings: { | ||
fillType: "SmartFilling" | ||
}, | ||
accessMode: "Private", | ||
adminEmails: ["[email protected]"] | ||
} | ||
rollupSettings: { | ||
rollupType: "AutoRollup", | ||
rollupMethod: "Sum", | ||
rollupIdentificationValue: "__SUM__" | ||
}, | ||
missingDataPointFillSettings: { | ||
fillType: "SmartFilling" | ||
}, | ||
accessMode: "Private", | ||
adminEmails: ["[email protected]"] | ||
}; | ||
const result = await adminClient.createDataFeed(dataFeed); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.