Documentation ¶
Index ¶
Constants ¶
View Source
const ActivityLogsAPIVersion = "2017-03-01-preview"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallerType ¶
type CallerType string
const ( CallerTypeUser CallerType = "user" CallerTypeApp CallerType = "app" )
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(subscriptionId string, credential azcore.TokenCredential, option *arm.ClientOptions) (*Client, error)
func (*Client) GetAppInfo ¶
GetAppInfo gets the AAD application's information by its obejct id.
type EventCaller ¶
type EventCaller interface { // CallerIdentifier returns name for the user type; object id for the app type. CallerIdentifier() string }
type EventCallerApp ¶
type EventCallerApp struct { Type CallerType `json:"type"` ObjectId string `json:"object_id"` Name string `json:"name"` Owners []string `json:"owners"` }
func (*EventCallerApp) CallerIdentifier ¶
func (c *EventCallerApp) CallerIdentifier() string
type EventCallerUser ¶
type EventCallerUser struct { Type CallerType `json:"type"` Name string `json:"name"` }
func (*EventCallerUser) CallerIdentifier ¶
func (c *EventCallerUser) CallerIdentifier() string
type EventData ¶
type EventData struct { armmonitor.EventData // contains filtered or unexported fields }
func (EventData) GetCaller ¶
func (d EventData) GetCaller() EventCaller
type EventGroup ¶
type EventGroups ¶
type EventGroups map[string]EventGroup
type Events ¶
type Events []EventData
func (Events) Group ¶
func (events Events) Group() EventGroups
Group groups events by resource id with events sorted by timestamp.
type Filter ¶
type Filter struct { ResourceId string ResourceGroupName string ResourceTypes []string Caller string // contains filtered or unexported fields }
func NewFilter ¶
func NewFilter(opt *FilterOption) *Filter
func (Filter) Match ¶
Match is used to match the resource id of the event being returned by the List call. This is because some of the events returns resources beyond. E.g. Querying by resourceTypes of resource group can return resources within it.
(It seems the resourceTypes filter applies to the authZ scope of the operation).
type FilterOption ¶
type FilterOption struct { // ResourceId can't be resource group id. Use ResourceGroupName instead. ResourceId string // The name of the resource group ResourceGroupName string // ResourceTypes is a list of resource types (in the form of "Microsoft.Foo/bars/bazs"). // E.g. Microsoft.Resources/subscriptions/resourceGroups ResourceTypes []string // The object id of the caller Caller string }
Click to show internal directories.
Click to hide internal directories.