Skip to content

Commit

Permalink
[Controller] add DATABASE_MONITORING
Browse files Browse the repository at this point in the history
  • Loading branch information
jin-xiaofeng authored and SongZhen0704 committed Jan 19, 2024
1 parent 1566918 commit 754e8f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/controller/common/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ const (
VTAP_LICENSE_FUNCTION_FUNCTION_MONITORING
VTAP_LICENSE_FUNCTION_APPLICATION_MONITORING
VTAP_LICENSE_FUNCTION_INDICATOR_MONITORING
VTAP_LICENSE_FUNCTION_DATABASE_MONITORING
VTAP_LICENSE_FUNCTION_MAX
)

Expand Down
3 changes: 3 additions & 0 deletions server/controller/trisolaris/vtap/vtap_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,9 @@ func (c *VTapCache) convertLicenseFunctions() {
if Find[int](licenseFunctionsInt, VTAP_LICENSE_FUNCTION_CALL_MONITORING) {
c.enabledCallMonitoring.Set()
}
if Find[int](licenseFunctionsInt, VTAP_LICENSE_FUNCTION_DATABASE_MONITORING) {
c.enabledCallMonitoring.Set()
}
if Find[int](licenseFunctionsInt, VTAP_LICENSE_FUNCTION_NETWORK_MONITORING) {
c.enabledNetworkMonitoring.Set()
}
Expand Down

0 comments on commit 754e8f3

Please sign in to comment.