mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +01:00
feat(usage): include pvc name in volume events
Signed-off-by: Pawan <pawan@mayadata.io>
This commit is contained in:
parent
e558bb52cb
commit
b08a1e2a1f
10 changed files with 22 additions and 3 deletions
|
|
@ -34,6 +34,7 @@ func (u *Usage) Send() {
|
|||
gaClient.ClientID(u.clientID).
|
||||
CampaignSource(u.campaignSource).
|
||||
CampaignContent(u.clientID).
|
||||
CampaignName(u.campaignName).
|
||||
ApplicationID(u.appID).
|
||||
ApplicationVersion(u.appVersion).
|
||||
DataSource(u.dataSource).
|
||||
|
|
|
|||
|
|
@ -86,6 +86,9 @@ type Gclient struct {
|
|||
// anonymous campaign source
|
||||
campaignSource string
|
||||
|
||||
// anonymous campaign name
|
||||
campaignName string
|
||||
|
||||
// https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#ds
|
||||
// (usecase) node-detail
|
||||
dataSource string
|
||||
|
|
@ -133,6 +136,12 @@ func (u *Usage) SetApplicationName(appName string) *Usage {
|
|||
return u
|
||||
}
|
||||
|
||||
// SetCampaignName : set the name of the PVC or will be empty.
|
||||
func (u *Usage) SetCampaignName(campaignName string) *Usage {
|
||||
u.campaignName = campaignName
|
||||
return u
|
||||
}
|
||||
|
||||
// SetApplicationID : usecase(OpenEBS/NDM)
|
||||
func (u *Usage) SetApplicationID(appID string) *Usage {
|
||||
u.appID = appID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue