Documentation ¶
Overview ¶
Package audit provides access to the Enterprise Audit API.
See https://developers.google.com/google-apps/admin-audit/get_started
Usage example:
import "google.golang.org/api/audit/v1" ... auditService, err := audit.New(oauthHttpClient)
Index ¶
- type Activities
- type ActivitiesListCall
- func (c *ActivitiesListCall) ActorApplicationId(actorApplicationId int64) *ActivitiesListCall
- func (c *ActivitiesListCall) ActorEmail(actorEmail string) *ActivitiesListCall
- func (c *ActivitiesListCall) ActorIpAddress(actorIpAddress string) *ActivitiesListCall
- func (c *ActivitiesListCall) Caller(caller string) *ActivitiesListCall
- func (c *ActivitiesListCall) ContinuationToken(continuationToken string) *ActivitiesListCall
- func (c *ActivitiesListCall) Do() (*Activities, error)
- func (c *ActivitiesListCall) EndTime(endTime string) *ActivitiesListCall
- func (c *ActivitiesListCall) EventName(eventName string) *ActivitiesListCall
- func (c *ActivitiesListCall) Fields(s ...googleapi.Field) *ActivitiesListCall
- func (c *ActivitiesListCall) MaxResults(maxResults int64) *ActivitiesListCall
- func (c *ActivitiesListCall) StartTime(startTime string) *ActivitiesListCall
- type ActivitiesService
- type Activity
- type ActivityActor
- type ActivityEvents
- type ActivityEventsParameters
- type ActivityId
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activities ¶
type ActivitiesListCall ¶
type ActivitiesListCall struct {
// contains filtered or unexported fields
}
func (*ActivitiesListCall) ActorApplicationId ¶
func (c *ActivitiesListCall) ActorApplicationId(actorApplicationId int64) *ActivitiesListCall
ActorApplicationId sets the optional parameter "actorApplicationId": Application ID of the application which interacted on behalf of the user while performing the event.
func (*ActivitiesListCall) ActorEmail ¶
func (c *ActivitiesListCall) ActorEmail(actorEmail string) *ActivitiesListCall
ActorEmail sets the optional parameter "actorEmail": Email address of the user who performed the action.
func (*ActivitiesListCall) ActorIpAddress ¶
func (c *ActivitiesListCall) ActorIpAddress(actorIpAddress string) *ActivitiesListCall
ActorIpAddress sets the optional parameter "actorIpAddress": IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
func (*ActivitiesListCall) Caller ¶
func (c *ActivitiesListCall) Caller(caller string) *ActivitiesListCall
Caller sets the optional parameter "caller": Type of the caller.
func (*ActivitiesListCall) ContinuationToken ¶
func (c *ActivitiesListCall) ContinuationToken(continuationToken string) *ActivitiesListCall
ContinuationToken sets the optional parameter "continuationToken": Next page URL.
func (*ActivitiesListCall) Do ¶
func (c *ActivitiesListCall) Do() (*Activities, error)
func (*ActivitiesListCall) EndTime ¶
func (c *ActivitiesListCall) EndTime(endTime string) *ActivitiesListCall
EndTime sets the optional parameter "endTime": Return events which occured at or before this time.
func (*ActivitiesListCall) EventName ¶
func (c *ActivitiesListCall) EventName(eventName string) *ActivitiesListCall
EventName sets the optional parameter "eventName": Name of the event being queried.
func (*ActivitiesListCall) Fields ¶
func (c *ActivitiesListCall) Fields(s ...googleapi.Field) *ActivitiesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ActivitiesListCall) MaxResults ¶
func (c *ActivitiesListCall) MaxResults(maxResults int64) *ActivitiesListCall
MaxResults sets the optional parameter "maxResults": Number of activity records to be shown in each page.
func (*ActivitiesListCall) StartTime ¶
func (c *ActivitiesListCall) StartTime(startTime string) *ActivitiesListCall
StartTime sets the optional parameter "startTime": Return events which occured at or after this time.
type ActivitiesService ¶
type ActivitiesService struct {
// contains filtered or unexported fields
}
func NewActivitiesService ¶
func NewActivitiesService(s *Service) *ActivitiesService
func (*ActivitiesService) List ¶
func (r *ActivitiesService) List(customerId string, applicationId int64) *ActivitiesListCall
List: Retrieves a list of activities for a specific customer and application.
type Activity ¶
type Activity struct { // Actor: User doing the action. Actor *ActivityActor `json:"actor,omitempty"` // Events: Activity events. Events []*ActivityEvents `json:"events,omitempty"` // Id: Unique identifier for each activity record. Id *ActivityId `json:"id,omitempty"` // IpAddress: IP Address of the user doing the action. IpAddress string `json:"ipAddress,omitempty"` // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` // OwnerDomain: Domain of source customer. OwnerDomain string `json:"ownerDomain,omitempty"` }
type ActivityActor ¶
type ActivityActor struct { // ApplicationId: ID of application which interacted on behalf of the // user. ApplicationId int64 `json:"applicationId,omitempty,string"` // CallerType: User or OAuth 2LO request. CallerType string `json:"callerType,omitempty"` // Email: Email address of the user. Email string `json:"email,omitempty"` // Key: For OAuth 2LO API requests, consumer_key of the requestor. Key string `json:"key,omitempty"` }
type ActivityEvents ¶
type ActivityEvents struct { // EventType: Type of event. EventType string `json:"eventType,omitempty"` // Name: Name of event. Name string `json:"name,omitempty"` // Parameters: Event parameters. Parameters []*ActivityEventsParameters `json:"parameters,omitempty"` }
type ActivityId ¶
type ActivityId struct { // ApplicationId: Application ID of the source application. ApplicationId int64 `json:"applicationId,omitempty,string"` // CustomerId: Obfuscated customer ID of the source customer. CustomerId string `json:"customerId,omitempty"` // Time: Time of occurrence of the activity. Time string `json:"time,omitempty"` // UniqQualifier: Unique qualifier if multiple events have the same // time. UniqQualifier int64 `json:"uniqQualifier,omitempty,string"` }