activity_log_client

package
v1.2.16 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityLogServiceClient

type ActivityLogServiceClient interface {
	ListActivityLogs(ctx context.Context, in *ListActivityLogsRequest, opts ...grpc.CallOption) (*ListActivityLogsResponse, error)
	CreateActivityLogs(ctx context.Context, in *CreateActivityLogsRequest, opts ...grpc.CallOption) (*CreateActivityLogsResponse, error)
}

ActivityLogServiceClient is the client API for ActivityLogService.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ActivityLogServiceDescriptor added in v0.4.28

type ActivityLogServiceDescriptor struct{}

func GetActivityLogServiceDescriptor added in v0.4.28

func GetActivityLogServiceDescriptor() *ActivityLogServiceDescriptor

func (*ActivityLogServiceDescriptor) AllMethodDescriptors added in v0.4.28

func (d *ActivityLogServiceDescriptor) AllMethodDescriptors() []gotenclient.MethodDescriptor

func (*ActivityLogServiceDescriptor) GetApiName added in v0.4.28

func (d *ActivityLogServiceDescriptor) GetApiName() string

func (*ActivityLogServiceDescriptor) GetFullAPIName added in v0.4.28

func (d *ActivityLogServiceDescriptor) GetFullAPIName() string

func (*ActivityLogServiceDescriptor) GetProtoPkgName added in v0.4.28

func (d *ActivityLogServiceDescriptor) GetProtoPkgName() string

func (*ActivityLogServiceDescriptor) GetServiceDomain added in v0.4.28

func (d *ActivityLogServiceDescriptor) GetServiceDomain() string

func (*ActivityLogServiceDescriptor) GetServiceVersion added in v0.4.28

func (d *ActivityLogServiceDescriptor) GetServiceVersion() string

type CreateActivityLogsDescriptor added in v0.4.28

type CreateActivityLogsDescriptor struct{}

func GetCreateActivityLogsDescriptor added in v0.4.28

func GetCreateActivityLogsDescriptor() *CreateActivityLogsDescriptor

func (*CreateActivityLogsDescriptor) GetApiDescriptor added in v0.4.28

func (*CreateActivityLogsDescriptor) GetApiName added in v0.4.28

func (d *CreateActivityLogsDescriptor) GetApiName() string

func (*CreateActivityLogsDescriptor) GetClientMsgReflectHandle added in v0.4.28

