Documentation
¶
Index ¶
- Variables
- func SendCostEvent(costEvent CostEvent)
- func SetAWSCredentials(awsAccessKey, awsSecretKey, awsRegion string) error
- type CostEvent
- func NewCostEvent(service Service, vendor Vendor, clientUUID string, flowUUID string, ...) CostEvent
- func NewCostEventWithCost(service Service, vendor Vendor, clientUUID string, flowUUID string, ...) CostEvent
- func NewCostEventWithNumHits(service Service, vendor Vendor, clientUUID string, flowUUID string, ...) CostEvent
- type Events
- type Service
- type Vendor
Constants ¶
This section is empty.
Variables ¶
View Source
var AWS_SESSION *awsSession.Session = nil
View Source
var WAREHOUSE_QUEUE_NAME string = "warehouse-data-transfer"
View Source
var WAREHOUSE_QUEUE_URL *string
Functions ¶
func SendCostEvent ¶
func SendCostEvent(costEvent CostEvent)
func SetAWSCredentials ¶
Types ¶
type CostEvent ¶
type CostEvent struct {
ServiceType Service `json:"service"`
Vendor Vendor `json:"vendor"`
ClientUUID string `json:"client_uuid"`
FlowUUID string `json:"flow_uuid"`
CallUUID string `json:"call_uuid"`
ConversationUUID string `json:"conversation_uuid"`
NumHits int `json:"num_hits"`
Cost int `json:"cost"`
}
func NewCostEvent ¶
func NewCostEventWithCost ¶
Click to show internal directories.
Click to hide internal directories.