Documentation ¶
Index ¶
Constants ¶
View Source
const ( RECV_WINDOW = -1 * 5 * 60 * time.Second GCP_VPC_TYPE = "GCP_VPC" )
Variables ¶
View Source
var (
ERROR_SLEEP_TIME = 20 * time.Second
)
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { DestIP string `json:"dest_ip"` DestPort int `json:"dest_port"` Protocol int `json:"protocol"` SrcIP string `json:"src_ip"` SrcPort int `json:"src_port"` }
func (*Connection) Save ¶
func (c *Connection) Save(in *kt.JCHF)
type GCELogLine ¶
type GCELogLine struct { InsertID string `json:"insertId"` Payload *Payload `json:"jsonPayload"` LogName string `json:"logName"` RecvTs time.Time `json:"receiveTimestamp"` Resource *Resource `json:"resource"` Timestamp time.Time `json:"timestamp"` BytesRaw int64 `json:"bytesRaw"` }
func (*GCELogLine) GetVMName ¶
func (m *GCELogLine) GetVMName() (host string, err error)
func (*GCELogLine) IsIn ¶
func (m *GCELogLine) IsIn() bool
func (*GCELogLine) IsInternal ¶
func (m *GCELogLine) IsInternal() bool
func (*GCELogLine) IsValid ¶
func (m *GCELogLine) IsValid() bool
func (*GCELogLine) ToJson ¶
func (m *GCELogLine) ToJson() []byte
type GcpMetric ¶
type GcpMetric struct { FlowsIn go_metrics.Meter RateInvalid go_metrics.Meter RateError go_metrics.Meter }
type GcpVpc ¶
func NewVpc ¶
func NewVpc(ctx context.Context, log logger.Underlying, registry go_metrics.Registry, jchfChan chan []*kt.JCHF, apic *api.KentikApi, maxBatchSize int, cfg *ktranslate.GCPVPCInputConfig) (*GcpVpc, error)
type Instance ¶
type Label ¶
type Location ¶
type Payload ¶
type Payload struct { Bytes string `json:"bytes_sent"` Connection *Connection `json:"connection"` DestInstance *Instance `json:"dest_instance"` SrcInstance *Instance `json:"src_instance"` DestVPC *VPC `json:"dest_vpc"` SrcVPC *VPC `json:"src_vpc"` EndTime time.Time `json:"end_time"` Pkts string `json:"packets_sent"` Reporter string `json:"reporter"` RTT string `json:"rtt_msec"` SrcLocation *Location `json:"src_location"` DstLocation *Location `json:"dest_location"` StartTime time.Time `json:"start_time"` }
Click to show internal directories.
Click to hide internal directories.