-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
query manager generic tag mapping #9803
Conversation
Co-authored-by: Ofek Lev <[email protected]>
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
…ions-core into js/query-manager-typing
5fdf05c
to
e196007
Compare
…nager-tag-mapping
e196007
to
aeb6586
Compare
|
||
return tag | ||
|
||
|
||
def _transform_tag(name, value, check): |
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 we should not modify the database utils at all and instead add your logic here:
integrations-core/datadog_checks_base/datadog_checks/base/checks/base.py
Lines 1068 to 1075 in d96a2de
def _normalize_tags_type(self, tags, device_name=None, metric_name=None): | |
# type: (Sequence[Union[None, str, bytes]], str, str) -> List[str] | |
""" | |
Normalize tags contents and type: | |
- append `device_name` as `device:` tag | |
- normalize tags type | |
- doesn't mutate the passed list, returns a new list | |
""" |
Replaced by #9853 |
Depends on
Still needs tests