data_usage

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 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"`
	User                string      `json:"user"`
	Role                string      `json:"role"`
	Success             bool        `json:"success"`
	Status              string      `json:"status"`
	Query               string      `json:"query"`
	StartTime           int64       `json:"startTime"`
	EndTime             int64       `json:"endTime"`
	Bytes               int         `json:"bytes"`
	Rows                int         `json:"rows"`
	Credits             float32     `json:"credits"`
}

Jump to

Keyboard shortcuts

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