Documentation ¶
Index ¶
- Constants
- type ClientV5
- type ClientV6
- type ClientV7
- type Elasticsearch
- func (es *Elasticsearch) CountOverTime(filter *auditing.Filter, interval string) (*auditing.Histogram, error)
- func (es *Elasticsearch) SearchAuditingEvent(filter *auditing.Filter, from, size int64, sort string) (*auditing.Events, error)
- func (es *Elasticsearch) StatisticsOnResources(filter *auditing.Filter) (*auditing.Statistics, error)
- type Error
- type Hits
- type Options
- type Request
- type Response
Constants ¶
View Source
const ( ElasticV5 = "5" ElasticV6 = "6" ElasticV7 = "7" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Elasticsearch ¶
type Elasticsearch struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(options *Options) (*Elasticsearch, error)
func (*Elasticsearch) CountOverTime ¶
func (*Elasticsearch) SearchAuditingEvent ¶
func (*Elasticsearch) StatisticsOnResources ¶
func (es *Elasticsearch) StatisticsOnResources(filter *auditing.Filter) (*auditing.Statistics, error)
type Error ¶
type Hits ¶
type Hits struct { Total int64 `json:"total"` Hits jsoniter.RawMessage `json:"hits"` }
type Options ¶
type Options struct { Enable bool `json:"enable" yaml:"enable"` WebhookUrl string `json:"webhookUrl" yaml:"webhookUrl"` Host string `json:"host" yaml:"host"` IndexPrefix string `json:"indexPrefix,omitempty" yaml:"indexPrefix"` Version string `json:"version" yaml:"version"` }
func NewElasticSearchOptions ¶
func NewElasticSearchOptions() *Options
Click to show internal directories.
Click to hide internal directories.