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

Remove percentile filter in metric_percentile #266

Merged
merged 1 commit into from
Aug 20, 2024
Merged
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
4 changes: 0 additions & 4 deletions datadog_sync/model/metric_percentiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from datadog_sync.utils.base_resource import BaseResource, ResourceConfig
from datadog_sync.utils.custom_client import CustomClient
from datadog_sync.utils.resource_utils import SkipResource


class MetricPercentiles(BaseResource):
Expand All @@ -30,9 +29,6 @@ async def import_resource(self, _: Optional[str] = None, resource: Optional[Dict
# This resource is not a dependency of any other resource. Hence it is
# safe to ignore the _id parameter and rely solely on resource.

if not resource.get("include_percentiles"):
raise SkipResource(resource["metric_name"], self.resource_type, "Metric does not have percentiles config")

# metric_name => metric
metric_name = resource.pop("metric_name")
resource["metric"] = metric_name
Expand Down
Loading