Skip to content

Commit

Permalink
moving types from runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
johndietz committed Oct 21, 2023
1 parent 2f49f2f commit 47f6dbe
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -325,4 +325,3 @@ replace (
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.24.2
)

// replace github.com/kubefirst/runtime => /Users/dhawk/Kubefirst/runtime
2 changes: 1 addition & 1 deletion internal/telemetryShim/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"time"

"github.com/denisbrodbeck/machineid"
"github.com/kubefirst/kubefirst-api/pkg/segment"
pkgtypes "github.com/kubefirst/kubefirst-api/pkg/types"
"github.com/kubefirst/runtime/pkg"
"github.com/kubefirst/runtime/pkg/segment"
"github.com/segmentio/analytics-go"
log "github.com/sirupsen/logrus"
)
Expand Down
16 changes: 16 additions & 0 deletions pkg/segment/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ See the LICENSE file for more details.
*/
package segment

import "github.com/segmentio/analytics-go"

// SegmentIO constants
// SegmentIOWriteKey The write key is the unique identifier for a source that tells Segment which source data comes
// from, to which workspace the data belongs, and which destinations should receive the data.
Expand Down Expand Up @@ -82,3 +84,17 @@ const (
MetricClusterDeleteStarted = "kubefirst.cluster_delete.started"
MetricClusterDeleteCompleted = "kubefirst.cluster_delete.completed"
)

type SegmentClient struct {
Client analytics.Client
CliVersion string
CloudProvider string
ClusterID string
ClusterType string
DomainName string
GitProvider string
InstallMethod string
KubefirstClient string
KubefirstTeam string
KubefirstTeamInfo string
}

0 comments on commit 47f6dbe

Please sign in to comment.