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

feat(metrics-operator): update dynatrace api to support range.step #1812

Merged

Conversation

rakshitgondwal
Copy link
Member

Relates to #1736

Changes made:

  • Updated Dynatrace API to support the range.step value.
  • Added a new EvaluateQueryForStep func in dynatrace.go that returns a []slice with the result values inside it. Later, aggregation functions would be applied to the values inside this slice.

Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
@netlify
Copy link

netlify bot commented Aug 1, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit 9798b44
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/64d65f717e60870008179ba8
😎 Deploy Preview https://deploy-preview-1812--keptn-lifecycle-toolkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Merging #1812 (c06027b) into main (2558f74) will increase coverage by 0.06%.
The diff coverage is 89.79%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1812      +/-   ##
==========================================
+ Coverage   83.43%   83.50%   +0.06%     
==========================================
  Files         136      136              
  Lines        8391     8431      +40     
==========================================
+ Hits         7001     7040      +39     
  Misses       1132     1132              
- Partials      258      259       +1     
Files Changed Coverage Δ
...ontrollers/common/providers/dynatrace/dynatrace.go 87.38% <89.79%> (+2.88%) ⬆️

... and 3 files with indirect coverage changes

Flag Coverage Δ
certificate-operator 68.55% <ø> (ø)
component-tests 58.81% <ø> (+0.68%) ⬆️
lifecycle-operator 84.88% <ø> (ø)
metrics-operator 83.62% <89.79%> (+0.27%) ⬆️
scheduler 32.12% <ø> (ø)

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

Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
@rakshitgondwal rakshitgondwal marked this pull request as ready for review August 10, 2023 18:59
@rakshitgondwal rakshitgondwal requested a review from a team as a code owner August 10, 2023 18:59
rakshitgondwal and others added 2 commits August 11, 2023 21:48
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
@sonarcloud
Copy link

sonarcloud bot commented Aug 16, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

@bacherfl bacherfl left a comment

Choose a reason for hiding this comment

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

Nice work!
One side note: we recently discovered an issue with the URL encoding in the queries, which will likely also affect this component. This will be fixed in another PR though, after this one has been merged: #1890

@bacherfl bacherfl changed the title feat: update dynatrace api to support range.step feat(metrics-operator): update dynatrace api to support range.step Aug 16, 2023
@bacherfl bacherfl merged commit 4407fc4 into keptn:main Aug 16, 2023
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants