timeseriesinsights

package
v48.1.0+incompatible Latest Latest
Warning

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

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

Documentation

Overview

Package timeseriesinsights implements the Azure ARM Timeseriesinsights service API version 2018-08-15-preview.

Time Series Insights client

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Timeseriesinsights
	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 AccessPoliciesClient

type AccessPoliciesClient struct {
	BaseClient
}

AccessPoliciesClient is the time Series Insights client

func NewAccessPoliciesClient

func NewAccessPoliciesClient(subscriptionID string) AccessPoliciesClient

NewAccessPoliciesClient creates an instance of the AccessPoliciesClient client.

func NewAccessPoliciesClientWithBaseURI

func NewAccessPoliciesClientWithBaseURI(baseURI string, subscriptionID string) AccessPoliciesClient

NewAccessPoliciesClientWithBaseURI creates an instance of the AccessPoliciesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AccessPoliciesClient) CreateOrUpdate

func (client AccessPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, accessPolicyName string, parameters AccessPolicyCreateOrUpdateParameters) (result AccessPolicyResource, err error)

CreateOrUpdate create or update an access policy in the specified environment. Parameters: resourceGroupName - name of an Azure Resource group. environmentName - the name of the Time Series Insights environment associated with the specified resource group. accessPolicyName - name of the access policy. parameters - parameters for creating an access policy.

func (AccessPoliciesClient) CreateOrUpdatePreparer

func (client AccessPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, environmentName string, accessPolicyName string, parameters AccessPolicyCreateOrUpdateParameters) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AccessPoliciesClient) CreateOrUpdateResponder

func (client AccessPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result AccessPolicyResource, err error)

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

func (AccessPoliciesClient) CreateOrUpdateSender

func (client AccessPoliciesClient) 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 (AccessPoliciesClient) Delete

func (client AccessPoliciesClient) Delete(ctx context.Context, resourceGroupName string, environmentName string, accessPolicyName string) (result autorest.Response, err error)

Delete deletes the access policy with the specified name in the specified subscription, resource group, and environment Parameters: resourceGroupName - name of an Azure Resource group. environmentName - the name of the Time Series Insights environment associated with the specified resource group. accessPolicyName - the name of the Time Series Insights access policy associated with the specified environment.

func (AccessPoliciesClient) DeletePreparer

