Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

PMM-9632 Settings view usage. #147

Closed
wants to merge 5 commits into from
Closed

Conversation

JiriCtvrtka
Copy link
Contributor

@JiriCtvrtka JiriCtvrtka commented May 6, 2022

services/analytics/object_details.go Outdated Show resolved Hide resolved
models/metrics.go Outdated Show resolved Hide resolved
models/metrics.go Outdated Show resolved Hide resolved
services/analytics/object_details.go Outdated Show resolved Hide resolved
models/metrics.go Outdated Show resolved Hide resolved
ORDER BY period_start DESC;`

// SelectPGSMSettings selects settings for given queryid.
func (m *Metrics) SelectPGSMSettings(ctx context.Context, periodStartFromSec,

Choose a reason for hiding this comment

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

🚫 [golangci-lint] reported by reviewdog 🐶
Function 'SelectPGSMSettings' is too long (67 > 60) (funlen)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also same for another methods here.

services/analytics/object_details.go Outdated Show resolved Hide resolved
services/analytics/object_details.go Outdated Show resolved Hide resolved
@@ -343,3 +343,44 @@ func (s *Service) GetHistogram(ctx context.Context, in *qanpb.HistogramRequest)

return resp, nil
}

// GetPGSMSettings gets pg_stat_monitor settings for given queryid.
func (s *Service) GetPGSMSettings(ctx context.Context, in *qanpb.SettingsRequest) (*qanpb.SettingsReply, error) { //nolint:dupl

Choose a reason for hiding this comment

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

🚫 [golangci-lint] reported by reviewdog 🐶
parameter name 'in' is too short for the scope of its usage (varnamelen)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have this name "in" also in another methods here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants