This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TT-10016] Added support of analytics plugin (#671)
* Add support of analytics plugin * Update changelog * Update docs and add sample * Update deepcopy file * Update api/model/api.go Co-authored-by: Burak Sekili <[email protected]> * Update api/model/api.go Co-authored-by: Burak Sekili <[email protected]> * Update api.go * Update crds * Fix linter error * Mark enable field as optional again * Set field as pointer * Update default tyk version to v5.2 --------- Co-authored-by: Burak Sekili <[email protected]>
- Loading branch information
1 parent
28bcef0
commit c84ece1
Showing
8 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# It is assumed that you have already created and uploaded analytics plugin to gateway filesystem. | ||
apiVersion: tyk.tyk.io/v1alpha1 | ||
kind: ApiDefinition | ||
metadata: | ||
name: analytics-plugin | ||
spec: | ||
name: httpbin-analytics-plugin | ||
active: true | ||
protocol: http | ||
proxy: | ||
listen_path: /httpbin | ||
strip_listen_path: true | ||
target_url: http://httpbin.org | ||
use_keyless: true | ||
enable_detailed_recording: true | ||
analytics_plugin: | ||
enable: true | ||
func_name: MaskAnalyticsData # Replace it with function name of your plugin | ||
plugin_path: /opt/tyk-gateway/plugins/example-plugin.so # Replace it with path of your plugin file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters