data_usage

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataUsageFileCreator

type DataUsageFileCreator interface {
	AddStatements(statements []Statement) error
	Close()
	GetStatementCount() int
}

DataUsageFileCreator describes the interface for easily creating the data usage import files to be exported from the Raito CLI.

func NewDataUsageFileCreator

func NewDataUsageFileCreator(config *data_usage.DataUsageSyncConfig) (DataUsageFileCreator, error)

type Statement

type Statement struct {
	ExternalId          string      `json:"externalId"`
	AccessedDataObjects []ap.Access `json:"accessedDataObjects"`
	Status              bool        `json:"status"`
	User                string      `json:"user"`
	StartTime           int64       `json:"startTime"`
	EndTime             int64       `json:"endTime"`
	TotalTime           float32     `json:"totalTime"`
	BytesTransferred    int         `json:"bytesTransferred"`
	RowsReturned        int         `json:"rowsReturned"`
}

Jump to

Keyboard shortcuts

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