Skip to content

Conversation

@sattila1999
Copy link
Contributor

Addign CSS Logging Updates:

  • Adding CSS log ingestion option
  • Refactor CSS logging code

url := client.ServiceURL("clusters", clusterID, "logs", "close")

if action != nil && *action != "" {
url += "?action=" + *action
Copy link
Member

Choose a reason for hiding this comment

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

Why you didn't use something like:

url, err := golangsdk.NewURLBuilder().
		WithEndpoints("clusters", "...").
		WithQueryParams(&opts).Build()

Comment on lines 43 to +45
url := client.ServiceURL("clusters", clusterID, "logs", "open")

if action != nil && *action != "" {
Copy link
Member

Choose a reason for hiding this comment

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

and here why you didn't use something like:

url, err := golangsdk.NewURLBuilder().
		WithEndpoints("clusters", "...").
		WithQueryParams(&opts).Build()

Comment on lines +63 to +67
url := client.ServiceURL("clusters", clusterID, "logs", "settings")

if action != nil && *action != "" {
url += "?action=" + *action
}
Copy link
Member

Choose a reason for hiding this comment

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

Why you didn't use something like:

url, err := golangsdk.NewURLBuilder().
		WithEndpoints("clusters", "...").
		WithQueryParams(&opts).Build()

Comment on lines +43 to +47
url := client.ServiceURL("clusters", clusterID, "logs", "settings")

if action != nil && *action != "" {
url += "?action=" + *action
}
Copy link
Member

Choose a reason for hiding this comment

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

Why you didn't use something like:

url, err := golangsdk.NewURLBuilder().
		WithEndpoints("clusters", "...").
		WithQueryParams(&opts).Build()

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.

3 participants