insights

package
v11.2.2-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package insights implements the Azure ARM Insights service API version 2015-05-01.

Composite Swagger for Application Insights Management Client

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Insights
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type APIKeyRequest

type APIKeyRequest struct {
	Name                  *string   `json:"name,omitempty"`
	LinkedReadProperties  *[]string `json:"linkedReadProperties,omitempty"`
	LinkedWriteProperties *[]string `json:"linkedWriteProperties,omitempty"`
}

APIKeyRequest is an Application Insights component API Key createion request definition.

type APIKeysClient

type APIKeysClient struct {
	ManagementClient
}

APIKeysClient is the composite Swagger for Application Insights Management Client

func NewAPIKeysClient

func NewAPIKeysClient(subscriptionID string) APIKeysClient

NewAPIKeysClient creates an instance of the APIKeysClient client.

func NewAPIKeysClientWithBaseURI

func NewAPIKeysClientWithBaseURI(baseURI string, subscriptionID string) APIKeysClient

NewAPIKeysClientWithBaseURI creates an instance of the APIKeysClient client.

func (APIKeysClient) Create

func (client APIKeysClient) Create(resourceGroupName string, resourceName string, APIKeyProperties APIKeyRequest) (result ApplicationInsightsComponentAPIKey, err error)

Create create an API Key of an Application Insights component.

resourceGroupName is the name of the resource group. resourceName is the name of the Application Insights component resource. APIKeyProperties is properties that need to be specified to create an API key of a Application Insights component.

func (APIKeysClient) CreatePreparer

func (client APIKeysClient) CreatePreparer(resourceGroupName string, resourceName string, APIKeyProperties APIKeyRequest) (*http.Request, error)

CreatePreparer prepares the Create request.

func (APIKeysClient) CreateResponder

