README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/connectionmonitors
Documentation
The connectionmonitors
SDK allows for interaction with the Azure Resource Manager Service network
(API Version 2023-05-01
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/connectionmonitors"
Client Initialization
client := connectionmonitors.NewConnectionMonitorsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ConnectionMonitorsClient.CreateOrUpdate
ctx := context.TODO()
id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "connectionMonitorValue")
payload := connectionmonitors.ConnectionMonitor{
// ...
}
if err := client.CreateOrUpdateThenPoll(ctx, id, payload, connectionmonitors.DefaultCreateOrUpdateOperationOptions()); err != nil {
// handle the error
}
Example Usage: ConnectionMonitorsClient.Delete
ctx := context.TODO()
id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "connectionMonitorValue")
if err := client.DeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: ConnectionMonitorsClient.Get
ctx := context.TODO()
id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "connectionMonitorValue")
read, err := client.Get(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ConnectionMonitorsClient.List
ctx := context.TODO()
id := connectionmonitors.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue")
read, err := client.List(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ConnectionMonitorsClient.Query
ctx := context.TODO()
id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "connectionMonitorValue")
if err := client.QueryThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: ConnectionMonitorsClient.Start
ctx := context.TODO()
id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "connectionMonitorValue")
if err := client.StartThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: ConnectionMonitorsClient.Stop
ctx := context.TODO()
id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "connectionMonitorValue")
if err := client.StopThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: ConnectionMonitorsClient.UpdateTags
ctx := context.TODO()
id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "connectionMonitorValue")
payload := connectionmonitors.TagsObject{
// ...
}
read, err := client.UpdateTags(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- func PossibleValuesForConnectionMonitorEndpointFilterItemType() []string
- func PossibleValuesForConnectionMonitorEndpointFilterType() []string
- func PossibleValuesForConnectionMonitorSourceStatus() []string
- func PossibleValuesForConnectionMonitorTestConfigurationProtocol() []string
- func PossibleValuesForConnectionMonitorType() []string
- func PossibleValuesForConnectionState() []string
- func PossibleValuesForCoverageLevel() []string
- func PossibleValuesForDestinationPortBehavior() []string
- func PossibleValuesForEndpointType() []string
- func PossibleValuesForEvaluationState() []string
- func PossibleValuesForHTTPConfigurationMethod() []string
- func PossibleValuesForIssueType() []string
- func PossibleValuesForOrigin() []string
- func PossibleValuesForOutputType() []string
- func PossibleValuesForPreferredIPVersion() []string
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForSeverity() []string
- func ValidateConnectionMonitorID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateNetworkWatcherID(input interface{}, key string) (warnings []string, errors []error)
- type ConnectionMonitor
- type ConnectionMonitorDestination
- type ConnectionMonitorEndpoint
- type ConnectionMonitorEndpointFilter
- type ConnectionMonitorEndpointFilterItem
- type ConnectionMonitorEndpointFilterItemType
- type ConnectionMonitorEndpointFilterType
- type ConnectionMonitorEndpointScope
- type ConnectionMonitorEndpointScopeItem
- type ConnectionMonitorHTTPConfiguration
- type ConnectionMonitorIcmpConfiguration
- type ConnectionMonitorId
- type ConnectionMonitorListResult
- type ConnectionMonitorOutput
- type ConnectionMonitorParameters
- type ConnectionMonitorQueryResult
- type ConnectionMonitorResult
- type ConnectionMonitorResultProperties
- type ConnectionMonitorSource
- type ConnectionMonitorSourceStatus
- type ConnectionMonitorSuccessThreshold
- type ConnectionMonitorTcpConfiguration
- type ConnectionMonitorTestConfiguration
- type ConnectionMonitorTestConfigurationProtocol
- type ConnectionMonitorTestGroup
- type ConnectionMonitorType
- type ConnectionMonitorWorkspaceSettings
- type ConnectionMonitorsClient
- func (c ConnectionMonitorsClient) CreateOrUpdate(ctx context.Context, id ConnectionMonitorId, input ConnectionMonitor, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c ConnectionMonitorsClient) CreateOrUpdateThenPoll(ctx context.Context, id ConnectionMonitorId, input ConnectionMonitor, ...) error
- func (c ConnectionMonitorsClient) Delete(ctx context.Context, id ConnectionMonitorId) (result DeleteOperationResponse, err error)
- func (c ConnectionMonitorsClient) DeleteThenPoll(ctx context.Context, id ConnectionMonitorId) error
- func (c ConnectionMonitorsClient) Get(ctx context.Context, id ConnectionMonitorId) (result GetOperationResponse, err error)
- func (c ConnectionMonitorsClient) List(ctx context.Context, id NetworkWatcherId) (result ListOperationResponse, err error)
- func (c ConnectionMonitorsClient) Query(ctx context.Context, id ConnectionMonitorId) (result QueryOperationResponse, err error)
- func (c ConnectionMonitorsClient) QueryThenPoll(ctx context.Context, id ConnectionMonitorId) error
- func (c ConnectionMonitorsClient) Start(ctx context.Context, id ConnectionMonitorId) (result StartOperationResponse, err error)
- func (c ConnectionMonitorsClient) StartThenPoll(ctx context.Context, id ConnectionMonitorId) error
- func (c ConnectionMonitorsClient) Stop(ctx context.Context, id ConnectionMonitorId) (result StopOperationResponse, err error)
- func (c ConnectionMonitorsClient) StopThenPoll(ctx context.Context, id ConnectionMonitorId) error
- func (c ConnectionMonitorsClient) UpdateTags(ctx context.Context, id ConnectionMonitorId, input TagsObject) (result UpdateTagsOperationResponse, err error)
- type ConnectionState
- type ConnectionStateSnapshot
- type ConnectivityHop
- type ConnectivityIssue
- type CoverageLevel
- type CreateOrUpdateOperationOptions
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type DestinationPortBehavior
- type EndpointType
- type EvaluationState
- type GetOperationResponse
- type HTTPConfigurationMethod
- type HTTPHeader
- type HopLink
- type HopLinkProperties
- type IssueType
- type ListOperationResponse
- type NetworkWatcherId
- type Origin
- type OutputType
- type PreferredIPVersion
- type ProvisioningState
- type QueryOperationResponse
- type Severity
- type StartOperationResponse
- type StopOperationResponse
- type TagsObject
- type UpdateTagsOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForConnectionMonitorEndpointFilterItemType ¶
func PossibleValuesForConnectionMonitorEndpointFilterItemType() []string
func PossibleValuesForConnectionMonitorEndpointFilterType ¶
func PossibleValuesForConnectionMonitorEndpointFilterType() []string
func PossibleValuesForConnectionMonitorSourceStatus ¶
func PossibleValuesForConnectionMonitorSourceStatus() []string
func PossibleValuesForConnectionMonitorTestConfigurationProtocol ¶
func PossibleValuesForConnectionMonitorTestConfigurationProtocol() []string
func PossibleValuesForConnectionMonitorType ¶
func PossibleValuesForConnectionMonitorType() []string
func PossibleValuesForConnectionState ¶
func PossibleValuesForConnectionState() []string
func PossibleValuesForCoverageLevel ¶
func PossibleValuesForCoverageLevel() []string
func PossibleValuesForDestinationPortBehavior ¶
func PossibleValuesForDestinationPortBehavior() []string
func PossibleValuesForEndpointType ¶
func PossibleValuesForEndpointType() []string
func PossibleValuesForEvaluationState ¶
func PossibleValuesForEvaluationState() []string
func PossibleValuesForHTTPConfigurationMethod ¶
func PossibleValuesForHTTPConfigurationMethod() []string
func PossibleValuesForIssueType ¶
func PossibleValuesForIssueType() []string
func PossibleValuesForOrigin ¶
func PossibleValuesForOrigin() []string
func PossibleValuesForOutputType ¶
func PossibleValuesForOutputType() []string
func PossibleValuesForPreferredIPVersion ¶
func PossibleValuesForPreferredIPVersion() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForSeverity ¶
func PossibleValuesForSeverity() []string
func ValidateConnectionMonitorID ¶
ValidateConnectionMonitorID checks that 'input' can be parsed as a Connection Monitor ID
func ValidateNetworkWatcherID ¶
ValidateNetworkWatcherID checks that 'input' can be parsed as a Network Watcher ID
Types ¶
type ConnectionMonitor ¶
type ConnectionMonitor struct { Location *string `json:"location,omitempty"` Properties ConnectionMonitorParameters `json:"properties"` Tags *map[string]string `json:"tags,omitempty"` }
type ConnectionMonitorEndpoint ¶
type ConnectionMonitorEndpoint struct { Address *string `json:"address,omitempty"` CoverageLevel *CoverageLevel `json:"coverageLevel,omitempty"` Filter *ConnectionMonitorEndpointFilter `json:"filter,omitempty"` Name string `json:"name"` ResourceId *string `json:"resourceId,omitempty"` Scope *ConnectionMonitorEndpointScope `json:"scope,omitempty"` Type *EndpointType `json:"type,omitempty"` }
type ConnectionMonitorEndpointFilter ¶
type ConnectionMonitorEndpointFilter struct { Items *[]ConnectionMonitorEndpointFilterItem `json:"items,omitempty"` Type *ConnectionMonitorEndpointFilterType `json:"type,omitempty"` }
type ConnectionMonitorEndpointFilterItem ¶
type ConnectionMonitorEndpointFilterItem struct { Address *string `json:"address,omitempty"` Type *ConnectionMonitorEndpointFilterItemType `json:"type,omitempty"` }
type ConnectionMonitorEndpointFilterItemType ¶
type ConnectionMonitorEndpointFilterItemType string
const (
ConnectionMonitorEndpointFilterItemTypeAgentAddress ConnectionMonitorEndpointFilterItemType = "AgentAddress"
)
func (*ConnectionMonitorEndpointFilterItemType) UnmarshalJSON ¶
func (s *ConnectionMonitorEndpointFilterItemType) UnmarshalJSON(bytes []byte) error
type ConnectionMonitorEndpointFilterType ¶
type ConnectionMonitorEndpointFilterType string
const (
ConnectionMonitorEndpointFilterTypeInclude ConnectionMonitorEndpointFilterType = "Include"
)
func (*ConnectionMonitorEndpointFilterType) UnmarshalJSON ¶
func (s *ConnectionMonitorEndpointFilterType) UnmarshalJSON(bytes []byte) error
type ConnectionMonitorEndpointScope ¶
type ConnectionMonitorEndpointScope struct { Exclude *[]ConnectionMonitorEndpointScopeItem `json:"exclude,omitempty"` Include *[]ConnectionMonitorEndpointScopeItem `json:"include,omitempty"` }
type ConnectionMonitorEndpointScopeItem ¶
type ConnectionMonitorEndpointScopeItem struct {
Address *string `json:"address,omitempty"`
}
type ConnectionMonitorHTTPConfiguration ¶
type ConnectionMonitorHTTPConfiguration struct { Method *HTTPConfigurationMethod `json:"method,omitempty"` Path *string `json:"path,omitempty"` Port *int64 `json:"port,omitempty"` PreferHTTPS *bool `json:"preferHTTPS,omitempty"` RequestHeaders *[]HTTPHeader `json:"requestHeaders,omitempty"` ValidStatusCodeRanges *[]string `json:"validStatusCodeRanges,omitempty"` }
type ConnectionMonitorIcmpConfiguration ¶
type ConnectionMonitorIcmpConfiguration struct {
DisableTraceRoute *bool `json:"disableTraceRoute,omitempty"`
}
type ConnectionMonitorId ¶
type ConnectionMonitorId struct { SubscriptionId string ResourceGroupName string NetworkWatcherName string ConnectionMonitorName string }
ConnectionMonitorId is a struct representing the Resource ID for a Connection Monitor
func NewConnectionMonitorID ¶
func NewConnectionMonitorID(subscriptionId string, resourceGroupName string, networkWatcherName string, connectionMonitorName string) ConnectionMonitorId
NewConnectionMonitorID returns a new ConnectionMonitorId struct
func ParseConnectionMonitorID ¶
func ParseConnectionMonitorID(input string) (*ConnectionMonitorId, error)
ParseConnectionMonitorID parses 'input' into a ConnectionMonitorId
func ParseConnectionMonitorIDInsensitively ¶
func ParseConnectionMonitorIDInsensitively(input string) (*ConnectionMonitorId, error)
ParseConnectionMonitorIDInsensitively parses 'input' case-insensitively into a ConnectionMonitorId note: this method should only be used for API response data and not user input
func (ConnectionMonitorId) ID ¶
func (id ConnectionMonitorId) ID() string
ID returns the formatted Connection Monitor ID
func (ConnectionMonitorId) Segments ¶
func (id ConnectionMonitorId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Connection Monitor ID
func (ConnectionMonitorId) String ¶
func (id ConnectionMonitorId) String() string
String returns a human-readable description of this Connection Monitor ID
type ConnectionMonitorListResult ¶
type ConnectionMonitorListResult struct {
Value *[]ConnectionMonitorResult `json:"value,omitempty"`
}
type ConnectionMonitorOutput ¶
type ConnectionMonitorOutput struct { Type *OutputType `json:"type,omitempty"` WorkspaceSettings *ConnectionMonitorWorkspaceSettings `json:"workspaceSettings,omitempty"` }
type ConnectionMonitorParameters ¶
type ConnectionMonitorParameters struct { AutoStart *bool `json:"autoStart,omitempty"` Destination *ConnectionMonitorDestination `json:"destination,omitempty"` Endpoints *[]ConnectionMonitorEndpoint `json:"endpoints,omitempty"` MonitoringIntervalInSeconds *int64 `json:"monitoringIntervalInSeconds,omitempty"` Notes *string `json:"notes,omitempty"` Outputs *[]ConnectionMonitorOutput `json:"outputs,omitempty"` Source *ConnectionMonitorSource `json:"source,omitempty"` TestConfigurations *[]ConnectionMonitorTestConfiguration `json:"testConfigurations,omitempty"` TestGroups *[]ConnectionMonitorTestGroup `json:"testGroups,omitempty"` }
type ConnectionMonitorQueryResult ¶
type ConnectionMonitorQueryResult struct { SourceStatus *ConnectionMonitorSourceStatus `json:"sourceStatus,omitempty"` States *[]ConnectionStateSnapshot `json:"states,omitempty"` }
type ConnectionMonitorResult ¶
type ConnectionMonitorResult struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *ConnectionMonitorResultProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ConnectionMonitorResultProperties ¶
type ConnectionMonitorResultProperties struct { AutoStart *bool `json:"autoStart,omitempty"` ConnectionMonitorType *ConnectionMonitorType `json:"connectionMonitorType,omitempty"` Destination *ConnectionMonitorDestination `json:"destination,omitempty"` Endpoints *[]ConnectionMonitorEndpoint `json:"endpoints,omitempty"` MonitoringIntervalInSeconds *int64 `json:"monitoringIntervalInSeconds,omitempty"` MonitoringStatus *string `json:"monitoringStatus,omitempty"` Notes *string `json:"notes,omitempty"` Outputs *[]ConnectionMonitorOutput `json:"outputs,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Source *ConnectionMonitorSource `json:"source,omitempty"` StartTime *string `json:"startTime,omitempty"` TestConfigurations *[]ConnectionMonitorTestConfiguration `json:"testConfigurations,omitempty"` TestGroups *[]ConnectionMonitorTestGroup `json:"testGroups,omitempty"` }
func (*ConnectionMonitorResultProperties) GetStartTimeAsTime ¶
func (o *ConnectionMonitorResultProperties) GetStartTimeAsTime() (*time.Time, error)
func (*ConnectionMonitorResultProperties) SetStartTimeAsTime ¶
func (o *ConnectionMonitorResultProperties) SetStartTimeAsTime(input time.Time)
type ConnectionMonitorSource ¶
type ConnectionMonitorSourceStatus ¶
type ConnectionMonitorSourceStatus string
const ( ConnectionMonitorSourceStatusActive ConnectionMonitorSourceStatus = "Active" ConnectionMonitorSourceStatusInactive ConnectionMonitorSourceStatus = "Inactive" ConnectionMonitorSourceStatusUnknown ConnectionMonitorSourceStatus = "Unknown" )
func (*ConnectionMonitorSourceStatus) UnmarshalJSON ¶
func (s *ConnectionMonitorSourceStatus) UnmarshalJSON(bytes []byte) error
type ConnectionMonitorTcpConfiguration ¶
type ConnectionMonitorTcpConfiguration struct { DestinationPortBehavior *DestinationPortBehavior `json:"destinationPortBehavior,omitempty"` DisableTraceRoute *bool `json:"disableTraceRoute,omitempty"` Port *int64 `json:"port,omitempty"` }
type ConnectionMonitorTestConfiguration ¶
type ConnectionMonitorTestConfiguration struct { HTTPConfiguration *ConnectionMonitorHTTPConfiguration `json:"httpConfiguration,omitempty"` IcmpConfiguration *ConnectionMonitorIcmpConfiguration `json:"icmpConfiguration,omitempty"` Name string `json:"name"` PreferredIPVersion *PreferredIPVersion `json:"preferredIPVersion,omitempty"` Protocol ConnectionMonitorTestConfigurationProtocol `json:"protocol"` SuccessThreshold *ConnectionMonitorSuccessThreshold `json:"successThreshold,omitempty"` TcpConfiguration *ConnectionMonitorTcpConfiguration `json:"tcpConfiguration,omitempty"` TestFrequencySec *int64 `json:"testFrequencySec,omitempty"` }
type ConnectionMonitorTestConfigurationProtocol ¶
type ConnectionMonitorTestConfigurationProtocol string
const ( ConnectionMonitorTestConfigurationProtocolHTTP ConnectionMonitorTestConfigurationProtocol = "Http" ConnectionMonitorTestConfigurationProtocolIcmp ConnectionMonitorTestConfigurationProtocol = "Icmp" ConnectionMonitorTestConfigurationProtocolTcp ConnectionMonitorTestConfigurationProtocol = "Tcp" )
func (*ConnectionMonitorTestConfigurationProtocol) UnmarshalJSON ¶
func (s *ConnectionMonitorTestConfigurationProtocol) UnmarshalJSON(bytes []byte) error
type ConnectionMonitorType ¶
type ConnectionMonitorType string
const ( ConnectionMonitorTypeMultiEndpoint ConnectionMonitorType = "MultiEndpoint" ConnectionMonitorTypeSingleSourceDestination ConnectionMonitorType = "SingleSourceDestination" )
func (*ConnectionMonitorType) UnmarshalJSON ¶
func (s *ConnectionMonitorType) UnmarshalJSON(bytes []byte) error
type ConnectionMonitorWorkspaceSettings ¶
type ConnectionMonitorWorkspaceSettings struct {
WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"`
}
type ConnectionMonitorsClient ¶
type ConnectionMonitorsClient struct {
Client *resourcemanager.Client
}
func NewConnectionMonitorsClientWithBaseURI ¶
func NewConnectionMonitorsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConnectionMonitorsClient, error)
func (ConnectionMonitorsClient) CreateOrUpdate ¶
func (c ConnectionMonitorsClient) CreateOrUpdate(ctx context.Context, id ConnectionMonitorId, input ConnectionMonitor, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ConnectionMonitorsClient) CreateOrUpdateThenPoll ¶
func (c ConnectionMonitorsClient) CreateOrUpdateThenPoll(ctx context.Context, id ConnectionMonitorId, input ConnectionMonitor, options CreateOrUpdateOperationOptions) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (ConnectionMonitorsClient) Delete ¶
func (c ConnectionMonitorsClient) Delete(ctx context.Context, id ConnectionMonitorId) (result DeleteOperationResponse, err error)
Delete ...
func (ConnectionMonitorsClient) DeleteThenPoll ¶
func (c ConnectionMonitorsClient) DeleteThenPoll(ctx context.Context, id ConnectionMonitorId) error
DeleteThenPoll performs Delete then polls until it's completed
func (ConnectionMonitorsClient) Get ¶
func (c ConnectionMonitorsClient) Get(ctx context.Context, id ConnectionMonitorId) (result GetOperationResponse, err error)
Get ...
func (ConnectionMonitorsClient) List ¶
func (c ConnectionMonitorsClient) List(ctx context.Context, id NetworkWatcherId) (result ListOperationResponse, err error)
List ...
func (ConnectionMonitorsClient) Query ¶
func (c ConnectionMonitorsClient) Query(ctx context.Context, id ConnectionMonitorId) (result QueryOperationResponse, err error)
Query ...
func (ConnectionMonitorsClient) QueryThenPoll ¶
func (c ConnectionMonitorsClient) QueryThenPoll(ctx context.Context, id ConnectionMonitorId) error
QueryThenPoll performs Query then polls until it's completed
func (ConnectionMonitorsClient) Start ¶
func (c ConnectionMonitorsClient) Start(ctx context.Context, id ConnectionMonitorId) (result StartOperationResponse, err error)
Start ...
func (ConnectionMonitorsClient) StartThenPoll ¶
func (c ConnectionMonitorsClient) StartThenPoll(ctx context.Context, id ConnectionMonitorId) error
StartThenPoll performs Start then polls until it's completed
func (ConnectionMonitorsClient) Stop ¶
func (c ConnectionMonitorsClient) Stop(ctx context.Context, id ConnectionMonitorId) (result StopOperationResponse, err error)
Stop ...
func (ConnectionMonitorsClient) StopThenPoll ¶
func (c ConnectionMonitorsClient) StopThenPoll(ctx context.Context, id ConnectionMonitorId) error
StopThenPoll performs Stop then polls until it's completed
func (ConnectionMonitorsClient) UpdateTags ¶
func (c ConnectionMonitorsClient) UpdateTags(ctx context.Context, id ConnectionMonitorId, input TagsObject) (result UpdateTagsOperationResponse, err error)
UpdateTags ...
type ConnectionState ¶
type ConnectionState string
const ( ConnectionStateReachable ConnectionState = "Reachable" ConnectionStateUnknown ConnectionState = "Unknown" ConnectionStateUnreachable ConnectionState = "Unreachable" )
func (*ConnectionState) UnmarshalJSON ¶
func (s *ConnectionState) UnmarshalJSON(bytes []byte) error
type ConnectionStateSnapshot ¶
type ConnectionStateSnapshot struct { AvgLatencyInMs *int64 `json:"avgLatencyInMs,omitempty"` ConnectionState *ConnectionState `json:"connectionState,omitempty"` EndTime *string `json:"endTime,omitempty"` EvaluationState *EvaluationState `json:"evaluationState,omitempty"` Hops *[]ConnectivityHop `json:"hops,omitempty"` MaxLatencyInMs *int64 `json:"maxLatencyInMs,omitempty"` MinLatencyInMs *int64 `json:"minLatencyInMs,omitempty"` ProbesFailed *int64 `json:"probesFailed,omitempty"` ProbesSent *int64 `json:"probesSent,omitempty"` StartTime *string `json:"startTime,omitempty"` }
func (*ConnectionStateSnapshot) GetEndTimeAsTime ¶
func (o *ConnectionStateSnapshot) GetEndTimeAsTime() (*time.Time, error)
func (*ConnectionStateSnapshot) GetStartTimeAsTime ¶
func (o *ConnectionStateSnapshot) GetStartTimeAsTime() (*time.Time, error)
func (*ConnectionStateSnapshot) SetEndTimeAsTime ¶
func (o *ConnectionStateSnapshot) SetEndTimeAsTime(input time.Time)
func (*ConnectionStateSnapshot) SetStartTimeAsTime ¶
func (o *ConnectionStateSnapshot) SetStartTimeAsTime(input time.Time)
type ConnectivityHop ¶
type ConnectivityHop struct { Address *string `json:"address,omitempty"` Id *string `json:"id,omitempty"` Issues *[]ConnectivityIssue `json:"issues,omitempty"` Links *[]HopLink `json:"links,omitempty"` NextHopIds *[]string `json:"nextHopIds,omitempty"` PreviousHopIds *[]string `json:"previousHopIds,omitempty"` PreviousLinks *[]HopLink `json:"previousLinks,omitempty"` ResourceId *string `json:"resourceId,omitempty"` Type *string `json:"type,omitempty"` }
type ConnectivityIssue ¶
type CoverageLevel ¶
type CoverageLevel string
const ( CoverageLevelAboveAverage CoverageLevel = "AboveAverage" CoverageLevelAverage CoverageLevel = "Average" CoverageLevelBelowAverage CoverageLevel = "BelowAverage" CoverageLevelDefault CoverageLevel = "Default" CoverageLevelFull CoverageLevel = "Full" CoverageLevelLow CoverageLevel = "Low" )
func (*CoverageLevel) UnmarshalJSON ¶
func (s *CoverageLevel) UnmarshalJSON(bytes []byte) error
type CreateOrUpdateOperationOptions ¶
type CreateOrUpdateOperationOptions struct {
Migrate *string
}
func DefaultCreateOrUpdateOperationOptions ¶
func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions
func (CreateOrUpdateOperationOptions) ToHeaders ¶
func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers
func (CreateOrUpdateOperationOptions) ToOData ¶
func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query
func (CreateOrUpdateOperationOptions) ToQuery ¶
func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams
type DeleteOperationResponse ¶
type DestinationPortBehavior ¶
type DestinationPortBehavior string
const ( DestinationPortBehaviorListenIfAvailable DestinationPortBehavior = "ListenIfAvailable" DestinationPortBehaviorNone DestinationPortBehavior = "None" )
func (*DestinationPortBehavior) UnmarshalJSON ¶
func (s *DestinationPortBehavior) UnmarshalJSON(bytes []byte) error
type EndpointType ¶
type EndpointType string
const ( EndpointTypeAzureArcVM EndpointType = "AzureArcVM" EndpointTypeAzureSubnet EndpointType = "AzureSubnet" EndpointTypeAzureVM EndpointType = "AzureVM" EndpointTypeAzureVMSS EndpointType = "AzureVMSS" EndpointTypeAzureVNet EndpointType = "AzureVNet" EndpointTypeExternalAddress EndpointType = "ExternalAddress" EndpointTypeMMAWorkspaceMachine EndpointType = "MMAWorkspaceMachine" EndpointTypeMMAWorkspaceNetwork EndpointType = "MMAWorkspaceNetwork" )
func (*EndpointType) UnmarshalJSON ¶
func (s *EndpointType) UnmarshalJSON(bytes []byte) error
type EvaluationState ¶
type EvaluationState string
const ( EvaluationStateCompleted EvaluationState = "Completed" EvaluationStateInProgress EvaluationState = "InProgress" EvaluationStateNotStarted EvaluationState = "NotStarted" )
func (*EvaluationState) UnmarshalJSON ¶
func (s *EvaluationState) UnmarshalJSON(bytes []byte) error
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ConnectionMonitorResult }
type HTTPConfigurationMethod ¶
type HTTPConfigurationMethod string
const ( HTTPConfigurationMethodGet HTTPConfigurationMethod = "Get" HTTPConfigurationMethodPost HTTPConfigurationMethod = "Post" )
func (*HTTPConfigurationMethod) UnmarshalJSON ¶
func (s *HTTPConfigurationMethod) UnmarshalJSON(bytes []byte) error
type HTTPHeader ¶
type HopLink ¶
type HopLink struct { Context *map[string]string `json:"context,omitempty"` Issues *[]ConnectivityIssue `json:"issues,omitempty"` LinkType *string `json:"linkType,omitempty"` NextHopId *string `json:"nextHopId,omitempty"` Properties *HopLinkProperties `json:"properties,omitempty"` ResourceId *string `json:"resourceId,omitempty"` }
type HopLinkProperties ¶
type IssueType ¶
type IssueType string
const ( IssueTypeAgentStopped IssueType = "AgentStopped" IssueTypeDnsResolution IssueType = "DnsResolution" IssueTypeGuestFirewall IssueType = "GuestFirewall" IssueTypeNetworkSecurityRule IssueType = "NetworkSecurityRule" IssueTypePlatform IssueType = "Platform" IssueTypePortThrottled IssueType = "PortThrottled" IssueTypeSocketBind IssueType = "SocketBind" IssueTypeUnknown IssueType = "Unknown" IssueTypeUserDefinedRoute IssueType = "UserDefinedRoute" )
func (*IssueType) UnmarshalJSON ¶
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ConnectionMonitorListResult }
type NetworkWatcherId ¶
type NetworkWatcherId struct { SubscriptionId string ResourceGroupName string NetworkWatcherName string }
NetworkWatcherId is a struct representing the Resource ID for a Network Watcher
func NewNetworkWatcherID ¶
func NewNetworkWatcherID(subscriptionId string, resourceGroupName string, networkWatcherName string) NetworkWatcherId
NewNetworkWatcherID returns a new NetworkWatcherId struct
func ParseNetworkWatcherID ¶
func ParseNetworkWatcherID(input string) (*NetworkWatcherId, error)
ParseNetworkWatcherID parses 'input' into a NetworkWatcherId
func ParseNetworkWatcherIDInsensitively ¶
func ParseNetworkWatcherIDInsensitively(input string) (*NetworkWatcherId, error)
ParseNetworkWatcherIDInsensitively parses 'input' case-insensitively into a NetworkWatcherId note: this method should only be used for API response data and not user input
func (NetworkWatcherId) ID ¶
func (id NetworkWatcherId) ID() string
ID returns the formatted Network Watcher ID
func (NetworkWatcherId) Segments ¶
func (id NetworkWatcherId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Network Watcher ID
func (NetworkWatcherId) String ¶
func (id NetworkWatcherId) String() string
String returns a human-readable description of this Network Watcher ID
type OutputType ¶
type OutputType string
const (
OutputTypeWorkspace OutputType = "Workspace"
)
func (*OutputType) UnmarshalJSON ¶
func (s *OutputType) UnmarshalJSON(bytes []byte) error
type PreferredIPVersion ¶
type PreferredIPVersion string
const ( PreferredIPVersionIPvFour PreferredIPVersion = "IPv4" PreferredIPVersionIPvSix PreferredIPVersion = "IPv6" )
func (*PreferredIPVersion) UnmarshalJSON ¶
func (s *PreferredIPVersion) UnmarshalJSON(bytes []byte) error
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type QueryOperationResponse ¶
type StartOperationResponse ¶
type StopOperationResponse ¶
type TagsObject ¶
type UpdateTagsOperationResponse ¶
type UpdateTagsOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ConnectionMonitorResult }
Source Files ¶
- client.go
- constants.go
- id_connectionmonitor.go
- id_networkwatcher.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- method_query.go
- method_start.go
- method_stop.go
- method_updatetags.go
- model_connectionmonitor.go
- model_connectionmonitordestination.go
- model_connectionmonitorendpoint.go
- model_connectionmonitorendpointfilter.go
- model_connectionmonitorendpointfilteritem.go
- model_connectionmonitorendpointscope.go
- model_connectionmonitorendpointscopeitem.go
- model_connectionmonitorhttpconfiguration.go
- model_connectionmonitoricmpconfiguration.go
- model_connectionmonitorlistresult.go
- model_connectionmonitoroutput.go
- model_connectionmonitorparameters.go
- model_connectionmonitorqueryresult.go
- model_connectionmonitorresult.go
- model_connectionmonitorresultproperties.go
- model_connectionmonitorsource.go
- model_connectionmonitorsuccessthreshold.go
- model_connectionmonitortcpconfiguration.go
- model_connectionmonitortestconfiguration.go
- model_connectionmonitortestgroup.go
- model_connectionmonitorworkspacesettings.go
- model_connectionstatesnapshot.go
- model_connectivityhop.go
- model_connectivityissue.go
- model_hoplink.go
- model_hoplinkproperties.go
- model_httpheader.go
- model_tagsobject.go
- version.go