Skip to content

Conversation

@gffuentes
Copy link
Contributor

@gffuentes gffuentes commented Jun 5, 2025

DO NOT MERGE YET

https://new-relic.atlassian.net/browse/NR-413526
Adds support for polling frequency - a new field on conditions that is part of CCI project

newrelic/terraform-provider-newrelic#2890

@codecov-commenter
Copy link

codecov-commenter commented Jun 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@81626a4). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1303   +/-   ##
=======================================
  Coverage        ?   36.85%           
=======================================
  Files           ?      132           
  Lines           ?     7808           
  Branches        ?        0           
=======================================
  Hits            ?     2878           
  Misses          ?     4734           
  Partials        ?      196           
Flag Coverage Δ
integration 4.99% <ø> (?)
unit 35.79% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

AggregationDelay *int `json:"aggregationDelay"`
AggregationTimer *int `json:"aggregationTimer"`
SlideBy *int `json:"slideBy"`
PollingFrequency *int `json:"pollingFrequency,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PollingFrequency should be nullable, right? Curious if we should leave off omitEmpty here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PollingFrequency is only for static conditions, but alertsNrqlConditionBaselineCreate does allow for pollingFrequency: null.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i fixed this - looks like create should allow null, but update should not

@gffuentes gffuentes force-pushed the cci-polling-frequency branch from 47121b6 to a06d530 Compare June 13, 2025 19:11
@gffuentes gffuentes force-pushed the cci-polling-frequency branch from a06d530 to 02f8af5 Compare June 13, 2025 19:12
@gffuentes gffuentes requested a review from akane0915 June 20, 2025 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants