这是indexloc提供的服务,不要输入任何密码
Skip to content

Support Log Drains #168

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

Merged
merged 1 commit into from
Apr 19, 2024
Merged

Support Log Drains #168

merged 1 commit into from
Apr 19, 2024

Conversation

dglsparsons
Copy link
Collaborator

@dglsparsons dglsparsons commented Apr 19, 2024

Initial support for Customisable Log Drains (not Integration Log Drains).

Closes #128.

@dglsparsons dglsparsons force-pushed the dgls/support-log-drains branch 2 times, most recently from d42bf43 to 9e025a0 Compare April 19, 2024 15:14
@dglsparsons dglsparsons changed the title dgls/support log drains Support Log Drains Apr 19, 2024
@dglsparsons dglsparsons force-pushed the dgls/support-log-drains branch from 9e025a0 to cb36af1 Compare April 19, 2024 15:40
@dglsparsons dglsparsons force-pushed the dgls/support-log-drains branch from cb36af1 to 8a8be59 Compare April 19, 2024 15:49
Comment on lines +22 to +27
func (v validatorMapMaxCount) Description(ctx context.Context) string {
return fmt.Sprintf("Map must contain fewer than %d items", v.Max)
}
func (v validatorMapMaxCount) MarkdownDescription(ctx context.Context) string {
return fmt.Sprintf("Map must contain fewer than %d items", v.Max)
}
Copy link
Member

Choose a reason for hiding this comment

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

We are doing req.ConfigValue.Elements()) > v.Max below, shouldn't it be "can't contain more than %d items"?

Comment on lines +20 to +25
func (v validatorFloat64LessThan) Description(ctx context.Context) string {
return fmt.Sprintf("Value must be less than %.2f", v.Max)
}
func (v validatorFloat64LessThan) MarkdownDescription(ctx context.Context) string {
return fmt.Sprintf("Value must be less than `%.2f`", v.Max)
}
Copy link
Member

Choose a reason for hiding this comment

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

Comment on lines +20 to +25
func (v validatorFloat64GreaterThan) Description(ctx context.Context) string {
return fmt.Sprintf("Value must be greater than %.2f", v.Min)
}
func (v validatorFloat64GreaterThan) MarkdownDescription(ctx context.Context) string {
return fmt.Sprintf("Value must be greater than `%.2f`", v.Min)
}
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

@ecklf ecklf left a comment

Choose a reason for hiding this comment

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

Fix validators in case my comments are correct. Otherwise looks good to me.

@dglsparsons dglsparsons merged commit 14104b8 into main Apr 19, 2024
@dglsparsons dglsparsons deleted the dgls/support-log-drains branch April 19, 2024 16:41
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.

Add Support for Log Drains
2 participants