operationalinsights

package
v0.20220805.1100614 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/operationalinsights Documentation

The operationalinsights SDK allows for interaction with the Azure Resource Manager Service operationalinsights (API Version 2019-09-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/operationalinsights/2019-09-01/operationalinsights"

Client Initialization

client := operationalinsights.NewOperationalInsightsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: OperationalInsightsClient.QueriesDelete

ctx := context.TODO()
id := operationalinsights.NewQueriesID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue", "idValue")

read, err := client.QueriesDelete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: OperationalInsightsClient.QueriesGet

ctx := context.TODO()
id := operationalinsights.NewQueriesID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue", "idValue")

read, err := client.QueriesGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: OperationalInsightsClient.QueriesList

ctx := context.TODO()
id := operationalinsights.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue")

// alternatively `client.QueriesList(ctx, id, operationalinsights.DefaultQueriesListOperationOptions())` can be used to do batched pagination
items, err := client.QueriesListComplete(ctx, id, operationalinsights.DefaultQueriesListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: OperationalInsightsClient.QueriesPut

ctx := context.TODO()
id := operationalinsights.NewQueriesID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue", "idValue")

payload := operationalinsights.LogAnalyticsQueryPackQuery{
	// ...
}


read, err := client.QueriesPut(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: OperationalInsightsClient.QueriesSearch

ctx := context.TODO()
id := operationalinsights.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue")

payload := operationalinsights.LogAnalyticsQueryPackQuerySearchProperties{
	// ...
}


// alternatively `client.QueriesSearch(ctx, id, payload, operationalinsights.DefaultQueriesSearchOperationOptions())` can be used to do batched pagination
items, err := client.QueriesSearchComplete(ctx, id, payload, operationalinsights.DefaultQueriesSearchOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: OperationalInsightsClient.QueriesUpdate

ctx := context.TODO()
id := operationalinsights.NewQueriesID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue", "idValue")

payload := operationalinsights.LogAnalyticsQueryPackQuery{
	// ...
}


read, err := client.QueriesUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: OperationalInsightsClient.QueryPacksCreateOrUpdate

ctx := context.TODO()
id := operationalinsights.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue")

payload := operationalinsights.LogAnalyticsQueryPack{
	// ...
}


read, err := client.QueryPacksCreateOrUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: OperationalInsightsClient.QueryPacksDelete

ctx := context.TODO()
id := operationalinsights.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue")

read, err := client.QueryPacksDelete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: OperationalInsightsClient.QueryPacksGet

ctx := context.TODO()
id := operationalinsights.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue")

read, err := client.QueryPacksGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: OperationalInsightsClient.QueryPacksList

ctx := context.TODO()
id := operationalinsights.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.QueryPacksList(ctx, id)` can be used to do batched pagination
items, err := client.QueryPacksListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: OperationalInsightsClient.QueryPacksListByResourceGroup

ctx := context.TODO()
id := operationalinsights.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.QueryPacksListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.QueryPacksListByResourceGroupComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: OperationalInsightsClient.QueryPacksUpdateTags

ctx := context.TODO()
id := operationalinsights.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue")

payload := operationalinsights.TagsResource{
	// ...
}


read, err := client.QueryPacksUpdateTags(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateQueriesID

func ValidateQueriesID(input interface{}, key string) (warnings []string, errors []error)

ValidateQueriesID checks that 'input' can be parsed as a Queries ID

func ValidateQueryPackID

func ValidateQueryPackID(input interface{}, key string) (warnings []string, errors []error)

ValidateQueryPackID checks that 'input' can be parsed as a Query Pack ID

Types

type LogAnalyticsQueryPack

type LogAnalyticsQueryPack struct {
	Id         *string                         `json:"id,omitempty"`
	Location   string                          `json:"location"`
	Name       *string                         `json:"name,omitempty"`
	Properties LogAnalyticsQueryPackProperties `json:"properties"`
	Tags       *map[string]string              `json:"tags,omitempty"`
	Type       *string                         `json:"type,omitempty"`
}

type LogAnalyticsQueryPackOperationPredicate

type LogAnalyticsQueryPackOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (LogAnalyticsQueryPackOperationPredicate) Matches

type LogAnalyticsQueryPackProperties

type LogAnalyticsQueryPackProperties struct {
	ProvisioningState *string `json:"provisioningState,omitempty"`
	QueryPackId       *string `json:"queryPackId,omitempty"`
	TimeCreated       *string `json:"timeCreated,omitempty"`
	TimeModified      *string `json:"timeModified,omitempty"`
}

func (*LogAnalyticsQueryPackProperties) GetTimeCreatedAsTime

func (o *LogAnalyticsQueryPackProperties) GetTimeCreatedAsTime() (*time.Time, error)

func (*LogAnalyticsQueryPackProperties) GetTimeModifiedAsTime

func (o *LogAnalyticsQueryPackProperties) GetTimeModifiedAsTime() (*time.Time, error)

func (*LogAnalyticsQueryPackProperties) SetTimeCreatedAsTime

func (o *LogAnalyticsQueryPackProperties) SetTimeCreatedAsTime(input time.Time)

func (*LogAnalyticsQueryPackProperties) SetTimeModifiedAsTime

func (o *LogAnalyticsQueryPackProperties) SetTimeModifiedAsTime(input time.Time)

type LogAnalyticsQueryPackQuery

type LogAnalyticsQueryPackQuery struct {
	Id         *string                               `json:"id,omitempty"`
	Name       *string                               `json:"name,omitempty"`
	Properties *LogAnalyticsQueryPackQueryProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData                `json:"systemData,omitempty"`
	Type       *string                               `json:"type,omitempty"`
}

type LogAnalyticsQueryPackQueryOperationPredicate

type LogAnalyticsQueryPackQueryOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (LogAnalyticsQueryPackQueryOperationPredicate) Matches

type LogAnalyticsQueryPackQueryProperties

type LogAnalyticsQueryPackQueryProperties struct {
	Author       *string                                      `json:"author,omitempty"`
	Body         string                                       `json:"body"`
	Description  *string                                      `json:"description,omitempty"`
	DisplayName  string                                       `json:"displayName"`
	Id           *string                                      `json:"id,omitempty"`
	Properties   *interface{}                                 `json:"properties,omitempty"`
	Related      *LogAnalyticsQueryPackQueryPropertiesRelated `json:"related,omitempty"`
	Tags         *map[string][]string                         `json:"tags,omitempty"`
	TimeCreated  *string                                      `json:"timeCreated,omitempty"`
	TimeModified *string                                      `json:"timeModified,omitempty"`
}

func (*LogAnalyticsQueryPackQueryProperties) GetTimeCreatedAsTime

func (o *LogAnalyticsQueryPackQueryProperties) GetTimeCreatedAsTime() (*time.Time, error)

func (*LogAnalyticsQueryPackQueryProperties) GetTimeModifiedAsTime

func (o *LogAnalyticsQueryPackQueryProperties) GetTimeModifiedAsTime() (*time.Time, error)

func (*LogAnalyticsQueryPackQueryProperties) SetTimeCreatedAsTime

func (o *LogAnalyticsQueryPackQueryProperties) SetTimeCreatedAsTime(input time.Time)

func (*LogAnalyticsQueryPackQueryProperties) SetTimeModifiedAsTime

func (o *LogAnalyticsQueryPackQueryProperties) SetTimeModifiedAsTime(input time.Time)

type LogAnalyticsQueryPackQueryPropertiesRelated

type LogAnalyticsQueryPackQueryPropertiesRelated struct {
	Categories    *[]string `json:"categories,omitempty"`
	ResourceTypes *[]string `json:"resourceTypes,omitempty"`
	Solutions     *[]string `json:"solutions,omitempty"`
}

type LogAnalyticsQueryPackQuerySearchProperties

type LogAnalyticsQueryPackQuerySearchProperties struct {
	Related *LogAnalyticsQueryPackQuerySearchPropertiesRelated `json:"related,omitempty"`
	Tags    *map[string][]string                               `json:"tags,omitempty"`
}

type LogAnalyticsQueryPackQuerySearchPropertiesRelated

type LogAnalyticsQueryPackQuerySearchPropertiesRelated struct {
	Categories    *[]string `json:"categories,omitempty"`
	ResourceTypes *[]string `json:"resourceTypes,omitempty"`
	Solutions     *[]string `json:"solutions,omitempty"`
}

type OperationalInsightsClient

type OperationalInsightsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewOperationalInsightsClientWithBaseURI

func NewOperationalInsightsClientWithBaseURI(endpoint string) OperationalInsightsClient

func (OperationalInsightsClient) QueriesDelete

QueriesDelete ...

func (OperationalInsightsClient) QueriesGet

QueriesGet ...

func (OperationalInsightsClient) QueriesList

QueriesList ...

func (OperationalInsightsClient) QueriesListComplete

QueriesListComplete retrieves all of the results into a single object

func (OperationalInsightsClient) QueriesListCompleteMatchingPredicate

QueriesListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (OperationalInsightsClient) QueriesPut

QueriesPut ...

func (OperationalInsightsClient) QueriesSearch

QueriesSearch ...

func (OperationalInsightsClient) QueriesSearchComplete

QueriesSearchComplete retrieves all of the results into a single object

func (OperationalInsightsClient) QueriesSearchCompleteMatchingPredicate

QueriesSearchCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (OperationalInsightsClient) QueriesUpdate

QueriesUpdate ...

func (OperationalInsightsClient) QueryPacksCreateOrUpdate

QueryPacksCreateOrUpdate ...

func (OperationalInsightsClient) QueryPacksDelete

QueryPacksDelete ...

func (OperationalInsightsClient) QueryPacksGet

QueryPacksGet ...

func (OperationalInsightsClient) QueryPacksList

QueryPacksList ...

func (OperationalInsightsClient) QueryPacksListByResourceGroup

QueryPacksListByResourceGroup ...

func (OperationalInsightsClient) QueryPacksListByResourceGroupComplete

QueryPacksListByResourceGroupComplete retrieves all of the results into a single object

func (OperationalInsightsClient) QueryPacksListByResourceGroupCompleteMatchingPredicate

func (c OperationalInsightsClient) QueryPacksListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate LogAnalyticsQueryPackOperationPredicate) (resp QueryPacksListByResourceGroupCompleteResult, err error)

QueryPacksListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (OperationalInsightsClient) QueryPacksListComplete

QueryPacksListComplete retrieves all of the results into a single object

func (OperationalInsightsClient) QueryPacksListCompleteMatchingPredicate

func (c OperationalInsightsClient) QueryPacksListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate LogAnalyticsQueryPackOperationPredicate) (resp QueryPacksListCompleteResult, err error)

QueryPacksListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (OperationalInsightsClient) QueryPacksUpdateTags

QueryPacksUpdateTags ...

type QueriesDeleteOperationResponse

type QueriesDeleteOperationResponse struct {
	HttpResponse *http.Response
}

type QueriesGetOperationResponse

type QueriesGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *LogAnalyticsQueryPackQuery
}

type QueriesId

type QueriesId struct {
	SubscriptionId    string
	ResourceGroupName string
	QueryPackName     string
	Id                string
}

QueriesId is a struct representing the Resource ID for a Queries

func NewQueriesID

func NewQueriesID(subscriptionId string, resourceGroupName string, queryPackName string, id string) QueriesId

NewQueriesID returns a new QueriesId struct

func ParseQueriesID

func ParseQueriesID(input string) (*QueriesId, error)

ParseQueriesID parses 'input' into a QueriesId

func ParseQueriesIDInsensitively

func ParseQueriesIDInsensitively(input string) (*QueriesId, error)

ParseQueriesIDInsensitively parses 'input' case-insensitively into a QueriesId note: this method should only be used for API response data and not user input

func (QueriesId) ID

func (id QueriesId) ID() string

ID returns the formatted Queries ID

func (QueriesId) Segments

func (id QueriesId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Queries ID

func (QueriesId) String

func (id QueriesId) String() string

String returns a human-readable description of this Queries ID

type QueriesListCompleteResult

type QueriesListCompleteResult struct {
	Items []LogAnalyticsQueryPackQuery
}

type QueriesListOperationOptions

type QueriesListOperationOptions struct {
	IncludeBody *bool
	Top         *int64
}

func DefaultQueriesListOperationOptions

func DefaultQueriesListOperationOptions() QueriesListOperationOptions

type QueriesListOperationResponse

type QueriesListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]LogAnalyticsQueryPackQuery
	// contains filtered or unexported fields
}

func (QueriesListOperationResponse) HasMore

func (r QueriesListOperationResponse) HasMore() bool

func (QueriesListOperationResponse) LoadMore

type QueriesPutOperationResponse

type QueriesPutOperationResponse struct {
	HttpResponse *http.Response
	Model        *LogAnalyticsQueryPackQuery
}

type QueriesSearchCompleteResult

type QueriesSearchCompleteResult struct {
	Items []LogAnalyticsQueryPackQuery
}

type QueriesSearchOperationOptions

type QueriesSearchOperationOptions struct {
	IncludeBody *bool
	Top         *int64
}

func DefaultQueriesSearchOperationOptions

func DefaultQueriesSearchOperationOptions() QueriesSearchOperationOptions

type QueriesSearchOperationResponse

type QueriesSearchOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]LogAnalyticsQueryPackQuery
	// contains filtered or unexported fields
}

func (QueriesSearchOperationResponse) HasMore

func (QueriesSearchOperationResponse) LoadMore

type QueriesUpdateOperationResponse

type QueriesUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *LogAnalyticsQueryPackQuery
}

type QueryPackId

type QueryPackId struct {
	SubscriptionId    string
	ResourceGroupName string
	QueryPackName     string
}

QueryPackId is a struct representing the Resource ID for a Query Pack

func NewQueryPackID

func NewQueryPackID(subscriptionId string, resourceGroupName string, queryPackName string) QueryPackId

NewQueryPackID returns a new QueryPackId struct

func ParseQueryPackID

func ParseQueryPackID(input string) (*QueryPackId, error)

ParseQueryPackID parses 'input' into a QueryPackId

func ParseQueryPackIDInsensitively

func ParseQueryPackIDInsensitively(input string) (*QueryPackId, error)

ParseQueryPackIDInsensitively parses 'input' case-insensitively into a QueryPackId note: this method should only be used for API response data and not user input

func (QueryPackId) ID

func (id QueryPackId) ID() string

ID returns the formatted Query Pack ID

func (QueryPackId) Segments

func (id QueryPackId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Query Pack ID

func (QueryPackId) String

func (id QueryPackId) String() string

String returns a human-readable description of this Query Pack ID

type QueryPacksCreateOrUpdateOperationResponse

type QueryPacksCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *LogAnalyticsQueryPack
}

type QueryPacksDeleteOperationResponse

type QueryPacksDeleteOperationResponse struct {
	HttpResponse *http.Response
}

type QueryPacksGetOperationResponse

type QueryPacksGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *LogAnalyticsQueryPack
}

type QueryPacksListByResourceGroupCompleteResult

type QueryPacksListByResourceGroupCompleteResult struct {
	Items []LogAnalyticsQueryPack
}

type QueryPacksListByResourceGroupOperationResponse

type QueryPacksListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]LogAnalyticsQueryPack
	// contains filtered or unexported fields
}

func (QueryPacksListByResourceGroupOperationResponse) HasMore

func (QueryPacksListByResourceGroupOperationResponse) LoadMore

type QueryPacksListCompleteResult

type QueryPacksListCompleteResult struct {
	Items []LogAnalyticsQueryPack
}

type QueryPacksListOperationResponse

type QueryPacksListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]LogAnalyticsQueryPack
	// contains filtered or unexported fields
}

func (QueryPacksListOperationResponse) HasMore

func (QueryPacksListOperationResponse) LoadMore

type QueryPacksUpdateTagsOperationResponse

type QueryPacksUpdateTagsOperationResponse struct {
	HttpResponse *http.Response
	Model        *LogAnalyticsQueryPack
}

type TagsResource

type TagsResource struct {
	Tags *map[string]string `json:"tags,omitempty"`
}

Jump to

Keyboard shortcuts

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