-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
{Scheduled-Query} Add scheduled query rules (#3753)
* update SDK * parameter * Update src/scheduled-query/HISTORY.rst Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com> * Update src/scheduled-query/HISTORY.rst Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com> * Update src/scheduled-query/setup.py Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com> * update * Update test_scheduled_query.yaml * Update _params.py * Update HISTORY.rst Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com>
- Loading branch information
Showing
29 changed files
with
2,881 additions
and
1,313 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
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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -------------------------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for license information. | ||
# -------------------------------------------------------------------------------------------- | ||
|
||
|
||
def validate_tag(string): | ||
result = {} | ||
if string: | ||
comps = string.split('=', 1) | ||
result = {comps[0]: comps[1]} if len(comps) > 1 else {string: ''} | ||
return result | ||
|
||
|
||
def validate_custom_properties(ns): | ||
if isinstance(ns.custom_properties, list): | ||
custom_properties_dict = {} | ||
for item in ns.custom_properties: | ||
custom_properties_dict.update(validate_tag(item)) | ||
ns.custom_properties = custom_properties_dict |
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.