README
¶
github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/tenantactivitylogs
Documentation
The tenantactivitylogs
SDK allows for interaction with the Azure Resource Manager Service insights
(API Version 2015-04-01
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/tenantactivitylogs"
Client Initialization
client := tenantactivitylogs.NewTenantActivityLogsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: TenantActivityLogsClient.List
ctx := context.TODO()
// alternatively `client.List(ctx, tenantactivitylogs.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, tenantactivitylogs.DefaultListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation
¶
Index ¶
- func PossibleValuesForEventLevel() []string
- type EventData
- type EventDataOperationPredicate
- type EventLevel
- type HTTPRequestInfo
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type LocalizableString
- type SenderAuthorization
- type TenantActivityLogsClient
- func (c TenantActivityLogsClient) List(ctx context.Context, options ListOperationOptions) (resp ListOperationResponse, err error)
- func (c TenantActivityLogsClient) ListComplete(ctx context.Context, options ListOperationOptions) (ListCompleteResult, error)
- func (c TenantActivityLogsClient) ListCompleteMatchingPredicate(ctx context.Context, options ListOperationOptions, ...) (resp ListCompleteResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForEventLevel ¶
func PossibleValuesForEventLevel() []string
Types ¶
type EventData ¶
type EventData struct { Authorization *SenderAuthorization `json:"authorization,omitempty"` Caller *string `json:"caller,omitempty"` Category *LocalizableString `json:"category,omitempty"` Claims *map[string]string `json:"claims,omitempty"` CorrelationId *string `json:"correlationId,omitempty"` Description *string `json:"description,omitempty"` EventDataId *string `json:"eventDataId,omitempty"` EventName *LocalizableString `json:"eventName,omitempty"` EventTimestamp *string `json:"eventTimestamp,omitempty"` HTTPRequest *HTTPRequestInfo `json:"httpRequest,omitempty"` Id *string `json:"id,omitempty"` Level *EventLevel `json:"level,omitempty"` OperationId *string `json:"operationId,omitempty"` OperationName *LocalizableString `json:"operationName,omitempty"` Properties *map[string]string `json:"properties,omitempty"` ResourceGroupName *string `json:"resourceGroupName,omitempty"` ResourceId *string `json:"resourceId,omitempty"` ResourceProviderName *LocalizableString `json:"resourceProviderName,omitempty"` ResourceType *LocalizableString `json:"resourceType,omitempty"` Status *LocalizableString `json:"status,omitempty"` SubStatus *LocalizableString `json:"subStatus,omitempty"` SubmissionTimestamp *string `json:"submissionTimestamp,omitempty"` SubscriptionId *string `json:"subscriptionId,omitempty"` TenantId *string `json:"tenantId,omitempty"` }
func (*EventData) GetEventTimestampAsTime ¶
func (*EventData) GetSubmissionTimestampAsTime ¶
func (*EventData) SetEventTimestampAsTime ¶
func (*EventData) SetSubmissionTimestampAsTime ¶
type EventDataOperationPredicate ¶
type EventDataOperationPredicate struct { Caller *string CorrelationId *string Description *string EventDataId *string EventTimestamp *string Id *string OperationId *string ResourceGroupName *string ResourceId *string SubmissionTimestamp *string SubscriptionId *string TenantId *string }
func (EventDataOperationPredicate) Matches ¶
func (p EventDataOperationPredicate) Matches(input EventData) bool
type EventLevel ¶
type EventLevel string
const ( EventLevelCritical EventLevel = "Critical" EventLevelError EventLevel = "Error" EventLevelInformational EventLevel = "Informational" EventLevelVerbose EventLevel = "Verbose" EventLevelWarning EventLevel = "Warning" )
type HTTPRequestInfo ¶
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []EventData
}
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]EventData // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type LocalizableString ¶
type SenderAuthorization ¶
type TenantActivityLogsClient ¶
type TenantActivityLogsClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewTenantActivityLogsClientWithBaseURI ¶
func NewTenantActivityLogsClientWithBaseURI(endpoint string) TenantActivityLogsClient
func (TenantActivityLogsClient) List ¶
func (c TenantActivityLogsClient) List(ctx context.Context, options ListOperationOptions) (resp ListOperationResponse, err error)
List ...
func (TenantActivityLogsClient) ListComplete ¶
func (c TenantActivityLogsClient) ListComplete(ctx context.Context, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (TenantActivityLogsClient) ListCompleteMatchingPredicate ¶
func (c TenantActivityLogsClient) ListCompleteMatchingPredicate(ctx context.Context, options ListOperationOptions, predicate EventDataOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
Click to show internal directories.
Click to hide internal directories.