func (d *CreateActivityLogsDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle

func (*CreateActivityLogsDescriptor) GetFullMethodName added in v0.4.28

func (d *CreateActivityLogsDescriptor) GetFullMethodName() string

func (*CreateActivityLogsDescriptor) GetMethodName added in v0.4.28

func (d *CreateActivityLogsDescriptor) GetMethodName() string

func (*CreateActivityLogsDescriptor) GetProtoPkgName added in v0.4.28

func (d *CreateActivityLogsDescriptor) GetProtoPkgName() string

func (*CreateActivityLogsDescriptor) GetResourceDescriptor added in v0.4.30

func (d *CreateActivityLogsDescriptor) GetResourceDescriptor() gotenresource.Descriptor

func (*CreateActivityLogsDescriptor) GetServerMsgReflectHandle added in v0.4.28

func (d *CreateActivityLogsDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle

func (*CreateActivityLogsDescriptor) GetServiceDomain added in v0.4.28

func (d *CreateActivityLogsDescriptor) GetServiceDomain() string

func (*CreateActivityLogsDescriptor) GetServiceVersion added in v0.4.28

func (d *CreateActivityLogsDescriptor) GetServiceVersion() string

func (*CreateActivityLogsDescriptor) GetVerb added in v0.4.28

func (d *CreateActivityLogsDescriptor) GetVerb() string

func (*CreateActivityLogsDescriptor) HasResource added in v0.4.30

func (d *CreateActivityLogsDescriptor) HasResource() bool

func (*CreateActivityLogsDescriptor) IsClientStream added in v0.4.28

func (d *CreateActivityLogsDescriptor) IsClientStream() bool

func (*CreateActivityLogsDescriptor) IsCollection added in v0.4.30

func (d *CreateActivityLogsDescriptor) IsCollection() bool

func (*CreateActivityLogsDescriptor) IsPlural added in v0.4.30

func (d *CreateActivityLogsDescriptor) IsPlural() bool

func (*CreateActivityLogsDescriptor) IsServerStream added in v0.4.28

func (d *CreateActivityLogsDescriptor) IsServerStream() bool

func (*CreateActivityLogsDescriptor) IsUnary added in v0.4.28

func (d *CreateActivityLogsDescriptor) IsUnary() bool

func (*CreateActivityLogsDescriptor) NewEmptyClientMsg added in v0.4.28

func (d *CreateActivityLogsDescriptor) NewEmptyClientMsg() proto.Message

func (*CreateActivityLogsDescriptor) NewEmptyServerMsg added in v0.4.28

func (d *CreateActivityLogsDescriptor) NewEmptyServerMsg() proto.Message

func (*CreateActivityLogsDescriptor) RequestHasResourceBody added in v0.4.28

func (d *CreateActivityLogsDescriptor) RequestHasResourceBody() bool

type CreateActivityLogsDescriptorClientMsgHandle added in v0.4.28

type CreateActivityLogsDescriptorClientMsgHandle struct{}

func (*CreateActivityLogsDescriptorClientMsgHandle) ExtractCollectionName added in v0.4.30

func (*CreateActivityLogsDescriptorClientMsgHandle) ExtractResourceBodies added in v1.0.21

func (*CreateActivityLogsDescriptorClientMsgHandle) ExtractResourceBody added in v1.0.21

func (*CreateActivityLogsDescriptorClientMsgHandle) ExtractResourceName added in v0.4.30

func (*CreateActivityLogsDescriptorClientMsgHandle) ExtractResourceNames added in v0.4.30

type CreateActivityLogsDescriptorServerMsgHandle added in v0.4.28

type CreateActivityLogsDescriptorServerMsgHandle struct{}

func (*CreateActivityLogsDescriptorServerMsgHandle) ExtractCollectionName added in v0.4.30

func (*CreateActivityLogsDescriptorServerMsgHandle) ExtractResourceBodies added in v1.0.21

func (*CreateActivityLogsDescriptorServerMsgHandle) ExtractResourceBody added in v1.0.21

func (*CreateActivityLogsDescriptorServerMsgHandle) ExtractResourceName added in v0.4.30

func (*CreateActivityLogsDescriptorServerMsgHandle) ExtractResourceNames added in v0.4.30

type CreateActivityLogsRequest

type CreateActivityLogsRequest struct {

	// List of activity logs to be added to service. Can be coming from different
	// scopes but must be submitted to the same region.
	ActivityLogs []*activity_log.ActivityLog `protobuf:"bytes,1,rep,name=activity_logs,json=activityLogs,proto3" json:"activity_logs,omitempty" firestore:"activityLogs"`
	// contains filtered or unexported fields
}

Request message for method [CreateActivityLogs][ntt.audit.v1alpha2.CreateActivityLogs]

Creates many activity logs at once - or appends existing, if some of the activity logs already exist (their name is already known).

This request should not be used by regular users - only API services should be able to submit activity logs. Developers of services should use logs exporter package offered along other Audit service packages instead of developing own components.

func (*CreateActivityLogsRequest) Descriptor

func (*CreateActivityLogsRequest) Descriptor() ([]byte, []int)

Deprecated, Use CreateActivityLogsRequest.ProtoReflect.Descriptor instead.

func (*CreateActivityLogsRequest) GetActivityLogs

func (m *CreateActivityLogsRequest) GetActivityLogs() []*activity_log.ActivityLog

func (*CreateActivityLogsRequest) GotenMessage

func (*CreateActivityLogsRequest) GotenMessage()

func (*CreateActivityLogsRequest) GotenValidate

func (obj *CreateActivityLogsRequest) GotenValidate() error

func (*CreateActivityLogsRequest) Marshal

func (m *CreateActivityLogsRequest) Marshal() ([]byte, error)

func (*CreateActivityLogsRequest) MarshalJSON

func (m *CreateActivityLogsRequest) MarshalJSON() ([]byte, error)

func (*CreateActivityLogsRequest) ProtoMessage

func (*CreateActivityLogsRequest) ProtoMessage()

func (*CreateActivityLogsRequest) ProtoReflect

func (m *CreateActivityLogsRequest) ProtoReflect() preflect.Message

func (*CreateActivityLogsRequest) Reset

func (m *CreateActivityLogsRequest) Reset()

func (*CreateActivityLogsRequest) SetActivityLogs

func (m *CreateActivityLogsRequest) SetActivityLogs(fv []*activity_log.ActivityLog)

func (*CreateActivityLogsRequest) String

func (m *CreateActivityLogsRequest) String() string

func (*CreateActivityLogsRequest) Unmarshal

func (m *CreateActivityLogsRequest) Unmarshal(b []byte) error

func (*CreateActivityLogsRequest) UnmarshalJSON

func (m *CreateActivityLogsRequest) UnmarshalJSON(data []byte) error

type CreateActivityLogsResponse

type CreateActivityLogsResponse struct {

	// Activity log names - one name per each activity log, in same order
	// as in the request
	LogNames []*activity_log.Name `protobuf:"bytes,1,rep,customtype=Name,name=log_names,json=logNames,proto3" json:"log_names,omitempty" firestore:"logNames"`
	// contains filtered or unexported fields
}

Response message for method [CreateActivityLogs][ntt.audit.v1alpha2.CreateActivityLogs]

func (*CreateActivityLogsResponse) Descriptor

func (*CreateActivityLogsResponse) Descriptor() ([]byte, []int)

Deprecated, Use CreateActivityLogsResponse.ProtoReflect.Descriptor instead.

func (*CreateActivityLogsResponse) GetLogNames

func (m *CreateActivityLogsResponse) GetLogNames() []*activity_log.Name

func (*CreateActivityLogsResponse) GotenMessage

func (*CreateActivityLogsResponse) GotenMessage()

func (*CreateActivityLogsResponse) GotenValidate

func (obj *CreateActivityLogsResponse) GotenValidate() error

func (*CreateActivityLogsResponse) Marshal

func (m *CreateActivityLogsResponse) Marshal() ([]byte, error)

func (*CreateActivityLogsResponse) MarshalJSON

func (m *CreateActivityLogsResponse) MarshalJSON() ([]byte, error)

func (*CreateActivityLogsResponse) ProtoMessage

func (*CreateActivityLogsResponse) ProtoMessage()

func (*CreateActivityLogsResponse) ProtoReflect

func (m *CreateActivityLogsResponse) ProtoReflect() preflect.Message

func (*CreateActivityLogsResponse) Reset

func (m *CreateActivityLogsResponse) Reset()

func (*CreateActivityLogsResponse) SetLogNames

func (m *CreateActivityLogsResponse) SetLogNames(fv []*activity_log.Name)

func (*CreateActivityLogsResponse) String

func (m *CreateActivityLogsResponse) String() string

func (*CreateActivityLogsResponse) Unmarshal

func (m *CreateActivityLogsResponse) Unmarshal(b []byte) error

func (*CreateActivityLogsResponse) UnmarshalJSON

func (m *CreateActivityLogsResponse) UnmarshalJSON(data []byte) error

type ListActivityLogsDescriptor added in v0.4.28

type ListActivityLogsDescriptor struct{}

func GetListActivityLogsDescriptor added in v0.4.28

func GetListActivityLogsDescriptor() *ListActivityLogsDescriptor

func (*ListActivityLogsDescriptor) GetApiDescriptor added in v0.4.28

func (*ListActivityLogsDescriptor) GetApiName added in v0.4.28

func (d *ListActivityLogsDescriptor) GetApiName() string

func (*ListActivityLogsDescriptor) GetClientMsgReflectHandle added in v0.4.28

func (d *ListActivityLogsDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle

func (*ListActivityLogsDescriptor) GetFullMethodName added in v0.4.28

func (d *ListActivityLogsDescriptor) GetFullMethodName() string

func (*ListActivityLogsDescriptor) GetMethodName added in v0.4.28

func (d *ListActivityLogsDescriptor) GetMethodName() string

func (*ListActivityLogsDescriptor) GetProtoPkgName added in v0.4.28

func (d *ListActivityLogsDescriptor) GetProtoPkgName() string

func (*ListActivityLogsDescriptor) GetResourceDescriptor added in v0.4.30

func (d *ListActivityLogsDescriptor) GetResourceDescriptor() gotenresource.Descriptor

func (*ListActivityLogsDescriptor) GetServerMsgReflectHandle added in v0.4.28

func (d *ListActivityLogsDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle

func (*ListActivityLogsDescriptor) GetServiceDomain added in v0.4.28

func (d *ListActivityLogsDescriptor) GetServiceDomain() string

func (*ListActivityLogsDescriptor) GetServiceVersion added in v0.4.28

func (d *ListActivityLogsDescriptor) GetServiceVersion() string

func (*ListActivityLogsDescriptor) GetVerb added in v0.4.28

func (d *ListActivityLogsDescriptor) GetVerb() string

func (*ListActivityLogsDescriptor) HasResource added in v0.4.30

func (d *ListActivityLogsDescriptor) HasResource() bool

func (*ListActivityLogsDescriptor) IsClientStream added in v0.4.28

func (d *ListActivityLogsDescriptor) IsClientStream() bool

func (*ListActivityLogsDescriptor) IsCollection added in v0.4.30

func (d *ListActivityLogsDescriptor) IsCollection() bool

func (*ListActivityLogsDescriptor) IsPlural added in v0.4.30

func (d *ListActivityLogsDescriptor) IsPlural() bool

func (*ListActivityLogsDescriptor) IsServerStream added in v0.4.28

func (d *ListActivityLogsDescriptor) IsServerStream() bool

func (*ListActivityLogsDescriptor) IsUnary added in v0.4.28

func (d *ListActivityLogsDescriptor) IsUnary() bool

func (*ListActivityLogsDescriptor) NewEmptyClientMsg added in v0.4.28

func (d *ListActivityLogsDescriptor) NewEmptyClientMsg() proto.Message

func (*ListActivityLogsDescriptor) NewEmptyServerMsg added in v0.4.28

func (d *ListActivityLogsDescriptor) NewEmptyServerMsg() proto.Message

func (*ListActivityLogsDescriptor) RequestHasResourceBody added in v0.4.28

func (d *ListActivityLogsDescriptor) RequestHasResourceBody() bool

type ListActivityLogsDescriptorClientMsgHandle added in v0.4.28

type ListActivityLogsDescriptorClientMsgHandle struct{}

func (*ListActivityLogsDescriptorClientMsgHandle) ExtractCollectionName added in v0.4.30

func (*ListActivityLogsDescriptorClientMsgHandle) ExtractResourceBodies added in v1.0.21

func (*ListActivityLogsDescriptorClientMsgHandle) ExtractResourceBody added in v1.0.21

func (*ListActivityLogsDescriptorClientMsgHandle) ExtractResourceName added in v0.4.30

func (*ListActivityLogsDescriptorClientMsgHandle) ExtractResourceNames added in v0.4.30

type ListActivityLogsDescriptorServerMsgHandle added in v0.4.28

type ListActivityLogsDescriptorServerMsgHandle struct{}

func (*ListActivityLogsDescriptorServerMsgHandle) ExtractCollectionName added in v0.4.30

func (*ListActivityLogsDescriptorServerMsgHandle) ExtractResourceBodies added in v1.0.21

func (*ListActivityLogsDescriptorServerMsgHandle) ExtractResourceBody added in v1.0.21

func (*ListActivityLogsDescriptorServerMsgHandle) ExtractResourceName added in v0.4.30

func (*ListActivityLogsDescriptorServerMsgHandle) ExtractResourceNames added in v0.4.30

type ListActivityLogsRequest

type ListActivityLogsRequest struct {

	// Parent references of ntt.audit.v1alpha2.ActivityLog - provides list of all
	// scopes we want to query about
	Parents []*activity_log.ParentName `protobuf:"bytes,1,rep,customtype=ParentName,name=parents,proto3" json:"parents,omitempty" firestore:"parents"`
	// A audit filter that specifies which activity logs should be returned
	Filter *activity_log.Filter `protobuf:"bytes,2,opt,customtype=Filter,name=filter,proto3" json:"filter,omitempty" firestore:"filter"`
	// The time interval for which results should be returned. Only logs
	// that contain data points in the specified interval are included
	// in the response.
	Interval *common.TimeInterval `protobuf:"bytes,4,opt,name=interval,proto3" json:"interval,omitempty" firestore:"interval"`
	// Cap on a number of activity logs to be included in a response.
	// Number of logs in an actual response can be higher, since logs are
	// read in bulk with second precision - exceed logs above the limit will share
	// same timestamp as the logs below the limit.
	//
	// Results will be adjusted to the "end time" taken from interval field
	// (adjusted also by page_token if provided).
	PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty" firestore:"pageSize"`
	// Token which identifies next page with further results. Token should be
	// taken from
	// [ListActivityLogsResponse.next_page_token][ntt.audit.v1alpha2.ListActivityLogsResponse.next_page_token].
	PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty" firestore:"pageToken"`
	// contains filtered or unexported fields
}

Request message for method [ListActivityLogs][ntt.audit.v1alpha2.ListActivityLogs]

Returns activities for specified time range and within specified filter. Activity logs are stored only in region which executed them and never duplicated. Because of that its important to pay attention to region IDs in a request object.

Basic supported filters are: * --filter 'service.name=[SERVICE_NAME]' (what is happening in this service) * --filter 'service.name=[SERVICE_NAME] and method.type=[METHOD_NAME]' (what is happening for this API call) * --filter 'authentication.principal=[PRINCIPAL_NAME]' (what that person is doing) * --filter 'request_id=[REQUEST_ID]' (I have request ID, what is actually this?) * --filter 'service.name=[SERVICE_NAME] and resource.name=[FULL_RESOURCE_NAME]' (can I see activities on this resource?)

Its also possible to filter logs by their region of activity - by using field service.region_id in a filter field. Its important to note that logs may be present in multiple locations, if request was routed somewhere else or split & merged across many regions. Those activity logs may have different activity log names, but they will share same values in fields request_id and request_routing.

Be aware, that server will append scope filter condition (and scope=...) to the filter. Scope(s) will be extracted from fields parents in ListActivityLogsRequest object. Note you can query for multiple at once, both projects and organizations.

For all of the above filters you can replace filter condition compare (=) with IN operator. You can therefore query for multiple services, methods or users at once. Above filters are also preferred as we have optimization for them.

Activity logs can be filtered by custom labels (field labels in ActivityLog). Labels are defined per each API method - so you must specify service.name and method.type conditions to be able to query by labels.

For example, suppose you have a CreateVM method, which creates resource "VM". Suppose there is a field "group" within resource body, which is reference to other resource. If you want to make a query like "who was creating VMs for that group", then you need to create label "group" inside resource body. Then you will be able to make a query with following filter condition: *--filter 'service.name=vms.domain.com and method.type=CreateVM and labels.group=mySpecialVMGroup'*.

Be aware, that Create/Update requests, which have resource object in their own bodies, will automatically inherit resource labels. So, basically you need to define "group" label in resource spec, not inside request. This is useful, as both Create/Update methods will have this label. This also allows code-gen to continue maintaining *derived.proto files.

Examples of usage (with cuttle - we are interested only in one region and scope):

* Checks connections to all devices within ssh-demo project starting from 8th of September 12 UTC time

$ cuttle audit query activity-log --parents 'project/ssh-demo'

--filter 'service.name="devices.edgelq.com" and
method.type="ConnectToDevice" and service.regionId="us-west"'
--interval '{"startTime":"2020-09-08T12:00:00Z"}' -o json

*Checks connections to device demo-device within ssh-demo project starting from 8th of September 12 UTC time

$ cuttle audit query activity-log --parents 'project/ssh-demo'

--filter 'service.name="devices.edgelq.com" and
method.type="ConnectToDevice" and service.regionId="us-west" and
  resource.name="projects/ssh-demo/devices/demo-device"'
--interval '{"startTime":"2020-09-08T12:00:00Z"}' -o json

* Checks what is happening within whole iam service for project demo starting from 8th of September 12 UTC time

$ cuttle audit query activity-log --parents 'project/demo'

--filter 'service.name="iam.edgelq.com" and service.regionId="us-west"'
--filter 'service.name="iam.edgelq.com"'
--interval '{"startTime":"2020-09-08T12:00:00Z"}' -o json

* Checks activities within one hour for whole iam service for selected methods

$ cuttle audit query activity-log --parents 'project/demo'

--filter 'service.name="iam.edgelq.com" and method.type IN
["CreateRoleBinding", "UpdateRoleBinding", "DeleteRoleBinding"]
and service.regionId="us-west"'
--interval '{"startTime":"2020-09-08T12:00:00Z",
"endTime":"2020-09-08T13:00:00Z"}' -o json

* Checks modification of RoleBinding

$ cuttle audit query activity-log --parents 'project/demo'

--filter 'service.name="iam.edgelq.com" and method.type="UpdateRoleBinding"
and labels.resource_name="projects/x/roleBindings/myRB"'
--interval '{"startTime":"2020-09-08T12:00:00Z"}' -o json

* Checks what was happening with some device

$ cuttle audit query activity-log --parents 'project/demo'

--filter 'service.name="devices.edgelq.com" and
resource.name="projects/x/devices/myDevice" and service.regionId="us-west"'
--interval '{"startTime":"2020-09-08T12:00:00Z"}' -o json

* Checks activities made by specific user (we need their email)

$ cuttle audit query activity-log --parents 'project/demo'

--filter 'authentication.principal="user:we.know.who@domain.com" and
service.regionId="us-west"'
--interval '{"startTime":"2020-09-08T12:00:00Z"}' -o json

* Checks activities made by specific service account (we need it's email)

$ cuttle audit query activity-log --parents 'project/demo'

--filter
'authentication.principal="serviceAccount:myServiceAccount@domain.com" and
service.regionId="us-west"'

func (*ListActivityLogsRequest) Descriptor

func (*ListActivityLogsRequest) Descriptor() ([]byte, []int)

Deprecated, Use ListActivityLogsRequest.ProtoReflect.Descriptor instead.

func (*ListActivityLogsRequest) GetFilter

func (*ListActivityLogsRequest) GetInterval

func (m *ListActivityLogsRequest) GetInterval() *common.TimeInterval

func (*ListActivityLogsRequest) GetPageSize

func (m *ListActivityLogsRequest) GetPageSize() int32

func (*ListActivityLogsRequest) GetPageToken

func (m *ListActivityLogsRequest) GetPageToken() string

func (*ListActivityLogsRequest) GetParents

func (m *ListActivityLogsRequest) GetParents() []*activity_log.ParentName

func (*ListActivityLogsRequest) GotenMessage

func (*ListActivityLogsRequest) GotenMessage()

func (*ListActivityLogsRequest) GotenValidate

func (obj *ListActivityLogsRequest) GotenValidate() error

func (*ListActivityLogsRequest) Marshal

func (m *ListActivityLogsRequest) Marshal() ([]byte, error)

func (*ListActivityLogsRequest) MarshalJSON

func (m *ListActivityLogsRequest) MarshalJSON() ([]byte, error)

func (*ListActivityLogsRequest) ProtoMessage

func (*ListActivityLogsRequest) ProtoMessage()

func (*ListActivityLogsRequest) ProtoReflect

func (m *ListActivityLogsRequest) ProtoReflect() preflect.Message

func (*ListActivityLogsRequest) Reset

func (m *ListActivityLogsRequest) Reset()

func (*ListActivityLogsRequest) SetFilter

func (m *ListActivityLogsRequest) SetFilter(fv *activity_log.Filter)

func (*ListActivityLogsRequest) SetInterval

func (m *ListActivityLogsRequest) SetInterval(fv *common.TimeInterval)

func (*ListActivityLogsRequest) SetPageSize

func (m *ListActivityLogsRequest) SetPageSize(fv int32)

func (*ListActivityLogsRequest) SetPageToken

func (m *ListActivityLogsRequest) SetPageToken(fv string)

func (*ListActivityLogsRequest) SetParents

func (m *ListActivityLogsRequest) SetParents(fv []*activity_log.ParentName)

func (*ListActivityLogsRequest) String

func (m *ListActivityLogsRequest) String() string

func (*ListActivityLogsRequest) Unmarshal

func (m *ListActivityLogsRequest) Unmarshal(b []byte) error

func (*ListActivityLogsRequest) UnmarshalJSON

func (m *ListActivityLogsRequest) UnmarshalJSON(data []byte) error

type ListActivityLogsResponse

type ListActivityLogsResponse struct {

	// One or more activity method logs that match the filter included in the
	// request. Contains results from all queried regions. Its possible however
	// that some logs may be missing, for this see execution_errors.
	ActivityLogs []*activity_log.ActivityLog `protobuf:"bytes,1,rep,name=activity_logs,json=activityLogs,proto3" json:"activity_logs,omitempty" firestore:"activityLogs"`
	// If there are more results than have been returned, then this field is set
	// to a non-empty value. To see the additional results,
	// use that value as `pageToken` in the next call to this method.
	NextPageToken string `` /* 128-byte string literal not displayed */
	// Query execution errors that may have caused the response data returned to
	// be incomplete. Because logs are stored only locally (for each region), all
	// activity log queries are split and merged by a receiving request server
	// according to the queried regions. Its possible that some regions will fail
	// when request is redirected to them, but others not. For each failed region,
	// one execution error will be appended. In each ntt.rpc.Status message,
	// fields code and message will contain error obtained from failed regional
	// server, while field details will contain always one item and this item will
	// be of type ErrorDetails.
	ExecutionErrors []*rpc.Status `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

Response message for method [ListActivityLogs][ntt.audit.v1alpha2.ListActivityLogs]

func (*ListActivityLogsResponse) Descriptor

func (*ListActivityLogsResponse) Descriptor() ([]byte, []int)

Deprecated, Use ListActivityLogsResponse.ProtoReflect.Descriptor instead.

func (*ListActivityLogsResponse) GetActivityLogs

func (m *ListActivityLogsResponse) GetActivityLogs() []*activity_log.ActivityLog

func (*ListActivityLogsResponse) GetExecutionErrors

func (m *ListActivityLogsResponse) GetExecutionErrors() []*rpc.Status

func (*ListActivityLogsResponse) GetNextPageToken

func (m *ListActivityLogsResponse) GetNextPageToken() string

func (*ListActivityLogsResponse) GotenMessage

func (*ListActivityLogsResponse) GotenMessage()

func (*ListActivityLogsResponse) GotenValidate

func (obj *ListActivityLogsResponse) GotenValidate() error

func (*ListActivityLogsResponse) Marshal

func (m *ListActivityLogsResponse) Marshal() ([]byte, error)

func (*ListActivityLogsResponse) MarshalJSON

func (m *ListActivityLogsResponse) MarshalJSON() ([]byte, error)

func (*ListActivityLogsResponse) ProtoMessage

func (*ListActivityLogsResponse) ProtoMessage()

func (*ListActivityLogsResponse) ProtoReflect

func (m *ListActivityLogsResponse) ProtoReflect() preflect.Message

func (*ListActivityLogsResponse) Reset

func (m *ListActivityLogsResponse) Reset()

func (*ListActivityLogsResponse) SetActivityLogs

func (m *ListActivityLogsResponse) SetActivityLogs(fv []*activity_log.ActivityLog)

func (*ListActivityLogsResponse) SetExecutionErrors

func (m *ListActivityLogsResponse) SetExecutionErrors(fv []*rpc.Status)

func (*ListActivityLogsResponse) SetNextPageToken

func (m *ListActivityLogsResponse) SetNextPageToken(fv string)

func (*ListActivityLogsResponse) String

func (m *ListActivityLogsResponse) String() string

func (*ListActivityLogsResponse) Unmarshal

func (m *ListActivityLogsResponse) Unmarshal(b []byte) error

func (*ListActivityLogsResponse) UnmarshalJSON

func (m *ListActivityLogsResponse) UnmarshalJSON(data []byte) error

type ListActivityLogsResponse_ErrorDetails

type ListActivityLogsResponse_ErrorDetails struct {

	// region id which failed to give results.
	RegionId string `protobuf:"bytes,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty" firestore:"regionId"`
	// contains filtered or unexported fields
}

ErrorDetails is used when one of the queried regions fails to produce results. It is used in execution_errors field (see subfield ntt.rpc.Status.details).

func (*ListActivityLogsResponse_ErrorDetails) Descriptor

func (*ListActivityLogsResponse_ErrorDetails) Descriptor() ([]byte, []int)

Deprecated, Use ListActivityLogsResponse_ErrorDetails.ProtoReflect.Descriptor instead.

func (*ListActivityLogsResponse_ErrorDetails) GetRegionId

func (*ListActivityLogsResponse_ErrorDetails) GotenMessage

func (*ListActivityLogsResponse_ErrorDetails) GotenMessage()

func (*ListActivityLogsResponse_ErrorDetails) GotenValidate

func (obj *ListActivityLogsResponse_ErrorDetails) GotenValidate() error

func (*ListActivityLogsResponse_ErrorDetails) Marshal

func (*ListActivityLogsResponse_ErrorDetails) MarshalJSON

func (m *ListActivityLogsResponse_ErrorDetails) MarshalJSON() ([]byte, error)

func (*ListActivityLogsResponse_ErrorDetails) ProtoMessage

func (*ListActivityLogsResponse_ErrorDetails) ProtoMessage()

func (*ListActivityLogsResponse_ErrorDetails) ProtoReflect

func (*ListActivityLogsResponse_ErrorDetails) Reset

func (*ListActivityLogsResponse_ErrorDetails) SetRegionId

func (m *ListActivityLogsResponse_ErrorDetails) SetRegionId(fv string)

func (*ListActivityLogsResponse_ErrorDetails) String

func (*ListActivityLogsResponse_ErrorDetails) Unmarshal

func (*ListActivityLogsResponse_ErrorDetails) UnmarshalJSON

func (m *ListActivityLogsResponse_ErrorDetails) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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