-
Notifications
You must be signed in to change notification settings - Fork 208
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
Added path support for HTTP source #2277
Added path support for HTTP source #2277
Conversation
Signed-off-by: Asif Sohail Mohammed <[email protected]> Signed-off-by: Asif Sohail Mohammed <[email protected]>
// TODO: allow customization on URI path for log ingestion | ||
sb.decorator(HTTPSourceConfig.DEFAULT_LOG_INGEST_URI, ThrottlingService.newDecorator(logThrottlingStrategy, logThrottlingRejectHandler)); | ||
|
||
final String httpSourcePath = sourceConfig.getPath().replace("${PIPELINE_NAME}", pipelineName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use ${pipelineName}
to match with other parameter naming conventions.
@@ -22,6 +22,7 @@ source: | |||
## Configurations | |||
|
|||
* port (Optional) => An `int` between 0 and 65535 represents the port source is running on. Default is ```2021```. | |||
* path (Optional) => A `string` which represents the URI path for log ingestion, and it should start with `/`. Path can contain `${PIPELINE_NAME}` placeholder which will be replaced with pipeline name. Default value is `/log/ingest`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use ${pipelineName}
instead of ${PIPELINE_NAME}
.
Signed-off-by: Asif Sohail Mohammed <[email protected]> Signed-off-by: Asif Sohail Mohammed <[email protected]>
66f3cfb
to
fe23191
Compare
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #2277 +/- ##
============================================
- Coverage 93.81% 93.61% -0.20%
- Complexity 1828 1924 +96
============================================
Files 225 225
Lines 5300 5391 +91
Branches 426 427 +1
============================================
+ Hits 4972 5047 +75
- Misses 223 240 +17
+ Partials 105 104 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
* Added path support for HTTP source Signed-off-by: Asif Sohail Mohammed <[email protected]> (cherry picked from commit e291070)
* Added path support for HTTP source Signed-off-by: Asif Sohail Mohammed <[email protected]> (cherry picked from commit e291070) Co-authored-by: Asif Sohail Mohammed <[email protected]>
* Added path support for HTTP source Signed-off-by: Asif Sohail Mohammed <[email protected]> Signed-off-by: mahesh724 <[email protected]>
* Added path support for HTTP source Signed-off-by: Asif Sohail Mohammed <[email protected]>
Description
path
option to HTTP sourceIssues Resolved
Resolves #2258
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.