Documentation ¶
Overview ¶
Package timeseriesinsights implements the Azure ARM Timeseriesinsights service API version 2017-11-15.
Time Series Insights client
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type AccessPoliciesClient
- func (client AccessPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, ...) (result AccessPolicyResource, err error)
- func (client AccessPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, environmentName string, ...) (*http.Request, error)
- func (client AccessPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result AccessPolicyResource, err error)
- func (client AccessPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client AccessPoliciesClient) Delete(ctx context.Context, resourceGroupName string, environmentName string, ...) (result autorest.Response, err error)
- func (client AccessPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, environmentName string, ...) (*http.Request, error)
- func (client AccessPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client AccessPoliciesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client AccessPoliciesClient) Get(ctx context.Context, resourceGroupName string, environmentName string, ...) (result AccessPolicyResource, err error)
- func (client AccessPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, environmentName string, ...) (*http.Request, error)
- func (client AccessPoliciesClient) GetResponder(resp *http.Response) (result AccessPolicyResource, err error)
- func (client AccessPoliciesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client AccessPoliciesClient) ListByEnvironment(ctx context.Context, resourceGroupName string, environmentName string) (result AccessPolicyListResponse, err error)
- func (client AccessPoliciesClient) ListByEnvironmentPreparer(ctx context.Context, resourceGroupName string, environmentName string) (*http.Request, error)
- func (client AccessPoliciesClient) ListByEnvironmentResponder(resp *http.Response) (result AccessPolicyListResponse, err error)
- func (client AccessPoliciesClient) ListByEnvironmentSender(req *http.Request) (*http.Response, error)
- func (client AccessPoliciesClient) Update(ctx context.Context, resourceGroupName string, environmentName string, ...) (result AccessPolicyResource, err error)
- func (client AccessPoliciesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, environmentName string, ...) (*http.Request, error)
- func (client AccessPoliciesClient) UpdateResponder(resp *http.Response) (result AccessPolicyResource, err error)
- func (client AccessPoliciesClient) UpdateSender(req *http.Request) (*http.Response, error)
- type AccessPolicyCreateOrUpdateParameters
- type AccessPolicyListResponse
- type AccessPolicyMutableProperties
- type AccessPolicyResource
- type AccessPolicyResourceProperties
- type AccessPolicyRole
- type AccessPolicyUpdateParameters
- type AzureEventSourceProperties
- type BaseClient
- type BasicEventSourceCreateOrUpdateParameters
- type BasicEventSourceResource
- type CloudError
- type CloudErrorBody
- type CreateOrUpdateTrackedResourceProperties
- type DataStringComparisonBehavior
- type EnvironmentCreateOrUpdateParameters
- type EnvironmentCreationProperties
- type EnvironmentListResponse
- type EnvironmentMutableProperties
- type EnvironmentResource
- type EnvironmentResourceProperties
- type EnvironmentStateDetails
- type EnvironmentStatus
- type EnvironmentUpdateParameters
- type EnvironmentsClient
- func (client EnvironmentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, ...) (result EnvironmentsCreateOrUpdateFuture, err error)
- func (client EnvironmentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, environmentName string, ...) (*http.Request, error)
- func (client EnvironmentsClient) CreateOrUpdateResponder(resp *http.Response) (result EnvironmentResource, err error)
- func (client EnvironmentsClient) CreateOrUpdateSender(req *http.Request) (future EnvironmentsCreateOrUpdateFuture, err error)
- func (client EnvironmentsClient) Delete(ctx context.Context, resourceGroupName string, environmentName string) (result autorest.Response, err error)
- func (client EnvironmentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, environmentName string) (*http.Request, error)
- func (client EnvironmentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client EnvironmentsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client EnvironmentsClient) Get(ctx context.Context, resourceGroupName string, environmentName string, ...) (result EnvironmentResource, err error)
- func (client EnvironmentsClient) GetPreparer(ctx context.Context, resourceGroupName string, environmentName string, ...) (*http.Request, error)
- func (client EnvironmentsClient) GetResponder(resp *http.Response) (result EnvironmentResource, err error)
- func (client EnvironmentsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client EnvironmentsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result EnvironmentListResponse, err error)
- func (client EnvironmentsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client EnvironmentsClient) ListByResourceGroupResponder(resp *http.Response) (result EnvironmentListResponse, err error)
- func (client EnvironmentsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client EnvironmentsClient) ListBySubscription(ctx context.Context) (result EnvironmentListResponse, err error)
- func (client EnvironmentsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
- func (client EnvironmentsClient) ListBySubscriptionResponder(resp *http.Response) (result EnvironmentListResponse, err error)
- func (client EnvironmentsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
- func (client EnvironmentsClient) Update(ctx context.Context, resourceGroupName string, environmentName string, ...) (result EnvironmentsUpdateFuture, err error)
- func (client EnvironmentsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, environmentName string, ...) (*http.Request, error)
- func (client EnvironmentsClient) UpdateResponder(resp *http.Response) (result EnvironmentResource, err error)
- func (client EnvironmentsClient) UpdateSender(req *http.Request) (future EnvironmentsUpdateFuture, err error)
- type EnvironmentsCreateOrUpdateFuture
- type EnvironmentsUpdateFuture
- type EventHubEventSourceCommonProperties
- type EventHubEventSourceCreateOrUpdateParameters
- func (ehescoup EventHubEventSourceCreateOrUpdateParameters) AsBasicEventSourceCreateOrUpdateParameters() (BasicEventSourceCreateOrUpdateParameters, bool)
- func (ehescoup EventHubEventSourceCreateOrUpdateParameters) AsEventHubEventSourceCreateOrUpdateParameters() (*EventHubEventSourceCreateOrUpdateParameters, bool)
- func (ehescoup EventHubEventSourceCreateOrUpdateParameters) AsEventSourceCreateOrUpdateParameters() (*EventSourceCreateOrUpdateParameters, bool)
- func (ehescoup EventHubEventSourceCreateOrUpdateParameters) AsIoTHubEventSourceCreateOrUpdateParameters() (*IoTHubEventSourceCreateOrUpdateParameters, bool)
- func (ehescoup EventHubEventSourceCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
- func (ehescoup *EventHubEventSourceCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
- type EventHubEventSourceCreationProperties
- type EventHubEventSourceMutableProperties
- type EventHubEventSourceResource
- func (ehesr EventHubEventSourceResource) AsBasicEventSourceResource() (BasicEventSourceResource, bool)
- func (ehesr EventHubEventSourceResource) AsEventHubEventSourceResource() (*EventHubEventSourceResource, bool)
- func (ehesr EventHubEventSourceResource) AsEventSourceResource() (*EventSourceResource, bool)
- func (ehesr EventHubEventSourceResource) AsIoTHubEventSourceResource() (*IoTHubEventSourceResource, bool)
- func (ehesr EventHubEventSourceResource) MarshalJSON() ([]byte, error)
- func (ehesr *EventHubEventSourceResource) UnmarshalJSON(body []byte) error
- type EventHubEventSourceResourceProperties
- type EventHubEventSourceUpdateParameters
- type EventSourceCommonProperties
- type EventSourceCreateOrUpdateParameters
- func (escoup EventSourceCreateOrUpdateParameters) AsBasicEventSourceCreateOrUpdateParameters() (BasicEventSourceCreateOrUpdateParameters, bool)
- func (escoup EventSourceCreateOrUpdateParameters) AsEventHubEventSourceCreateOrUpdateParameters() (*EventHubEventSourceCreateOrUpdateParameters, bool)
- func (escoup EventSourceCreateOrUpdateParameters) AsEventSourceCreateOrUpdateParameters() (*EventSourceCreateOrUpdateParameters, bool)
- func (escoup EventSourceCreateOrUpdateParameters) AsIoTHubEventSourceCreateOrUpdateParameters() (*IoTHubEventSourceCreateOrUpdateParameters, bool)
- func (escoup EventSourceCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
- type EventSourceListResponse
- type EventSourceMutableProperties
- type EventSourceResource
- func (esr EventSourceResource) AsBasicEventSourceResource() (BasicEventSourceResource, bool)
- func (esr EventSourceResource) AsEventHubEventSourceResource() (*EventHubEventSourceResource, bool)
- func (esr EventSourceResource) AsEventSourceResource() (*EventSourceResource, bool)
- func (esr EventSourceResource) AsIoTHubEventSourceResource() (*IoTHubEventSourceResource, bool)
- func (esr EventSourceResource) MarshalJSON() ([]byte, error)
- type EventSourceResourceModel
- type EventSourceUpdateParameters
- type EventSourcesClient
- func (client EventSourcesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, ...) (result EventSourceResourceModel, err error)
- func (client EventSourcesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, environmentName string, ...) (*http.Request, error)
- func (client EventSourcesClient) CreateOrUpdateResponder(resp *http.Response) (result EventSourceResourceModel, err error)
- func (client EventSourcesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client EventSourcesClient) Delete(ctx context.Context, resourceGroupName string, environmentName string, ...) (result autorest.Response, err error)
- func (client EventSourcesClient) DeletePreparer(ctx context.Context, resourceGroupName string, environmentName string, ...) (*http.Request, error)
- func (client EventSourcesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client EventSourcesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client EventSourcesClient) Get(ctx context.Context, resourceGroupName string, environmentName string, ...) (result EventSourceResourceModel, err error)
- func (client EventSourcesClient) GetPreparer(ctx context.Context, resourceGroupName string, environmentName string, ...) (*http.Request, error)
- func (client EventSourcesClient) GetResponder(resp *http.Response) (result EventSourceResourceModel, err error)
- func (client EventSourcesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client EventSourcesClient) ListByEnvironment(ctx context.Context, resourceGroupName string, environmentName string) (result EventSourceListResponse, err error)
- func (client EventSourcesClient) ListByEnvironmentPreparer(ctx context.Context, resourceGroupName string, environmentName string) (*http.Request, error)
- func (client EventSourcesClient) ListByEnvironmentResponder(resp *http.Response) (result EventSourceListResponse, err error)
- func (client EventSourcesClient) ListByEnvironmentSender(req *http.Request) (*http.Response, error)
- func (client EventSourcesClient) Update(ctx context.Context, resourceGroupName string, environmentName string, ...) (result EventSourceResourceModel, err error)
- func (client EventSourcesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, environmentName string, ...) (*http.Request, error)
- func (client EventSourcesClient) UpdateResponder(resp *http.Response) (result EventSourceResourceModel, err error)
- func (client EventSourcesClient) UpdateSender(req *http.Request) (*http.Response, error)
- type IngressEnvironmentStatus
- type IngressState
- type IoTHubEventSourceCommonProperties
- type IoTHubEventSourceCreateOrUpdateParameters
- func (ithescoup IoTHubEventSourceCreateOrUpdateParameters) AsBasicEventSourceCreateOrUpdateParameters() (BasicEventSourceCreateOrUpdateParameters, bool)
- func (ithescoup IoTHubEventSourceCreateOrUpdateParameters) AsEventHubEventSourceCreateOrUpdateParameters() (*EventHubEventSourceCreateOrUpdateParameters, bool)
- func (ithescoup IoTHubEventSourceCreateOrUpdateParameters) AsEventSourceCreateOrUpdateParameters() (*EventSourceCreateOrUpdateParameters, bool)
- func (ithescoup IoTHubEventSourceCreateOrUpdateParameters) AsIoTHubEventSourceCreateOrUpdateParameters() (*IoTHubEventSourceCreateOrUpdateParameters, bool)
- func (ithescoup IoTHubEventSourceCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
- func (ithescoup *IoTHubEventSourceCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
- type IoTHubEventSourceCreationProperties
- type IoTHubEventSourceMutableProperties
- type IoTHubEventSourceResource
- func (ithesr IoTHubEventSourceResource) AsBasicEventSourceResource() (BasicEventSourceResource, bool)
- func (ithesr IoTHubEventSourceResource) AsEventHubEventSourceResource() (*EventHubEventSourceResource, bool)
- func (ithesr IoTHubEventSourceResource) AsEventSourceResource() (*EventSourceResource, bool)
- func (ithesr IoTHubEventSourceResource) AsIoTHubEventSourceResource() (*IoTHubEventSourceResource, bool)
- func (ithesr IoTHubEventSourceResource) MarshalJSON() ([]byte, error)
- func (ithesr *IoTHubEventSourceResource) UnmarshalJSON(body []byte) error
- type IoTHubEventSourceResourceProperties
- type IoTHubEventSourceUpdateParameters
- type Kind
- type KindBasicEventSourceResource
- type LocalTimestamp
- type LocalTimestampFormat
- type LocalTimestampTimeZoneOffset
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationListResultIterator
- func (iter *OperationListResultIterator) Next() error
- func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter OperationListResultIterator) NotDone() bool
- func (iter OperationListResultIterator) Response() OperationListResult
- func (iter OperationListResultIterator) Value() Operation
- type OperationListResultPage
- func (page *OperationListResultPage) Next() error
- func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page OperationListResultPage) NotDone() bool
- func (page OperationListResultPage) Response() OperationListResult
- func (page OperationListResultPage) Values() []Operation
- type OperationsClient
- func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
- func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
- func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
- func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type PartitionKeyProperty
- type PropertyType
- type ProvisioningState
- type ReferenceDataKeyPropertyType
- type ReferenceDataSetCreateOrUpdateParameters
- type ReferenceDataSetCreationProperties
- type ReferenceDataSetKeyProperty
- type ReferenceDataSetListResponse
- type ReferenceDataSetResource
- type ReferenceDataSetResourceProperties
- type ReferenceDataSetUpdateParameters
- type ReferenceDataSetsClient
- func (client ReferenceDataSetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, environmentName string, ...) (result ReferenceDataSetResource, err error)
- func (client ReferenceDataSetsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, environmentName string, ...) (*http.Request, error)
- func (client ReferenceDataSetsClient) CreateOrUpdateResponder(resp *http.Response) (result ReferenceDataSetResource, err error)
- func (client ReferenceDataSetsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client ReferenceDataSetsClient) Delete(ctx context.Context, resourceGroupName string, environmentName string, ...) (result autorest.Response, err error)
- func (client ReferenceDataSetsClient) DeletePreparer(ctx context.Context, resourceGroupName string, environmentName string, ...) (*http.Request, error)
- func (client ReferenceDataSetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ReferenceDataSetsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ReferenceDataSetsClient) Get(ctx context.Context, resourceGroupName string, environmentName string, ...) (result ReferenceDataSetResource, err error)
- func (client ReferenceDataSetsClient) GetPreparer(ctx context.Context, resourceGroupName string, environmentName string, ...) (*http.Request, error)
- func (client ReferenceDataSetsClient) GetResponder(resp *http.Response) (result ReferenceDataSetResource, err error)
- func (client ReferenceDataSetsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ReferenceDataSetsClient) ListByEnvironment(ctx context.Context, resourceGroupName string, environmentName string) (result ReferenceDataSetListResponse, err error)
- func (client ReferenceDataSetsClient) ListByEnvironmentPreparer(ctx context.Context, resourceGroupName string, environmentName string) (*http.Request, error)
- func (client ReferenceDataSetsClient) ListByEnvironmentResponder(resp *http.Response) (result ReferenceDataSetListResponse, err error)
- func (client ReferenceDataSetsClient) ListByEnvironmentSender(req *http.Request) (*http.Response, error)
- func (client ReferenceDataSetsClient) Update(ctx context.Context, resourceGroupName string, environmentName string, ...) (result ReferenceDataSetResource, err error)
- func (client ReferenceDataSetsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, environmentName string, ...) (*http.Request, error)
- func (client ReferenceDataSetsClient) UpdateResponder(resp *http.Response) (result ReferenceDataSetResource, err error)
- func (client ReferenceDataSetsClient) UpdateSender(req *http.Request) (*http.Response, error)
- type Resource
- type ResourceProperties
- type Sku
- type SkuName
- type StorageLimitExceededBehavior
- type TrackedResource
Constants ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 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 capacity of the environment, the SLA (in queries-per-minute and total capacity), and the billing rate. Sku *Sku `json:"sku,omitempty"` *EnvironmentCreationProperties `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"` }
EnvironmentCreateOrUpdateParameters parameters supplied to the CreateOrUpdate Environment operation.
func (EnvironmentCreateOrUpdateParameters) MarshalJSON ¶
func (ecoup EnvironmentCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EnvironmentCreateOrUpdateParameters.
func (*EnvironmentCreateOrUpdateParameters) UnmarshalJSON ¶
func (ecoup *EnvironmentCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for EnvironmentCreateOrUpdateParameters struct.
type EnvironmentCreationProperties ¶
type EnvironmentCreationProperties 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 partition keys according to which the data in the environment will be ordered. PartitionKeyProperties *[]PartitionKeyProperty `json:"partitionKeyProperties,omitempty"` }
EnvironmentCreationProperties properties used to create an environment.
type EnvironmentListResponse ¶
type EnvironmentListResponse struct { autorest.Response `json:"-"` // Value - Result of the List Environments operation. Value *[]EnvironmentResource `json:"value,omitempty"` }
EnvironmentListResponse the response of the List Environments operation.
type EnvironmentMutableProperties ¶
type EnvironmentMutableProperties 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. PartitionKeyProperties *[]PartitionKeyProperty `json:"partitionKeyProperties,omitempty"` }
EnvironmentMutableProperties an object that represents a set of mutable environment resource properties.
type EnvironmentResource ¶
type EnvironmentResource struct { autorest.Response `json:"-"` // Sku - The sku determines the capacity of the environment, the SLA (in queries-per-minute and total capacity), and the billing rate. Sku *Sku `json:"sku,omitempty"` *EnvironmentResourceProperties `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"` }
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) MarshalJSON ¶
func (er EnvironmentResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EnvironmentResource.
func (*EnvironmentResource) UnmarshalJSON ¶
func (er *EnvironmentResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for EnvironmentResource struct.
type EnvironmentResourceProperties ¶
type EnvironmentResourceProperties 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 partition keys according to which the data in the environment will be ordered. PartitionKeyProperties *[]PartitionKeyProperty `json:"partitionKeyProperties,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"` // 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"` }
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"` }
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 { // Sku - The sku of the environment. Sku *Sku `json:"sku,omitempty"` // Tags - Key-value pairs of additional properties for the environment. Tags map[string]*string `json:"tags"` // EnvironmentMutableProperties - Properties of the environment. *EnvironmentMutableProperties `json:"properties,omitempty"` }
EnvironmentUpdateParameters parameters supplied to the Update Environment operation.
func (EnvironmentUpdateParameters) MarshalJSON ¶
func (eup EnvironmentUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EnvironmentUpdateParameters.
func (*EnvironmentUpdateParameters) UnmarshalJSON ¶
func (eup *EnvironmentUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for EnvironmentUpdateParameters struct.
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 EnvironmentCreateOrUpdateParameters) (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 EnvironmentCreateOrUpdateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (EnvironmentsClient) CreateOrUpdateResponder ¶
func (client EnvironmentsClient) CreateOrUpdateResponder(resp *http.Response) (result EnvironmentResource, 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 ¶
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 EnvironmentResource, 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 EnvironmentResource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (EnvironmentsClient) GetSender ¶
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 EnvironmentResource, 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 ¶
EnvironmentsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*EnvironmentsCreateOrUpdateFuture) Result ¶
func (future *EnvironmentsCreateOrUpdateFuture) Result(client EnvironmentsClient) (er EnvironmentResource, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type EnvironmentsUpdateFuture ¶
EnvironmentsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*EnvironmentsUpdateFuture) Result ¶
func (future *EnvironmentsUpdateFuture) Result(client EnvironmentsClient) (er EnvironmentResource, err error)
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"` // 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 Kind `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 { 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"` }SharedAccessKey *
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 { 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"` }SharedAccessKey *
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 { // Kind - Possible values include: 'KindEventSourceCreateOrUpdateParameters', 'KindMicrosoftEventHub', 'KindMicrosoftIoTHub' 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"` }
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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"` // Kind - Possible values include: 'KindEventSourceCreateOrUpdateParameters', 'KindMicrosoftEventHub', 'KindMicrosoftIoTHub' 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"` }
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 { 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"` }SharedAccessKey *
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 { 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"` }SharedAccessKey *
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.
func PossibleKindValues ¶
func PossibleKindValues() []Kind
PossibleKindValues returns an array of possible values for the Kind 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', 'Iana', 'TimeSpan' 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" // Iana ... Iana LocalTimestampFormat = "Iana" // TimeSpan ... TimeSpan LocalTimestampFormat = "TimeSpan" )
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 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 ¶
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
func (OperationListResultIterator) Value ¶
func (iter OperationListResultIterator) Value() Operation
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(cur OperationListResult, 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 ¶
func (page OperationListResultPage) Response() OperationListResult
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 ¶
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 ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type PartitionKeyProperty ¶
type PartitionKeyProperty 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"` }
PartitionKeyProperty the structure of the property that a partition key can have. An environment can have multiple such properties.
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 ¶
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 ¶
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 ¶
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' Name SkuName `json:"name,omitempty"` // Capacity - The capacity of the sku. 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 capacity of the environment, the SLA (in queries-per-minute and total capacity), and the billing rate.
type SkuName ¶
type SkuName string
SkuName enumerates the values for sku name.
func PossibleSkuNameValues ¶
func PossibleSkuNameValues() []SkuName
PossibleSkuNameValues returns an array of possible values for the SkuName const type.
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 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.