func (client AccessPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, environmentName string, accessPolicyName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (AccessPoliciesClient) DeleteResponder

func (client AccessPoliciesClient) 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 (AccessPoliciesClient) DeleteSender

func (client AccessPoliciesClient) 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 (AccessPoliciesClient) Get

func (client AccessPoliciesClient) Get(ctx context.Context, resourceGroupName string, environmentName string, accessPolicyName string) (result AccessPolicyResource, err error)

Get gets the access policy with the specified name in the specified environment. Parameters: resourceGroupName - name of an Azure Resource group. environmentName - the name of the Time Series Insights environment associated with the specified resource group. accessPolicyName - the name of the Time Series Insights access policy associated with the specified environment.

func (AccessPoliciesClient) GetPreparer

func (client AccessPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, environmentName string, accessPolicyName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AccessPoliciesClient) GetResponder

func (client AccessPoliciesClient) GetResponder(resp *http.Response) (result AccessPolicyResource, err error)

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

func (AccessPoliciesClient) GetSender

func (client AccessPoliciesClient) 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 (AccessPoliciesClient) ListByEnvironment

func (client AccessPoliciesClient) ListByEnvironment(ctx context.Context, resourceGroupName string, environmentName string) (result AccessPolicyListResponse, err error)

ListByEnvironment lists all the available access policies associated with the environment. Parameters: resourceGroupName - name of an Azure Resource group. environmentName - the name of the Time Series Insights environment associated with the specified resource group.

func (AccessPoliciesClient) ListByEnvironmentPreparer

func (client AccessPoliciesClient) ListByEnvironmentPreparer(ctx context.Context, resourceGroupName string, environmentName string) (*http.Request, error)

ListByEnvironmentPreparer prepares the ListByEnvironment request.

func (AccessPoliciesClient) ListByEnvironmentResponder

func (client AccessPoliciesClient) ListByEnvironmentResponder(resp *http.Response) (result AccessPolicyListResponse, err error)

ListByEnvironmentResponder handles the response to the ListByEnvironment request. The method always closes the http.Response Body.

func (AccessPoliciesClient) ListByEnvironmentSender

func (client AccessPoliciesClient) ListByEnvironmentSender(req *http.Request) (*http.Response, error)

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

func (AccessPoliciesClient) Update

func (client AccessPoliciesClient) Update(ctx context.Context, resourceGroupName string, environmentName string, accessPolicyName string, accessPolicyUpdateParameters AccessPolicyUpdateParameters) (result AccessPolicyResource, err error)

Update updates the access policy with the specified name in the specified subscription, resource group, and environment. Parameters: resourceGroupName - name of an Azure Resource group. environmentName - the name of the Time Series Insights environment associated with the specified resource group. accessPolicyName - the name of the Time Series Insights access policy associated with the specified environment. accessPolicyUpdateParameters - request object that contains the updated information for the access policy.

func (AccessPoliciesClient) UpdatePreparer

func (client AccessPoliciesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, environmentName string, accessPolicyName string, accessPolicyUpdateParameters AccessPolicyUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AccessPoliciesClient) UpdateResponder

func (client AccessPoliciesClient) UpdateResponder(resp *http.Response) (result AccessPolicyResource, err error)

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

func (AccessPoliciesClient) UpdateSender

func (client AccessPoliciesClient) 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 AccessPolicyCreateOrUpdateParameters

type AccessPolicyCreateOrUpdateParameters struct {
	*AccessPolicyResourceProperties `json:"properties,omitempty"`
}

AccessPolicyCreateOrUpdateParameters ...

func (AccessPolicyCreateOrUpdateParameters) MarshalJSON

func (apcoup AccessPolicyCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccessPolicyCreateOrUpdateParameters.

func (*AccessPolicyCreateOrUpdateParameters) UnmarshalJSON

func (apcoup *AccessPolicyCreateOrUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AccessPolicyCreateOrUpdateParameters struct.

type AccessPolicyListResponse

type AccessPolicyListResponse struct {
	autorest.Response `json:"-"`
	// Value - Result of the List access policies operation.
	Value *[]AccessPolicyResource `json:"value,omitempty"`
}

AccessPolicyListResponse the response of the List access policies operation.

type AccessPolicyMutableProperties

type AccessPolicyMutableProperties struct {
	// Description - An description of the access policy.
	Description *string `json:"description,omitempty"`
	// Roles - The list of roles the principal is assigned on the environment.
	Roles *[]AccessPolicyRole `json:"roles,omitempty"`
}

AccessPolicyMutableProperties an object that represents a set of mutable access policy resource properties.

type AccessPolicyResource

type AccessPolicyResource struct {
	autorest.Response               `json:"-"`
	*AccessPolicyResourceProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
}

AccessPolicyResource an access policy is used to grant users and applications access to the environment. Roles are assigned to service principals in Azure Active Directory. These roles define the actions the principal can perform through the Time Series Insights data plane APIs.

func (AccessPolicyResource) MarshalJSON

func (apr AccessPolicyResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccessPolicyResource.

func (*AccessPolicyResource) UnmarshalJSON

func (apr *AccessPolicyResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AccessPolicyResource struct.

type AccessPolicyResourceProperties

type AccessPolicyResourceProperties struct {
	// PrincipalObjectID - The objectId of the principal in Azure Active Directory.
	PrincipalObjectID *string `json:"principalObjectId,omitempty"`
	// Description - An description of the access policy.
	Description *string `json:"description,omitempty"`
	// Roles - The list of roles the principal is assigned on the environment.
	Roles *[]AccessPolicyRole `json:"roles,omitempty"`
}

AccessPolicyResourceProperties ...

type AccessPolicyRole

type AccessPolicyRole string

AccessPolicyRole enumerates the values for access policy role.

const (
	// Contributor ...
	Contributor AccessPolicyRole = "Contributor"
	// Reader ...
	Reader AccessPolicyRole = "Reader"
)

func PossibleAccessPolicyRoleValues

func PossibleAccessPolicyRoleValues() []AccessPolicyRole

PossibleAccessPolicyRoleValues returns an array of possible values for the AccessPolicyRole const type.

type AccessPolicyUpdateParameters

type AccessPolicyUpdateParameters struct {
	*AccessPolicyMutableProperties `json:"properties,omitempty"`
}

AccessPolicyUpdateParameters ...

func (AccessPolicyUpdateParameters) MarshalJSON

func (apup AccessPolicyUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccessPolicyUpdateParameters.

func (*AccessPolicyUpdateParameters) UnmarshalJSON

func (apup *AccessPolicyUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AccessPolicyUpdateParameters struct.

type AzureEventSourceProperties

type AzureEventSourceProperties struct {
	// EventSourceResourceID - The resource id of the event source in Azure Resource Manager.
	EventSourceResourceID *string `json:"eventSourceResourceId,omitempty"`
	// TimestampPropertyName - The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.
	TimestampPropertyName *string `json:"timestampPropertyName,omitempty"`
	// ProvisioningState - Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// CreationTime - READ-ONLY; The time the resource was created.
	CreationTime *date.Time `json:"creationTime,omitempty"`
}

AzureEventSourceProperties properties of an event source that reads events from an event broker in Azure.

func (AzureEventSourceProperties) MarshalJSON

func (aesp AzureEventSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureEventSourceProperties.

type BaseClient

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

BaseClient is the base client for Timeseriesinsights.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type BasicEnvironmentCreateOrUpdateParameters

type BasicEnvironmentCreateOrUpdateParameters interface {
	AsStandardEnvironmentCreateOrUpdateParameters() (*StandardEnvironmentCreateOrUpdateParameters, bool)
	AsLongTermEnvironmentCreateOrUpdateParameters() (*LongTermEnvironmentCreateOrUpdateParameters, bool)
	AsEnvironmentCreateOrUpdateParameters() (*EnvironmentCreateOrUpdateParameters, bool)
}

BasicEnvironmentCreateOrUpdateParameters parameters supplied to the CreateOrUpdate Environment operation.

type BasicEnvironmentResource

type BasicEnvironmentResource interface {
	AsStandardEnvironmentResource() (*StandardEnvironmentResource, bool)
	AsLongTermEnvironmentResource() (*LongTermEnvironmentResource, bool)
	AsEnvironmentResource() (*EnvironmentResource, bool)
}

BasicEnvironmentResource an environment is a set of time-series data available for query, and is the top level Azure Time Series Insights resource.

type BasicEventSourceCreateOrUpdateParameters

type BasicEventSourceCreateOrUpdateParameters interface {
	AsEventHubEventSourceCreateOrUpdateParameters() (*EventHubEventSourceCreateOrUpdateParameters, bool)
	AsIoTHubEventSourceCreateOrUpdateParameters() (*IoTHubEventSourceCreateOrUpdateParameters, bool)
	AsEventSourceCreateOrUpdateParameters() (*EventSourceCreateOrUpdateParameters, bool)
}

BasicEventSourceCreateOrUpdateParameters parameters supplied to the Create or Update Event Source operation.

type BasicEventSourceResource

type BasicEventSourceResource interface {
	AsEventHubEventSourceResource() (*EventHubEventSourceResource, bool)
	AsIoTHubEventSourceResource() (*IoTHubEventSourceResource, bool)
	AsEventSourceResource() (*EventSourceResource, bool)
}

BasicEventSourceResource an environment receives data from one or more event sources. Each event source has associated connection info that allows the Time Series Insights ingress pipeline to connect to and pull data from the event source

type CloudError

type CloudError struct {
	// Error - Describes a particular API error with an error code and a message.
	Error *CloudErrorBody `json:"error,omitempty"`
}

CloudError contains information about an API error.

type CloudErrorBody

type CloudErrorBody struct {
	// Code - An error code that describes the error condition more precisely than an HTTP status code. Can be used to programmatically handle specific error cases.
	Code *string `json:"code,omitempty"`
	// Message - A message that describes the error in detail and provides debugging information.
	Message *string `json:"message,omitempty"`
	// Target - The target of the particular error (for example, the name of the property in error).
	Target *string `json:"target,omitempty"`
	// Details - Contains nested errors that are related to this error.
	Details *[]CloudErrorBody `json:"details,omitempty"`
}

CloudErrorBody describes a particular API error with an error code and a message.

type CreateOrUpdateTrackedResourceProperties

type CreateOrUpdateTrackedResourceProperties struct {
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - Key-value pairs of additional properties for the resource.
	Tags map[string]*string `json:"tags"`
}

CreateOrUpdateTrackedResourceProperties properties required to create any resource tracked by Azure Resource Manager.

func (CreateOrUpdateTrackedResourceProperties) MarshalJSON

func (coutrp CreateOrUpdateTrackedResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CreateOrUpdateTrackedResourceProperties.

type DataStringComparisonBehavior

type DataStringComparisonBehavior string

DataStringComparisonBehavior enumerates the values for data string comparison behavior.

const (
	// Ordinal ...
	Ordinal DataStringComparisonBehavior = "Ordinal"
	// OrdinalIgnoreCase ...
	OrdinalIgnoreCase DataStringComparisonBehavior = "OrdinalIgnoreCase"
)

func PossibleDataStringComparisonBehaviorValues

func PossibleDataStringComparisonBehaviorValues() []DataStringComparisonBehavior

PossibleDataStringComparisonBehaviorValues returns an array of possible values for the DataStringComparisonBehavior const type.

type EnvironmentCreateOrUpdateParameters

type EnvironmentCreateOrUpdateParameters struct {
	// Sku - The sku determines the type of environment, either standard (S1 or S2) or long-term (L1). For standard environments the sku determines the capacity of the environment, the ingress rate, and the billing rate.
	Sku *Sku `json:"sku,omitempty"`
	// Kind - Possible values include: 'KindEnvironmentCreateOrUpdateParameters', 'KindStandard', 'KindLongTerm'
	Kind Kind `json:"kind,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - Key-value pairs of additional properties for the resource.
	Tags map[string]*string `json:"tags"`
}

EnvironmentCreateOrUpdateParameters parameters supplied to the CreateOrUpdate Environment operation.

func (EnvironmentCreateOrUpdateParameters) AsBasicEnvironmentCreateOrUpdateParameters

func (ecoup EnvironmentCreateOrUpdateParameters) AsBasicEnvironmentCreateOrUpdateParameters() (BasicEnvironmentCreateOrUpdateParameters, bool)

AsBasicEnvironmentCreateOrUpdateParameters is the BasicEnvironmentCreateOrUpdateParameters implementation for EnvironmentCreateOrUpdateParameters.

func (EnvironmentCreateOrUpdateParameters) AsEnvironmentCreateOrUpdateParameters

func (ecoup EnvironmentCreateOrUpdateParameters) AsEnvironmentCreateOrUpdateParameters() (*EnvironmentCreateOrUpdateParameters, bool)

AsEnvironmentCreateOrUpdateParameters is the BasicEnvironmentCreateOrUpdateParameters implementation for EnvironmentCreateOrUpdateParameters.

func (EnvironmentCreateOrUpdateParameters) AsLongTermEnvironmentCreateOrUpdateParameters

func (ecoup EnvironmentCreateOrUpdateParameters) AsLongTermEnvironmentCreateOrUpdateParameters() (*LongTermEnvironmentCreateOrUpdateParameters, bool)

AsLongTermEnvironmentCreateOrUpdateParameters is the BasicEnvironmentCreateOrUpdateParameters implementation for EnvironmentCreateOrUpdateParameters.

func (EnvironmentCreateOrUpdateParameters) AsStandardEnvironmentCreateOrUpdateParameters

func (ecoup EnvironmentCreateOrUpdateParameters) AsStandardEnvironmentCreateOrUpdateParameters() (*StandardEnvironmentCreateOrUpdateParameters, bool)

AsStandardEnvironmentCreateOrUpdateParameters is the BasicEnvironmentCreateOrUpdateParameters implementation for EnvironmentCreateOrUpdateParameters.

func (EnvironmentCreateOrUpdateParameters) MarshalJSON

func (ecoup EnvironmentCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EnvironmentCreateOrUpdateParameters.

type EnvironmentListResponse

type EnvironmentListResponse struct {
	autorest.Response `json:"-"`
	// Value - Result of the List Environments operation.
	Value *[]BasicEnvironmentResource `json:"value,omitempty"`
}

EnvironmentListResponse the response of the List Environments operation.

func (*EnvironmentListResponse) UnmarshalJSON

func (elr *EnvironmentListResponse) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for EnvironmentListResponse struct.

type EnvironmentResource

type EnvironmentResource struct {
	autorest.Response `json:"-"`
	// Sku - The sku determines the type of environment, either standard (S1 or S2) or long-term (L1). For standard environments the sku determines the capacity of the environment, the ingress rate, and the billing rate.
	Sku *Sku `json:"sku,omitempty"`
	// Kind - Possible values include: 'KindBasicEnvironmentResourceKindEnvironmentResource', 'KindBasicEnvironmentResourceKindStandard', 'KindBasicEnvironmentResourceKindLongTerm'
	Kind KindBasicEnvironmentResource `json:"kind,omitempty"`
	// Location - Resource location
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
}

EnvironmentResource an environment is a set of time-series data available for query, and is the top level Azure Time Series Insights resource.

func (EnvironmentResource) AsBasicEnvironmentResource

func (er EnvironmentResource) AsBasicEnvironmentResource() (BasicEnvironmentResource, bool)

AsBasicEnvironmentResource is the BasicEnvironmentResource implementation for EnvironmentResource.

func (EnvironmentResource) AsEnvironmentResource

func (er EnvironmentResource) AsEnvironmentResource() (*EnvironmentResource, bool)

AsEnvironmentResource is the BasicEnvironmentResource implementation for EnvironmentResource.

func (EnvironmentResource) AsLongTermEnvironmentResource

func (er EnvironmentResource) AsLongTermEnvironmentResource() (*LongTermEnvironmentResource, bool)

AsLongTermEnvironmentResource is the BasicEnvironmentResource implementation for EnvironmentResource.

func (EnvironmentResource) AsStandardEnvironmentResource

func (er EnvironmentResource) AsStandardEnvironmentResource() (*StandardEnvironmentResource, bool)

AsStandardEnvironmentResource is the BasicEnvironmentResource implementation for EnvironmentResource.

func (EnvironmentResource) MarshalJSON

func (er EnvironmentResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EnvironmentResource.

type EnvironmentResourceModel

type EnvironmentResourceModel struct {
	autorest.Response `json:"-"`
	Value             BasicEnvironmentResource `json:"value,omitempty"`
}

EnvironmentResourceModel ...

func (*EnvironmentResourceModel) UnmarshalJSON

func (erm *EnvironmentResourceModel) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for EnvironmentResourceModel struct.

type EnvironmentResourceProperties

type EnvironmentResourceProperties struct {
	// DataAccessID - READ-ONLY; An id used to access the environment data, e.g. to query the environment's events or upload reference data for the environment.
	DataAccessID *uuid.UUID `json:"dataAccessId,omitempty"`
	// DataAccessFqdn - READ-ONLY; The fully qualified domain name used to access the environment data, e.g. to query the environment's events or upload reference data for the environment.
	DataAccessFqdn *string `json:"dataAccessFqdn,omitempty"`
	// Status - An object that represents the status of the environment, and its internal state in the Time Series Insights service.
	Status *EnvironmentStatus `json:"status,omitempty"`
	// ProvisioningState - Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// CreationTime - READ-ONLY; The time the resource was created.
	CreationTime *date.Time `json:"creationTime,omitempty"`
}

EnvironmentResourceProperties properties of the environment.

func (EnvironmentResourceProperties) MarshalJSON

func (erp EnvironmentResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EnvironmentResourceProperties.

type EnvironmentStateDetails

type EnvironmentStateDetails struct {
	// Code - Contains the code that represents the reason of an environment being in a particular state. Can be used to programmatically handle specific cases.
	Code *string `json:"code,omitempty"`
	// Message - A message that describes the state in detail.
	Message *string `json:"message,omitempty"`
}

EnvironmentStateDetails an object that contains the details about an environment's state.

type EnvironmentStatus

type EnvironmentStatus struct {
	// Ingress - An object that represents the status of ingress on an environment.
	Ingress *IngressEnvironmentStatus `json:"ingress,omitempty"`
	// WarmStorage - An object that represents the status of warm storage on an environment.
	WarmStorage *WarmStorageEnvironmentStatus `json:"warmStorage,omitempty"`
}

EnvironmentStatus an object that represents the status of the environment, and its internal state in the Time Series Insights service.

type EnvironmentUpdateParameters

type EnvironmentUpdateParameters struct {
	// Tags - Key-value pairs of additional properties for the environment.
	Tags map[string]*string `json:"tags"`
}

EnvironmentUpdateParameters parameters supplied to the Update Environment operation.

func (EnvironmentUpdateParameters) MarshalJSON

func (eup EnvironmentUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EnvironmentUpdateParameters.

type EnvironmentsClient

type EnvironmentsClient struct {
	BaseClient
}

EnvironmentsClient is the time Series Insights client

func NewEnvironmentsClient

func NewEnvironmentsClient(subscriptionID string) EnvironmentsClient

NewEnvironmentsClient creates an instance of the EnvironmentsClient client.

func NewEnvironmentsClientWithBaseURI

func NewEnvironmentsClientWithBaseURI(baseURI string, subscriptionID string) EnvironmentsClient

NewEnvironmentsClientWithBaseURI creates an instance of the EnvironmentsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (EnvironmentsClient) CreateOrUpdate

func (client EnvironmentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, parameters BasicEnvironmentCreateOrUpdateParameters) (result EnvironmentsCreateOrUpdateFuture, err error)

CreateOrUpdate create or update an environment in the specified subscription and resource group. Parameters: resourceGroupName - name of an Azure Resource group. environmentName - name of the environment parameters - parameters for creating an environment resource.

func (EnvironmentsClient) CreateOrUpdatePreparer

func (client EnvironmentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, environmentName string, parameters BasicEnvironmentCreateOrUpdateParameters) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (EnvironmentsClient) CreateOrUpdateResponder

func (client EnvironmentsClient) CreateOrUpdateResponder(resp *http.Response) (result EnvironmentResourceModel, err error)

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

func (EnvironmentsClient) CreateOrUpdateSender

func (client EnvironmentsClient) CreateOrUpdateSender(req *http.Request) (future EnvironmentsCreateOrUpdateFuture, err error)

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

func (EnvironmentsClient) Delete

func (client EnvironmentsClient) Delete(ctx context.Context, resourceGroupName string, environmentName string) (result autorest.Response, err error)

Delete deletes the environment with the specified name in the specified subscription and resource group. Parameters: resourceGroupName - name of an Azure Resource group. environmentName - the name of the Time Series Insights environment associated with the specified resource group.

func (EnvironmentsClient) DeletePreparer

func (client EnvironmentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, environmentName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (EnvironmentsClient) DeleteResponder

func (client EnvironmentsClient) 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 (EnvironmentsClient) DeleteSender

func (client EnvironmentsClient) 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 (EnvironmentsClient) Get

func (client EnvironmentsClient) Get(ctx context.Context, resourceGroupName string, environmentName string, expand string) (result EnvironmentResourceModel, err error)

Get gets the environment with the specified name in the specified subscription and resource group. Parameters: resourceGroupName - name of an Azure Resource group. environmentName - the name of the Time Series Insights environment associated with the specified resource group. expand - setting $expand=status will include the status of the internal services of the environment in the Time Series Insights service.

func (EnvironmentsClient) GetPreparer

func (client EnvironmentsClient) GetPreparer(ctx context.Context, resourceGroupName string, environmentName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (EnvironmentsClient) GetResponder

func (client EnvironmentsClient) GetResponder(resp *http.Response) (result EnvironmentResourceModel, err error)

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

func (EnvironmentsClient) GetSender

func (client EnvironmentsClient) 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 (EnvironmentsClient) ListByResourceGroup

func (client EnvironmentsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result EnvironmentListResponse, err error)

ListByResourceGroup lists all the available environments associated with the subscription and within the specified resource group. Parameters: resourceGroupName - name of an Azure Resource group.

func (EnvironmentsClient) ListByResourceGroupPreparer

func (client EnvironmentsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (EnvironmentsClient) ListByResourceGroupResponder

func (client EnvironmentsClient) ListByResourceGroupResponder(resp *http.Response) (result EnvironmentListResponse, err error)

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

func (EnvironmentsClient) ListByResourceGroupSender

func (client EnvironmentsClient) 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 (EnvironmentsClient) ListBySubscription

func (client EnvironmentsClient) ListBySubscription(ctx context.Context) (result EnvironmentListResponse, err error)

ListBySubscription lists all the available environments within a subscription, irrespective of the resource groups.

func (EnvironmentsClient) ListBySubscriptionPreparer

func (client EnvironmentsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (EnvironmentsClient) ListBySubscriptionResponder

func (client EnvironmentsClient) ListBySubscriptionResponder(resp *http.Response) (result EnvironmentListResponse, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (EnvironmentsClient) ListBySubscriptionSender

func (client EnvironmentsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

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

func (EnvironmentsClient) Update

func (client EnvironmentsClient) Update(ctx context.Context, resourceGroupName string, environmentName string, environmentUpdateParameters EnvironmentUpdateParameters) (result EnvironmentsUpdateFuture, err error)

Update updates the environment with the specified name in the specified subscription and resource group. Parameters: resourceGroupName - name of an Azure Resource group. environmentName - the name of the Time Series Insights environment associated with the specified resource group. environmentUpdateParameters - request object that contains the updated information for the environment.

func (EnvironmentsClient) UpdatePreparer

func (client EnvironmentsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, environmentName string, environmentUpdateParameters EnvironmentUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (EnvironmentsClient) UpdateResponder

func (client EnvironmentsClient) UpdateResponder(resp *http.Response) (result EnvironmentResourceModel, err error)

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

func (EnvironmentsClient) UpdateSender

func (client EnvironmentsClient) UpdateSender(req *http.Request) (future EnvironmentsUpdateFuture, err error)

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

type EnvironmentsCreateOrUpdateFuture

type EnvironmentsCreateOrUpdateFuture struct {
	azure.Future
}

EnvironmentsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*EnvironmentsCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type EnvironmentsUpdateFuture

type EnvironmentsUpdateFuture struct {
	azure.Future
}

EnvironmentsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*EnvironmentsUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type EventHubEventSourceCommonProperties

type EventHubEventSourceCommonProperties struct {
	// ServiceBusNamespace - The name of the service bus that contains the event hub.
	ServiceBusNamespace *string `json:"serviceBusNamespace,omitempty"`
	// EventHubName - The name of the event hub.
	EventHubName *string `json:"eventHubName,omitempty"`
	// ConsumerGroupName - The name of the event hub's consumer group that holds the partitions from which events will be read.
	ConsumerGroupName *string `json:"consumerGroupName,omitempty"`
	// KeyName - The name of the SAS key that grants the Time Series Insights service access to the event hub. The shared access policies for this key must grant 'Listen' permissions to the event hub.
	KeyName *string `json:"keyName,omitempty"`
	// EventSourceResourceID - The resource id of the event source in Azure Resource Manager.
	EventSourceResourceID *string `json:"eventSourceResourceId,omitempty"`
	// TimestampPropertyName - The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.
	TimestampPropertyName *string `json:"timestampPropertyName,omitempty"`
	// ProvisioningState - Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// CreationTime - READ-ONLY; The time the resource was created.
	CreationTime *date.Time `json:"creationTime,omitempty"`
}

EventHubEventSourceCommonProperties properties of the EventHub event source.

func (EventHubEventSourceCommonProperties) MarshalJSON

func (ehescp EventHubEventSourceCommonProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EventHubEventSourceCommonProperties.

type EventHubEventSourceCreateOrUpdateParameters

type EventHubEventSourceCreateOrUpdateParameters struct {
	*EventHubEventSourceCreationProperties `json:"properties,omitempty"`
	// LocalTimestamp - An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events.
	LocalTimestamp *LocalTimestamp `json:"localTimestamp,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - Key-value pairs of additional properties for the resource.
	Tags map[string]*string `json:"tags"`
	// Kind - Possible values include: 'KindEventSourceCreateOrUpdateParameters', 'KindMicrosoftEventHub', 'KindMicrosoftIoTHub'
	Kind KindBasicEventSourceCreateOrUpdateParameters `json:"kind,omitempty"`
}

EventHubEventSourceCreateOrUpdateParameters parameters supplied to the Create or Update Event Source operation for an EventHub event source.

func (EventHubEventSourceCreateOrUpdateParameters) AsBasicEventSourceCreateOrUpdateParameters

func (ehescoup EventHubEventSourceCreateOrUpdateParameters) AsBasicEventSourceCreateOrUpdateParameters() (BasicEventSourceCreateOrUpdateParameters, bool)

AsBasicEventSourceCreateOrUpdateParameters is the BasicEventSourceCreateOrUpdateParameters implementation for EventHubEventSourceCreateOrUpdateParameters.

func (EventHubEventSourceCreateOrUpdateParameters) AsEventHubEventSourceCreateOrUpdateParameters

func (ehescoup EventHubEventSourceCreateOrUpdateParameters) AsEventHubEventSourceCreateOrUpdateParameters() (*EventHubEventSourceCreateOrUpdateParameters, bool)

AsEventHubEventSourceCreateOrUpdateParameters is the BasicEventSourceCreateOrUpdateParameters implementation for EventHubEventSourceCreateOrUpdateParameters.

func (EventHubEventSourceCreateOrUpdateParameters) AsEventSourceCreateOrUpdateParameters

func (ehescoup EventHubEventSourceCreateOrUpdateParameters) AsEventSourceCreateOrUpdateParameters() (*EventSourceCreateOrUpdateParameters, bool)

AsEventSourceCreateOrUpdateParameters is the BasicEventSourceCreateOrUpdateParameters implementation for EventHubEventSourceCreateOrUpdateParameters.

func (EventHubEventSourceCreateOrUpdateParameters) AsIoTHubEventSourceCreateOrUpdateParameters

func (ehescoup EventHubEventSourceCreateOrUpdateParameters) AsIoTHubEventSourceCreateOrUpdateParameters() (*IoTHubEventSourceCreateOrUpdateParameters, bool)

AsIoTHubEventSourceCreateOrUpdateParameters is the BasicEventSourceCreateOrUpdateParameters implementation for EventHubEventSourceCreateOrUpdateParameters.

func (EventHubEventSourceCreateOrUpdateParameters) MarshalJSON

func (ehescoup EventHubEventSourceCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EventHubEventSourceCreateOrUpdateParameters.

func (*EventHubEventSourceCreateOrUpdateParameters) UnmarshalJSON

func (ehescoup *EventHubEventSourceCreateOrUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for EventHubEventSourceCreateOrUpdateParameters struct.

type EventHubEventSourceCreationProperties

type EventHubEventSourceCreationProperties struct {
	// SharedAccessKey - The value of the shared access key that grants the Time Series Insights service read access to the event hub. This property is not shown in event source responses.
	SharedAccessKey *string `json:"sharedAccessKey,omitempty"`
	// ServiceBusNamespace - The name of the service bus that contains the event hub.
	ServiceBusNamespace *string `json:"serviceBusNamespace,omitempty"`
	// EventHubName - The name of the event hub.
	EventHubName *string `json:"eventHubName,omitempty"`
	// ConsumerGroupName - The name of the event hub's consumer group that holds the partitions from which events will be read.
	ConsumerGroupName *string `json:"consumerGroupName,omitempty"`
	// KeyName - The name of the SAS key that grants the Time Series Insights service access to the event hub. The shared access policies for this key must grant 'Listen' permissions to the event hub.
	KeyName *string `json:"keyName,omitempty"`
	// EventSourceResourceID - The resource id of the event source in Azure Resource Manager.
	EventSourceResourceID *string `json:"eventSourceResourceId,omitempty"`
	// TimestampPropertyName - The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.
	TimestampPropertyName *string `json:"timestampPropertyName,omitempty"`
	// ProvisioningState - Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// CreationTime - READ-ONLY; The time the resource was created.
	CreationTime *date.Time `json:"creationTime,omitempty"`
}

EventHubEventSourceCreationProperties properties of the EventHub event source that are required on create or update requests.

func (EventHubEventSourceCreationProperties) MarshalJSON

func (ehescp EventHubEventSourceCreationProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EventHubEventSourceCreationProperties.

type EventHubEventSourceMutableProperties

type EventHubEventSourceMutableProperties struct {
	// SharedAccessKey - The value of the shared access key that grants the Time Series Insights service read access to the event hub. This property is not shown in event source responses.
	SharedAccessKey *string `json:"sharedAccessKey,omitempty"`
	// TimestampPropertyName - The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.
	TimestampPropertyName *string `json:"timestampPropertyName,omitempty"`
	// LocalTimestamp - An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events.
	LocalTimestamp *LocalTimestamp `json:"localTimestamp,omitempty"`
}

EventHubEventSourceMutableProperties an object that represents a set of mutable EventHub event source resource properties.

type EventHubEventSourceResource

type EventHubEventSourceResource struct {
	*EventHubEventSourceResourceProperties `json:"properties,omitempty"`
	// Location - Resource location
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
	// Kind - Possible values include: 'KindBasicEventSourceResourceKindEventSourceResource', 'KindBasicEventSourceResourceKindMicrosoftEventHub', 'KindBasicEventSourceResourceKindMicrosoftIoTHub'
	Kind KindBasicEventSourceResource `json:"kind,omitempty"`
}

EventHubEventSourceResource an event source that receives its data from an Azure EventHub.

func (EventHubEventSourceResource) AsBasicEventSourceResource

func (ehesr EventHubEventSourceResource) AsBasicEventSourceResource() (BasicEventSourceResource, bool)

AsBasicEventSourceResource is the BasicEventSourceResource implementation for EventHubEventSourceResource.

func (EventHubEventSourceResource) AsEventHubEventSourceResource

func (ehesr EventHubEventSourceResource) AsEventHubEventSourceResource() (*EventHubEventSourceResource, bool)

AsEventHubEventSourceResource is the BasicEventSourceResource implementation for EventHubEventSourceResource.

func (EventHubEventSourceResource) AsEventSourceResource

func (ehesr EventHubEventSourceResource) AsEventSourceResource() (*EventSourceResource, bool)

AsEventSourceResource is the BasicEventSourceResource implementation for EventHubEventSourceResource.

func (EventHubEventSourceResource) AsIoTHubEventSourceResource

func (ehesr EventHubEventSourceResource) AsIoTHubEventSourceResource() (*IoTHubEventSourceResource, bool)

AsIoTHubEventSourceResource is the BasicEventSourceResource implementation for EventHubEventSourceResource.

func (EventHubEventSourceResource) MarshalJSON

func (ehesr EventHubEventSourceResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EventHubEventSourceResource.

func (*EventHubEventSourceResource) UnmarshalJSON

func (ehesr *EventHubEventSourceResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for EventHubEventSourceResource struct.

type EventHubEventSourceResourceProperties

type EventHubEventSourceResourceProperties struct {
	// ServiceBusNamespace - The name of the service bus that contains the event hub.
	ServiceBusNamespace *string `json:"serviceBusNamespace,omitempty"`
	// EventHubName - The name of the event hub.
	EventHubName *string `json:"eventHubName,omitempty"`
	// ConsumerGroupName - The name of the event hub's consumer group that holds the partitions from which events will be read.
	ConsumerGroupName *string `json:"consumerGroupName,omitempty"`
	// KeyName - The name of the SAS key that grants the Time Series Insights service access to the event hub. The shared access policies for this key must grant 'Listen' permissions to the event hub.
	KeyName *string `json:"keyName,omitempty"`
	// EventSourceResourceID - The resource id of the event source in Azure Resource Manager.
	EventSourceResourceID *string `json:"eventSourceResourceId,omitempty"`
	// TimestampPropertyName - The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.
	TimestampPropertyName *string `json:"timestampPropertyName,omitempty"`
	// ProvisioningState - Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// CreationTime - READ-ONLY; The time the resource was created.
	CreationTime *date.Time `json:"creationTime,omitempty"`
}

EventHubEventSourceResourceProperties properties of the EventHub event source resource.

func (EventHubEventSourceResourceProperties) MarshalJSON

func (ehesrp EventHubEventSourceResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EventHubEventSourceResourceProperties.

type EventHubEventSourceUpdateParameters

type EventHubEventSourceUpdateParameters struct {
	// EventHubEventSourceMutableProperties - Properties of the EventHub event source.
	*EventHubEventSourceMutableProperties `json:"properties,omitempty"`
	// Tags - Key-value pairs of additional properties for the event source.
	Tags map[string]*string `json:"tags"`
}

EventHubEventSourceUpdateParameters parameters supplied to the Update Event Source operation to update an EventHub event source.

func (EventHubEventSourceUpdateParameters) MarshalJSON

func (ehesup EventHubEventSourceUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EventHubEventSourceUpdateParameters.

func (*EventHubEventSourceUpdateParameters) UnmarshalJSON

func (ehesup *EventHubEventSourceUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for EventHubEventSourceUpdateParameters struct.

type EventSourceCommonProperties

type EventSourceCommonProperties struct {
	// TimestampPropertyName - The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.
	TimestampPropertyName *string `json:"timestampPropertyName,omitempty"`
	// ProvisioningState - Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// CreationTime - READ-ONLY; The time the resource was created.
	CreationTime *date.Time `json:"creationTime,omitempty"`
}

EventSourceCommonProperties properties of the event source.

func (EventSourceCommonProperties) MarshalJSON

func (escp EventSourceCommonProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EventSourceCommonProperties.

type EventSourceCreateOrUpdateParameters

type EventSourceCreateOrUpdateParameters struct {
	// LocalTimestamp - An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events.
	LocalTimestamp *LocalTimestamp `json:"localTimestamp,omitempty"`
	// Kind - Possible values include: 'KindEventSourceCreateOrUpdateParameters', 'KindMicrosoftEventHub', 'KindMicrosoftIoTHub'
	Kind KindBasicEventSourceCreateOrUpdateParameters `json:"kind,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - Key-value pairs of additional properties for the resource.
	Tags map[string]*string `json:"tags"`
}

EventSourceCreateOrUpdateParameters parameters supplied to the Create or Update Event Source operation.

func (EventSourceCreateOrUpdateParameters) AsBasicEventSourceCreateOrUpdateParameters

func (escoup EventSourceCreateOrUpdateParameters) AsBasicEventSourceCreateOrUpdateParameters() (BasicEventSourceCreateOrUpdateParameters, bool)

AsBasicEventSourceCreateOrUpdateParameters is the BasicEventSourceCreateOrUpdateParameters implementation for EventSourceCreateOrUpdateParameters.

func (EventSourceCreateOrUpdateParameters) AsEventHubEventSourceCreateOrUpdateParameters

func (escoup EventSourceCreateOrUpdateParameters) AsEventHubEventSourceCreateOrUpdateParameters() (*EventHubEventSourceCreateOrUpdateParameters, bool)

AsEventHubEventSourceCreateOrUpdateParameters is the BasicEventSourceCreateOrUpdateParameters implementation for EventSourceCreateOrUpdateParameters.

func (EventSourceCreateOrUpdateParameters) AsEventSourceCreateOrUpdateParameters

func (escoup EventSourceCreateOrUpdateParameters) AsEventSourceCreateOrUpdateParameters() (*EventSourceCreateOrUpdateParameters, bool)

AsEventSourceCreateOrUpdateParameters is the BasicEventSourceCreateOrUpdateParameters implementation for EventSourceCreateOrUpdateParameters.

func (EventSourceCreateOrUpdateParameters) AsIoTHubEventSourceCreateOrUpdateParameters

func (escoup EventSourceCreateOrUpdateParameters) AsIoTHubEventSourceCreateOrUpdateParameters() (*IoTHubEventSourceCreateOrUpdateParameters, bool)

AsIoTHubEventSourceCreateOrUpdateParameters is the BasicEventSourceCreateOrUpdateParameters implementation for EventSourceCreateOrUpdateParameters.

func (EventSourceCreateOrUpdateParameters) MarshalJSON

func (escoup EventSourceCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EventSourceCreateOrUpdateParameters.

type EventSourceListResponse

type EventSourceListResponse struct {
	autorest.Response `json:"-"`
	// Value - Result of the List EventSources operation.
	Value *[]BasicEventSourceResource `json:"value,omitempty"`
}

EventSourceListResponse the response of the List EventSources operation.

func (*EventSourceListResponse) UnmarshalJSON

func (eslr *EventSourceListResponse) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for EventSourceListResponse struct.

type EventSourceMutableProperties

type EventSourceMutableProperties struct {
	// TimestampPropertyName - The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.
	TimestampPropertyName *string `json:"timestampPropertyName,omitempty"`
	// LocalTimestamp - An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events.
	LocalTimestamp *LocalTimestamp `json:"localTimestamp,omitempty"`
}

EventSourceMutableProperties an object that represents a set of mutable event source resource properties.

type EventSourceResource

type EventSourceResource struct {
	autorest.Response `json:"-"`
	// Kind - Possible values include: 'KindBasicEventSourceResourceKindEventSourceResource', 'KindBasicEventSourceResourceKindMicrosoftEventHub', 'KindBasicEventSourceResourceKindMicrosoftIoTHub'
	Kind KindBasicEventSourceResource `json:"kind,omitempty"`
	// Location - Resource location
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
}

EventSourceResource an environment receives data from one or more event sources. Each event source has associated connection info that allows the Time Series Insights ingress pipeline to connect to and pull data from the event source

func (EventSourceResource) AsBasicEventSourceResource

func (esr EventSourceResource) AsBasicEventSourceResource() (BasicEventSourceResource, bool)

AsBasicEventSourceResource is the BasicEventSourceResource implementation for EventSourceResource.

func (EventSourceResource) AsEventHubEventSourceResource

func (esr EventSourceResource) AsEventHubEventSourceResource() (*EventHubEventSourceResource, bool)

AsEventHubEventSourceResource is the BasicEventSourceResource implementation for EventSourceResource.

func (EventSourceResource) AsEventSourceResource

func (esr EventSourceResource) AsEventSourceResource() (*EventSourceResource, bool)

AsEventSourceResource is the BasicEventSourceResource implementation for EventSourceResource.

func (EventSourceResource) AsIoTHubEventSourceResource

func (esr EventSourceResource) AsIoTHubEventSourceResource() (*IoTHubEventSourceResource, bool)

AsIoTHubEventSourceResource is the BasicEventSourceResource implementation for EventSourceResource.

func (EventSourceResource) MarshalJSON

func (esr EventSourceResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EventSourceResource.

type EventSourceResourceModel

type EventSourceResourceModel struct {
	autorest.Response `json:"-"`
	Value             BasicEventSourceResource `json:"value,omitempty"`
}

EventSourceResourceModel ...

func (*EventSourceResourceModel) UnmarshalJSON

func (esrm *EventSourceResourceModel) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for EventSourceResourceModel struct.

type EventSourceUpdateParameters

type EventSourceUpdateParameters struct {
	// Tags - Key-value pairs of additional properties for the event source.
	Tags map[string]*string `json:"tags"`
}

EventSourceUpdateParameters parameters supplied to the Update Event Source operation.

func (EventSourceUpdateParameters) MarshalJSON

func (esup EventSourceUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EventSourceUpdateParameters.

type EventSourcesClient

type EventSourcesClient struct {
	BaseClient
}

EventSourcesClient is the time Series Insights client

func NewEventSourcesClient

func NewEventSourcesClient(subscriptionID string) EventSourcesClient

NewEventSourcesClient creates an instance of the EventSourcesClient client.

func NewEventSourcesClientWithBaseURI

func NewEventSourcesClientWithBaseURI(baseURI string, subscriptionID string) EventSourcesClient

NewEventSourcesClientWithBaseURI creates an instance of the EventSourcesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (EventSourcesClient) CreateOrUpdate

func (client EventSourcesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, eventSourceName string, parameters BasicEventSourceCreateOrUpdateParameters) (result EventSourceResourceModel, err error)

CreateOrUpdate create or update an event source under the specified environment. Parameters: resourceGroupName - name of an Azure Resource group. environmentName - the name of the Time Series Insights environment associated with the specified resource group. eventSourceName - name of the event source. parameters - parameters for creating an event source resource.

func (EventSourcesClient) CreateOrUpdatePreparer

func (client EventSourcesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, environmentName string, eventSourceName string, parameters BasicEventSourceCreateOrUpdateParameters) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (EventSourcesClient) CreateOrUpdateResponder

func (client EventSourcesClient) CreateOrUpdateResponder(resp *http.Response) (result EventSourceResourceModel, err error)

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

func (EventSourcesClient) CreateOrUpdateSender

func (client EventSourcesClient) 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 (EventSourcesClient) Delete

func (client EventSourcesClient) Delete(ctx context.Context, resourceGroupName string, environmentName string, eventSourceName string) (result autorest.Response, err error)

Delete deletes the event source with the specified name in the specified subscription, resource group, and environment Parameters: resourceGroupName - name of an Azure Resource group. environmentName - the name of the Time Series Insights environment associated with the specified resource group. eventSourceName - the name of the Time Series Insights event source associated with the specified environment.

func (EventSourcesClient) DeletePreparer

func (client EventSourcesClient) DeletePreparer(ctx context.Context, resourceGroupName string, environmentName string, eventSourceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (EventSourcesClient) DeleteResponder

func (client EventSourcesClient) 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 (EventSourcesClient) DeleteSender

func (client EventSourcesClient) 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 (EventSourcesClient) Get

func (client EventSourcesClient) Get(ctx context.Context, resourceGroupName string, environmentName string, eventSourceName string) (result EventSourceResourceModel, err error)

Get gets the event source with the specified name in the specified environment. Parameters: resourceGroupName - name of an Azure Resource group. environmentName - the name of the Time Series Insights environment associated with the specified resource group. eventSourceName - the name of the Time Series Insights event source associated with the specified environment.

func (EventSourcesClient) GetPreparer

func (client EventSourcesClient) GetPreparer(ctx context.Context, resourceGroupName string, environmentName string, eventSourceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (EventSourcesClient) GetResponder

func (client EventSourcesClient) GetResponder(resp *http.Response) (result EventSourceResourceModel, err error)

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

func (EventSourcesClient) GetSender

func (client EventSourcesClient) 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 (EventSourcesClient) ListByEnvironment

func (client EventSourcesClient) ListByEnvironment(ctx context.Context, resourceGroupName string, environmentName string) (result EventSourceListResponse, err error)

ListByEnvironment lists all the available event sources associated with the subscription and within the specified resource group and environment. Parameters: resourceGroupName - name of an Azure Resource group. environmentName - the name of the Time Series Insights environment associated with the specified resource group.

func (EventSourcesClient) ListByEnvironmentPreparer

func (client EventSourcesClient) ListByEnvironmentPreparer(ctx context.Context, resourceGroupName string, environmentName string) (*http.Request, error)

ListByEnvironmentPreparer prepares the ListByEnvironment request.

func (EventSourcesClient) ListByEnvironmentResponder

func (client EventSourcesClient) ListByEnvironmentResponder(resp *http.Response) (result EventSourceListResponse, err error)

ListByEnvironmentResponder handles the response to the ListByEnvironment request. The method always closes the http.Response Body.

func (EventSourcesClient) ListByEnvironmentSender

func (client EventSourcesClient) ListByEnvironmentSender(req *http.Request) (*http.Response, error)

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

func (EventSourcesClient) Update

func (client EventSourcesClient) Update(ctx context.Context, resourceGroupName string, environmentName string, eventSourceName string, eventSourceUpdateParameters EventSourceUpdateParameters) (result EventSourceResourceModel, err error)

Update updates the event source with the specified name in the specified subscription, resource group, and environment. Parameters: resourceGroupName - name of an Azure Resource group. environmentName - the name of the Time Series Insights environment associated with the specified resource group. eventSourceName - the name of the Time Series Insights event source associated with the specified environment. eventSourceUpdateParameters - request object that contains the updated information for the event source.

func (EventSourcesClient) UpdatePreparer

func (client EventSourcesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, environmentName string, eventSourceName string, eventSourceUpdateParameters EventSourceUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (EventSourcesClient) UpdateResponder

func (client EventSourcesClient) UpdateResponder(resp *http.Response) (result EventSourceResourceModel, err error)

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

func (EventSourcesClient) UpdateSender

func (client EventSourcesClient) 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 IngressEnvironmentStatus

type IngressEnvironmentStatus struct {
	// State - This string represents the state of ingress operations on an environment. It can be "Disabled", "Ready", "Running", "Paused" or "Unknown". Possible values include: 'Disabled', 'Ready', 'Running', 'Paused', 'Unknown'
	State IngressState `json:"state,omitempty"`
	// StateDetails - An object that contains the details about an environment's state.
	StateDetails *EnvironmentStateDetails `json:"stateDetails,omitempty"`
}

IngressEnvironmentStatus an object that represents the status of ingress on an environment.

type IngressState

type IngressState string

IngressState enumerates the values for ingress state.

const (
	// Disabled ...
	Disabled IngressState = "Disabled"
	// Paused ...
	Paused IngressState = "Paused"
	// Ready ...
	Ready IngressState = "Ready"
	// Running ...
	Running IngressState = "Running"
	// Unknown ...
	Unknown IngressState = "Unknown"
)

func PossibleIngressStateValues

func PossibleIngressStateValues() []IngressState

PossibleIngressStateValues returns an array of possible values for the IngressState const type.

type IoTHubEventSourceCommonProperties

type IoTHubEventSourceCommonProperties struct {
	// IotHubName - The name of the iot hub.
	IotHubName *string `json:"iotHubName,omitempty"`
	// ConsumerGroupName - The name of the iot hub's consumer group that holds the partitions from which events will be read.
	ConsumerGroupName *string `json:"consumerGroupName,omitempty"`
	// KeyName - The name of the Shared Access Policy key that grants the Time Series Insights service access to the iot hub. This shared access policy key must grant 'service connect' permissions to the iot hub.
	KeyName *string `json:"keyName,omitempty"`
	// EventSourceResourceID - The resource id of the event source in Azure Resource Manager.
	EventSourceResourceID *string `json:"eventSourceResourceId,omitempty"`
	// TimestampPropertyName - The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.
	TimestampPropertyName *string `json:"timestampPropertyName,omitempty"`
	// ProvisioningState - Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// CreationTime - READ-ONLY; The time the resource was created.
	CreationTime *date.Time `json:"creationTime,omitempty"`
}

IoTHubEventSourceCommonProperties properties of the IoTHub event source.

func (IoTHubEventSourceCommonProperties) MarshalJSON

func (ithescp IoTHubEventSourceCommonProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IoTHubEventSourceCommonProperties.

type IoTHubEventSourceCreateOrUpdateParameters

type IoTHubEventSourceCreateOrUpdateParameters struct {
	*IoTHubEventSourceCreationProperties `json:"properties,omitempty"`
	// LocalTimestamp - An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events.
	LocalTimestamp *LocalTimestamp `json:"localTimestamp,omitempty"`
	// Kind - Possible values include: 'KindEventSourceCreateOrUpdateParameters', 'KindMicrosoftEventHub', 'KindMicrosoftIoTHub'
	Kind KindBasicEventSourceCreateOrUpdateParameters `json:"kind,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - Key-value pairs of additional properties for the resource.
	Tags map[string]*string `json:"tags"`
}

IoTHubEventSourceCreateOrUpdateParameters parameters supplied to the Create or Update Event Source operation for an IoTHub event source.

func (IoTHubEventSourceCreateOrUpdateParameters) AsBasicEventSourceCreateOrUpdateParameters

func (ithescoup IoTHubEventSourceCreateOrUpdateParameters) AsBasicEventSourceCreateOrUpdateParameters() (BasicEventSourceCreateOrUpdateParameters, bool)

AsBasicEventSourceCreateOrUpdateParameters is the BasicEventSourceCreateOrUpdateParameters implementation for IoTHubEventSourceCreateOrUpdateParameters.

func (IoTHubEventSourceCreateOrUpdateParameters) AsEventHubEventSourceCreateOrUpdateParameters

func (ithescoup IoTHubEventSourceCreateOrUpdateParameters) AsEventHubEventSourceCreateOrUpdateParameters() (*EventHubEventSourceCreateOrUpdateParameters, bool)

AsEventHubEventSourceCreateOrUpdateParameters is the BasicEventSourceCreateOrUpdateParameters implementation for IoTHubEventSourceCreateOrUpdateParameters.

func (IoTHubEventSourceCreateOrUpdateParameters) AsEventSourceCreateOrUpdateParameters

func (ithescoup IoTHubEventSourceCreateOrUpdateParameters) AsEventSourceCreateOrUpdateParameters() (*EventSourceCreateOrUpdateParameters, bool)

AsEventSourceCreateOrUpdateParameters is the BasicEventSourceCreateOrUpdateParameters implementation for IoTHubEventSourceCreateOrUpdateParameters.

func (IoTHubEventSourceCreateOrUpdateParameters) AsIoTHubEventSourceCreateOrUpdateParameters

func (ithescoup IoTHubEventSourceCreateOrUpdateParameters) AsIoTHubEventSourceCreateOrUpdateParameters() (*IoTHubEventSourceCreateOrUpdateParameters, bool)

AsIoTHubEventSourceCreateOrUpdateParameters is the BasicEventSourceCreateOrUpdateParameters implementation for IoTHubEventSourceCreateOrUpdateParameters.

func (IoTHubEventSourceCreateOrUpdateParameters) MarshalJSON

func (ithescoup IoTHubEventSourceCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IoTHubEventSourceCreateOrUpdateParameters.

func (*IoTHubEventSourceCreateOrUpdateParameters) UnmarshalJSON

func (ithescoup *IoTHubEventSourceCreateOrUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for IoTHubEventSourceCreateOrUpdateParameters struct.

type IoTHubEventSourceCreationProperties

type IoTHubEventSourceCreationProperties struct {
	// SharedAccessKey - The value of the Shared Access Policy key that grants the Time Series Insights service read access to the iot hub. This property is not shown in event source responses.
	SharedAccessKey *string `json:"sharedAccessKey,omitempty"`
	// IotHubName - The name of the iot hub.
	IotHubName *string `json:"iotHubName,omitempty"`
	// ConsumerGroupName - The name of the iot hub's consumer group that holds the partitions from which events will be read.
	ConsumerGroupName *string `json:"consumerGroupName,omitempty"`
	// KeyName - The name of the Shared Access Policy key that grants the Time Series Insights service access to the iot hub. This shared access policy key must grant 'service connect' permissions to the iot hub.
	KeyName *string `json:"keyName,omitempty"`
	// EventSourceResourceID - The resource id of the event source in Azure Resource Manager.
	EventSourceResourceID *string `json:"eventSourceResourceId,omitempty"`
	// TimestampPropertyName - The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.
	TimestampPropertyName *string `json:"timestampPropertyName,omitempty"`
	// ProvisioningState - Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// CreationTime - READ-ONLY; The time the resource was created.
	CreationTime *date.Time `json:"creationTime,omitempty"`
}

IoTHubEventSourceCreationProperties properties of the IoTHub event source that are required on create or update requests.

func (IoTHubEventSourceCreationProperties) MarshalJSON

func (ithescp IoTHubEventSourceCreationProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IoTHubEventSourceCreationProperties.

type IoTHubEventSourceMutableProperties

type IoTHubEventSourceMutableProperties struct {
	// SharedAccessKey - The value of the shared access key that grants the Time Series Insights service read access to the iot hub. This property is not shown in event source responses.
	SharedAccessKey *string `json:"sharedAccessKey,omitempty"`
	// TimestampPropertyName - The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.
	TimestampPropertyName *string `json:"timestampPropertyName,omitempty"`
	// LocalTimestamp - An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events.
	LocalTimestamp *LocalTimestamp `json:"localTimestamp,omitempty"`
}

IoTHubEventSourceMutableProperties an object that represents a set of mutable IoTHub event source resource properties.

type IoTHubEventSourceResource

type IoTHubEventSourceResource struct {
	*IoTHubEventSourceResourceProperties `json:"properties,omitempty"`
	// Kind - Possible values include: 'KindBasicEventSourceResourceKindEventSourceResource', 'KindBasicEventSourceResourceKindMicrosoftEventHub', 'KindBasicEventSourceResourceKindMicrosoftIoTHub'
	Kind KindBasicEventSourceResource `json:"kind,omitempty"`
	// Location - Resource location
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
}

IoTHubEventSourceResource an event source that receives its data from an Azure IoTHub.

func (IoTHubEventSourceResource) AsBasicEventSourceResource

func (ithesr IoTHubEventSourceResource) AsBasicEventSourceResource() (BasicEventSourceResource, bool)

AsBasicEventSourceResource is the BasicEventSourceResource implementation for IoTHubEventSourceResource.

func (IoTHubEventSourceResource) AsEventHubEventSourceResource

func (ithesr IoTHubEventSourceResource) AsEventHubEventSourceResource() (*EventHubEventSourceResource, bool)

AsEventHubEventSourceResource is the BasicEventSourceResource implementation for IoTHubEventSourceResource.

func (IoTHubEventSourceResource) AsEventSourceResource

func (ithesr IoTHubEventSourceResource) AsEventSourceResource() (*EventSourceResource, bool)

AsEventSourceResource is the BasicEventSourceResource implementation for IoTHubEventSourceResource.

func (IoTHubEventSourceResource) AsIoTHubEventSourceResource

func (ithesr IoTHubEventSourceResource) AsIoTHubEventSourceResource() (*IoTHubEventSourceResource, bool)

AsIoTHubEventSourceResource is the BasicEventSourceResource implementation for IoTHubEventSourceResource.

func (IoTHubEventSourceResource) MarshalJSON

func (ithesr IoTHubEventSourceResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IoTHubEventSourceResource.

func (*IoTHubEventSourceResource) UnmarshalJSON

func (ithesr *IoTHubEventSourceResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for IoTHubEventSourceResource struct.

type IoTHubEventSourceResourceProperties

type IoTHubEventSourceResourceProperties struct {
	// IotHubName - The name of the iot hub.
	IotHubName *string `json:"iotHubName,omitempty"`
	// ConsumerGroupName - The name of the iot hub's consumer group that holds the partitions from which events will be read.
	ConsumerGroupName *string `json:"consumerGroupName,omitempty"`
	// KeyName - The name of the Shared Access Policy key that grants the Time Series Insights service access to the iot hub. This shared access policy key must grant 'service connect' permissions to the iot hub.
	KeyName *string `json:"keyName,omitempty"`
	// EventSourceResourceID - The resource id of the event source in Azure Resource Manager.
	EventSourceResourceID *string `json:"eventSourceResourceId,omitempty"`
	// TimestampPropertyName - The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.
	TimestampPropertyName *string `json:"timestampPropertyName,omitempty"`
	// ProvisioningState - Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// CreationTime - READ-ONLY; The time the resource was created.
	CreationTime *date.Time `json:"creationTime,omitempty"`
}

IoTHubEventSourceResourceProperties properties of the IoTHub event source resource.

func (IoTHubEventSourceResourceProperties) MarshalJSON

func (ithesrp IoTHubEventSourceResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IoTHubEventSourceResourceProperties.

type IoTHubEventSourceUpdateParameters

type IoTHubEventSourceUpdateParameters struct {
	// IoTHubEventSourceMutableProperties - Properties of the IoTHub event source.
	*IoTHubEventSourceMutableProperties `json:"properties,omitempty"`
	// Tags - Key-value pairs of additional properties for the event source.
	Tags map[string]*string `json:"tags"`
}

IoTHubEventSourceUpdateParameters parameters supplied to the Update Event Source operation to update an IoTHub event source.

func (IoTHubEventSourceUpdateParameters) MarshalJSON

func (ithesup IoTHubEventSourceUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IoTHubEventSourceUpdateParameters.

func (*IoTHubEventSourceUpdateParameters) UnmarshalJSON

func (ithesup *IoTHubEventSourceUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for IoTHubEventSourceUpdateParameters struct.

type Kind

type Kind string

Kind enumerates the values for kind.

const (
	// KindEnvironmentCreateOrUpdateParameters ...
	KindEnvironmentCreateOrUpdateParameters Kind = "EnvironmentCreateOrUpdateParameters"
	// KindLongTerm ...
	KindLongTerm Kind = "LongTerm"
	// KindStandard ...
	KindStandard Kind = "Standard"
)

func PossibleKindValues

func PossibleKindValues() []Kind

PossibleKindValues returns an array of possible values for the Kind const type.

type KindBasicEnvironmentResource

type KindBasicEnvironmentResource string

KindBasicEnvironmentResource enumerates the values for kind basic environment resource.

const (
	// KindBasicEnvironmentResourceKindEnvironmentResource ...
	KindBasicEnvironmentResourceKindEnvironmentResource KindBasicEnvironmentResource = "EnvironmentResource"
	// KindBasicEnvironmentResourceKindLongTerm ...
	KindBasicEnvironmentResourceKindLongTerm KindBasicEnvironmentResource = "LongTerm"
	// KindBasicEnvironmentResourceKindStandard ...
	KindBasicEnvironmentResourceKindStandard KindBasicEnvironmentResource = "Standard"
)

func PossibleKindBasicEnvironmentResourceValues

func PossibleKindBasicEnvironmentResourceValues() []KindBasicEnvironmentResource

PossibleKindBasicEnvironmentResourceValues returns an array of possible values for the KindBasicEnvironmentResource const type.

type KindBasicEventSourceCreateOrUpdateParameters

type KindBasicEventSourceCreateOrUpdateParameters string

KindBasicEventSourceCreateOrUpdateParameters enumerates the values for kind basic event source create or update parameters.

const (
	// KindEventSourceCreateOrUpdateParameters ...
	KindEventSourceCreateOrUpdateParameters KindBasicEventSourceCreateOrUpdateParameters = "EventSourceCreateOrUpdateParameters"
	// KindMicrosoftEventHub ...
	KindMicrosoftEventHub KindBasicEventSourceCreateOrUpdateParameters = "Microsoft.EventHub"
	// KindMicrosoftIoTHub ...
	KindMicrosoftIoTHub KindBasicEventSourceCreateOrUpdateParameters = "Microsoft.IoTHub"
)

func PossibleKindBasicEventSourceCreateOrUpdateParametersValues

func PossibleKindBasicEventSourceCreateOrUpdateParametersValues() []KindBasicEventSourceCreateOrUpdateParameters

PossibleKindBasicEventSourceCreateOrUpdateParametersValues returns an array of possible values for the KindBasicEventSourceCreateOrUpdateParameters const type.

type KindBasicEventSourceResource

type KindBasicEventSourceResource string

KindBasicEventSourceResource enumerates the values for kind basic event source resource.

const (
	// KindBasicEventSourceResourceKindEventSourceResource ...
	KindBasicEventSourceResourceKindEventSourceResource KindBasicEventSourceResource = "EventSourceResource"
	// KindBasicEventSourceResourceKindMicrosoftEventHub ...
	KindBasicEventSourceResourceKindMicrosoftEventHub KindBasicEventSourceResource = "Microsoft.EventHub"
	// KindBasicEventSourceResourceKindMicrosoftIoTHub ...
	KindBasicEventSourceResourceKindMicrosoftIoTHub KindBasicEventSourceResource = "Microsoft.IoTHub"
)

func PossibleKindBasicEventSourceResourceValues

func PossibleKindBasicEventSourceResourceValues() []KindBasicEventSourceResource

PossibleKindBasicEventSourceResourceValues returns an array of possible values for the KindBasicEventSourceResource const type.

type LocalTimestamp

type LocalTimestamp struct {
	// Format - An enum that represents the format of the local timestamp property that needs to be set. Possible values include: 'Embedded'
	Format LocalTimestampFormat `json:"format,omitempty"`
	// TimeZoneOffset - An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded.
	TimeZoneOffset *LocalTimestampTimeZoneOffset `json:"timeZoneOffset,omitempty"`
}

LocalTimestamp an object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events.

type LocalTimestampFormat

type LocalTimestampFormat string

LocalTimestampFormat enumerates the values for local timestamp format.

const (
	// Embedded ...
	Embedded LocalTimestampFormat = "Embedded"
)

func PossibleLocalTimestampFormatValues

func PossibleLocalTimestampFormatValues() []LocalTimestampFormat

PossibleLocalTimestampFormatValues returns an array of possible values for the LocalTimestampFormat const type.

type LocalTimestampTimeZoneOffset

type LocalTimestampTimeZoneOffset struct {
	// PropertyName - The event property that will be contain the offset information to calculate the local timestamp. When the LocalTimestampFormat is Iana, the property name will contain the name of the column which contains IANA Timezone Name (eg: Americas/Los Angeles). When LocalTimestampFormat is Timespan, it contains the name of property which contains values representing the offset (eg: P1D or 1.00:00:00)
	PropertyName *string `json:"propertyName,omitempty"`
}

LocalTimestampTimeZoneOffset an object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded.

type LongTermEnvironmentCreateOrUpdateParameters

type LongTermEnvironmentCreateOrUpdateParameters struct {
	*LongTermEnvironmentCreationProperties `json:"properties,omitempty"`
	// Sku - The sku determines the type of environment, either standard (S1 or S2) or long-term (L1). For standard environments the sku determines the capacity of the environment, the ingress rate, and the billing rate.
	Sku *Sku `json:"sku,omitempty"`
	// Kind - Possible values include: 'KindEnvironmentCreateOrUpdateParameters', 'KindStandard', 'KindLongTerm'
	Kind Kind `json:"kind,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - Key-value pairs of additional properties for the resource.
	Tags map[string]*string `json:"tags"`
}

LongTermEnvironmentCreateOrUpdateParameters parameters supplied to the Create or Update Environment operation for a long-term environment.

func (LongTermEnvironmentCreateOrUpdateParameters) AsBasicEnvironmentCreateOrUpdateParameters

func (ltecoup LongTermEnvironmentCreateOrUpdateParameters) AsBasicEnvironmentCreateOrUpdateParameters() (BasicEnvironmentCreateOrUpdateParameters, bool)

AsBasicEnvironmentCreateOrUpdateParameters is the BasicEnvironmentCreateOrUpdateParameters implementation for LongTermEnvironmentCreateOrUpdateParameters.

func (LongTermEnvironmentCreateOrUpdateParameters) AsEnvironmentCreateOrUpdateParameters

func (ltecoup LongTermEnvironmentCreateOrUpdateParameters) AsEnvironmentCreateOrUpdateParameters() (*EnvironmentCreateOrUpdateParameters, bool)

AsEnvironmentCreateOrUpdateParameters is the BasicEnvironmentCreateOrUpdateParameters implementation for LongTermEnvironmentCreateOrUpdateParameters.

func (LongTermEnvironmentCreateOrUpdateParameters) AsLongTermEnvironmentCreateOrUpdateParameters

func (ltecoup LongTermEnvironmentCreateOrUpdateParameters) AsLongTermEnvironmentCreateOrUpdateParameters() (*LongTermEnvironmentCreateOrUpdateParameters, bool)

AsLongTermEnvironmentCreateOrUpdateParameters is the BasicEnvironmentCreateOrUpdateParameters implementation for LongTermEnvironmentCreateOrUpdateParameters.

func (LongTermEnvironmentCreateOrUpdateParameters) AsStandardEnvironmentCreateOrUpdateParameters

func (ltecoup LongTermEnvironmentCreateOrUpdateParameters) AsStandardEnvironmentCreateOrUpdateParameters() (*StandardEnvironmentCreateOrUpdateParameters, bool)

AsStandardEnvironmentCreateOrUpdateParameters is the BasicEnvironmentCreateOrUpdateParameters implementation for LongTermEnvironmentCreateOrUpdateParameters.

func (LongTermEnvironmentCreateOrUpdateParameters) MarshalJSON

func (ltecoup LongTermEnvironmentCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LongTermEnvironmentCreateOrUpdateParameters.

func (*LongTermEnvironmentCreateOrUpdateParameters) UnmarshalJSON

func (ltecoup *LongTermEnvironmentCreateOrUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LongTermEnvironmentCreateOrUpdateParameters struct.

type LongTermEnvironmentCreationProperties

type LongTermEnvironmentCreationProperties struct {
	// TimeSeriesIDProperties - The list of event properties which will be used to define the environment's time series id.
	TimeSeriesIDProperties *[]TimeSeriesIDProperty `json:"timeSeriesIdProperties,omitempty"`
	// StorageConfiguration - The storage configuration provides the connection details that allows the Time Series Insights service to connect to the customer storage account that is used to store the environment's data.
	StorageConfiguration *LongTermStorageConfigurationInput `json:"storageConfiguration,omitempty"`
	// WarmStoreConfiguration - The warm store configuration provides the details to create a warm store cache that will retain a copy of the environment's data available for faster query.
	WarmStoreConfiguration *WarmStoreConfigurationProperties `json:"warmStoreConfiguration,omitempty"`
}

LongTermEnvironmentCreationProperties properties used to create a long-term environment.

type LongTermEnvironmentMutableProperties

type LongTermEnvironmentMutableProperties struct {
	// StorageConfiguration - The storage configuration provides the connection details that allows the Time Series Insights service to connect to the customer storage account that is used to store the environment's data.
	StorageConfiguration *LongTermStorageConfigurationMutableProperties `json:"storageConfiguration,omitempty"`
	// WarmStoreConfiguration - The warm store configuration provides the details to create a warm store cache that will retain a copy of the environment's data available for faster query.
	WarmStoreConfiguration *WarmStoreConfigurationProperties `json:"warmStoreConfiguration,omitempty"`
}

LongTermEnvironmentMutableProperties an object that represents a set of mutable long-term environment resource properties.

type LongTermEnvironmentResource

type LongTermEnvironmentResource struct {
	*LongTermEnvironmentResourceProperties `json:"properties,omitempty"`
	// Sku - The sku determines the type of environment, either standard (S1 or S2) or long-term (L1). For standard environments the sku determines the capacity of the environment, the ingress rate, and the billing rate.
	Sku *Sku `json:"sku,omitempty"`
	// Kind - Possible values include: 'KindBasicEnvironmentResourceKindEnvironmentResource', 'KindBasicEnvironmentResourceKindStandard', 'KindBasicEnvironmentResourceKindLongTerm'
	Kind KindBasicEnvironmentResource `json:"kind,omitempty"`
	// Location - Resource location
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
}

LongTermEnvironmentResource an environment is a set of time-series data available for query, and is the top level Azure Time Series Insights resource. LongTerm environments do not have set data retention limits.

func (LongTermEnvironmentResource) AsBasicEnvironmentResource

func (lter LongTermEnvironmentResource) AsBasicEnvironmentResource() (BasicEnvironmentResource, bool)

AsBasicEnvironmentResource is the BasicEnvironmentResource implementation for LongTermEnvironmentResource.

func (LongTermEnvironmentResource) AsEnvironmentResource

func (lter LongTermEnvironmentResource) AsEnvironmentResource() (*EnvironmentResource, bool)

AsEnvironmentResource is the BasicEnvironmentResource implementation for LongTermEnvironmentResource.

func (LongTermEnvironmentResource) AsLongTermEnvironmentResource

func (lter LongTermEnvironmentResource) AsLongTermEnvironmentResource() (*LongTermEnvironmentResource, bool)

AsLongTermEnvironmentResource is the BasicEnvironmentResource implementation for LongTermEnvironmentResource.

func (LongTermEnvironmentResource) AsStandardEnvironmentResource

func (lter LongTermEnvironmentResource) AsStandardEnvironmentResource() (*StandardEnvironmentResource, bool)

AsStandardEnvironmentResource is the BasicEnvironmentResource implementation for LongTermEnvironmentResource.

func (LongTermEnvironmentResource) MarshalJSON

func (lter LongTermEnvironmentResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LongTermEnvironmentResource.

func (*LongTermEnvironmentResource) UnmarshalJSON

func (lter *LongTermEnvironmentResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LongTermEnvironmentResource struct.

type LongTermEnvironmentResourceProperties

type LongTermEnvironmentResourceProperties struct {
	// DataAccessID - READ-ONLY; An id used to access the environment data, e.g. to query the environment's events or upload reference data for the environment.
	DataAccessID *uuid.UUID `json:"dataAccessId,omitempty"`
	// DataAccessFqdn - READ-ONLY; The fully qualified domain name used to access the environment data, e.g. to query the environment's events or upload reference data for the environment.
	DataAccessFqdn *string `json:"dataAccessFqdn,omitempty"`
	// Status - An object that represents the status of the environment, and its internal state in the Time Series Insights service.
	Status *EnvironmentStatus `json:"status,omitempty"`
	// ProvisioningState - Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// CreationTime - READ-ONLY; The time the resource was created.
	CreationTime *date.Time `json:"creationTime,omitempty"`
	// TimeSeriesIDProperties - The list of event properties which will be used to define the environment's time series id.
	TimeSeriesIDProperties *[]TimeSeriesIDProperty `json:"timeSeriesIdProperties,omitempty"`
	// StorageConfiguration - The storage configuration provides the connection details that allows the Time Series Insights service to connect to the customer storage account that is used to store the environment's data.
	StorageConfiguration *LongTermStorageConfigurationOutput `json:"storageConfiguration,omitempty"`
	// WarmStoreConfiguration - The warm store configuration provides the details to create a warm store cache that will retain a copy of the environment's data available for faster query.
	WarmStoreConfiguration *WarmStoreConfigurationProperties `json:"warmStoreConfiguration,omitempty"`
}

LongTermEnvironmentResourceProperties properties of the long-term environment.

func (LongTermEnvironmentResourceProperties) MarshalJSON

func (lterp LongTermEnvironmentResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LongTermEnvironmentResourceProperties.

type LongTermEnvironmentUpdateParameters

type LongTermEnvironmentUpdateParameters struct {
	// LongTermEnvironmentMutableProperties - Properties of the long-term environment.
	*LongTermEnvironmentMutableProperties `json:"properties,omitempty"`
	// Tags - Key-value pairs of additional properties for the environment.
	Tags map[string]*string `json:"tags"`
}

LongTermEnvironmentUpdateParameters parameters supplied to the Update Environment operation to update a long-term environment.

func (LongTermEnvironmentUpdateParameters) MarshalJSON

func (lteup LongTermEnvironmentUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LongTermEnvironmentUpdateParameters.

func (*LongTermEnvironmentUpdateParameters) UnmarshalJSON

func (lteup *LongTermEnvironmentUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LongTermEnvironmentUpdateParameters struct.

type LongTermStorageConfigurationInput

type LongTermStorageConfigurationInput struct {
	// AccountName - The name of the storage account that will hold the environment's long term data.
	AccountName *string `json:"accountName,omitempty"`
	// ManagementKey - The value of the management key that grants the Time Series Insights service write access to the storage account. This property is not shown in environment responses.
	ManagementKey *string `json:"managementKey,omitempty"`
}

LongTermStorageConfigurationInput the storage configuration provides the connection details that allows the Time Series Insights service to connect to the customer storage account that is used to store the environment's data.

type LongTermStorageConfigurationMutableProperties

type LongTermStorageConfigurationMutableProperties struct {
	// ManagementKey - The value of the management key that grants the Time Series Insights service write access to the storage account. This property is not shown in environment responses.
	ManagementKey *string `json:"managementKey,omitempty"`
}

LongTermStorageConfigurationMutableProperties the storage configuration provides the connection details that allows the Time Series Insights service to connect to the customer storage account that is used to store the environment's data.

type LongTermStorageConfigurationOutput

type LongTermStorageConfigurationOutput struct {
	// AccountName - The name of the storage account that will hold the environment's long term data.
	AccountName *string `json:"accountName,omitempty"`
}

LongTermStorageConfigurationOutput the storage configuration provides the non-secret connection details about the customer storage account that is used to store the environment's data.

type Operation

type Operation struct {
	// Name - READ-ONLY; The name of the operation being performed on this particular object.
	Name *string `json:"name,omitempty"`
	// Display - READ-ONLY; Contains the localized display information for this particular operation / action.
	Display *OperationDisplay `json:"display,omitempty"`
}

Operation a Time Series Insights REST API operation

type OperationDisplay

type OperationDisplay struct {
	// Provider - READ-ONLY; The localized friendly form of the resource provider name.
	Provider *string `json:"provider,omitempty"`
	// Resource - READ-ONLY; The localized friendly form of the resource type related to this action/operation.
	Resource *string `json:"resource,omitempty"`
	// Operation - READ-ONLY; The localized friendly name for the operation.
	Operation *string `json:"operation,omitempty"`
	// Description - READ-ONLY; The localized friendly description for the operation.
	Description *string `json:"description,omitempty"`
}

OperationDisplay contains the localized display information for this particular operation / action.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; List of Time Series Insights operations supported by the Microsoft.TimeSeriesInsights resource provider.
	Value *[]Operation `json:"value,omitempty"`
	// NextLink - READ-ONLY; URL to get the next set of operation list results if there are any.
	NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult result of the request to list Time Series Insights operations. It contains a list of operations and a URL link to get the next set of results.

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator

type OperationListResultIterator struct {
	// contains filtered or unexported fields
}

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

func (iter *OperationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultIterator) NextWithContext

func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationListResultIterator) NotDone

func (iter OperationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListResultIterator) Response

Response returns the raw server response from the last page request.

func (OperationListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListResultPage

type OperationListResultPage struct {
	// contains filtered or unexported fields
}

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage

func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

func (page *OperationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultPage) NextWithContext

func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationListResultPage) NotDone

func (page OperationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListResultPage) Response

Response returns the raw server response from the last page request.

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []Operation

Values returns the slice of values for the current page or nil if there are no values.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the time Series Insights 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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)

List lists all of the available Time Series Insights related operations.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*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 PropertyType

type PropertyType string

PropertyType enumerates the values for property type.

const (
	// String ...
	String PropertyType = "String"
)

func PossiblePropertyTypeValues

func PossiblePropertyTypeValues() []PropertyType

PossiblePropertyTypeValues returns an array of possible values for the PropertyType const type.

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// Accepted ...
	Accepted ProvisioningState = "Accepted"
	// Creating ...
	Creating ProvisioningState = "Creating"
	// Deleting ...
	Deleting ProvisioningState = "Deleting"
	// Failed ...
	Failed ProvisioningState = "Failed"
	// Succeeded ...
	Succeeded ProvisioningState = "Succeeded"
	// Updating ...
	Updating ProvisioningState = "Updating"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.

type ReferenceDataKeyPropertyType

type ReferenceDataKeyPropertyType string

ReferenceDataKeyPropertyType enumerates the values for reference data key property type.

const (
	// ReferenceDataKeyPropertyTypeBool ...
	ReferenceDataKeyPropertyTypeBool ReferenceDataKeyPropertyType = "Bool"
	// ReferenceDataKeyPropertyTypeDateTime ...
	ReferenceDataKeyPropertyTypeDateTime ReferenceDataKeyPropertyType = "DateTime"
	// ReferenceDataKeyPropertyTypeDouble ...
	ReferenceDataKeyPropertyTypeDouble ReferenceDataKeyPropertyType = "Double"
	// ReferenceDataKeyPropertyTypeString ...
	ReferenceDataKeyPropertyTypeString ReferenceDataKeyPropertyType = "String"
)

func PossibleReferenceDataKeyPropertyTypeValues

func PossibleReferenceDataKeyPropertyTypeValues() []ReferenceDataKeyPropertyType

PossibleReferenceDataKeyPropertyTypeValues returns an array of possible values for the ReferenceDataKeyPropertyType const type.

type ReferenceDataSetCreateOrUpdateParameters

type ReferenceDataSetCreateOrUpdateParameters struct {
	*ReferenceDataSetCreationProperties `json:"properties,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - Key-value pairs of additional properties for the resource.
	Tags map[string]*string `json:"tags"`
}

ReferenceDataSetCreateOrUpdateParameters ...

func (ReferenceDataSetCreateOrUpdateParameters) MarshalJSON

func (rdscoup ReferenceDataSetCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ReferenceDataSetCreateOrUpdateParameters.

func (*ReferenceDataSetCreateOrUpdateParameters) UnmarshalJSON

func (rdscoup *ReferenceDataSetCreateOrUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ReferenceDataSetCreateOrUpdateParameters struct.

type ReferenceDataSetCreationProperties

type ReferenceDataSetCreationProperties struct {
	// KeyProperties - The list of key properties for the reference data set.
	KeyProperties *[]ReferenceDataSetKeyProperty `json:"keyProperties,omitempty"`
	// DataStringComparisonBehavior - The reference data set key comparison behavior can be set using this property. By default, the value is 'Ordinal' - which means case sensitive key comparison will be performed while joining reference data with events or while adding new reference data. When 'OrdinalIgnoreCase' is set, case insensitive comparison will be used. Possible values include: 'Ordinal', 'OrdinalIgnoreCase'
	DataStringComparisonBehavior DataStringComparisonBehavior `json:"dataStringComparisonBehavior,omitempty"`
}

ReferenceDataSetCreationProperties properties used to create a reference data set.

type ReferenceDataSetKeyProperty

type ReferenceDataSetKeyProperty struct {
	// Name - The name of the key property.
	Name *string `json:"name,omitempty"`
	// Type - The type of the key property. Possible values include: 'ReferenceDataKeyPropertyTypeString', 'ReferenceDataKeyPropertyTypeDouble', 'ReferenceDataKeyPropertyTypeBool', 'ReferenceDataKeyPropertyTypeDateTime'
	Type ReferenceDataKeyPropertyType `json:"type,omitempty"`
}

ReferenceDataSetKeyProperty a key property for the reference data set. A reference data set can have multiple key properties.

type ReferenceDataSetListResponse

type ReferenceDataSetListResponse struct {
	autorest.Response `json:"-"`
	// Value - Result of the List Reference Data Sets operation.
	Value *[]ReferenceDataSetResource `json:"value,omitempty"`
}

ReferenceDataSetListResponse the response of the List Reference Data Sets operation.

type ReferenceDataSetResource

type ReferenceDataSetResource struct {
	autorest.Response                   `json:"-"`
	*ReferenceDataSetResourceProperties `json:"properties,omitempty"`
	// Location - Resource location
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
}

ReferenceDataSetResource a reference data set provides metadata about the events in an environment. Metadata in the reference data set will be joined with events as they are read from event sources. The metadata that makes up the reference data set is uploaded or modified through the Time Series Insights data plane APIs.

func (ReferenceDataSetResource) MarshalJSON

func (rdsr ReferenceDataSetResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ReferenceDataSetResource.

func (*ReferenceDataSetResource) UnmarshalJSON

func (rdsr *ReferenceDataSetResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ReferenceDataSetResource struct.

type ReferenceDataSetResourceProperties

type ReferenceDataSetResourceProperties struct {
	// KeyProperties - The list of key properties for the reference data set.
	KeyProperties *[]ReferenceDataSetKeyProperty `json:"keyProperties,omitempty"`
	// DataStringComparisonBehavior - The reference data set key comparison behavior can be set using this property. By default, the value is 'Ordinal' - which means case sensitive key comparison will be performed while joining reference data with events or while adding new reference data. When 'OrdinalIgnoreCase' is set, case insensitive comparison will be used. Possible values include: 'Ordinal', 'OrdinalIgnoreCase'
	DataStringComparisonBehavior DataStringComparisonBehavior `json:"dataStringComparisonBehavior,omitempty"`
	// ProvisioningState - Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// CreationTime - READ-ONLY; The time the resource was created.
	CreationTime *date.Time `json:"creationTime,omitempty"`
}

ReferenceDataSetResourceProperties properties of the reference data set.

func (ReferenceDataSetResourceProperties) MarshalJSON

func (rdsrp ReferenceDataSetResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ReferenceDataSetResourceProperties.

type ReferenceDataSetUpdateParameters

type ReferenceDataSetUpdateParameters struct {
	// Tags - Key-value pairs of additional properties for the reference data set.
	Tags map[string]*string `json:"tags"`
}

ReferenceDataSetUpdateParameters parameters supplied to the Update Reference Data Set operation.

func (ReferenceDataSetUpdateParameters) MarshalJSON

func (rdsup ReferenceDataSetUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ReferenceDataSetUpdateParameters.

type ReferenceDataSetsClient

type ReferenceDataSetsClient struct {
	BaseClient
}

ReferenceDataSetsClient is the time Series Insights client

func NewReferenceDataSetsClient

func NewReferenceDataSetsClient(subscriptionID string) ReferenceDataSetsClient

NewReferenceDataSetsClient creates an instance of the ReferenceDataSetsClient client.

func NewReferenceDataSetsClientWithBaseURI

func NewReferenceDataSetsClientWithBaseURI(baseURI string, subscriptionID string) ReferenceDataSetsClient

NewReferenceDataSetsClientWithBaseURI creates an instance of the ReferenceDataSetsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ReferenceDataSetsClient) CreateOrUpdate

func (client ReferenceDataSetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, referenceDataSetName string, parameters ReferenceDataSetCreateOrUpdateParameters) (result ReferenceDataSetResource, err error)

CreateOrUpdate create or update a reference data set in the specified environment. Parameters: resourceGroupName - name of an Azure Resource group. environmentName - the name of the Time Series Insights environment associated with the specified resource group. referenceDataSetName - name of the reference data set. parameters - parameters for creating a reference data set.

func (ReferenceDataSetsClient) CreateOrUpdatePreparer

func (client ReferenceDataSetsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, environmentName string, referenceDataSetName string, parameters ReferenceDataSetCreateOrUpdateParameters) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ReferenceDataSetsClient) CreateOrUpdateResponder

func (client ReferenceDataSetsClient) CreateOrUpdateResponder(resp *http.Response) (result ReferenceDataSetResource, err error)

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

func (ReferenceDataSetsClient) CreateOrUpdateSender

func (client ReferenceDataSetsClient) 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 (ReferenceDataSetsClient) Delete

func (client ReferenceDataSetsClient) Delete(ctx context.Context, resourceGroupName string, environmentName string, referenceDataSetName string) (result autorest.Response, err error)

Delete deletes the reference data set with the specified name in the specified subscription, resource group, and environment Parameters: resourceGroupName - name of an Azure Resource group. environmentName - the name of the Time Series Insights environment associated with the specified resource group. referenceDataSetName - the name of the Time Series Insights reference data set associated with the specified environment.

func (ReferenceDataSetsClient) DeletePreparer

func (client ReferenceDataSetsClient) DeletePreparer(ctx context.Context, resourceGroupName string, environmentName string, referenceDataSetName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ReferenceDataSetsClient) DeleteResponder

func (client ReferenceDataSetsClient) 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 (ReferenceDataSetsClient) DeleteSender

func (client ReferenceDataSetsClient) 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 (ReferenceDataSetsClient) Get

func (client ReferenceDataSetsClient) Get(ctx context.Context, resourceGroupName string, environmentName string, referenceDataSetName string) (result ReferenceDataSetResource, err error)

Get gets the reference data set with the specified name in the specified environment. Parameters: resourceGroupName - name of an Azure Resource group. environmentName - the name of the Time Series Insights environment associated with the specified resource group. referenceDataSetName - the name of the Time Series Insights reference data set associated with the specified environment.

func (ReferenceDataSetsClient) GetPreparer

func (client ReferenceDataSetsClient) GetPreparer(ctx context.Context, resourceGroupName string, environmentName string, referenceDataSetName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ReferenceDataSetsClient) GetResponder

func (client ReferenceDataSetsClient) GetResponder(resp *http.Response) (result ReferenceDataSetResource, err error)

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

func (ReferenceDataSetsClient) GetSender

func (client ReferenceDataSetsClient) 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 (ReferenceDataSetsClient) ListByEnvironment

func (client ReferenceDataSetsClient) ListByEnvironment(ctx context.Context, resourceGroupName string, environmentName string) (result ReferenceDataSetListResponse, err error)

ListByEnvironment lists all the available reference data sets associated with the subscription and within the specified resource group and environment. Parameters: resourceGroupName - name of an Azure Resource group. environmentName - the name of the Time Series Insights environment associated with the specified resource group.

func (ReferenceDataSetsClient) ListByEnvironmentPreparer

func (client ReferenceDataSetsClient) ListByEnvironmentPreparer(ctx context.Context, resourceGroupName string, environmentName string) (*http.Request, error)

ListByEnvironmentPreparer prepares the ListByEnvironment request.

func (ReferenceDataSetsClient) ListByEnvironmentResponder

func (client ReferenceDataSetsClient) ListByEnvironmentResponder(resp *http.Response) (result ReferenceDataSetListResponse, err error)

ListByEnvironmentResponder handles the response to the ListByEnvironment request. The method always closes the http.Response Body.

func (ReferenceDataSetsClient) ListByEnvironmentSender

func (client ReferenceDataSetsClient) ListByEnvironmentSender(req *http.Request) (*http.Response, error)

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

func (ReferenceDataSetsClient) Update

func (client ReferenceDataSetsClient) Update(ctx context.Context, resourceGroupName string, environmentName string, referenceDataSetName string, referenceDataSetUpdateParameters ReferenceDataSetUpdateParameters) (result ReferenceDataSetResource, err error)

Update updates the reference data set with the specified name in the specified subscription, resource group, and environment. Parameters: resourceGroupName - name of an Azure Resource group. environmentName - the name of the Time Series Insights environment associated with the specified resource group. referenceDataSetName - the name of the Time Series Insights reference data set associated with the specified environment. referenceDataSetUpdateParameters - request object that contains the updated information for the reference data set.

func (ReferenceDataSetsClient) UpdatePreparer

func (client ReferenceDataSetsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, environmentName string, referenceDataSetName string, referenceDataSetUpdateParameters ReferenceDataSetUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ReferenceDataSetsClient) UpdateResponder

func (client ReferenceDataSetsClient) UpdateResponder(resp *http.Response) (result ReferenceDataSetResource, err error)

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

func (ReferenceDataSetsClient) UpdateSender

func (client ReferenceDataSetsClient) 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 Resource

type Resource struct {
	// ID - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
}

Resource time Series Insights resource

type ResourceProperties

type ResourceProperties struct {
	// ProvisioningState - Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// CreationTime - READ-ONLY; The time the resource was created.
	CreationTime *date.Time `json:"creationTime,omitempty"`
}

ResourceProperties properties that are common to all tracked resources.

func (ResourceProperties) MarshalJSON

func (rp ResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceProperties.

type Sku

type Sku struct {
	// Name - The name of this SKU. Possible values include: 'S1', 'S2', 'P1', 'L1'
	Name SkuName `json:"name,omitempty"`
	// Capacity - The capacity of the sku. For standard environments, this value can be changed to support scale out of environments after they have been created.
	Capacity *int32 `json:"capacity,omitempty"`
}

Sku the sku determines the type of environment, either standard (S1 or S2) or long-term (L1). For standard environments the sku determines the capacity of the environment, the ingress rate, and the billing rate.

type SkuName

type SkuName string

SkuName enumerates the values for sku name.

const (
	// L1 ...
	L1 SkuName = "L1"
	// P1 ...
	P1 SkuName = "P1"
	// S1 ...
	S1 SkuName = "S1"
	// S2 ...
	S2 SkuName = "S2"
)

func PossibleSkuNameValues

func PossibleSkuNameValues() []SkuName

PossibleSkuNameValues returns an array of possible values for the SkuName const type.

type StandardEnvironmentCreateOrUpdateParameters

type StandardEnvironmentCreateOrUpdateParameters struct {
	*StandardEnvironmentCreationProperties `json:"properties,omitempty"`
	// Sku - The sku determines the type of environment, either standard (S1 or S2) or long-term (L1). For standard environments the sku determines the capacity of the environment, the ingress rate, and the billing rate.
	Sku *Sku `json:"sku,omitempty"`
	// Kind - Possible values include: 'KindEnvironmentCreateOrUpdateParameters', 'KindStandard', 'KindLongTerm'
	Kind Kind `json:"kind,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - Key-value pairs of additional properties for the resource.
	Tags map[string]*string `json:"tags"`
}

StandardEnvironmentCreateOrUpdateParameters parameters supplied to the Create or Update Environment operation for a standard environment.

func (StandardEnvironmentCreateOrUpdateParameters) AsBasicEnvironmentCreateOrUpdateParameters

func (secoup StandardEnvironmentCreateOrUpdateParameters) AsBasicEnvironmentCreateOrUpdateParameters() (BasicEnvironmentCreateOrUpdateParameters, bool)

AsBasicEnvironmentCreateOrUpdateParameters is the BasicEnvironmentCreateOrUpdateParameters implementation for StandardEnvironmentCreateOrUpdateParameters.

func (StandardEnvironmentCreateOrUpdateParameters) AsEnvironmentCreateOrUpdateParameters

func (secoup StandardEnvironmentCreateOrUpdateParameters) AsEnvironmentCreateOrUpdateParameters() (*EnvironmentCreateOrUpdateParameters, bool)

AsEnvironmentCreateOrUpdateParameters is the BasicEnvironmentCreateOrUpdateParameters implementation for StandardEnvironmentCreateOrUpdateParameters.

func (StandardEnvironmentCreateOrUpdateParameters) AsLongTermEnvironmentCreateOrUpdateParameters

func (secoup StandardEnvironmentCreateOrUpdateParameters) AsLongTermEnvironmentCreateOrUpdateParameters() (*LongTermEnvironmentCreateOrUpdateParameters, bool)

AsLongTermEnvironmentCreateOrUpdateParameters is the BasicEnvironmentCreateOrUpdateParameters implementation for StandardEnvironmentCreateOrUpdateParameters.

func (StandardEnvironmentCreateOrUpdateParameters) AsStandardEnvironmentCreateOrUpdateParameters

func (secoup StandardEnvironmentCreateOrUpdateParameters) AsStandardEnvironmentCreateOrUpdateParameters() (*StandardEnvironmentCreateOrUpdateParameters, bool)

AsStandardEnvironmentCreateOrUpdateParameters is the BasicEnvironmentCreateOrUpdateParameters implementation for StandardEnvironmentCreateOrUpdateParameters.

func (StandardEnvironmentCreateOrUpdateParameters) MarshalJSON

func (secoup StandardEnvironmentCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StandardEnvironmentCreateOrUpdateParameters.

func (*StandardEnvironmentCreateOrUpdateParameters) UnmarshalJSON

func (secoup *StandardEnvironmentCreateOrUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for StandardEnvironmentCreateOrUpdateParameters struct.

type StandardEnvironmentCreationProperties

type StandardEnvironmentCreationProperties struct {
	// DataRetentionTime - ISO8601 timespan specifying the minimum number of days the environment's events will be available for query.
	DataRetentionTime *string `json:"dataRetentionTime,omitempty"`
	// StorageLimitExceededBehavior - The behavior the Time Series Insights service should take when the environment's capacity has been exceeded. If "PauseIngress" is specified, new events will not be read from the event source. If "PurgeOldData" is specified, new events will continue to be read and old events will be deleted from the environment. The default behavior is PurgeOldData. Possible values include: 'PurgeOldData', 'PauseIngress'
	StorageLimitExceededBehavior StorageLimitExceededBehavior `json:"storageLimitExceededBehavior,omitempty"`
	// PartitionKeyProperties - The list of event properties which will be used to partition data in the environment. Currently, only a single partition key property is supported.
	PartitionKeyProperties *[]TimeSeriesIDProperty `json:"partitionKeyProperties,omitempty"`
}

StandardEnvironmentCreationProperties properties used to create a standard environment.

type StandardEnvironmentMutableProperties

type StandardEnvironmentMutableProperties struct {
	// DataRetentionTime - ISO8601 timespan specifying the minimum number of days the environment's events will be available for query.
	DataRetentionTime *string `json:"dataRetentionTime,omitempty"`
	// StorageLimitExceededBehavior - The behavior the Time Series Insights service should take when the environment's capacity has been exceeded. If "PauseIngress" is specified, new events will not be read from the event source. If "PurgeOldData" is specified, new events will continue to be read and old events will be deleted from the environment. The default behavior is PurgeOldData. Possible values include: 'PurgeOldData', 'PauseIngress'
	StorageLimitExceededBehavior StorageLimitExceededBehavior `json:"storageLimitExceededBehavior,omitempty"`
}

StandardEnvironmentMutableProperties an object that represents a set of mutable standard environment resource properties.

type StandardEnvironmentResource

type StandardEnvironmentResource struct {
	*StandardEnvironmentResourceProperties `json:"properties,omitempty"`
	// Sku - The sku determines the type of environment, either standard (S1 or S2) or long-term (L1). For standard environments the sku determines the capacity of the environment, the ingress rate, and the billing rate.
	Sku *Sku `json:"sku,omitempty"`
	// Kind - Possible values include: 'KindBasicEnvironmentResourceKindEnvironmentResource', 'KindBasicEnvironmentResourceKindStandard', 'KindBasicEnvironmentResourceKindLongTerm'
	Kind KindBasicEnvironmentResource `json:"kind,omitempty"`
	// Location - Resource location
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
}

StandardEnvironmentResource an environment is a set of time-series data available for query, and is the top level Azure Time Series Insights resource. Standard environments have data retention limits.

func (StandardEnvironmentResource) AsBasicEnvironmentResource

func (ser StandardEnvironmentResource) AsBasicEnvironmentResource() (BasicEnvironmentResource, bool)

AsBasicEnvironmentResource is the BasicEnvironmentResource implementation for StandardEnvironmentResource.

func (StandardEnvironmentResource) AsEnvironmentResource

func (ser StandardEnvironmentResource) AsEnvironmentResource() (*EnvironmentResource, bool)

AsEnvironmentResource is the BasicEnvironmentResource implementation for StandardEnvironmentResource.

func (StandardEnvironmentResource) AsLongTermEnvironmentResource

func (ser StandardEnvironmentResource) AsLongTermEnvironmentResource() (*LongTermEnvironmentResource, bool)

AsLongTermEnvironmentResource is the BasicEnvironmentResource implementation for StandardEnvironmentResource.

func (StandardEnvironmentResource) AsStandardEnvironmentResource

func (ser StandardEnvironmentResource) AsStandardEnvironmentResource() (*StandardEnvironmentResource, bool)

AsStandardEnvironmentResource is the BasicEnvironmentResource implementation for StandardEnvironmentResource.

func (StandardEnvironmentResource) MarshalJSON

func (ser StandardEnvironmentResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StandardEnvironmentResource.

func (*StandardEnvironmentResource) UnmarshalJSON

func (ser *StandardEnvironmentResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for StandardEnvironmentResource struct.

type StandardEnvironmentResourceProperties

type StandardEnvironmentResourceProperties struct {
	// DataRetentionTime - ISO8601 timespan specifying the minimum number of days the environment's events will be available for query.
	DataRetentionTime *string `json:"dataRetentionTime,omitempty"`
	// StorageLimitExceededBehavior - The behavior the Time Series Insights service should take when the environment's capacity has been exceeded. If "PauseIngress" is specified, new events will not be read from the event source. If "PurgeOldData" is specified, new events will continue to be read and old events will be deleted from the environment. The default behavior is PurgeOldData. Possible values include: 'PurgeOldData', 'PauseIngress'
	StorageLimitExceededBehavior StorageLimitExceededBehavior `json:"storageLimitExceededBehavior,omitempty"`
	// PartitionKeyProperties - The list of event properties which will be used to partition data in the environment. Currently, only a single partition key property is supported.
	PartitionKeyProperties *[]TimeSeriesIDProperty `json:"partitionKeyProperties,omitempty"`
	// DataAccessID - READ-ONLY; An id used to access the environment data, e.g. to query the environment's events or upload reference data for the environment.
	DataAccessID *uuid.UUID `json:"dataAccessId,omitempty"`
	// DataAccessFqdn - READ-ONLY; The fully qualified domain name used to access the environment data, e.g. to query the environment's events or upload reference data for the environment.
	DataAccessFqdn *string `json:"dataAccessFqdn,omitempty"`
	// Status - An object that represents the status of the environment, and its internal state in the Time Series Insights service.
	Status *EnvironmentStatus `json:"status,omitempty"`
	// ProvisioningState - Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', 'Updating', 'Succeeded', 'Failed', 'Deleting'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// CreationTime - READ-ONLY; The time the resource was created.
	CreationTime *date.Time `json:"creationTime,omitempty"`
}

StandardEnvironmentResourceProperties properties of the standard environment.

func (StandardEnvironmentResourceProperties) MarshalJSON

func (serp StandardEnvironmentResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StandardEnvironmentResourceProperties.

type StandardEnvironmentUpdateParameters

type StandardEnvironmentUpdateParameters struct {
	// Sku - The sku of the environment.
	Sku *Sku `json:"sku,omitempty"`
	// StandardEnvironmentMutableProperties - Properties of the standard environment.
	*StandardEnvironmentMutableProperties `json:"properties,omitempty"`
	// Tags - Key-value pairs of additional properties for the environment.
	Tags map[string]*string `json:"tags"`
}

StandardEnvironmentUpdateParameters parameters supplied to the Update Environment operation to update a standard environment.

func (StandardEnvironmentUpdateParameters) MarshalJSON

func (seup StandardEnvironmentUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StandardEnvironmentUpdateParameters.

func (*StandardEnvironmentUpdateParameters) UnmarshalJSON

func (seup *StandardEnvironmentUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for StandardEnvironmentUpdateParameters struct.

type StorageLimitExceededBehavior

type StorageLimitExceededBehavior string

StorageLimitExceededBehavior enumerates the values for storage limit exceeded behavior.

const (
	// PauseIngress ...
	PauseIngress StorageLimitExceededBehavior = "PauseIngress"
	// PurgeOldData ...
	PurgeOldData StorageLimitExceededBehavior = "PurgeOldData"
)

func PossibleStorageLimitExceededBehaviorValues

func PossibleStorageLimitExceededBehaviorValues() []StorageLimitExceededBehavior

PossibleStorageLimitExceededBehaviorValues returns an array of possible values for the StorageLimitExceededBehavior const type.

type TimeSeriesIDProperty

type TimeSeriesIDProperty struct {
	// Name - The name of the property.
	Name *string `json:"name,omitempty"`
	// Type - The type of the property. Possible values include: 'String'
	Type PropertyType `json:"type,omitempty"`
}

TimeSeriesIDProperty the structure of the property that a time series id can have. An environment can have multiple such properties.

type TrackedResource

type TrackedResource struct {
	// Location - Resource location
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
}

TrackedResource time Series Insights resource that is tracked by Azure Resource Manager.

func (TrackedResource) MarshalJSON

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

type WarmStorageEnvironmentStatus

type WarmStorageEnvironmentStatus struct {
	// WarmStoragePropertiesUsage - An object that contains the status of warm storage properties usage.
	*WarmStoragePropertiesUsage `json:"propertiesUsage,omitempty"`
}

WarmStorageEnvironmentStatus an object that represents the status of warm storage on an environment.

func (WarmStorageEnvironmentStatus) MarshalJSON

func (wses WarmStorageEnvironmentStatus) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WarmStorageEnvironmentStatus.

func (*WarmStorageEnvironmentStatus) UnmarshalJSON

func (wses *WarmStorageEnvironmentStatus) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for WarmStorageEnvironmentStatus struct.

type WarmStoragePropertiesState

type WarmStoragePropertiesState string

WarmStoragePropertiesState enumerates the values for warm storage properties state.

const (
	// WarmStoragePropertiesStateError ...
	WarmStoragePropertiesStateError WarmStoragePropertiesState = "Error"
	// WarmStoragePropertiesStateOk ...
	WarmStoragePropertiesStateOk WarmStoragePropertiesState = "Ok"
	// WarmStoragePropertiesStateUnknown ...
	WarmStoragePropertiesStateUnknown WarmStoragePropertiesState = "Unknown"
)

func PossibleWarmStoragePropertiesStateValues

func PossibleWarmStoragePropertiesStateValues() []WarmStoragePropertiesState

PossibleWarmStoragePropertiesStateValues returns an array of possible values for the WarmStoragePropertiesState const type.

type WarmStoragePropertiesUsage

type WarmStoragePropertiesUsage struct {
	// State - This string represents the state of warm storage properties usage. It can be "Ok", "Error", "Unknown". Possible values include: 'WarmStoragePropertiesStateOk', 'WarmStoragePropertiesStateError', 'WarmStoragePropertiesStateUnknown'
	State WarmStoragePropertiesState `json:"state,omitempty"`
	// WarmStoragePropertiesUsageStateDetails - An object that contains the details about warm storage properties usage state.
	*WarmStoragePropertiesUsageStateDetails `json:"stateDetails,omitempty"`
}

WarmStoragePropertiesUsage an object that contains the status of warm storage properties usage.

func (WarmStoragePropertiesUsage) MarshalJSON

func (wspu WarmStoragePropertiesUsage) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WarmStoragePropertiesUsage.

func (*WarmStoragePropertiesUsage) UnmarshalJSON

func (wspu *WarmStoragePropertiesUsage) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for WarmStoragePropertiesUsage struct.

type WarmStoragePropertiesUsageStateDetails

type WarmStoragePropertiesUsageStateDetails struct {
	// CurrentCount - A value that represents the number of properties used by the environment for S1/S2 SKU and number of properties used by Warm Store for PAYG SKU
	CurrentCount *int32 `json:"currentCount,omitempty"`
	// MaxCount - A value that represents the maximum number of properties used allowed by the environment for S1/S2 SKU and maximum number of properties allowed by Warm Store for PAYG SKU.
	MaxCount *int32 `json:"maxCount,omitempty"`
}

WarmStoragePropertiesUsageStateDetails an object that contains the details about warm storage properties usage state.

type WarmStoreConfigurationProperties

type WarmStoreConfigurationProperties struct {
	// DataRetention - ISO8601 timespan specifying the number of days the environment's events will be available for query from the warm store.
	DataRetention *string `json:"dataRetention,omitempty"`
}

WarmStoreConfigurationProperties the warm store configuration provides the details to create a warm store cache that will retain a copy of the environment's data available for faster query.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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