func (client APIKeysClient) CreateResponder(resp *http.Response) (result ApplicationInsightsComponentAPIKey, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (APIKeysClient) CreateSender

func (client APIKeysClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (APIKeysClient) Delete

func (client APIKeysClient) Delete(resourceGroupName string, resourceName string, keyID string) (result ApplicationInsightsComponentAPIKey, err error)

Delete delete an API Key of an Application Insights component.

resourceGroupName is the name of the resource group. resourceName is the name of the Application Insights component resource. keyID is the API Key ID. This is unique within a Application Insights component.

func (APIKeysClient) DeletePreparer

func (client APIKeysClient) DeletePreparer(resourceGroupName string, resourceName string, keyID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (APIKeysClient) DeleteResponder

func (client APIKeysClient) DeleteResponder(resp *http.Response) (result ApplicationInsightsComponentAPIKey, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (APIKeysClient) DeleteSender

func (client APIKeysClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (APIKeysClient) Get

func (client APIKeysClient) Get(resourceGroupName string, resourceName string, keyID string) (result ApplicationInsightsComponentAPIKey, err error)

Get get the API Key for this key id.

resourceGroupName is the name of the resource group. resourceName is the name of the Application Insights component resource. keyID is the API Key ID. This is unique within a Application Insights component.

func (APIKeysClient) GetPreparer

func (client APIKeysClient) GetPreparer(resourceGroupName string, resourceName string, keyID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (APIKeysClient) GetResponder

func (client APIKeysClient) GetResponder(resp *http.Response) (result ApplicationInsightsComponentAPIKey, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (APIKeysClient) GetSender

func (client APIKeysClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (APIKeysClient) List

func (client APIKeysClient) List(resourceGroupName string, resourceName string) (result ApplicationInsightsComponentAPIKeyListResult, err error)

List gets a list of API keys of an Application Insights component.

resourceGroupName is the name of the resource group. resourceName is the name of the Application Insights component resource.

func (APIKeysClient) ListPreparer

func (client APIKeysClient) ListPreparer(resourceGroupName string, resourceName string) (*http.Request, error)

ListPreparer prepares the List request.

func (APIKeysClient) ListResponder

func (client APIKeysClient) ListResponder(resp *http.Response) (result ApplicationInsightsComponentAPIKeyListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (APIKeysClient) ListSender

func (client APIKeysClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ApplicationInsightsComponent

type ApplicationInsightsComponent struct {
	autorest.Response                       `json:"-"`
	ID                                      *string             `json:"id,omitempty"`
	Name                                    *string             `json:"name,omitempty"`
	Type                                    *string             `json:"type,omitempty"`
	Location                                *string             `json:"location,omitempty"`
	Tags                                    *map[string]*string `json:"tags,omitempty"`
	Kind                                    *string             `json:"kind,omitempty"`
	*ApplicationInsightsComponentProperties `json:"properties,omitempty"`
}

ApplicationInsightsComponent is an Application Insights component definition.

type ApplicationInsightsComponentAPIKey

type ApplicationInsightsComponentAPIKey struct {
	autorest.Response     `json:"-"`
	ID                    *string   `json:"id,omitempty"`
	APIKey                *string   `json:"apiKey,omitempty"`
	CreatedDate           *string   `json:"createdDate,omitempty"`
	Name                  *string   `json:"name,omitempty"`
	LinkedReadProperties  *[]string `json:"linkedReadProperties,omitempty"`
	LinkedWriteProperties *[]string `json:"linkedWriteProperties,omitempty"`
}

ApplicationInsightsComponentAPIKey is properties that define an API key of an Application Insights Component.

type ApplicationInsightsComponentAPIKeyListResult

type ApplicationInsightsComponentAPIKeyListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ApplicationInsightsComponentAPIKey `json:"value,omitempty"`
}

ApplicationInsightsComponentAPIKeyListResult is describes the list of API Keys of an Application Insights Component.

type ApplicationInsightsComponentBillingFeatures

type ApplicationInsightsComponentBillingFeatures struct {
	autorest.Response      `json:"-"`
	DataVolumeCap          *ApplicationInsightsComponentDataVolumeCap `json:"DataVolumeCap,omitempty"`
	CurrentBillingFeatures *[]string                                  `json:"CurrentBillingFeatures,omitempty"`
}

ApplicationInsightsComponentBillingFeatures is an Application Insights component billing features

type ApplicationInsightsComponentDataVolumeCap

type ApplicationInsightsComponentDataVolumeCap struct {
	Cap                                  *float64 `json:"Cap,omitempty"`
	ResetTime                            *int32   `json:"ResetTime,omitempty"`
	WarningThreshold                     *int32   `json:"WarningThreshold,omitempty"`
	StopSendNotificationWhenHitThreshold *bool    `json:"StopSendNotificationWhenHitThreshold,omitempty"`
	StopSendNotificationWhenHitCap       *bool    `json:"StopSendNotificationWhenHitCap,omitempty"`
	MaxHistoryCap                        *float64 `json:"MaxHistoryCap,omitempty"`
}

ApplicationInsightsComponentDataVolumeCap is an Application Insights component daily data volumne cap

type ApplicationInsightsComponentExportConfiguration

type ApplicationInsightsComponentExportConfiguration struct {
	autorest.Response                `json:"-"`
	ExportID                         *string `json:"ExportId,omitempty"`
	InstrumentationKey               *string `json:"InstrumentationKey,omitempty"`
	RecordTypes                      *string `json:"RecordTypes,omitempty"`
	ApplicationName                  *string `json:"ApplicationName,omitempty"`
	SubscriptionID                   *string `json:"SubscriptionId,omitempty"`
	ResourceGroup                    *string `json:"ResourceGroup,omitempty"`
	DestinationStorageSubscriptionID *string `json:"DestinationStorageSubscriptionId,omitempty"`
	DestinationStorageLocationID     *string `json:"DestinationStorageLocationId,omitempty"`
	DestinationAccountID             *string `json:"DestinationAccountId,omitempty"`
	DestinationType                  *string `json:"DestinationType,omitempty"`
	IsUserEnabled                    *string `json:"IsUserEnabled,omitempty"`
	LastUserUpdate                   *string `json:"LastUserUpdate,omitempty"`
	NotificationQueueEnabled         *string `json:"NotificationQueueEnabled,omitempty"`
	ExportStatus                     *string `json:"ExportStatus,omitempty"`
	LastSuccessTime                  *string `json:"LastSuccessTime,omitempty"`
	LastGapTime                      *string `json:"LastGapTime,omitempty"`
	PermanentErrorReason             *string `json:"PermanentErrorReason,omitempty"`
	StorageName                      *string `json:"StorageName,omitempty"`
	ContainerName                    *string `json:"ContainerName,omitempty"`
}

ApplicationInsightsComponentExportConfiguration is properties that define a Continuous Export configuration.

type ApplicationInsightsComponentExportRequest

type ApplicationInsightsComponentExportRequest struct {
	RecordTypes                      *string `json:"RecordTypes,omitempty"`
	DestinationType                  *string `json:"DestinationType,omitempty"`
	DestinationAddress               *string `json:"DestinationAddress,omitempty"`
	IsEnabled                        *string `json:"IsEnabled,omitempty"`
	NotificationQueueEnabled         *string `json:"NotificationQueueEnabled,omitempty"`
	NotificationQueueURI             *string `json:"NotificationQueueUri,omitempty"`
	DestinationStorageSubscriptionID *string `json:"DestinationStorageSubscriptionId,omitempty"`
	DestinationStorageLocationID     *string `json:"DestinationStorageLocationId,omitempty"`
	DestinationAccountID             *string `json:"DestinationAccountId,omitempty"`
}

ApplicationInsightsComponentExportRequest is an Application Insights component Continuous Export configuration request definition.

type ApplicationInsightsComponentListResult

type ApplicationInsightsComponentListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ApplicationInsightsComponent `json:"value,omitempty"`
	NextLink          *string                         `json:"nextLink,omitempty"`
}

ApplicationInsightsComponentListResult is describes the list of Application Insights Resources.

func (ApplicationInsightsComponentListResult) ApplicationInsightsComponentListResultPreparer

func (client ApplicationInsightsComponentListResult) ApplicationInsightsComponentListResultPreparer() (*http.Request, error)

ApplicationInsightsComponentListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ApplicationInsightsComponentProperties

type ApplicationInsightsComponentProperties struct {
	ApplicationID      *string         `json:"ApplicationId,omitempty"`
	AppID              *string         `json:"AppId,omitempty"`
	ApplicationType    ApplicationType `json:"Application_Type,omitempty"`
	FlowType           FlowType        `json:"Flow_Type,omitempty"`
	RequestSource      RequestSource   `json:"Request_Source,omitempty"`
	InstrumentationKey *string         `json:"InstrumentationKey,omitempty"`
	CreationDate       *date.Time      `json:"CreationDate,omitempty"`
	TenantID           *string         `json:"TenantId,omitempty"`
	HockeyAppID        *string         `json:"HockeyAppId,omitempty"`
	HockeyAppToken     *string         `json:"HockeyAppToken,omitempty"`
	ProvisioningState  *string         `json:"provisioningState,omitempty"`
	SamplingPercentage *float64        `json:"SamplingPercentage,omitempty"`
}

ApplicationInsightsComponentProperties is properties that define an Application Insights component resource.

type ApplicationInsightsComponentQuotaStatus

type ApplicationInsightsComponentQuotaStatus struct {
	autorest.Response `json:"-"`
	AppID             *string `json:"AppId,omitempty"`
	ShouldBeThrottled *bool   `json:"ShouldBeThrottled,omitempty"`
	ExpirationTime    *string `json:"ExpirationTime,omitempty"`
}

ApplicationInsightsComponentQuotaStatus is an Application Insights component daily data volume cap status

type ApplicationType

type ApplicationType string

ApplicationType enumerates the values for application type.

const (
	// Other specifies the other state for application type.
	Other ApplicationType = "other"
	// Web specifies the web state for application type.
	Web ApplicationType = "web"
)

type ComponentCurrentBillingFeaturesClient

type ComponentCurrentBillingFeaturesClient struct {
	ManagementClient
}

ComponentCurrentBillingFeaturesClient is the composite Swagger for Application Insights Management Client

func NewComponentCurrentBillingFeaturesClient

func NewComponentCurrentBillingFeaturesClient(subscriptionID string) ComponentCurrentBillingFeaturesClient

NewComponentCurrentBillingFeaturesClient creates an instance of the ComponentCurrentBillingFeaturesClient client.

func NewComponentCurrentBillingFeaturesClientWithBaseURI

func NewComponentCurrentBillingFeaturesClientWithBaseURI(baseURI string, subscriptionID string) ComponentCurrentBillingFeaturesClient

NewComponentCurrentBillingFeaturesClientWithBaseURI creates an instance of the ComponentCurrentBillingFeaturesClient client.

func (ComponentCurrentBillingFeaturesClient) Get

func (client ComponentCurrentBillingFeaturesClient) Get(resourceGroupName string, resourceName string) (result ApplicationInsightsComponentBillingFeatures, err error)

Get returns current billing features for an Application Insights component.

resourceGroupName is the name of the resource group. resourceName is the name of the Application Insights component resource.

func (ComponentCurrentBillingFeaturesClient) GetPreparer

func (client ComponentCurrentBillingFeaturesClient) GetPreparer(resourceGroupName string, resourceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ComponentCurrentBillingFeaturesClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ComponentCurrentBillingFeaturesClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ComponentCurrentBillingFeaturesClient) Update

func (client ComponentCurrentBillingFeaturesClient) Update(resourceGroupName string, resourceName string, billingFeaturesProperties ApplicationInsightsComponentBillingFeatures) (result ApplicationInsightsComponentBillingFeatures, err error)

Update update current billing features for an Application Insights component.

resourceGroupName is the name of the resource group. resourceName is the name of the Application Insights component resource. billingFeaturesProperties is properties that need to be specified to update billing features for an Application Insights component.

func (ComponentCurrentBillingFeaturesClient) UpdatePreparer

func (client ComponentCurrentBillingFeaturesClient) UpdatePreparer(resourceGroupName string, resourceName string, billingFeaturesProperties ApplicationInsightsComponentBillingFeatures) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ComponentCurrentBillingFeaturesClient) UpdateResponder

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ComponentCurrentBillingFeaturesClient) UpdateSender

func (client ComponentCurrentBillingFeaturesClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type ComponentQuotaStatusClient

type ComponentQuotaStatusClient struct {
	ManagementClient
}

ComponentQuotaStatusClient is the composite Swagger for Application Insights Management Client

func NewComponentQuotaStatusClient

func NewComponentQuotaStatusClient(subscriptionID string) ComponentQuotaStatusClient

NewComponentQuotaStatusClient creates an instance of the ComponentQuotaStatusClient client.

func NewComponentQuotaStatusClientWithBaseURI

func NewComponentQuotaStatusClientWithBaseURI(baseURI string, subscriptionID string) ComponentQuotaStatusClient

NewComponentQuotaStatusClientWithBaseURI creates an instance of the ComponentQuotaStatusClient client.

func (ComponentQuotaStatusClient) Get

func (client ComponentQuotaStatusClient) Get(resourceGroupName string, resourceName string) (result ApplicationInsightsComponentQuotaStatus, err error)

Get returns daily data volume cap (quota) status for an Application Insights component.

resourceGroupName is the name of the resource group. resourceName is the name of the Application Insights component resource.

func (ComponentQuotaStatusClient) GetPreparer

func (client ComponentQuotaStatusClient) GetPreparer(resourceGroupName string, resourceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ComponentQuotaStatusClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ComponentQuotaStatusClient) GetSender

func (client ComponentQuotaStatusClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type ComponentsClient

type ComponentsClient struct {
	ManagementClient
}

ComponentsClient is the composite Swagger for Application Insights Management Client

func NewComponentsClient

func NewComponentsClient(subscriptionID string) ComponentsClient

NewComponentsClient creates an instance of the ComponentsClient client.

func NewComponentsClientWithBaseURI

func NewComponentsClientWithBaseURI(baseURI string, subscriptionID string) ComponentsClient

NewComponentsClientWithBaseURI creates an instance of the ComponentsClient client.

func (ComponentsClient) CreateOrUpdate

func (client ComponentsClient) CreateOrUpdate(resourceGroupName string, resourceName string, insightProperties ApplicationInsightsComponent) (result ApplicationInsightsComponent, err error)

CreateOrUpdate creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.

resourceGroupName is the name of the resource group. resourceName is the name of the Application Insights component resource. insightProperties is properties that need to be specified to create an Application Insights component.

func (ComponentsClient) CreateOrUpdatePreparer

func (client ComponentsClient) CreateOrUpdatePreparer(resourceGroupName string, resourceName string, insightProperties ApplicationInsightsComponent) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ComponentsClient) CreateOrUpdateResponder

func (client ComponentsClient) CreateOrUpdateResponder(resp *http.Response) (result ApplicationInsightsComponent, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ComponentsClient) CreateOrUpdateSender

func (client ComponentsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ComponentsClient) Delete

func (client ComponentsClient) Delete(resourceGroupName string, resourceName string) (result autorest.Response, err error)

Delete deletes an Application Insights component.

resourceGroupName is the name of the resource group. resourceName is the name of the Application Insights component resource.

func (ComponentsClient) DeletePreparer

func (client ComponentsClient) DeletePreparer(resourceGroupName string, resourceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ComponentsClient) DeleteResponder

func (client ComponentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ComponentsClient) DeleteSender

func (client ComponentsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ComponentsClient) Get

func (client ComponentsClient) Get(resourceGroupName string, resourceName string) (result ApplicationInsightsComponent, err error)

Get returns an Application Insights component.

resourceGroupName is the name of the resource group. resourceName is the name of the Application Insights component resource.

func (ComponentsClient) GetPreparer

func (client ComponentsClient) GetPreparer(resourceGroupName string, resourceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ComponentsClient) GetResponder

func (client ComponentsClient) GetResponder(resp *http.Response) (result ApplicationInsightsComponent, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ComponentsClient) GetSender

func (client ComponentsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ComponentsClient) List

List gets a list of all Application Insights components within a subscription.

func (ComponentsClient) ListByResourceGroup

func (client ComponentsClient) ListByResourceGroup(resourceGroupName string) (result ApplicationInsightsComponentListResult, err error)

ListByResourceGroup gets a list of Application Insights components within a resource group.

resourceGroupName is the name of the resource group.

func (ComponentsClient) ListByResourceGroupComplete

func (client ComponentsClient) ListByResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan ApplicationInsightsComponent, <-chan error)

ListByResourceGroupComplete gets all elements from the list without paging.

func (ComponentsClient) ListByResourceGroupNextResults

func (client ComponentsClient) ListByResourceGroupNextResults(lastResults ApplicationInsightsComponentListResult) (result ApplicationInsightsComponentListResult, err error)

ListByResourceGroupNextResults retrieves the next set of results, if any.

func (ComponentsClient) ListByResourceGroupPreparer

func (client ComponentsClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ComponentsClient) ListByResourceGroupResponder

func (client ComponentsClient) ListByResourceGroupResponder(resp *http.Response) (result ApplicationInsightsComponentListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ComponentsClient) ListByResourceGroupSender

func (client ComponentsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (ComponentsClient) ListComplete

func (client ComponentsClient) ListComplete(cancel <-chan struct{}) (<-chan ApplicationInsightsComponent, <-chan error)

ListComplete gets all elements from the list without paging.

func (ComponentsClient) ListNextResults

ListNextResults retrieves the next set of results, if any.

func (ComponentsClient) ListPreparer

func (client ComponentsClient) ListPreparer() (*http.Request, error)

ListPreparer prepares the List request.

func (ComponentsClient) ListResponder

func (client ComponentsClient) ListResponder(resp *http.Response) (result ApplicationInsightsComponentListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ComponentsClient) ListSender

func (client ComponentsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (ComponentsClient) UpdateTags

func (client ComponentsClient) UpdateTags(resourceGroupName string, resourceName string, componentTags TagsResource) (result ApplicationInsightsComponent, err error)

UpdateTags updates an existing component's tags. To update other fields use the CreateOrUpdate method.

resourceGroupName is the name of the resource group. resourceName is the name of the Application Insights component resource. componentTags is updated tag information to set into the component instance.

func (ComponentsClient) UpdateTagsPreparer

func (client ComponentsClient) UpdateTagsPreparer(resourceGroupName string, resourceName string, componentTags TagsResource) (*http.Request, error)

UpdateTagsPreparer prepares the UpdateTags request.

func (ComponentsClient) UpdateTagsResponder

func (client ComponentsClient) UpdateTagsResponder(resp *http.Response) (result ApplicationInsightsComponent, err error)

UpdateTagsResponder handles the response to the UpdateTags request. The method always closes the http.Response Body.

func (ComponentsClient) UpdateTagsSender

func (client ComponentsClient) UpdateTagsSender(req *http.Request) (*http.Response, error)

UpdateTagsSender sends the UpdateTags request. The method will close the http.Response Body if it receives an error.

type ErrorResponse

type ErrorResponse struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

ErrorResponse is error reponse indicates Insights service is not able to process the incoming request. The reason is provided in the error message.

type ExportConfigurationsClient

type ExportConfigurationsClient struct {
	ManagementClient
}

ExportConfigurationsClient is the composite Swagger for Application Insights Management Client

func NewExportConfigurationsClient

func NewExportConfigurationsClient(subscriptionID string) ExportConfigurationsClient

NewExportConfigurationsClient creates an instance of the ExportConfigurationsClient client.

func NewExportConfigurationsClientWithBaseURI

func NewExportConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ExportConfigurationsClient

NewExportConfigurationsClientWithBaseURI creates an instance of the ExportConfigurationsClient client.

func (ExportConfigurationsClient) Create

func (client ExportConfigurationsClient) Create(resourceGroupName string, resourceName string, exportProperties ApplicationInsightsComponentExportRequest) (result ListApplicationInsightsComponentExportConfiguration, err error)

Create create a Continuous Export configuration of an Application Insights component.

resourceGroupName is the name of the resource group. resourceName is the name of the Application Insights component resource. exportProperties is properties that need to be specified to create a Continuous Export configuration of a Application Insights component.

func (ExportConfigurationsClient) CreatePreparer

func (client ExportConfigurationsClient) CreatePreparer(resourceGroupName string, resourceName string, exportProperties ApplicationInsightsComponentExportRequest) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ExportConfigurationsClient) CreateResponder

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ExportConfigurationsClient) CreateSender

func (client ExportConfigurationsClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (ExportConfigurationsClient) Delete

func (client ExportConfigurationsClient) Delete(resourceGroupName string, resourceName string, exportID string) (result ApplicationInsightsComponentExportConfiguration, err error)

Delete delete a Continuous Export configuration of an Application Insights component.

resourceGroupName is the name of the resource group. resourceName is the name of the Application Insights component resource. exportID is the Continuous Export configuration ID. This is unique within a Application Insights component.

func (ExportConfigurationsClient) DeletePreparer

func (client ExportConfigurationsClient) DeletePreparer(resourceGroupName string, resourceName string, exportID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ExportConfigurationsClient) DeleteResponder

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ExportConfigurationsClient) DeleteSender

func (client ExportConfigurationsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ExportConfigurationsClient) Get

func (client ExportConfigurationsClient) Get(resourceGroupName string, resourceName string, exportID string) (result ApplicationInsightsComponentExportConfiguration, err error)

Get get the Continuous Export configuration for this export id.

resourceGroupName is the name of the resource group. resourceName is the name of the Application Insights component resource. exportID is the Continuous Export configuration ID. This is unique within a Application Insights component.

func (ExportConfigurationsClient) GetPreparer

func (client ExportConfigurationsClient) GetPreparer(resourceGroupName string, resourceName string, exportID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ExportConfigurationsClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ExportConfigurationsClient) GetSender

func (client ExportConfigurationsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ExportConfigurationsClient) List

func (client ExportConfigurationsClient) List(resourceGroupName string, resourceName string) (result ListApplicationInsightsComponentExportConfiguration, err error)

List gets a list of Continuous Export configuration of an Application Insights component.

resourceGroupName is the name of the resource group. resourceName is the name of the Application Insights component resource.

func (ExportConfigurationsClient) ListPreparer

func (client ExportConfigurationsClient) ListPreparer(resourceGroupName string, resourceName string) (*http.Request, error)

ListPreparer prepares the List request.

func (ExportConfigurationsClient) ListResponder

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ExportConfigurationsClient) ListSender

func (client ExportConfigurationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (ExportConfigurationsClient) Update

func (client ExportConfigurationsClient) Update(resourceGroupName string, resourceName string, exportID string, exportProperties ApplicationInsightsComponentExportRequest) (result ApplicationInsightsComponentExportConfiguration, err error)

Update update the Continuous Export configuration for this export id.

resourceGroupName is the name of the resource group. resourceName is the name of the Application Insights component resource. exportID is the Continuous Export configuration ID. This is unique within a Application Insights component. exportProperties is properties that need to be specified to update the Continuous Export configuration.

func (ExportConfigurationsClient) UpdatePreparer

func (client ExportConfigurationsClient) UpdatePreparer(resourceGroupName string, resourceName string, exportID string, exportProperties ApplicationInsightsComponentExportRequest) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ExportConfigurationsClient) UpdateResponder

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ExportConfigurationsClient) UpdateSender

func (client ExportConfigurationsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type FlowType

type FlowType string

FlowType enumerates the values for flow type.

const (
	// Bluefield specifies the bluefield state for flow type.
	Bluefield FlowType = "Bluefield"
)

type ListApplicationInsightsComponentExportConfiguration

type ListApplicationInsightsComponentExportConfiguration struct {
	autorest.Response `json:"-"`
	Value             *[]ApplicationInsightsComponentExportConfiguration `json:"value,omitempty"`
}

ListApplicationInsightsComponentExportConfiguration is

type ManagementClient

type ManagementClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

ManagementClient is the base client for Insights.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

type Operation

type Operation struct {
	Name    *string           `json:"name,omitempty"`
	Display *OperationDisplay `json:"display,omitempty"`
}

Operation is CDN REST API operation

type OperationDisplay

type OperationDisplay struct {
	Provider  *string `json:"provider,omitempty"`
	Resource  *string `json:"resource,omitempty"`
	Operation *string `json:"operation,omitempty"`
}

OperationDisplay is the object that represents the operation.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Operation `json:"value,omitempty"`
	NextLink          *string      `json:"nextLink,omitempty"`
}

OperationListResult is result of the request to list CDN operations. It contains a list of operations and a URL link to get the next set of results.

func (OperationListResult) OperationListResultPreparer

func (client OperationListResult) OperationListResultPreparer() (*http.Request, error)

OperationListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type OperationsClient

type OperationsClient struct {
	ManagementClient
}

OperationsClient is the composite Swagger for Application Insights Management Client

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List

func (client OperationsClient) List() (result OperationListResult, err error)

List lists all of the available insights REST API operations.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(cancel <-chan struct{}) (<-chan Operation, <-chan error)

ListComplete gets all elements from the list without paging.

func (OperationsClient) ListNextResults

func (client OperationsClient) ListNextResults(lastResults OperationListResult) (result OperationListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer() (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type RequestSource

type RequestSource string

RequestSource enumerates the values for request source.

const (
	// Rest specifies the rest state for request source.
	Rest RequestSource = "rest"
)

type Resource

type Resource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Location *string             `json:"location,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
}

Resource is an azure resource object

type TagsResource

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

TagsResource is a container holding only the Tags for a resource, allowing the user to update the tags on a WebTest instance.

type WebTest

type WebTest struct {
	autorest.Response  `json:"-"`
	ID                 *string             `json:"id,omitempty"`
	Name               *string             `json:"name,omitempty"`
	Type               *string             `json:"type,omitempty"`
	Location           *string             `json:"location,omitempty"`
	Tags               *map[string]*string `json:"tags,omitempty"`
	Kind               WebTestKind         `json:"kind,omitempty"`
	*WebTestProperties `json:"properties,omitempty"`
}

WebTest is an Application Insights web test definition.

type WebTestGeolocation

type WebTestGeolocation struct {
	Location *string `json:"Id,omitempty"`
}

WebTestGeolocation is geo-physical location to run a web test from. You must specify one or more locations for the test to run from.

type WebTestKind

type WebTestKind string

WebTestKind enumerates the values for web test kind.

const (
	// Multistep specifies the multistep state for web test kind.
	Multistep WebTestKind = "multistep"
	// Ping specifies the ping state for web test kind.
	Ping WebTestKind = "ping"
)

type WebTestListResult

type WebTestListResult struct {
	autorest.Response `json:"-"`
	Value             *[]WebTest `json:"value,omitempty"`
	NextLink          *string    `json:"nextLink,omitempty"`
}

WebTestListResult is a list of 0 or more Application Insights web test definitions.

func (WebTestListResult) WebTestListResultPreparer

func (client WebTestListResult) WebTestListResultPreparer() (*http.Request, error)

WebTestListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type WebTestProperties

type WebTestProperties struct {
	SyntheticMonitorID *string                         `json:"SyntheticMonitorId,omitempty"`
	WebTestName        *string                         `json:"Name,omitempty"`
	Description        *string                         `json:"Description,omitempty"`
	Enabled            *bool                           `json:"Enabled,omitempty"`
	Frequency          *int32                          `json:"Frequency,omitempty"`
	Timeout            *int32                          `json:"Timeout,omitempty"`
	WebTestKind        WebTestKind                     `json:"Kind,omitempty"`
	RetryEnabled       *bool                           `json:"RetryEnabled,omitempty"`
	Locations          *[]WebTestGeolocation           `json:"Locations,omitempty"`
	Configuration      *WebTestPropertiesConfiguration `json:"Configuration,omitempty"`
	ProvisioningState  *string                         `json:"provisioningState,omitempty"`
}

WebTestProperties is metadata describing a web test for an Azure resource.

type WebTestPropertiesConfiguration

type WebTestPropertiesConfiguration struct {
	WebTest *string `json:"WebTest,omitempty"`
}

WebTestPropertiesConfiguration is an XML configuration specification for a WebTest.

type WebTestsClient

type WebTestsClient struct {
	ManagementClient
}

WebTestsClient is the composite Swagger for Application Insights Management Client

func NewWebTestsClient

func NewWebTestsClient(subscriptionID string) WebTestsClient

NewWebTestsClient creates an instance of the WebTestsClient client.

func NewWebTestsClientWithBaseURI

func NewWebTestsClientWithBaseURI(baseURI string, subscriptionID string) WebTestsClient

NewWebTestsClientWithBaseURI creates an instance of the WebTestsClient client.

func (WebTestsClient) CreateOrUpdate

func (client WebTestsClient) CreateOrUpdate(resourceGroupName string, webTestName string, webTestDefinition WebTest) (result WebTest, err error)

CreateOrUpdate creates or updates an Application Insights web test definition.

resourceGroupName is the name of the resource group. webTestName is the name of the Application Insights webtest resource. webTestDefinition is properties that need to be specified to create or update an Application Insights web test definition.

func (WebTestsClient) CreateOrUpdatePreparer

func (client WebTestsClient) CreateOrUpdatePreparer(resourceGroupName string, webTestName string, webTestDefinition WebTest) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (WebTestsClient) CreateOrUpdateResponder

func (client WebTestsClient) CreateOrUpdateResponder(resp *http.Response) (result WebTest, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (WebTestsClient) CreateOrUpdateSender

func (client WebTestsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (WebTestsClient) Delete

func (client WebTestsClient) Delete(resourceGroupName string, webTestName string) (result autorest.Response, err error)

Delete deletes an Application Insights web test.

resourceGroupName is the name of the resource group. webTestName is the name of the Application Insights webtest resource.

func (WebTestsClient) DeletePreparer

func (client WebTestsClient) DeletePreparer(resourceGroupName string, webTestName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (WebTestsClient) DeleteResponder

func (client WebTestsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (WebTestsClient) DeleteSender

func (client WebTestsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (WebTestsClient) Get

func (client WebTestsClient) Get(resourceGroupName string, webTestName string) (result WebTest, err error)

Get get a specific Application Insights web test definition.

resourceGroupName is the name of the resource group. webTestName is the name of the Application Insights webtest resource.

func (WebTestsClient) GetPreparer

func (client WebTestsClient) GetPreparer(resourceGroupName string, webTestName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (WebTestsClient) GetResponder

func (client WebTestsClient) GetResponder(resp *http.Response) (result WebTest, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (WebTestsClient) GetSender

func (client WebTestsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (WebTestsClient) List

func (client WebTestsClient) List() (result WebTestListResult, err error)

List get all Application Insights web test alerts definitioned within a subscription.

func (WebTestsClient) ListByResourceGroup

func (client WebTestsClient) ListByResourceGroup(resourceGroupName string) (result WebTestListResult, err error)

ListByResourceGroup get all Application Insights web tests defined within a specified resource group.

resourceGroupName is the name of the resource group.

func (WebTestsClient) ListByResourceGroupComplete

func (client WebTestsClient) ListByResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan WebTest, <-chan error)

ListByResourceGroupComplete gets all elements from the list without paging.

func (WebTestsClient) ListByResourceGroupNextResults

func (client WebTestsClient) ListByResourceGroupNextResults(lastResults WebTestListResult) (result WebTestListResult, err error)

ListByResourceGroupNextResults retrieves the next set of results, if any.

func (WebTestsClient) ListByResourceGroupPreparer

func (client WebTestsClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (WebTestsClient) ListByResourceGroupResponder

func (client WebTestsClient) ListByResourceGroupResponder(resp *http.Response) (result WebTestListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (WebTestsClient) ListByResourceGroupSender

func (client WebTestsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (WebTestsClient) ListComplete

func (client WebTestsClient) ListComplete(cancel <-chan struct{}) (<-chan WebTest, <-chan error)

ListComplete gets all elements from the list without paging.

func (WebTestsClient) ListNextResults

func (client WebTestsClient) ListNextResults(lastResults WebTestListResult) (result WebTestListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (WebTestsClient) ListPreparer

func (client WebTestsClient) ListPreparer() (*http.Request, error)

ListPreparer prepares the List request.

func (WebTestsClient) ListResponder

func (client WebTestsClient) ListResponder(resp *http.Response) (result WebTestListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (WebTestsClient) ListSender

func (client WebTestsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (WebTestsClient) UpdateTags

func (client WebTestsClient) UpdateTags(resourceGroupName string, webTestName string, webTestTags TagsResource) (result WebTest, err error)

UpdateTags creates or updates an Application Insights web test definition.

resourceGroupName is the name of the resource group. webTestName is the name of the Application Insights webtest resource. webTestTags is updated tag information to set into the web test instance.

func (WebTestsClient) UpdateTagsPreparer

func (client WebTestsClient) UpdateTagsPreparer(resourceGroupName string, webTestName string, webTestTags TagsResource) (*http.Request, error)

UpdateTagsPreparer prepares the UpdateTags request.

func (WebTestsClient) UpdateTagsResponder

func (client WebTestsClient) UpdateTagsResponder(resp *http.Response) (result WebTest, err error)

UpdateTagsResponder handles the response to the UpdateTags request. The method always closes the http.Response Body.

func (WebTestsClient) UpdateTagsSender

func (client WebTestsClient) UpdateTagsSender(req *http.Request) (*http.Response, error)

UpdateTagsSender sends the UpdateTags request. The method will close the http.Response Body if it receives an error.

Jump to

Keyboard shortcuts

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