// GetEventReport fetches event of an user in certain period of time.
// Filtering is also available by setting search string.
GetEventReport fetches event of an user in certain period of time.
Filtering is also available by setting search string.
// GetEventReport fetches event of an user in certain period of time . // Filtering is also available by setting search string .
func (s *EventService) GetEventReport(username, search string, from, to JSONLastPassTime) (*Events, error) {
	s.command = "reporting"
	s.data = struct {
		From   JSONLastPassTime `json:"from"`
		To     JSONLastPassTime `json:"to"`
		Search string                         `json:"search"`
		User   string                         `json:"user"`
		Format string                         `json:"format"`
	}{User: username, From: from, To: to, Format: "siem"}
	res, err := s.doRequest()
	if err != nil {
		return nil, err
	}
	var events Events
	err = JSONBodyDecoder(res, &events)
	if err != nil {
		return nil, err
	}
	return &events, nil
}
func ( s * EventService ) GetEventReport ( username , search string , from , to JSONLastPassTime ) ( * Events , error ) { s . command = " " s . data = struct { From JSONLastPassTime `json:"from"` To JSONLastPassTime `json:"to"` Search string `json:"search"` User string `json:"user"` Format string `json:"format"` } { User : username , From : from , To : to , Format : " " } res , err := s . doRequest ( ) if err != nil { return nil , err } var events Events err = JSONBodyDecoder ( res , & events ) if err != nil { return nil , err } return & events , nil }
GetEventReport fetches event of an user in certain period of time.
GetEventReport fetches event of an user in certain period of time .