imperva

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditEvent added in v0.1.2

type AuditEvent struct {
	Time            int64  `json:"time"`
	TypeKey         string `json:"type_key"`
	TypeDescription string `json:"type_description"`
	UserId          string `json:"user_id"`
	UserDetails     string `json:"user_details"`
	AccountId       string `json:"account_id"`
	ResourceTypeKey string `json:"resource_type_key"`
	ResourceId      string `json:"resource_id"`
	Message         string `json:"message"`
	ContextKey      string `json:"context_key"`
	AssumedByUser   string `json:"assumed_by_user"`
}

func (*AuditEvent) GetTime added in v0.1.2

func (ae *AuditEvent) GetTime() time.Time

func (*AuditEvent) String added in v0.1.2

func (ae *AuditEvent) String() string

type AuditEventsErrorResponse added in v0.1.2

type AuditEventsErrorResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Id      string `json:"id"`
}

type AuditEventsResponse added in v0.1.2

type AuditEventsResponse struct {
	Total    int          `json:"total"`
	Elements []AuditEvent `json:"elements"`
}

type BillingRecord added in v0.1.4

type BillingRecord struct {
	BillingIssueDate  time.Time        `json:"billingIssueDate"`
	StartDate         time.Time        `json:"startDate"`
	EndDate           time.Time        `json:"endDate"`
	PurchasedQuantity float64          `json:"purchasedQuantity"`
	Plan              string           `json:"plan"`
	PlanName          string           `json:"planName"`
	Services          []BillingService `json:"services"`
	PlanUsage         float64          `json:"planUsage"`
	Overages          float64          `json:"overages"`
	BillingStatus     string           `json:"billingStatus"`
	DataUnit          string           `json:"dataUnit"`
}

func (*BillingRecord) String added in v0.1.4

func (br *BillingRecord) String() string

type BillingService added in v0.1.4

type BillingService struct {
	ServiceUsage float64 `json:"serviceUsage"`
	Service      string  `json:"service"`
	UsageType    string  `json:"usageType"`
	ServiceName  string  `json:"serviceName"`
}

type BillingSummaryResponse added in v0.1.4

type BillingSummaryResponse struct {
	BillingRecords []BillingRecord `json:"billingRecords"`
}

type Imperva

type Imperva struct {
	// contains filtered or unexported fields
}

func New added in v0.1.2

func New(id string, token string, accountId string, initInterval int) (*Imperva, error)

func (*Imperva) AddOutput

func (i *Imperva) AddOutput(o output.Output)

func (*Imperva) GetBillingSummary added in v0.1.4

func (i *Imperva) GetBillingSummary() (BillingSummaryResponse, error)

func (*Imperva) Run

func (i *Imperva) Run(pollInterval int, wg *sync.WaitGroup)

func (*Imperva) Send added in v0.1.2

func (i *Imperva) Send(e *common.Event)

type InfraEvent added in v0.1.2

type InfraEvent struct {
	EventTime     string `json:"eventTime"`
	EventType     string `json:"eventType"`
	BwTotal       int    `json:"bwTotal"`
	PpsTotal      int    `json:"ppsTotal"`
	BwPassed      int    `json:"bwPassed"`
	PpsPassed     int    `json:"ppsPassed"`
	BwBlocked     int    `json:"bwBlocked"`
	PpsBlocked    int    `json:"ppsBlocked"`
	EventTarget   string `json:"eventTarget"`
	ItemType      string `json:"itemType"`
	ReportedByPop string `json:"reportedByPop"`
}

func (*InfraEvent) GetTime added in v0.1.2

func (ie *InfraEvent) GetTime() time.Time

func (*InfraEvent) String added in v0.1.2

func (ie *InfraEvent) String() string

type InfraEventsResponse added in v0.1.2

type InfraEventsResponse struct {
	Events     []InfraEvent `json:"events"`
	Res        int          `json:"res"`
	ResMessage string       `json:"res_message"`
	DebugInfo  struct {
	} `json:"debug_info"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL