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 ¶
type Vendor ¶
type Vendor string
const ( NONE Vendor = "NONE" GOOGLE Vendor = "GOOGLE" SKIT Vendor = "SKIT" AZURE Vendor = "AZURE" AMAZON Vendor = "AMAZON" SHORT_UTTERANCE Vendor = "SHORT_UTTERANCE" TCN Vendor = "TCN" TWILIO Vendor = "TWILIO" FAST2SMS Vendor = "FAST2SMS" TWO_FA Vendor = "TWO_FA" MY_OPERATOR Vendor = "MY_OPERATOR" MSG91 Vendor = "MSG91" )
Click to show internal directories.
Click to hide internal directories.