2020-02-26 11:31:24 +05:30
|
|
|
/*
|
|
|
|
|
Copyright 2020 The OpenEBS Authors.
|
|
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
|
limitations under the License.
|
|
|
|
|
*/
|
2020-07-07 18:21:02 +05:30
|
|
|
|
2020-02-26 11:31:24 +05:30
|
|
|
package usage
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
// GAclientID is the unique code of OpenEBS project in Google Analytics
|
|
|
|
|
GAclientID string = "UA-127388617-1"
|
|
|
|
|
|
|
|
|
|
// supported events categories
|
|
|
|
|
|
2020-06-09 17:17:23 +08:00
|
|
|
// InstallEvent event is sent on pod starts
|
2020-02-26 11:31:24 +05:30
|
|
|
InstallEvent string = "install"
|
|
|
|
|
// Ping event is sent periodically
|
|
|
|
|
Ping string = "zfs-ping"
|
|
|
|
|
// VolumeProvision event is sent when a volume is created
|
|
|
|
|
VolumeProvision string = "volume-provision"
|
2020-06-09 17:17:23 +08:00
|
|
|
// VolumeDeprovision event is sent when a volume is deleted
|
2020-02-26 11:31:24 +05:30
|
|
|
VolumeDeprovision string = "volume-deprovision"
|
2020-06-09 17:17:23 +08:00
|
|
|
// AppName the application name
|
|
|
|
|
AppName string = "OpenEBS"
|
2020-02-26 11:31:24 +05:30
|
|
|
|
2020-06-09 17:17:23 +08:00
|
|
|
// RunningStatus status is running
|
|
|
|
|
RunningStatus string = "running"
|
2020-07-07 18:21:02 +05:30
|
|
|
// EventLabelNode holds the string label "nodes"
|
|
|
|
|
EventLabelNode string = "nodes"
|
|
|
|
|
// EventLabelCapacity holds the string label "capacity"
|
2020-02-26 11:31:24 +05:30
|
|
|
EventLabelCapacity string = "capacity"
|
|
|
|
|
|
2020-06-09 17:17:23 +08:00
|
|
|
// Replica Event replication
|
2020-07-07 18:21:02 +05:30
|
|
|
Replica string = "replica:"
|
|
|
|
|
// DefaultReplicaCount holds the replica count string
|
2020-02-26 11:31:24 +05:30
|
|
|
DefaultReplicaCount string = "replica:1"
|
|
|
|
|
|
2020-06-09 17:17:23 +08:00
|
|
|
// DefaultCASType Event application name constant for volume event
|
2020-02-26 11:31:24 +05:30
|
|
|
DefaultCASType string = "zfs-localpv"
|
|
|
|
|
|
|
|
|
|
// LocalPVReplicaCount is the constant used by usage to represent
|
|
|
|
|
// replication factor in LocalPV
|
|
|
|
|
LocalPVReplicaCount string = "1"
|
|
|
|
|
)
|