servicemap

package
v29.0.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package servicemap implements the Azure ARM Servicemap service API version 2015-11-01-preview.

Service Map API Reference

Index

Constants

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

type Acceptor struct {
	*AcceptorProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Kind - Possible values include: 'KindRelationship', 'KindRelconnection', 'KindRelacceptor'
	Kind KindBasicRelationship `json:"kind,omitempty"`
}

Acceptor a process accepting on a port.

func (Acceptor) AsAcceptor

func (a Acceptor) AsAcceptor() (*Acceptor, bool)

AsAcceptor is the BasicRelationship implementation for Acceptor.

func (Acceptor) AsBasicRelationship

func (a Acceptor) AsBasicRelationship() (BasicRelationship, bool)

AsBasicRelationship is the BasicRelationship implementation for Acceptor.

func (Acceptor) AsConnection

func (a Acceptor) AsConnection() (*Connection, bool)

AsConnection is the BasicRelationship implementation for Acceptor.

func (Acceptor) AsRelationship

func (a Acceptor) AsRelationship() (*Relationship, bool)

AsRelationship is the BasicRelationship implementation for Acceptor.

func (Acceptor) MarshalJSON

func (a Acceptor) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Acceptor.

func (*Acceptor) UnmarshalJSON

func (a *Acceptor) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Acceptor struct.

type AcceptorProperties

type AcceptorProperties struct {
	// Source - Port being accepted.
	Source *PortReference `json:"source,omitempty"`
	// Destination - Accepting process.
	Destination *ProcessReference `json:"destination,omitempty"`
	// StartTime - Relationship start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - Relationship end time.
	EndTime *date.Time `json:"endTime,omitempty"`
}

AcceptorProperties properties for an acceptor relationship.

type Accuracy

type Accuracy string

Accuracy enumerates the values for accuracy.

const (
	// Actual ...
	Actual Accuracy = "actual"
	// Estimated ...
	Estimated Accuracy = "estimated"
)

func PossibleAccuracyValues

func PossibleAccuracyValues() []Accuracy

PossibleAccuracyValues returns an array of possible values for the Accuracy const type.

type AgentConfiguration

type AgentConfiguration struct {
	// AgentID - Health Service Agent unique identifier.
	AgentID *string `json:"agentId,omitempty"`
	// DependencyAgentID - Dependency Agent unique identifier.
	DependencyAgentID *string `json:"dependencyAgentId,omitempty"`
	// DependencyAgentVersion - Dependency Agent version number.
	DependencyAgentVersion *string `json:"dependencyAgentVersion,omitempty"`
	// DependencyAgentRevision - Dependency Agent revision number.
	DependencyAgentRevision *string `json:"dependencyAgentRevision,omitempty"`
	// RebootStatus - Specifies whether the machine has been rebooted since the Dependency Agent installation. Possible values include: 'MachineRebootStatusUnknown', 'MachineRebootStatusRebooted', 'MachineRebootStatusNotRebooted'
	RebootStatus MachineRebootStatus `json:"rebootStatus,omitempty"`
	// ClockGranularity - Machine clock granularity in milliseconds.
	ClockGranularity *int32 `json:"clockGranularity,omitempty"`
}

AgentConfiguration describes the configuration of the Dependency Agent installed on a machine.

type AzureCloudServiceConfiguration

type AzureCloudServiceConfiguration struct {
	// Name - Cloud Service name
	Name *string `json:"name,omitempty"`
	// InstanceID - Cloud Service instance identifier
	InstanceID *string `json:"instanceId,omitempty"`
	// Deployment - Cloud Service deployment identifier
	Deployment *string `json:"deployment,omitempty"`
	// RoleName - Cloud Service role name
	RoleName *string `json:"roleName,omitempty"`
	// RoleType - Used to specify type of an Azure Cloud Service role. Possible values include: 'Unknown', 'Worker', 'Web'
	RoleType AzureCloudServiceRoleType `json:"roleType,omitempty"`
}

AzureCloudServiceConfiguration describes an Azure Cloud Service

type AzureCloudServiceRoleType

type AzureCloudServiceRoleType string

AzureCloudServiceRoleType enumerates the values for azure cloud service role type.

const (
	// Unknown ...
	Unknown AzureCloudServiceRoleType = "unknown"
	// Web ...
	Web AzureCloudServiceRoleType = "web"
	// Worker ...
	Worker AzureCloudServiceRoleType = "worker"
)

func PossibleAzureCloudServiceRoleTypeValues

func PossibleAzureCloudServiceRoleTypeValues() []AzureCloudServiceRoleType

PossibleAzureCloudServiceRoleTypeValues returns an array of possible values for the AzureCloudServiceRoleType const type.

type AzureHostingConfiguration

type AzureHostingConfiguration struct {
	// VMID - Virtual Machine ID (unique identifier).
	VMID *string `json:"vmId,omitempty"`
	// Location - Geographical location of the VM.
	Location *string `json:"location,omitempty"`
	// Name - Machine name according to the hosting provider.
	Name *string `json:"name,omitempty"`
	// Size - Size of the VM.
	Size *string `json:"size,omitempty"`
	// UpdateDomain - Update domain of the VM.
	UpdateDomain *string `json:"updateDomain,omitempty"`
	// FaultDomain - Fault domain of the VM.
	FaultDomain *string `json:"faultDomain,omitempty"`
	// SubscriptionID - Subscription ID.
	SubscriptionID *string `json:"subscriptionId,omitempty"`
	// ResourceGroup - Resource group name within the specified subscription.
	ResourceGroup *string `json:"resourceGroup,omitempty"`
	// ResourceID - Unique identifier of the resource.
	ResourceID *string `json:"resourceId,omitempty"`
	// Image - Image of the machine.
	Image *ImageConfiguration `json:"image,omitempty"`
	// CloudService - Contains information about machines hosted as an Azure Cloud Service
	CloudService *AzureCloudServiceConfiguration `json:"cloudService,omitempty"`
	// VMScaleSet - Contains information about machines hosted as an Azure Virtual Machine Scale Set
	VMScaleSet *AzureVMScaleSetConfiguration `json:"vmScaleSet,omitempty"`
	// ServiceFabricCluster - Contains information about machines that belong an Azure Service Fabric Cluster
	ServiceFabricCluster *AzureServiceFabricClusterConfiguration `json:"serviceFabricCluster,omitempty"`
	// Provider - The hosting provider of the VM. Possible values include: 'Azure'
	Provider Provider `json:"provider,omitempty"`
	// Kind - Possible values include: 'KindHostingConfiguration', 'KindProviderazure'
	Kind KindBasicHostingConfiguration `json:"kind,omitempty"`
}

AzureHostingConfiguration provides information about how a machine is hosted in Azure

func (AzureHostingConfiguration) AsAzureHostingConfiguration

func (ahc AzureHostingConfiguration) AsAzureHostingConfiguration() (*AzureHostingConfiguration, bool)

AsAzureHostingConfiguration is the BasicHostingConfiguration implementation for AzureHostingConfiguration.

func (AzureHostingConfiguration) AsBasicHostingConfiguration

func (ahc AzureHostingConfiguration) AsBasicHostingConfiguration() (BasicHostingConfiguration, bool)

AsBasicHostingConfiguration is the BasicHostingConfiguration implementation for AzureHostingConfiguration.

func (AzureHostingConfiguration) AsHostingConfiguration

func (ahc AzureHostingConfiguration) AsHostingConfiguration() (*HostingConfiguration, bool)

AsHostingConfiguration is the BasicHostingConfiguration implementation for AzureHostingConfiguration.

func (AzureHostingConfiguration) MarshalJSON

func (ahc AzureHostingConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureHostingConfiguration.

type AzureProcessHostingConfiguration

type AzureProcessHostingConfiguration struct {
	// CloudService - Contains information about the cloud service the process belongs to
	CloudService *AzureCloudServiceConfiguration `json:"cloudService,omitempty"`
	// Provider - The hosting provider of the VM. Possible values include: 'Provider1Azure'
	Provider Provider1 `json:"provider,omitempty"`
	// Kind - Possible values include: 'KindBasicProcessHostingConfigurationKindProcessHostingConfiguration', 'KindBasicProcessHostingConfigurationKindProviderazure'
	Kind KindBasicProcessHostingConfiguration `json:"kind,omitempty"`
}

AzureProcessHostingConfiguration describes the hosting configuration of a process when hosted on azure

func (AzureProcessHostingConfiguration) AsAzureProcessHostingConfiguration

func (aphc AzureProcessHostingConfiguration) AsAzureProcessHostingConfiguration() (*AzureProcessHostingConfiguration, bool)

AsAzureProcessHostingConfiguration is the BasicProcessHostingConfiguration implementation for AzureProcessHostingConfiguration.

func (AzureProcessHostingConfiguration) AsBasicProcessHostingConfiguration

func (aphc AzureProcessHostingConfiguration) AsBasicProcessHostingConfiguration() (BasicProcessHostingConfiguration, bool)

AsBasicProcessHostingConfiguration is the BasicProcessHostingConfiguration implementation for AzureProcessHostingConfiguration.

func (AzureProcessHostingConfiguration) AsProcessHostingConfiguration

func (aphc AzureProcessHostingConfiguration) AsProcessHostingConfiguration() (*ProcessHostingConfiguration, bool)

AsProcessHostingConfiguration is the BasicProcessHostingConfiguration implementation for AzureProcessHostingConfiguration.

func (AzureProcessHostingConfiguration) MarshalJSON

func (aphc AzureProcessHostingConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureProcessHostingConfiguration.

type AzureServiceFabricClusterConfiguration

type AzureServiceFabricClusterConfiguration struct {
	// Name - Service Fabric cluster name.
	Name *string `json:"name,omitempty"`
	// ClusterID - Service Fabric cluster identifier.
	ClusterID *string `json:"clusterId,omitempty"`
}

AzureServiceFabricClusterConfiguration describes an Azure Service Fabric Cluster

type AzureVMScaleSetConfiguration

type AzureVMScaleSetConfiguration struct {
	// Name - Virtual Machine Scale Set name
	Name *string `json:"name,omitempty"`
	// InstanceID - Virtual Machine Scale Set instance identifier
	InstanceID *string `json:"instanceId,omitempty"`
	// Deployment - Virtual Machine Scale Set deployment identifier
	Deployment *string `json:"deployment,omitempty"`
	// ResourceID - Unique identifier of the resource.
	ResourceID *string `json:"resourceId,omitempty"`
}

AzureVMScaleSetConfiguration describes an Azure Virtual Machine Scale Set

type BaseClient

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

BaseClient is the base client for Servicemap.

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.

type BasicCoreResource

type BasicCoreResource interface {
	AsMachine() (*Machine, bool)
	AsProcess() (*Process, bool)
	AsPort() (*Port, bool)
	AsClientGroup() (*ClientGroup, bool)
	AsMachineGroup() (*MachineGroup, bool)
	AsCoreResource() (*CoreResource, bool)
}

BasicCoreResource marker resource for the core Service Map resources

type BasicHostingConfiguration

type BasicHostingConfiguration interface {
	AsAzureHostingConfiguration() (*AzureHostingConfiguration, bool)
	AsHostingConfiguration() (*HostingConfiguration, bool)
}

BasicHostingConfiguration describes the hosting configuration of a machine.

type BasicMapRequest

type BasicMapRequest interface {
	AsSingleMachineDependencyMapRequest() (*SingleMachineDependencyMapRequest, bool)
	AsMultipleMachinesMapRequest() (*MultipleMachinesMapRequest, bool)
	AsBasicMultipleMachinesMapRequest() (BasicMultipleMachinesMapRequest, bool)
	AsMachineListMapRequest() (*MachineListMapRequest, bool)
	AsMachineGroupMapRequest() (*MachineGroupMapRequest, bool)
	AsMapRequest() (*MapRequest, bool)
}

BasicMapRequest specifies the contents of request to generate a map.

type BasicMultipleMachinesMapRequest

type BasicMultipleMachinesMapRequest interface {
	AsMachineListMapRequest() (*MachineListMapRequest, bool)
	AsMachineGroupMapRequest() (*MachineGroupMapRequest, bool)
	AsMultipleMachinesMapRequest() (*MultipleMachinesMapRequest, bool)
}

BasicMultipleMachinesMapRequest provides a base class for describing map requests for a collection of machines

type BasicProcessHostingConfiguration

type BasicProcessHostingConfiguration interface {
	AsAzureProcessHostingConfiguration() (*AzureProcessHostingConfiguration, bool)
	AsProcessHostingConfiguration() (*ProcessHostingConfiguration, bool)
}

BasicProcessHostingConfiguration describes the hosting configuration of a process.

type BasicRelationship

type BasicRelationship interface {
	AsConnection() (*Connection, bool)
	AsAcceptor() (*Acceptor, bool)
	AsRelationship() (*Relationship, bool)
}

BasicRelationship a typed relationship between two entities.

type BasicResourceReference

type BasicResourceReference interface {
	AsMachineReference() (*MachineReference, bool)
	AsProcessReference() (*ProcessReference, bool)
	AsPortReference() (*PortReference, bool)
	AsMachineReferenceWithHints() (*MachineReferenceWithHints, bool)
	AsClientGroupReference() (*ClientGroupReference, bool)
	AsResourceReference() (*ResourceReference, bool)
}

BasicResourceReference represents a reference to another resource.

type Bitness

type Bitness string

Bitness enumerates the values for bitness.

const (
	// SixFourbit ...
	SixFourbit Bitness = "64bit"
	// ThreeTwobit ...
	ThreeTwobit Bitness = "32bit"
)

func PossibleBitnessValues

func PossibleBitnessValues() []Bitness

PossibleBitnessValues returns an array of possible values for the Bitness const type.

type ClientGroup

type ClientGroup struct {
	autorest.Response `json:"-"`
	// ClientGroupProperties - Resource properties.
	*ClientGroupProperties `json:"properties,omitempty"`
	// Etag - Resource ETAG.
	Etag *string `json:"etag,omitempty"`
	// ID - READ-ONLY; Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Kind - Possible values include: 'KindCoreResource', 'KindMachine', 'KindProcess', 'KindPort', 'KindClientGroup', 'KindMachineGroup'
	Kind KindBasicCoreResource `json:"kind,omitempty"`
}

ClientGroup represents a collection of clients of a resource. A client group can represent the clients of a port, process, or a machine.

func (ClientGroup) AsBasicCoreResource

func (cg ClientGroup) AsBasicCoreResource() (BasicCoreResource, bool)

AsBasicCoreResource is the BasicCoreResource implementation for ClientGroup.

func (ClientGroup) AsClientGroup

func (cg ClientGroup) AsClientGroup() (*ClientGroup, bool)

AsClientGroup is the BasicCoreResource implementation for ClientGroup.

func (ClientGroup) AsCoreResource

func (cg ClientGroup) AsCoreResource() (*CoreResource, bool)

AsCoreResource is the BasicCoreResource implementation for ClientGroup.

func (ClientGroup) AsMachine

func (cg ClientGroup) AsMachine() (*Machine, bool)

AsMachine is the BasicCoreResource implementation for ClientGroup.

func (ClientGroup) AsMachineGroup

func (cg ClientGroup) AsMachineGroup() (*MachineGroup, bool)

AsMachineGroup is the BasicCoreResource implementation for ClientGroup.

func (ClientGroup) AsPort

func (cg ClientGroup) AsPort() (*Port, bool)

AsPort is the BasicCoreResource implementation for ClientGroup.

func (ClientGroup) AsProcess

func (cg ClientGroup) AsProcess() (*Process, bool)

AsProcess is the BasicCoreResource implementation for ClientGroup.

func (ClientGroup) MarshalJSON

func (cg ClientGroup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ClientGroup.

func (*ClientGroup) UnmarshalJSON

func (cg *ClientGroup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ClientGroup struct.

type ClientGroupMember

type ClientGroupMember struct {
	// ClientGroupMemberProperties - Resource properties.
	*ClientGroupMemberProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
}

ClientGroupMember represents a member of a client group

func (ClientGroupMember) MarshalJSON

func (cgm ClientGroupMember) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ClientGroupMember.

func (*ClientGroupMember) UnmarshalJSON

func (cgm *ClientGroupMember) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ClientGroupMember struct.

type ClientGroupMemberProperties

type ClientGroupMemberProperties struct {
	// IPAddress - IP address.
	IPAddress *string `json:"ipAddress,omitempty"`
	// Port - Port into which this client connected
	Port *PortReference `json:"port,omitempty"`
	// Processes - Processes accepting on the above port that received connections from this client.
	Processes *[]ProcessReference `json:"processes,omitempty"`
}

ClientGroupMemberProperties resource properties.

type ClientGroupMembersCollection

type ClientGroupMembersCollection struct {
	autorest.Response `json:"-"`
	// Value - Collection of ClientGroupMember resources.
	Value *[]ClientGroupMember `json:"value,omitempty"`
	// NextLink - The URL to the next set of resources.
	NextLink *string `json:"nextLink,omitempty"`
}

ClientGroupMembersCollection collection of ClientGroupMember resources.

func (ClientGroupMembersCollection) IsEmpty

func (cgmc ClientGroupMembersCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ClientGroupMembersCollectionIterator

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

ClientGroupMembersCollectionIterator provides access to a complete listing of ClientGroupMember values.

func NewClientGroupMembersCollectionIterator

func NewClientGroupMembersCollectionIterator(page ClientGroupMembersCollectionPage) ClientGroupMembersCollectionIterator

Creates a new instance of the ClientGroupMembersCollectionIterator type.

func (*ClientGroupMembersCollectionIterator) Next

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 (*ClientGroupMembersCollectionIterator) NextWithContext

func (iter *ClientGroupMembersCollectionIterator) 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 (ClientGroupMembersCollectionIterator) NotDone

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

func (ClientGroupMembersCollectionIterator) Response

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

func (ClientGroupMembersCollectionIterator) Value

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

type ClientGroupMembersCollectionPage

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

ClientGroupMembersCollectionPage contains a page of ClientGroupMember values.

func NewClientGroupMembersCollectionPage

Creates a new instance of the ClientGroupMembersCollectionPage type.

func (*ClientGroupMembersCollectionPage) Next

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 (*ClientGroupMembersCollectionPage) NextWithContext

func (page *ClientGroupMembersCollectionPage) 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 (ClientGroupMembersCollectionPage) NotDone

func (page ClientGroupMembersCollectionPage) NotDone() bool

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

func (ClientGroupMembersCollectionPage) Response

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

func (ClientGroupMembersCollectionPage) Values

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

type ClientGroupMembersCount

type ClientGroupMembersCount struct {
	autorest.Response `json:"-"`
	// StartTime - Membership interval start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - Membership interval start time.
	EndTime *date.Time `json:"endTime,omitempty"`
	// GroupID - Client Group URI.
	GroupID *string `json:"groupId,omitempty"`
	// Count - Number of members in the client group. Use this value together with the value of “`accuracy“`. If accuracy is `exact` then the value represents the actual number of members in the cloud. When accuracy is `estimated`, the actual number of members is larger than the value of “`count“`.
	Count *int32 `json:"count,omitempty"`
	// Accuracy - Accuracy of the reported count. Possible values include: 'Actual', 'Estimated'
	Accuracy Accuracy `json:"accuracy,omitempty"`
}

ClientGroupMembersCount specifies the number of members in a client group.

type ClientGroupProperties

type ClientGroupProperties struct {
	// ClientsOf - Reference to the resource whose clients are represented by this group.
	ClientsOf BasicResourceReference `json:"clientsOf,omitempty"`
}

ClientGroupProperties resource properties.

func (*ClientGroupProperties) UnmarshalJSON

func (cg *ClientGroupProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ClientGroupProperties struct.

type ClientGroupReference

type ClientGroupReference struct {
	// ID - Resource URI.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; Resource type qualifier.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Kind - Possible values include: 'KindResourceReference', 'KindRefmachine', 'KindRefprocess', 'KindRefport', 'KindRefmachinewithhints', 'KindRefclientgroup'
	Kind Kind `json:"kind,omitempty"`
}

ClientGroupReference reference to a client group.

func (ClientGroupReference) AsBasicResourceReference

func (cgr ClientGroupReference) AsBasicResourceReference() (BasicResourceReference, bool)

AsBasicResourceReference is the BasicResourceReference implementation for ClientGroupReference.

func (ClientGroupReference) AsClientGroupReference

func (cgr ClientGroupReference) AsClientGroupReference() (*ClientGroupReference, bool)

AsClientGroupReference is the BasicResourceReference implementation for ClientGroupReference.

func (ClientGroupReference) AsMachineReference

func (cgr ClientGroupReference) AsMachineReference() (*MachineReference, bool)

AsMachineReference is the BasicResourceReference implementation for ClientGroupReference.

func (ClientGroupReference) AsMachineReferenceWithHints

func (cgr ClientGroupReference) AsMachineReferenceWithHints() (*MachineReferenceWithHints, bool)

AsMachineReferenceWithHints is the BasicResourceReference implementation for ClientGroupReference.

func (ClientGroupReference) AsPortReference

func (cgr ClientGroupReference) AsPortReference() (*PortReference, bool)

AsPortReference is the BasicResourceReference implementation for ClientGroupReference.

func (ClientGroupReference) AsProcessReference

func (cgr ClientGroupReference) AsProcessReference() (*ProcessReference, bool)

AsProcessReference is the BasicResourceReference implementation for ClientGroupReference.

func (ClientGroupReference) AsResourceReference

func (cgr ClientGroupReference) AsResourceReference() (*ResourceReference, bool)

AsResourceReference is the BasicResourceReference implementation for ClientGroupReference.

func (ClientGroupReference) MarshalJSON

func (cgr ClientGroupReference) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ClientGroupReference.

type ClientGroupsClient

type ClientGroupsClient struct {
	BaseClient
}

ClientGroupsClient is the service Map API Reference

func NewClientGroupsClient

func NewClientGroupsClient(subscriptionID string) ClientGroupsClient

NewClientGroupsClient creates an instance of the ClientGroupsClient client.

func NewClientGroupsClientWithBaseURI

func NewClientGroupsClientWithBaseURI(baseURI string, subscriptionID string) ClientGroupsClient

NewClientGroupsClientWithBaseURI creates an instance of the ClientGroupsClient client.

func (ClientGroupsClient) Get

func (client ClientGroupsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, clientGroupName string, startTime *date.Time, endTime *date.Time) (result ClientGroup, err error)

Get retrieves the specified client group Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. clientGroupName - client Group resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow

func (ClientGroupsClient) GetMembersCount

func (client ClientGroupsClient) GetMembersCount(ctx context.Context, resourceGroupName string, workspaceName string, clientGroupName string, startTime *date.Time, endTime *date.Time) (result ClientGroupMembersCount, err error)

GetMembersCount returns the approximate number of members in the client group. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. clientGroupName - client Group resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow

func (ClientGroupsClient) GetMembersCountPreparer

func (client ClientGroupsClient) GetMembersCountPreparer(ctx context.Context, resourceGroupName string, workspaceName string, clientGroupName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)

GetMembersCountPreparer prepares the GetMembersCount request.

func (ClientGroupsClient) GetMembersCountResponder

func (client ClientGroupsClient) GetMembersCountResponder(resp *http.Response) (result ClientGroupMembersCount, err error)

GetMembersCountResponder handles the response to the GetMembersCount request. The method always closes the http.Response Body.

func (ClientGroupsClient) GetMembersCountSender

func (client ClientGroupsClient) GetMembersCountSender(req *http.Request) (*http.Response, error)

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

func (ClientGroupsClient) GetPreparer

func (client ClientGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, clientGroupName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)

GetPreparer prepares the Get request.

func (ClientGroupsClient) GetResponder

func (client ClientGroupsClient) GetResponder(resp *http.Response) (result ClientGroup, err error)

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

func (ClientGroupsClient) GetSender

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

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

func (ClientGroupsClient) ListMembers

func (client ClientGroupsClient) ListMembers(ctx context.Context, resourceGroupName string, workspaceName string, clientGroupName string, startTime *date.Time, endTime *date.Time, top *int32) (result ClientGroupMembersCollectionPage, err error)

ListMembers returns the members of the client group during the specified time interval. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. clientGroupName - client Group resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow top - page size to use. When not specified, the default page size is 100 records.

func (ClientGroupsClient) ListMembersComplete

func (client ClientGroupsClient) ListMembersComplete(ctx context.Context, resourceGroupName string, workspaceName string, clientGroupName string, startTime *date.Time, endTime *date.Time, top *int32) (result ClientGroupMembersCollectionIterator, err error)

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

func (ClientGroupsClient) ListMembersPreparer

func (client ClientGroupsClient) ListMembersPreparer(ctx context.Context, resourceGroupName string, workspaceName string, clientGroupName string, startTime *date.Time, endTime *date.Time, top *int32) (*http.Request, error)

ListMembersPreparer prepares the ListMembers request.

func (ClientGroupsClient) ListMembersResponder

func (client ClientGroupsClient) ListMembersResponder(resp *http.Response) (result ClientGroupMembersCollection, err error)

ListMembersResponder handles the response to the ListMembers request. The method always closes the http.Response Body.

func (ClientGroupsClient) ListMembersSender

func (client ClientGroupsClient) ListMembersSender(req *http.Request) (*http.Response, error)

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

type Connection

type Connection struct {
	*ConnectionProperties `json:"properties,omitempty"`
	// Kind - Possible values include: 'KindRelationship', 'KindRelconnection', 'KindRelacceptor'
	Kind KindBasicRelationship `json:"kind,omitempty"`
	// ID - READ-ONLY; Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
}

Connection a network connection.

func (Connection) AsAcceptor

func (c Connection) AsAcceptor() (*Acceptor, bool)

AsAcceptor is the BasicRelationship implementation for Connection.

func (Connection) AsBasicRelationship

func (c Connection) AsBasicRelationship() (BasicRelationship, bool)

AsBasicRelationship is the BasicRelationship implementation for Connection.

func (Connection) AsConnection

func (c Connection) AsConnection() (*Connection, bool)

AsConnection is the BasicRelationship implementation for Connection.

func (Connection) AsRelationship

func (c Connection) AsRelationship() (*Relationship, bool)

AsRelationship is the BasicRelationship implementation for Connection.

func (Connection) MarshalJSON

func (c Connection) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Connection.

func (*Connection) UnmarshalJSON

func (c *Connection) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Connection struct.

type ConnectionCollection

type ConnectionCollection struct {
	autorest.Response `json:"-"`
	// Value - Collection of Connection resources.
	Value *[]Connection `json:"value,omitempty"`
	// NextLink - The URL to the next set of resources.
	NextLink *string `json:"nextLink,omitempty"`
}

ConnectionCollection collection of Connection resources.

func (ConnectionCollection) IsEmpty

func (cc ConnectionCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ConnectionCollectionIterator

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

ConnectionCollectionIterator provides access to a complete listing of Connection values.

func NewConnectionCollectionIterator

func NewConnectionCollectionIterator(page ConnectionCollectionPage) ConnectionCollectionIterator

Creates a new instance of the ConnectionCollectionIterator type.

func (*ConnectionCollectionIterator) Next

func (iter *ConnectionCollectionIterator) 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 (*ConnectionCollectionIterator) NextWithContext

func (iter *ConnectionCollectionIterator) 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 (ConnectionCollectionIterator) NotDone

func (iter ConnectionCollectionIterator) NotDone() bool

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

func (ConnectionCollectionIterator) Response

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

func (ConnectionCollectionIterator) Value

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

type ConnectionCollectionPage

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

ConnectionCollectionPage contains a page of Connection values.

func NewConnectionCollectionPage

func NewConnectionCollectionPage(getNextPage func(context.Context, ConnectionCollection) (ConnectionCollection, error)) ConnectionCollectionPage

Creates a new instance of the ConnectionCollectionPage type.

func (*ConnectionCollectionPage) Next

func (page *ConnectionCollectionPage) 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 (*ConnectionCollectionPage) NextWithContext

func (page *ConnectionCollectionPage) 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 (ConnectionCollectionPage) NotDone

func (page ConnectionCollectionPage) NotDone() bool

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

func (ConnectionCollectionPage) Response

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

func (ConnectionCollectionPage) Values

func (page ConnectionCollectionPage) Values() []Connection

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

type ConnectionFailureState

type ConnectionFailureState string

ConnectionFailureState enumerates the values for connection failure state.

const (
	// Failed ...
	Failed ConnectionFailureState = "failed"
	// Mixed ...
	Mixed ConnectionFailureState = "mixed"
	// Ok ...
	Ok ConnectionFailureState = "ok"
)

func PossibleConnectionFailureStateValues

func PossibleConnectionFailureStateValues() []ConnectionFailureState

PossibleConnectionFailureStateValues returns an array of possible values for the ConnectionFailureState const type.

type ConnectionProperties

type ConnectionProperties struct {
	// ServerPort - Reference to the server port via which this connection has been established.
	ServerPort *PortReference `json:"serverPort,omitempty"`
	// FailureState - Specifies whether there are only successful, failed or a mixture of both connections represented by this resource. Possible values include: 'Ok', 'Failed', 'Mixed'
	FailureState ConnectionFailureState `json:"failureState,omitempty"`
	// Source - Source resource of the relationship.
	Source BasicResourceReference `json:"source,omitempty"`
	// Destination - Destination resource of the relationship.
	Destination BasicResourceReference `json:"destination,omitempty"`
	// StartTime - Relationship start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - Relationship end time.
	EndTime *date.Time `json:"endTime,omitempty"`
}

ConnectionProperties properties for a connection resource.

func (*ConnectionProperties) UnmarshalJSON

func (cp *ConnectionProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ConnectionProperties struct.

type CoreResource

type CoreResource struct {
	// Etag - Resource ETAG.
	Etag *string `json:"etag,omitempty"`
	// Kind - Possible values include: 'KindCoreResource', 'KindMachine', 'KindProcess', 'KindPort', 'KindClientGroup', 'KindMachineGroup'
	Kind KindBasicCoreResource `json:"kind,omitempty"`
	// ID - READ-ONLY; Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
}

CoreResource marker resource for the core Service Map resources

func (CoreResource) AsBasicCoreResource

func (cr CoreResource) AsBasicCoreResource() (BasicCoreResource, bool)

AsBasicCoreResource is the BasicCoreResource implementation for CoreResource.

func (CoreResource) AsClientGroup

func (cr CoreResource) AsClientGroup() (*ClientGroup, bool)

AsClientGroup is the BasicCoreResource implementation for CoreResource.

func (CoreResource) AsCoreResource

func (cr CoreResource) AsCoreResource() (*CoreResource, bool)

AsCoreResource is the BasicCoreResource implementation for CoreResource.

func (CoreResource) AsMachine

func (cr CoreResource) AsMachine() (*Machine, bool)

AsMachine is the BasicCoreResource implementation for CoreResource.

func (CoreResource) AsMachineGroup

func (cr CoreResource) AsMachineGroup() (*MachineGroup, bool)

AsMachineGroup is the BasicCoreResource implementation for CoreResource.

func (CoreResource) AsPort

func (cr CoreResource) AsPort() (*Port, bool)

AsPort is the BasicCoreResource implementation for CoreResource.

func (CoreResource) AsProcess

func (cr CoreResource) AsProcess() (*Process, bool)

AsProcess is the BasicCoreResource implementation for CoreResource.

func (CoreResource) MarshalJSON

func (cr CoreResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CoreResource.

type Error

type Error struct {
	// Code - Error code identifying the specific error.
	Code *string `json:"code,omitempty"`
	// Message - Error message in the caller's locale.
	Message *string `json:"message,omitempty"`
}

Error error details.

type ErrorResponse

type ErrorResponse struct {
	// Error - Error information.
	Error *Error `json:"error,omitempty"`
}

ErrorResponse an error response from the API.

type HostingConfiguration

type HostingConfiguration struct {
	// Provider - The hosting provider of the VM. Possible values include: 'Azure'
	Provider Provider `json:"provider,omitempty"`
	// Kind - Possible values include: 'KindHostingConfiguration', 'KindProviderazure'
	Kind KindBasicHostingConfiguration `json:"kind,omitempty"`
}

HostingConfiguration describes the hosting configuration of a machine.

func (HostingConfiguration) AsAzureHostingConfiguration

func (hc HostingConfiguration) AsAzureHostingConfiguration() (*AzureHostingConfiguration, bool)

AsAzureHostingConfiguration is the BasicHostingConfiguration implementation for HostingConfiguration.

func (HostingConfiguration) AsBasicHostingConfiguration

func (hc HostingConfiguration) AsBasicHostingConfiguration() (BasicHostingConfiguration, bool)

AsBasicHostingConfiguration is the BasicHostingConfiguration implementation for HostingConfiguration.

func (HostingConfiguration) AsHostingConfiguration

func (hc HostingConfiguration) AsHostingConfiguration() (*HostingConfiguration, bool)

AsHostingConfiguration is the BasicHostingConfiguration implementation for HostingConfiguration.

func (HostingConfiguration) MarshalJSON

func (hc HostingConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for HostingConfiguration.

type HypervisorConfiguration

type HypervisorConfiguration struct {
	// HypervisorType - Specifies the virtualization technology used by the hypervisor (hyperv, vmware, etc.). Possible values include: 'HypervisorTypeUnknown', 'HypervisorTypeHyperv'
	HypervisorType HypervisorType `json:"hypervisorType,omitempty"`
	// NativeHostMachineID - The unique identifier of the hypervisor machine as reported by the underlying virtualization system.
	NativeHostMachineID *string `json:"nativeHostMachineId,omitempty"`
}

HypervisorConfiguration describes the hypervisor configuration of a machine.

type HypervisorType

type HypervisorType string

HypervisorType enumerates the values for hypervisor type.

const (
	// HypervisorTypeHyperv ...
	HypervisorTypeHyperv HypervisorType = "hyperv"
	// HypervisorTypeUnknown ...
	HypervisorTypeUnknown HypervisorType = "unknown"
)

func PossibleHypervisorTypeValues

func PossibleHypervisorTypeValues() []HypervisorType

PossibleHypervisorTypeValues returns an array of possible values for the HypervisorType const type.

type ImageConfiguration

type ImageConfiguration struct {
	// Publisher - Publisher of the VM image.
	Publisher *string `json:"publisher,omitempty"`
	// Offering - Offering of the VM image.
	Offering *string `json:"offering,omitempty"`
	// Sku - SKU of the VM image.
	Sku *string `json:"sku,omitempty"`
	// Version - Version of the VM image.
	Version *string `json:"version,omitempty"`
}

ImageConfiguration describes the VM image of a machine.

type Ipv4NetworkInterface

type Ipv4NetworkInterface struct {
	// IPAddress - IPv4 address.
	IPAddress *string `json:"ipAddress,omitempty"`
	// SubnetMask - IPv4 subnet mask.
	SubnetMask *string `json:"subnetMask,omitempty"`
}

Ipv4NetworkInterface describes an IPv4 network interface.

type Ipv6NetworkInterface

type Ipv6NetworkInterface struct {
	// IPAddress - IPv6 address.
	IPAddress *string `json:"ipAddress,omitempty"`
}

Ipv6NetworkInterface describes an IPv6 network interface.

type Kind

type Kind string

Kind enumerates the values for kind.

const (
	// KindRefclientgroup ...
	KindRefclientgroup Kind = "ref:clientgroup"
	// KindRefmachine ...
	KindRefmachine Kind = "ref:machine"
	// KindRefmachinewithhints ...
	KindRefmachinewithhints Kind = "ref:machinewithhints"
	// KindRefport ...
	KindRefport Kind = "ref:port"
	// KindRefprocess ...
	KindRefprocess Kind = "ref:process"
	// KindResourceReference ...
	KindResourceReference Kind = "ResourceReference"
)

func PossibleKindValues

func PossibleKindValues() []Kind

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

type KindBasicCoreResource

type KindBasicCoreResource string

KindBasicCoreResource enumerates the values for kind basic core resource.

const (
	// KindClientGroup ...
	KindClientGroup KindBasicCoreResource = "clientGroup"
	// KindCoreResource ...
	KindCoreResource KindBasicCoreResource = "CoreResource"
	// KindMachine ...
	KindMachine KindBasicCoreResource = "machine"
	// KindMachineGroup ...
	KindMachineGroup KindBasicCoreResource = "machineGroup"
	// KindPort ...
	KindPort KindBasicCoreResource = "port"
	// KindProcess ...
	KindProcess KindBasicCoreResource = "process"
)

func PossibleKindBasicCoreResourceValues

func PossibleKindBasicCoreResourceValues() []KindBasicCoreResource

PossibleKindBasicCoreResourceValues returns an array of possible values for the KindBasicCoreResource const type.

type KindBasicHostingConfiguration

type KindBasicHostingConfiguration string

KindBasicHostingConfiguration enumerates the values for kind basic hosting configuration.

const (
	// KindHostingConfiguration ...
	KindHostingConfiguration KindBasicHostingConfiguration = "HostingConfiguration"
	// KindProviderazure ...
	KindProviderazure KindBasicHostingConfiguration = "provider:azure"
)

func PossibleKindBasicHostingConfigurationValues

func PossibleKindBasicHostingConfigurationValues() []KindBasicHostingConfiguration

PossibleKindBasicHostingConfigurationValues returns an array of possible values for the KindBasicHostingConfiguration const type.

type KindBasicMapRequest

type KindBasicMapRequest string

KindBasicMapRequest enumerates the values for kind basic map request.

const (
	// KindMapmachineGroupDependency ...
	KindMapmachineGroupDependency KindBasicMapRequest = "map:machine-group-dependency"
	// KindMapmachineListDependency ...
	KindMapmachineListDependency KindBasicMapRequest = "map:machine-list-dependency"
	// KindMapRequest ...
	KindMapRequest KindBasicMapRequest = "MapRequest"
	// KindMapsingleMachineDependency ...
	KindMapsingleMachineDependency KindBasicMapRequest = "map:single-machine-dependency"
	// KindMultipleMachinesMapRequest ...
	KindMultipleMachinesMapRequest KindBasicMapRequest = "MultipleMachinesMapRequest"
)

func PossibleKindBasicMapRequestValues

func PossibleKindBasicMapRequestValues() []KindBasicMapRequest

PossibleKindBasicMapRequestValues returns an array of possible values for the KindBasicMapRequest const type.

type KindBasicProcessHostingConfiguration

type KindBasicProcessHostingConfiguration string

KindBasicProcessHostingConfiguration enumerates the values for kind basic process hosting configuration.

const (
	// KindBasicProcessHostingConfigurationKindProcessHostingConfiguration ...
	KindBasicProcessHostingConfigurationKindProcessHostingConfiguration KindBasicProcessHostingConfiguration = "ProcessHostingConfiguration"
	// KindBasicProcessHostingConfigurationKindProviderazure ...
	KindBasicProcessHostingConfigurationKindProviderazure KindBasicProcessHostingConfiguration = "provider:azure"
)

func PossibleKindBasicProcessHostingConfigurationValues

func PossibleKindBasicProcessHostingConfigurationValues() []KindBasicProcessHostingConfiguration

PossibleKindBasicProcessHostingConfigurationValues returns an array of possible values for the KindBasicProcessHostingConfiguration const type.

type KindBasicRelationship

type KindBasicRelationship string

KindBasicRelationship enumerates the values for kind basic relationship.

const (
	// KindRelacceptor ...
	KindRelacceptor KindBasicRelationship = "rel:acceptor"
	// KindRelationship ...
	KindRelationship KindBasicRelationship = "Relationship"
	// KindRelconnection ...
	KindRelconnection KindBasicRelationship = "rel:connection"
)

func PossibleKindBasicRelationshipValues

func PossibleKindBasicRelationshipValues() []KindBasicRelationship

PossibleKindBasicRelationshipValues returns an array of possible values for the KindBasicRelationship const type.

type Liveness

type Liveness struct {
	autorest.Response `json:"-"`
	// StartTime - Liveness interval start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - Liveness interval end time.
	EndTime *date.Time `json:"endTime,omitempty"`
	// Live - `true` if the resource is live during [startTime, endTime], `false` otherwise
	Live *bool `json:"live,omitempty"`
}

Liveness specifies the contents of a check liveness response.

type Machine

type Machine struct {
	autorest.Response `json:"-"`
	// MachineProperties - Resource properties.
	*MachineProperties `json:"properties,omitempty"`
	// Etag - Resource ETAG.
	Etag *string `json:"etag,omitempty"`
	// Kind - Possible values include: 'KindCoreResource', 'KindMachine', 'KindProcess', 'KindPort', 'KindClientGroup', 'KindMachineGroup'
	Kind KindBasicCoreResource `json:"kind,omitempty"`
	// ID - READ-ONLY; Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
}

Machine a machine resource represents a discovered computer system. It can be *monitored*, i.e., a Dependency Agent is running on it, or *discovered*, i.e., its existence was inferred by observing the data stream from monitored machines. As machines change, prior versions of the machine resource are preserved and available for access. A machine is live during an interval of time, if either its Dependency Agent has reported data during (parts) of that interval, or a Dependency agent running on other machines has reported activity associated with the machine.

func (Machine) AsBasicCoreResource

func (mVar Machine) AsBasicCoreResource() (BasicCoreResource, bool)

AsBasicCoreResource is the BasicCoreResource implementation for Machine.

func (Machine) AsClientGroup

func (mVar Machine) AsClientGroup() (*ClientGroup, bool)

AsClientGroup is the BasicCoreResource implementation for Machine.

func (Machine) AsCoreResource

func (mVar Machine) AsCoreResource() (*CoreResource, bool)

AsCoreResource is the BasicCoreResource implementation for Machine.

func (Machine) AsMachine

func (mVar Machine) AsMachine() (*Machine, bool)

AsMachine is the BasicCoreResource implementation for Machine.

func (Machine) AsMachineGroup

func (mVar Machine) AsMachineGroup() (*MachineGroup, bool)

AsMachineGroup is the BasicCoreResource implementation for Machine.

func (Machine) AsPort

func (mVar Machine) AsPort() (*Port, bool)

AsPort is the BasicCoreResource implementation for Machine.

func (Machine) AsProcess

func (mVar Machine) AsProcess() (*Process, bool)

AsProcess is the BasicCoreResource implementation for Machine.

func (Machine) MarshalJSON

func (mVar Machine) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Machine.

func (*Machine) UnmarshalJSON

func (mVar *Machine) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Machine struct.

type MachineCollection

type MachineCollection struct {
	autorest.Response `json:"-"`
	// Value - Collection of Machine resources.
	Value *[]Machine `json:"value,omitempty"`
	// NextLink - The URL to the next set of resources.
	NextLink *string `json:"nextLink,omitempty"`
}

MachineCollection collection of Machine resources.

func (MachineCollection) IsEmpty

func (mc MachineCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type MachineCollectionIterator

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

MachineCollectionIterator provides access to a complete listing of Machine values.

func NewMachineCollectionIterator

func NewMachineCollectionIterator(page MachineCollectionPage) MachineCollectionIterator

Creates a new instance of the MachineCollectionIterator type.

func (*MachineCollectionIterator) Next

func (iter *MachineCollectionIterator) 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 (*MachineCollectionIterator) NextWithContext

func (iter *MachineCollectionIterator) 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 (MachineCollectionIterator) NotDone

func (iter MachineCollectionIterator) NotDone() bool

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

func (MachineCollectionIterator) Response

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

func (MachineCollectionIterator) Value

func (iter MachineCollectionIterator) Value() Machine

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

type MachineCollectionPage

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

MachineCollectionPage contains a page of Machine values.

func NewMachineCollectionPage

func NewMachineCollectionPage(getNextPage func(context.Context, MachineCollection) (MachineCollection, error)) MachineCollectionPage

Creates a new instance of the MachineCollectionPage type.

func (*MachineCollectionPage) Next

func (page *MachineCollectionPage) 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 (*MachineCollectionPage) NextWithContext

func (page *MachineCollectionPage) 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 (MachineCollectionPage) NotDone

func (page MachineCollectionPage) NotDone() bool

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

func (MachineCollectionPage) Response

func (page MachineCollectionPage) Response() MachineCollection

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

func (MachineCollectionPage) Values

func (page MachineCollectionPage) Values() []Machine

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

type MachineCountsByOperatingSystem

type MachineCountsByOperatingSystem struct {
	// Windows - Number of live Windows machines.
	Windows *int32 `json:"windows,omitempty"`
	// Linux - Number of live Linux machines.
	Linux *int32 `json:"linux,omitempty"`
}

MachineCountsByOperatingSystem machines by operating system.

type MachineGroup

type MachineGroup struct {
	autorest.Response `json:"-"`
	// MachineGroupProperties - Resource properties.
	*MachineGroupProperties `json:"properties,omitempty"`
	// Etag - Resource ETAG.
	Etag *string `json:"etag,omitempty"`
	// Kind - Possible values include: 'KindCoreResource', 'KindMachine', 'KindProcess', 'KindPort', 'KindClientGroup', 'KindMachineGroup'
	Kind KindBasicCoreResource `json:"kind,omitempty"`
	// ID - READ-ONLY; Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
}

MachineGroup a user-defined logical grouping of machines.

func (MachineGroup) AsBasicCoreResource

func (mg MachineGroup) AsBasicCoreResource() (BasicCoreResource, bool)

AsBasicCoreResource is the BasicCoreResource implementation for MachineGroup.

func (MachineGroup) AsClientGroup

func (mg MachineGroup) AsClientGroup() (*ClientGroup, bool)

AsClientGroup is the BasicCoreResource implementation for MachineGroup.

func (MachineGroup) AsCoreResource

func (mg MachineGroup) AsCoreResource() (*CoreResource, bool)

AsCoreResource is the BasicCoreResource implementation for MachineGroup.

func (MachineGroup) AsMachine

func (mg MachineGroup) AsMachine() (*Machine, bool)

AsMachine is the BasicCoreResource implementation for MachineGroup.

func (MachineGroup) AsMachineGroup

func (mg MachineGroup) AsMachineGroup() (*MachineGroup, bool)

AsMachineGroup is the BasicCoreResource implementation for MachineGroup.

func (MachineGroup) AsPort

func (mg MachineGroup) AsPort() (*Port, bool)

AsPort is the BasicCoreResource implementation for MachineGroup.

func (MachineGroup) AsProcess

func (mg MachineGroup) AsProcess() (*Process, bool)

AsProcess is the BasicCoreResource implementation for MachineGroup.

func (MachineGroup) MarshalJSON

func (mg MachineGroup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MachineGroup.

func (*MachineGroup) UnmarshalJSON

func (mg *MachineGroup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MachineGroup struct.

type MachineGroupCollection

type MachineGroupCollection struct {
	autorest.Response `json:"-"`
	// Value - Collection of Machine Group resources.
	Value *[]MachineGroup `json:"value,omitempty"`
	// NextLink - The URL to the next set of resources.
	NextLink *string `json:"nextLink,omitempty"`
}

MachineGroupCollection collection of Machine Group resources.

func (MachineGroupCollection) IsEmpty

func (mgc MachineGroupCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type MachineGroupCollectionIterator

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

MachineGroupCollectionIterator provides access to a complete listing of MachineGroup values.

func NewMachineGroupCollectionIterator

func NewMachineGroupCollectionIterator(page MachineGroupCollectionPage) MachineGroupCollectionIterator

Creates a new instance of the MachineGroupCollectionIterator type.

func (*MachineGroupCollectionIterator) Next

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 (*MachineGroupCollectionIterator) NextWithContext

func (iter *MachineGroupCollectionIterator) 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 (MachineGroupCollectionIterator) NotDone

func (iter MachineGroupCollectionIterator) NotDone() bool

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

func (MachineGroupCollectionIterator) Response

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

func (MachineGroupCollectionIterator) Value

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

type MachineGroupCollectionPage

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

MachineGroupCollectionPage contains a page of MachineGroup values.

func NewMachineGroupCollectionPage

func NewMachineGroupCollectionPage(getNextPage func(context.Context, MachineGroupCollection) (MachineGroupCollection, error)) MachineGroupCollectionPage

Creates a new instance of the MachineGroupCollectionPage type.

func (*MachineGroupCollectionPage) Next

func (page *MachineGroupCollectionPage) 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 (*MachineGroupCollectionPage) NextWithContext

func (page *MachineGroupCollectionPage) 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 (MachineGroupCollectionPage) NotDone

func (page MachineGroupCollectionPage) NotDone() bool

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

func (MachineGroupCollectionPage) Response

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

func (MachineGroupCollectionPage) Values

func (page MachineGroupCollectionPage) Values() []MachineGroup

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

type MachineGroupMapRequest

type MachineGroupMapRequest struct {
	// MachineGroupID - URI of machine group resource for which to generate the map.
	MachineGroupID *string `json:"machineGroupId,omitempty"`
	// FilterProcesses - If true, only processes between specified machines will be included. Any connections in or out of those processes will be included.
	FilterProcesses *bool `json:"filterProcesses,omitempty"`
	// StartTime - Map interval start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - Map interval end time.
	EndTime *date.Time `json:"endTime,omitempty"`
	// Kind - Possible values include: 'KindMapRequest', 'KindMapsingleMachineDependency', 'KindMultipleMachinesMapRequest', 'KindMapmachineListDependency', 'KindMapmachineGroupDependency'
	Kind KindBasicMapRequest `json:"kind,omitempty"`
}

MachineGroupMapRequest specifies the computation of a machine group dependency map. A machine group dependency map includes all direct dependencies the machines in the group.

func (MachineGroupMapRequest) AsBasicMapRequest

func (mgmr MachineGroupMapRequest) AsBasicMapRequest() (BasicMapRequest, bool)

AsBasicMapRequest is the BasicMapRequest implementation for MachineGroupMapRequest.

func (MachineGroupMapRequest) AsBasicMultipleMachinesMapRequest

func (mgmr MachineGroupMapRequest) AsBasicMultipleMachinesMapRequest() (BasicMultipleMachinesMapRequest, bool)

AsBasicMultipleMachinesMapRequest is the BasicMapRequest implementation for MachineGroupMapRequest.

func (MachineGroupMapRequest) AsMachineGroupMapRequest

func (mgmr MachineGroupMapRequest) AsMachineGroupMapRequest() (*MachineGroupMapRequest, bool)

AsMachineGroupMapRequest is the BasicMapRequest implementation for MachineGroupMapRequest.

func (MachineGroupMapRequest) AsMachineListMapRequest

func (mgmr MachineGroupMapRequest) AsMachineListMapRequest() (*MachineListMapRequest, bool)

AsMachineListMapRequest is the BasicMapRequest implementation for MachineGroupMapRequest.

func (MachineGroupMapRequest) AsMapRequest

func (mgmr MachineGroupMapRequest) AsMapRequest() (*MapRequest, bool)

AsMapRequest is the BasicMapRequest implementation for MachineGroupMapRequest.

func (MachineGroupMapRequest) AsMultipleMachinesMapRequest

func (mgmr MachineGroupMapRequest) AsMultipleMachinesMapRequest() (*MultipleMachinesMapRequest, bool)

AsMultipleMachinesMapRequest is the BasicMapRequest implementation for MachineGroupMapRequest.

func (MachineGroupMapRequest) AsSingleMachineDependencyMapRequest

func (mgmr MachineGroupMapRequest) AsSingleMachineDependencyMapRequest() (*SingleMachineDependencyMapRequest, bool)

AsSingleMachineDependencyMapRequest is the BasicMapRequest implementation for MachineGroupMapRequest.

func (MachineGroupMapRequest) MarshalJSON

func (mgmr MachineGroupMapRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MachineGroupMapRequest.

type MachineGroupProperties

type MachineGroupProperties struct {
	// GroupType - Type of the machine group. Possible values include: 'MachineGroupTypeUnknown', 'MachineGroupTypeAzureCs', 'MachineGroupTypeAzureSf', 'MachineGroupTypeAzureVmss', 'MachineGroupTypeUserStatic'
	GroupType MachineGroupType `json:"groupType,omitempty"`
	// DisplayName - User defined name for the group
	DisplayName *string `json:"displayName,omitempty"`
	// Count - Count of machines in this group. The value of count may be bigger than the number of machines in case of the group has been truncated due to exceeding the max number of machines a group can handle.
	Count *int32 `json:"count,omitempty"`
	// Machines - References of the machines in this group. The hints within each reference do not represent the current value of the corresponding fields. They are a snapshot created during the last time the machine group was updated.
	Machines *[]MachineReferenceWithHints `json:"machines,omitempty"`
}

MachineGroupProperties resource properties.

type MachineGroupType

type MachineGroupType string

MachineGroupType enumerates the values for machine group type.

const (
	// MachineGroupTypeAzureCs ...
	MachineGroupTypeAzureCs MachineGroupType = "azure-cs"
	// MachineGroupTypeAzureSf ...
	MachineGroupTypeAzureSf MachineGroupType = "azure-sf"
	// MachineGroupTypeAzureVmss ...
	MachineGroupTypeAzureVmss MachineGroupType = "azure-vmss"
	// MachineGroupTypeUnknown ...
	MachineGroupTypeUnknown MachineGroupType = "unknown"
	// MachineGroupTypeUserStatic ...
	MachineGroupTypeUserStatic MachineGroupType = "user-static"
)

func PossibleMachineGroupTypeValues

func PossibleMachineGroupTypeValues() []MachineGroupType

PossibleMachineGroupTypeValues returns an array of possible values for the MachineGroupType const type.

type MachineGroupsClient

type MachineGroupsClient struct {
	BaseClient
}

MachineGroupsClient is the service Map API Reference

func NewMachineGroupsClient

func NewMachineGroupsClient(subscriptionID string) MachineGroupsClient

NewMachineGroupsClient creates an instance of the MachineGroupsClient client.

func NewMachineGroupsClientWithBaseURI

func NewMachineGroupsClientWithBaseURI(baseURI string, subscriptionID string) MachineGroupsClient

NewMachineGroupsClientWithBaseURI creates an instance of the MachineGroupsClient client.

func (MachineGroupsClient) Create

func (client MachineGroupsClient) Create(ctx context.Context, resourceGroupName string, workspaceName string, machineGroup MachineGroup) (result MachineGroup, err error)

Create creates a new machine group. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineGroup - machine Group resource to create.

func (MachineGroupsClient) CreatePreparer

func (client MachineGroupsClient) CreatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineGroup MachineGroup) (*http.Request, error)

CreatePreparer prepares the Create request.

func (MachineGroupsClient) CreateResponder

func (client MachineGroupsClient) CreateResponder(resp *http.Response) (result MachineGroup, err error)

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

func (MachineGroupsClient) CreateSender

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

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

func (MachineGroupsClient) Delete

func (client MachineGroupsClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, machineGroupName string) (result autorest.Response, err error)

Delete deletes the specified Machine Group. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineGroupName - machine Group resource name.

func (MachineGroupsClient) DeletePreparer

func (client MachineGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineGroupName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (MachineGroupsClient) DeleteResponder

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

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

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

func (MachineGroupsClient) Get

func (client MachineGroupsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, machineGroupName string, startTime *date.Time, endTime *date.Time) (result MachineGroup, err error)

Get returns the specified machine group as it existed during the specified time interval. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineGroupName - machine Group resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow

func (MachineGroupsClient) GetPreparer

func (client MachineGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineGroupName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)

GetPreparer prepares the Get request.

func (MachineGroupsClient) GetResponder

func (client MachineGroupsClient) GetResponder(resp *http.Response) (result MachineGroup, err error)

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

func (MachineGroupsClient) GetSender

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

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

func (MachineGroupsClient) ListByWorkspace

func (client MachineGroupsClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string, startTime *date.Time, endTime *date.Time) (result MachineGroupCollectionPage, err error)

ListByWorkspace returns all machine groups during the specified time interval. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow

func (MachineGroupsClient) ListByWorkspaceComplete

func (client MachineGroupsClient) ListByWorkspaceComplete(ctx context.Context, resourceGroupName string, workspaceName string, startTime *date.Time, endTime *date.Time) (result MachineGroupCollectionIterator, err error)

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

func (MachineGroupsClient) ListByWorkspacePreparer

func (client MachineGroupsClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)

ListByWorkspacePreparer prepares the ListByWorkspace request.

func (MachineGroupsClient) ListByWorkspaceResponder

func (client MachineGroupsClient) ListByWorkspaceResponder(resp *http.Response) (result MachineGroupCollection, err error)

ListByWorkspaceResponder handles the response to the ListByWorkspace request. The method always closes the http.Response Body.

func (MachineGroupsClient) ListByWorkspaceSender

func (client MachineGroupsClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)

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

func (MachineGroupsClient) Update

func (client MachineGroupsClient) Update(ctx context.Context, resourceGroupName string, workspaceName string, machineGroupName string, machineGroup MachineGroup) (result MachineGroup, err error)

Update updates a machine group. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineGroupName - machine Group resource name. machineGroup - machine Group resource to update.

func (MachineGroupsClient) UpdatePreparer

func (client MachineGroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineGroupName string, machineGroup MachineGroup) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (MachineGroupsClient) UpdateResponder

func (client MachineGroupsClient) UpdateResponder(resp *http.Response) (result MachineGroup, err error)

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

func (MachineGroupsClient) UpdateSender

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

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

type MachineListMapRequest

type MachineListMapRequest struct {
	// MachineIds - a list of URIs of machine resources for which to generate the map.
	MachineIds *[]string `json:"machineIds,omitempty"`
	// FilterProcesses - If true, only processes between specified machines will be included. Any connections in or out of those processes will be included.
	FilterProcesses *bool `json:"filterProcesses,omitempty"`
	// StartTime - Map interval start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - Map interval end time.
	EndTime *date.Time `json:"endTime,omitempty"`
	// Kind - Possible values include: 'KindMapRequest', 'KindMapsingleMachineDependency', 'KindMultipleMachinesMapRequest', 'KindMapmachineListDependency', 'KindMapmachineGroupDependency'
	Kind KindBasicMapRequest `json:"kind,omitempty"`
}

MachineListMapRequest specifies the computation of a one hope dependency map for a list of machines. The resulting map includes all direct dependencies for the specified machines.

func (MachineListMapRequest) AsBasicMapRequest

func (mlmr MachineListMapRequest) AsBasicMapRequest() (BasicMapRequest, bool)

AsBasicMapRequest is the BasicMapRequest implementation for MachineListMapRequest.

func (MachineListMapRequest) AsBasicMultipleMachinesMapRequest

func (mlmr MachineListMapRequest) AsBasicMultipleMachinesMapRequest() (BasicMultipleMachinesMapRequest, bool)

AsBasicMultipleMachinesMapRequest is the BasicMapRequest implementation for MachineListMapRequest.

func (MachineListMapRequest) AsMachineGroupMapRequest

func (mlmr MachineListMapRequest) AsMachineGroupMapRequest() (*MachineGroupMapRequest, bool)

AsMachineGroupMapRequest is the BasicMapRequest implementation for MachineListMapRequest.

func (MachineListMapRequest) AsMachineListMapRequest

func (mlmr MachineListMapRequest) AsMachineListMapRequest() (*MachineListMapRequest, bool)

AsMachineListMapRequest is the BasicMapRequest implementation for MachineListMapRequest.

func (MachineListMapRequest) AsMapRequest

func (mlmr MachineListMapRequest) AsMapRequest() (*MapRequest, bool)

AsMapRequest is the BasicMapRequest implementation for MachineListMapRequest.

func (MachineListMapRequest) AsMultipleMachinesMapRequest

func (mlmr MachineListMapRequest) AsMultipleMachinesMapRequest() (*MultipleMachinesMapRequest, bool)

AsMultipleMachinesMapRequest is the BasicMapRequest implementation for MachineListMapRequest.

func (MachineListMapRequest) AsSingleMachineDependencyMapRequest

func (mlmr MachineListMapRequest) AsSingleMachineDependencyMapRequest() (*SingleMachineDependencyMapRequest, bool)

AsSingleMachineDependencyMapRequest is the BasicMapRequest implementation for MachineListMapRequest.

func (MachineListMapRequest) MarshalJSON

func (mlmr MachineListMapRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MachineListMapRequest.

type MachineProperties

type MachineProperties struct {
	// Timestamp - UTC date and time when this resource was updated in the system.
	Timestamp *date.Time `json:"timestamp,omitempty"`
	// MonitoringState - Specifies whether the machine is actively monitored or discovered. Possible values include: 'Monitored', 'Discovered'
	MonitoringState MonitoringState `json:"monitoringState,omitempty"`
	// VirtualizationState - Specifies whether the machine is virtualized. Possible values include: 'VirtualizationStateUnknown', 'VirtualizationStatePhysical', 'VirtualizationStateVirtual', 'VirtualizationStateHypervisor'
	VirtualizationState VirtualizationState `json:"virtualizationState,omitempty"`
	// DisplayName - Name to use for display purposes
	DisplayName *string `json:"displayName,omitempty"`
	// ComputerName - Name of the machine, e.g., server
	ComputerName *string `json:"computerName,omitempty"`
	// FullyQualifiedDomainName - Fully-qualified name of the machine, e.g., server.company.com
	FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"`
	// BootTime - UTC date and time when the machine last booted
	BootTime *date.Time `json:"bootTime,omitempty"`
	// Timezone - Timezone of the machine.
	Timezone *Timezone `json:"timezone,omitempty"`
	// Agent - Dependency Agent configuration.
	Agent *AgentConfiguration `json:"agent,omitempty"`
	// Resources - Machine resources (memory, cpu, etc.).
	Resources *MachineResourcesConfiguration `json:"resources,omitempty"`
	// Networking - Network configuration (ips, gateways, dns, etc.)
	Networking *NetworkConfiguration `json:"networking,omitempty"`
	// OperatingSystem - Operating system information.
	OperatingSystem *OperatingSystemConfiguration `json:"operatingSystem,omitempty"`
	// VirtualMachine - Virtualization-related configuration. Present only when `virtualizationState` is `virtual`.
	VirtualMachine *VirtualMachineConfiguration `json:"virtualMachine,omitempty"`
	// Hypervisor - Hypervisor-related configuration. Present only when 'virtualizationState' is `hypervisor`.
	Hypervisor *HypervisorConfiguration `json:"hypervisor,omitempty"`
	// Hosting - Hosting-related configuration. Present if hosting information is discovered for the VM.
	Hosting BasicHostingConfiguration `json:"hosting,omitempty"`
}

MachineProperties resource properties.

func (*MachineProperties) UnmarshalJSON

func (mVar *MachineProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MachineProperties struct.

type MachineRebootStatus

type MachineRebootStatus string

MachineRebootStatus enumerates the values for machine reboot status.

const (
	// MachineRebootStatusNotRebooted ...
	MachineRebootStatusNotRebooted MachineRebootStatus = "notRebooted"
	// MachineRebootStatusRebooted ...
	MachineRebootStatusRebooted MachineRebootStatus = "rebooted"
	// MachineRebootStatusUnknown ...
	MachineRebootStatusUnknown MachineRebootStatus = "unknown"
)

func PossibleMachineRebootStatusValues

func PossibleMachineRebootStatusValues() []MachineRebootStatus

PossibleMachineRebootStatusValues returns an array of possible values for the MachineRebootStatus const type.

type MachineReference

type MachineReference struct {
	// ID - Resource URI.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; Resource type qualifier.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Kind - Possible values include: 'KindResourceReference', 'KindRefmachine', 'KindRefprocess', 'KindRefport', 'KindRefmachinewithhints', 'KindRefclientgroup'
	Kind Kind `json:"kind,omitempty"`
}

MachineReference reference to a machine.

func (MachineReference) AsBasicResourceReference

func (mr MachineReference) AsBasicResourceReference() (BasicResourceReference, bool)

AsBasicResourceReference is the BasicResourceReference implementation for MachineReference.

func (MachineReference) AsClientGroupReference

func (mr MachineReference) AsClientGroupReference() (*ClientGroupReference, bool)

AsClientGroupReference is the BasicResourceReference implementation for MachineReference.

func (MachineReference) AsMachineReference

func (mr MachineReference) AsMachineReference() (*MachineReference, bool)

AsMachineReference is the BasicResourceReference implementation for MachineReference.

func (MachineReference) AsMachineReferenceWithHints

func (mr MachineReference) AsMachineReferenceWithHints() (*MachineReferenceWithHints, bool)

AsMachineReferenceWithHints is the BasicResourceReference implementation for MachineReference.

func (MachineReference) AsPortReference

func (mr MachineReference) AsPortReference() (*PortReference, bool)

AsPortReference is the BasicResourceReference implementation for MachineReference.

func (MachineReference) AsProcessReference

func (mr MachineReference) AsProcessReference() (*ProcessReference, bool)

AsProcessReference is the BasicResourceReference implementation for MachineReference.

func (MachineReference) AsResourceReference

func (mr MachineReference) AsResourceReference() (*ResourceReference, bool)

AsResourceReference is the BasicResourceReference implementation for MachineReference.

func (MachineReference) MarshalJSON

func (mr MachineReference) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MachineReference.

type MachineReferenceWithHints

type MachineReferenceWithHints struct {
	// MachineReferenceWithHintsProperties - Machine reference with name and os hints.
	*MachineReferenceWithHintsProperties `json:"properties,omitempty"`
	// ID - Resource URI.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; Resource type qualifier.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Kind - Possible values include: 'KindResourceReference', 'KindRefmachine', 'KindRefprocess', 'KindRefport', 'KindRefmachinewithhints', 'KindRefclientgroup'
	Kind Kind `json:"kind,omitempty"`
}

MachineReferenceWithHints a machine reference with a hint of the machine's name and operating system.

func (MachineReferenceWithHints) AsBasicResourceReference

func (mrwh MachineReferenceWithHints) AsBasicResourceReference() (BasicResourceReference, bool)

AsBasicResourceReference is the BasicResourceReference implementation for MachineReferenceWithHints.

func (MachineReferenceWithHints) AsClientGroupReference

func (mrwh MachineReferenceWithHints) AsClientGroupReference() (*ClientGroupReference, bool)

AsClientGroupReference is the BasicResourceReference implementation for MachineReferenceWithHints.

func (MachineReferenceWithHints) AsMachineReference

func (mrwh MachineReferenceWithHints) AsMachineReference() (*MachineReference, bool)

AsMachineReference is the BasicResourceReference implementation for MachineReferenceWithHints.

func (MachineReferenceWithHints) AsMachineReferenceWithHints

func (mrwh MachineReferenceWithHints) AsMachineReferenceWithHints() (*MachineReferenceWithHints, bool)

AsMachineReferenceWithHints is the BasicResourceReference implementation for MachineReferenceWithHints.

func (MachineReferenceWithHints) AsPortReference

func (mrwh MachineReferenceWithHints) AsPortReference() (*PortReference, bool)

AsPortReference is the BasicResourceReference implementation for MachineReferenceWithHints.

func (MachineReferenceWithHints) AsProcessReference

func (mrwh MachineReferenceWithHints) AsProcessReference() (*ProcessReference, bool)

AsProcessReference is the BasicResourceReference implementation for MachineReferenceWithHints.

func (MachineReferenceWithHints) AsResourceReference

func (mrwh MachineReferenceWithHints) AsResourceReference() (*ResourceReference, bool)

AsResourceReference is the BasicResourceReference implementation for MachineReferenceWithHints.

func (MachineReferenceWithHints) MarshalJSON

func (mrwh MachineReferenceWithHints) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MachineReferenceWithHints.

func (*MachineReferenceWithHints) UnmarshalJSON

func (mrwh *MachineReferenceWithHints) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MachineReferenceWithHints struct.

type MachineReferenceWithHintsProperties

type MachineReferenceWithHintsProperties struct {
	// DisplayNameHint - READ-ONLY; Last known display name.
	DisplayNameHint *string `json:"displayNameHint,omitempty"`
	// OsFamilyHint - READ-ONLY; Last known operating system family. Possible values include: 'OperatingSystemFamilyUnknown', 'OperatingSystemFamilyWindows', 'OperatingSystemFamilyLinux', 'OperatingSystemFamilySolaris', 'OperatingSystemFamilyAix'
	OsFamilyHint OperatingSystemFamily `json:"osFamilyHint,omitempty"`
}

MachineReferenceWithHintsProperties machine reference with name and os hints.

type MachineResourcesConfiguration

type MachineResourcesConfiguration struct {
	// PhysicalMemory - Physical memory in megabytes (MB).
	PhysicalMemory *int32 `json:"physicalMemory,omitempty"`
	// Cpus - Number of CPUs.
	Cpus *int32 `json:"cpus,omitempty"`
	// CPUSpeed - CPU speed in megahertz (Mhz).
	CPUSpeed *int32 `json:"cpuSpeed,omitempty"`
	// CPUSpeedAccuracy - Describes the accuracy of the cpuSpeed field. Possible values include: 'Actual', 'Estimated'
	CPUSpeedAccuracy Accuracy `json:"cpuSpeedAccuracy,omitempty"`
}

MachineResourcesConfiguration describes the resources of a machine.

type MachinesClient

type MachinesClient struct {
	BaseClient
}

MachinesClient is the service Map API Reference

func NewMachinesClient

func NewMachinesClient(subscriptionID string) MachinesClient

NewMachinesClient creates an instance of the MachinesClient client.

func NewMachinesClientWithBaseURI

func NewMachinesClientWithBaseURI(baseURI string, subscriptionID string) MachinesClient

NewMachinesClientWithBaseURI creates an instance of the MachinesClient client.

func (MachinesClient) Get

func (client MachinesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, timestamp *date.Time) (result Machine, err error)

Get returns the specified machine. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. timestamp - UTC date and time specifying a time instance relative to which to evaluate the machine resource. When not specified, the service uses DateTime.UtcNow.

func (MachinesClient) GetLiveness

func (client MachinesClient) GetLiveness(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result Liveness, err error)

GetLiveness obtains the liveness status of the machine during the specified time interval. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow

func (MachinesClient) GetLivenessPreparer

func (client MachinesClient) GetLivenessPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)

GetLivenessPreparer prepares the GetLiveness request.

func (MachinesClient) GetLivenessResponder

func (client MachinesClient) GetLivenessResponder(resp *http.Response) (result Liveness, err error)

GetLivenessResponder handles the response to the GetLiveness request. The method always closes the http.Response Body.

func (MachinesClient) GetLivenessSender

func (client MachinesClient) GetLivenessSender(req *http.Request) (*http.Response, error)

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

func (MachinesClient) GetPreparer

func (client MachinesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, timestamp *date.Time) (*http.Request, error)

GetPreparer prepares the Get request.

func (MachinesClient) GetResponder

func (client MachinesClient) GetResponder(resp *http.Response) (result Machine, err error)

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

func (MachinesClient) GetSender

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

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

func (MachinesClient) ListByWorkspace

func (client MachinesClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string, live *bool, startTime *date.Time, endTime *date.Time, timestamp *date.Time, top *int32) (result MachineCollectionPage, err error)

ListByWorkspace returns a collection of machines matching the specified conditions. The returned collection represents either machines that are active/live during the specified interval of time (`live=true` and `startTime`/`endTime` are specified) or that are known to have existed at or some time prior to the specified point in time (`live=false` and `timestamp` is specified). Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. live - specifies whether to return live resources (true) or inventory resources (false). Defaults to **true**. When retrieving live resources, the start time (`startTime`) and end time (`endTime`) of the desired interval should be included. When retrieving inventory resources, an optional timestamp (`timestamp`) parameter can be specified to return the version of each resource closest (not-after) that timestamp. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow timestamp - UTC date and time specifying a time instance relative to which to evaluate each machine resource. Only applies when `live=false`. When not specified, the service uses DateTime.UtcNow. top - page size to use. When not specified, the default page size is 100 records.

func (MachinesClient) ListByWorkspaceComplete

func (client MachinesClient) ListByWorkspaceComplete(ctx context.Context, resourceGroupName string, workspaceName string, live *bool, startTime *date.Time, endTime *date.Time, timestamp *date.Time, top *int32) (result MachineCollectionIterator, err error)

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

func (MachinesClient) ListByWorkspacePreparer

func (client MachinesClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string, live *bool, startTime *date.Time, endTime *date.Time, timestamp *date.Time, top *int32) (*http.Request, error)

ListByWorkspacePreparer prepares the ListByWorkspace request.

func (MachinesClient) ListByWorkspaceResponder

func (client MachinesClient) ListByWorkspaceResponder(resp *http.Response) (result MachineCollection, err error)

ListByWorkspaceResponder handles the response to the ListByWorkspace request. The method always closes the http.Response Body.

func (MachinesClient) ListByWorkspaceSender

func (client MachinesClient) ListByWorkspaceSender(req *http.Request) (*http.Response, error)

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

func (MachinesClient) ListConnections

func (client MachinesClient) ListConnections(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result ConnectionCollectionPage, err error)

ListConnections returns a collection of connections terminating or originating at the specified machine Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow

func (MachinesClient) ListConnectionsComplete

func (client MachinesClient) ListConnectionsComplete(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result ConnectionCollectionIterator, err error)

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

func (MachinesClient) ListConnectionsPreparer

func (client MachinesClient) ListConnectionsPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)

ListConnectionsPreparer prepares the ListConnections request.

func (MachinesClient) ListConnectionsResponder

func (client MachinesClient) ListConnectionsResponder(resp *http.Response) (result ConnectionCollection, err error)

ListConnectionsResponder handles the response to the ListConnections request. The method always closes the http.Response Body.

func (MachinesClient) ListConnectionsSender

func (client MachinesClient) ListConnectionsSender(req *http.Request) (*http.Response, error)

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

func (MachinesClient) ListMachineGroupMembership

func (client MachinesClient) ListMachineGroupMembership(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result MachineGroupCollectionPage, err error)

ListMachineGroupMembership returns a collection of machine groups this machine belongs to during the specified time interval. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow

func (MachinesClient) ListMachineGroupMembershipComplete

func (client MachinesClient) ListMachineGroupMembershipComplete(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result MachineGroupCollectionIterator, err error)

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

func (MachinesClient) ListMachineGroupMembershipPreparer

func (client MachinesClient) ListMachineGroupMembershipPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)

ListMachineGroupMembershipPreparer prepares the ListMachineGroupMembership request.

func (MachinesClient) ListMachineGroupMembershipResponder

func (client MachinesClient) ListMachineGroupMembershipResponder(resp *http.Response) (result MachineGroupCollection, err error)

ListMachineGroupMembershipResponder handles the response to the ListMachineGroupMembership request. The method always closes the http.Response Body.

func (MachinesClient) ListMachineGroupMembershipSender

func (client MachinesClient) ListMachineGroupMembershipSender(req *http.Request) (*http.Response, error)

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

func (MachinesClient) ListPorts

func (client MachinesClient) ListPorts(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result PortCollectionPage, err error)

ListPorts returns a collection of live ports on the specified machine during the specified time interval. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow

func (MachinesClient) ListPortsComplete

func (client MachinesClient) ListPortsComplete(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result PortCollectionIterator, err error)

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

func (MachinesClient) ListPortsPreparer

func (client MachinesClient) ListPortsPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)

ListPortsPreparer prepares the ListPorts request.

func (MachinesClient) ListPortsResponder

func (client MachinesClient) ListPortsResponder(resp *http.Response) (result PortCollection, err error)

ListPortsResponder handles the response to the ListPorts request. The method always closes the http.Response Body.

func (MachinesClient) ListPortsSender

func (client MachinesClient) ListPortsSender(req *http.Request) (*http.Response, error)

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

func (MachinesClient) ListProcesses

func (client MachinesClient) ListProcesses(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, live *bool, startTime *date.Time, endTime *date.Time, timestamp *date.Time) (result ProcessCollectionPage, err error)

ListProcesses returns a collection of processes on the specified machine matching the specified conditions. The returned collection represents either processes that are active/live during the specified interval of time (`live=true` and `startTime`/`endTime` are specified) or that are known to have existed at or some time prior to the specified point in time (`live=false` and `timestamp` is specified). Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. live - specifies whether to return live resources (true) or inventory resources (false). Defaults to **true**. When retrieving live resources, the start time (`startTime`) and end time (`endTime`) of the desired interval should be included. When retrieving inventory resources, an optional timestamp (`timestamp`) parameter can be specified to return the version of each resource closest (not-after) that timestamp. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow timestamp - UTC date and time specifying a time instance relative to which to evaluate all process resource. Only applies when `live=false`. When not specified, the service uses DateTime.UtcNow.

func (MachinesClient) ListProcessesComplete

func (client MachinesClient) ListProcessesComplete(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, live *bool, startTime *date.Time, endTime *date.Time, timestamp *date.Time) (result ProcessCollectionIterator, err error)

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

func (MachinesClient) ListProcessesPreparer

func (client MachinesClient) ListProcessesPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, live *bool, startTime *date.Time, endTime *date.Time, timestamp *date.Time) (*http.Request, error)

ListProcessesPreparer prepares the ListProcesses request.

func (MachinesClient) ListProcessesResponder

func (client MachinesClient) ListProcessesResponder(resp *http.Response) (result ProcessCollection, err error)

ListProcessesResponder handles the response to the ListProcesses request. The method always closes the http.Response Body.

func (MachinesClient) ListProcessesSender

func (client MachinesClient) ListProcessesSender(req *http.Request) (*http.Response, error)

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

type MachinesSummary

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

MachinesSummary a summary of the machines in the workspace.

func (MachinesSummary) MarshalJSON

func (ms MachinesSummary) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MachinesSummary.

func (*MachinesSummary) UnmarshalJSON

func (ms *MachinesSummary) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MachinesSummary struct.

type MachinesSummaryProperties

type MachinesSummaryProperties struct {
	// Total - Total number of machines.
	Total *int32 `json:"total,omitempty"`
	// Live - Number of live machines.
	Live *int32 `json:"live,omitempty"`
	// Os - Machine counts by operating system.
	Os *MachineCountsByOperatingSystem `json:"os,omitempty"`
	// StartTime - Summary interval start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - Summary interval end time.
	EndTime *date.Time `json:"endTime,omitempty"`
}

MachinesSummaryProperties summarizes machines in the workspace.

type Map

type Map struct {
	Nodes *MapNodes `json:"nodes,omitempty"`
	Edges *MapEdges `json:"edges,omitempty"`
}

Map a map of resources and relationships between them.

type MapEdges

type MapEdges struct {
	// Connections - Network connections.
	Connections *[]Connection `json:"connections,omitempty"`
	// Acceptors - Processes accepting on a port.
	Acceptors *[]Acceptor `json:"acceptors,omitempty"`
}

MapEdges the edges (relationships) of a map.

type MapNodes

type MapNodes struct {
	// Machines - Machine resources.
	Machines *[]Machine `json:"machines,omitempty"`
	// Processes - Process resources.
	Processes *[]Process `json:"processes,omitempty"`
	// Ports - Port resources.
	Ports *[]Port `json:"ports,omitempty"`
	// ClientGroups - Client Group resources.
	ClientGroups *[]ClientGroup `json:"clientGroups,omitempty"`
}

MapNodes the nodes (entities) of a map.

type MapRequest

type MapRequest struct {
	// StartTime - Map interval start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - Map interval end time.
	EndTime *date.Time `json:"endTime,omitempty"`
	// Kind - Possible values include: 'KindMapRequest', 'KindMapsingleMachineDependency', 'KindMultipleMachinesMapRequest', 'KindMapmachineListDependency', 'KindMapmachineGroupDependency'
	Kind KindBasicMapRequest `json:"kind,omitempty"`
}

MapRequest specifies the contents of request to generate a map.

func (MapRequest) AsBasicMapRequest

func (mr MapRequest) AsBasicMapRequest() (BasicMapRequest, bool)

AsBasicMapRequest is the BasicMapRequest implementation for MapRequest.

func (MapRequest) AsBasicMultipleMachinesMapRequest

func (mr MapRequest) AsBasicMultipleMachinesMapRequest() (BasicMultipleMachinesMapRequest, bool)

AsBasicMultipleMachinesMapRequest is the BasicMapRequest implementation for MapRequest.

func (MapRequest) AsMachineGroupMapRequest

func (mr MapRequest) AsMachineGroupMapRequest() (*MachineGroupMapRequest, bool)

AsMachineGroupMapRequest is the BasicMapRequest implementation for MapRequest.

func (MapRequest) AsMachineListMapRequest

func (mr MapRequest) AsMachineListMapRequest() (*MachineListMapRequest, bool)

AsMachineListMapRequest is the BasicMapRequest implementation for MapRequest.

func (MapRequest) AsMapRequest

func (mr MapRequest) AsMapRequest() (*MapRequest, bool)

AsMapRequest is the BasicMapRequest implementation for MapRequest.

func (MapRequest) AsMultipleMachinesMapRequest

func (mr MapRequest) AsMultipleMachinesMapRequest() (*MultipleMachinesMapRequest, bool)

AsMultipleMachinesMapRequest is the BasicMapRequest implementation for MapRequest.

func (MapRequest) AsSingleMachineDependencyMapRequest

func (mr MapRequest) AsSingleMachineDependencyMapRequest() (*SingleMachineDependencyMapRequest, bool)

AsSingleMachineDependencyMapRequest is the BasicMapRequest implementation for MapRequest.

func (MapRequest) MarshalJSON

func (mr MapRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MapRequest.

type MapResponse

type MapResponse struct {
	autorest.Response `json:"-"`
	// StartTime - Map interval start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - Map interval end time.
	EndTime *date.Time `json:"endTime,omitempty"`
	// Map - The generated map.
	Map *Map `json:"map,omitempty"`
}

MapResponse specified the contents of a map response.

type MapsClient

type MapsClient struct {
	BaseClient
}

MapsClient is the service Map API Reference

func NewMapsClient

func NewMapsClient(subscriptionID string) MapsClient

NewMapsClient creates an instance of the MapsClient client.

func NewMapsClientWithBaseURI

func NewMapsClientWithBaseURI(baseURI string, subscriptionID string) MapsClient

NewMapsClientWithBaseURI creates an instance of the MapsClient client.

func (MapsClient) Generate

func (client MapsClient) Generate(ctx context.Context, resourceGroupName string, workspaceName string, request BasicMapRequest) (result MapResponse, err error)

Generate generates the specified map. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. request - request options.

func (MapsClient) GeneratePreparer

func (client MapsClient) GeneratePreparer(ctx context.Context, resourceGroupName string, workspaceName string, request BasicMapRequest) (*http.Request, error)

GeneratePreparer prepares the Generate request.

func (MapsClient) GenerateResponder

func (client MapsClient) GenerateResponder(resp *http.Response) (result MapResponse, err error)

GenerateResponder handles the response to the Generate request. The method always closes the http.Response Body.

func (MapsClient) GenerateSender

func (client MapsClient) GenerateSender(req *http.Request) (*http.Response, error)

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

type MonitoringState

type MonitoringState string

MonitoringState enumerates the values for monitoring state.

const (
	// Discovered ...
	Discovered MonitoringState = "discovered"
	// Monitored ...
	Monitored MonitoringState = "monitored"
)

func PossibleMonitoringStateValues

func PossibleMonitoringStateValues() []MonitoringState

PossibleMonitoringStateValues returns an array of possible values for the MonitoringState const type.

type MultipleMachinesMapRequest

type MultipleMachinesMapRequest struct {
	// FilterProcesses - If true, only processes between specified machines will be included. Any connections in or out of those processes will be included.
	FilterProcesses *bool `json:"filterProcesses,omitempty"`
	// StartTime - Map interval start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - Map interval end time.
	EndTime *date.Time `json:"endTime,omitempty"`
	// Kind - Possible values include: 'KindMapRequest', 'KindMapsingleMachineDependency', 'KindMultipleMachinesMapRequest', 'KindMapmachineListDependency', 'KindMapmachineGroupDependency'
	Kind KindBasicMapRequest `json:"kind,omitempty"`
}

MultipleMachinesMapRequest provides a base class for describing map requests for a collection of machines

func (MultipleMachinesMapRequest) AsBasicMapRequest

func (mmmr MultipleMachinesMapRequest) AsBasicMapRequest() (BasicMapRequest, bool)

AsBasicMapRequest is the BasicMapRequest implementation for MultipleMachinesMapRequest.

func (MultipleMachinesMapRequest) AsBasicMultipleMachinesMapRequest

func (mmmr MultipleMachinesMapRequest) AsBasicMultipleMachinesMapRequest() (BasicMultipleMachinesMapRequest, bool)

AsBasicMultipleMachinesMapRequest is the BasicMapRequest implementation for MultipleMachinesMapRequest.

func (MultipleMachinesMapRequest) AsMachineGroupMapRequest

func (mmmr MultipleMachinesMapRequest) AsMachineGroupMapRequest() (*MachineGroupMapRequest, bool)

AsMachineGroupMapRequest is the BasicMapRequest implementation for MultipleMachinesMapRequest.

func (MultipleMachinesMapRequest) AsMachineListMapRequest

func (mmmr MultipleMachinesMapRequest) AsMachineListMapRequest() (*MachineListMapRequest, bool)

AsMachineListMapRequest is the BasicMapRequest implementation for MultipleMachinesMapRequest.

func (MultipleMachinesMapRequest) AsMapRequest

func (mmmr MultipleMachinesMapRequest) AsMapRequest() (*MapRequest, bool)

AsMapRequest is the BasicMapRequest implementation for MultipleMachinesMapRequest.

func (MultipleMachinesMapRequest) AsMultipleMachinesMapRequest

func (mmmr MultipleMachinesMapRequest) AsMultipleMachinesMapRequest() (*MultipleMachinesMapRequest, bool)

AsMultipleMachinesMapRequest is the BasicMapRequest implementation for MultipleMachinesMapRequest.

func (MultipleMachinesMapRequest) AsSingleMachineDependencyMapRequest

func (mmmr MultipleMachinesMapRequest) AsSingleMachineDependencyMapRequest() (*SingleMachineDependencyMapRequest, bool)

AsSingleMachineDependencyMapRequest is the BasicMapRequest implementation for MultipleMachinesMapRequest.

func (MultipleMachinesMapRequest) MarshalJSON

func (mmmr MultipleMachinesMapRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MultipleMachinesMapRequest.

type NetworkConfiguration

type NetworkConfiguration struct {
	// Ipv4Interfaces - IPv4 interfaces.
	Ipv4Interfaces *[]Ipv4NetworkInterface `json:"ipv4Interfaces,omitempty"`
	// Ipv6Interfaces - IPv6 interfaces.
	Ipv6Interfaces *[]Ipv6NetworkInterface `json:"ipv6Interfaces,omitempty"`
	// DefaultIpv4Gateways - Default IPv4 gateways.
	DefaultIpv4Gateways *[]string `json:"defaultIpv4Gateways,omitempty"`
	// MacAddresses - MAC addresses of all active network interfaces.
	MacAddresses *[]string `json:"macAddresses,omitempty"`
	// DNSNames - DNS names associated with the machine.
	DNSNames *[]string `json:"dnsNames,omitempty"`
}

NetworkConfiguration describes the network configuration of a machine.

type OperatingSystemConfiguration

type OperatingSystemConfiguration struct {
	// Family - Windows, Linux, etc. Possible values include: 'OperatingSystemFamilyUnknown', 'OperatingSystemFamilyWindows', 'OperatingSystemFamilyLinux', 'OperatingSystemFamilySolaris', 'OperatingSystemFamilyAix'
	Family OperatingSystemFamily `json:"family,omitempty"`
	// FullName - Operating system full name.
	FullName *string `json:"fullName,omitempty"`
	// Bitness - Operating system bitness (32-bit or 64-bit). Possible values include: 'ThreeTwobit', 'SixFourbit'
	Bitness Bitness `json:"bitness,omitempty"`
}

OperatingSystemConfiguration describes the configuration of the operating system of a machine.

type OperatingSystemFamily

type OperatingSystemFamily string

OperatingSystemFamily enumerates the values for operating system family.

const (
	// OperatingSystemFamilyAix ...
	OperatingSystemFamilyAix OperatingSystemFamily = "aix"
	// OperatingSystemFamilyLinux ...
	OperatingSystemFamilyLinux OperatingSystemFamily = "linux"
	// OperatingSystemFamilySolaris ...
	OperatingSystemFamilySolaris OperatingSystemFamily = "solaris"
	// OperatingSystemFamilyUnknown ...
	OperatingSystemFamilyUnknown OperatingSystemFamily = "unknown"
	// OperatingSystemFamilyWindows ...
	OperatingSystemFamilyWindows OperatingSystemFamily = "windows"
)

func PossibleOperatingSystemFamilyValues

func PossibleOperatingSystemFamilyValues() []OperatingSystemFamily

PossibleOperatingSystemFamilyValues returns an array of possible values for the OperatingSystemFamily const type.

type Port

type Port struct {
	autorest.Response `json:"-"`
	// PortProperties - Resource properties.
	*PortProperties `json:"properties,omitempty"`
	// Etag - Resource ETAG.
	Etag *string `json:"etag,omitempty"`
	// Kind - Possible values include: 'KindCoreResource', 'KindMachine', 'KindProcess', 'KindPort', 'KindClientGroup', 'KindMachineGroup'
	Kind KindBasicCoreResource `json:"kind,omitempty"`
	// ID - READ-ONLY; Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
}

Port a port resource represents a server port on a machine. The port may be actively *monitored*, i.e., a Dependency Agent is running on its machine, or *discovered*, i.e., its existence was inferred by observing the data stream from monitored machines. A port is live during an interval of time, if that port had associated activity during (parts) of that interval.

func (Port) AsBasicCoreResource

func (p Port) AsBasicCoreResource() (BasicCoreResource, bool)

AsBasicCoreResource is the BasicCoreResource implementation for Port.

func (Port) AsClientGroup

func (p Port) AsClientGroup() (*ClientGroup, bool)

AsClientGroup is the BasicCoreResource implementation for Port.

func (Port) AsCoreResource

func (p Port) AsCoreResource() (*CoreResource, bool)

AsCoreResource is the BasicCoreResource implementation for Port.

func (Port) AsMachine

func (p Port) AsMachine() (*Machine, bool)

AsMachine is the BasicCoreResource implementation for Port.

func (Port) AsMachineGroup

func (p Port) AsMachineGroup() (*MachineGroup, bool)

AsMachineGroup is the BasicCoreResource implementation for Port.

func (Port) AsPort

func (p Port) AsPort() (*Port, bool)

AsPort is the BasicCoreResource implementation for Port.

func (Port) AsProcess

func (p Port) AsProcess() (*Process, bool)

AsProcess is the BasicCoreResource implementation for Port.

func (Port) MarshalJSON

func (p Port) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Port.

func (*Port) UnmarshalJSON

func (p *Port) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Port struct.

type PortCollection

type PortCollection struct {
	autorest.Response `json:"-"`
	// Value - Collection of Port resources.
	Value *[]Port `json:"value,omitempty"`
	// NextLink - The URL to the next set of resources.
	NextLink *string `json:"nextLink,omitempty"`
}

PortCollection collection of Port resources.

func (PortCollection) IsEmpty

func (pc PortCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PortCollectionIterator

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

PortCollectionIterator provides access to a complete listing of Port values.

func NewPortCollectionIterator

func NewPortCollectionIterator(page PortCollectionPage) PortCollectionIterator

Creates a new instance of the PortCollectionIterator type.

func (*PortCollectionIterator) Next

func (iter *PortCollectionIterator) 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 (*PortCollectionIterator) NextWithContext

func (iter *PortCollectionIterator) 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 (PortCollectionIterator) NotDone

func (iter PortCollectionIterator) NotDone() bool

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

func (PortCollectionIterator) Response

func (iter PortCollectionIterator) Response() PortCollection

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

func (PortCollectionIterator) Value

func (iter PortCollectionIterator) Value() Port

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

type PortCollectionPage

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

PortCollectionPage contains a page of Port values.

func NewPortCollectionPage

func NewPortCollectionPage(getNextPage func(context.Context, PortCollection) (PortCollection, error)) PortCollectionPage

Creates a new instance of the PortCollectionPage type.

func (*PortCollectionPage) Next

func (page *PortCollectionPage) 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 (*PortCollectionPage) NextWithContext

func (page *PortCollectionPage) 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 (PortCollectionPage) NotDone

func (page PortCollectionPage) NotDone() bool

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

func (PortCollectionPage) Response

func (page PortCollectionPage) Response() PortCollection

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

func (PortCollectionPage) Values

func (page PortCollectionPage) Values() []Port

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

type PortProperties

type PortProperties struct {
	// MonitoringState - Specifies whether the port is actively monitored or discovered. Possible values include: 'Monitored', 'Discovered'
	MonitoringState MonitoringState `json:"monitoringState,omitempty"`
	// Machine - Machine hosting this port.
	Machine BasicResourceReference `json:"machine,omitempty"`
	// DisplayName - Name to use for display purposes.
	DisplayName *string `json:"displayName,omitempty"`
	// IPAddress - IP address associated with the port. At present only IPv4 addresses are supported.
	IPAddress *string `json:"ipAddress,omitempty"`
	// PortNumber - Port number.
	PortNumber *int32 `json:"portNumber,omitempty"`
}

PortProperties resource properties.

func (*PortProperties) UnmarshalJSON

func (p *PortProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PortProperties struct.

type PortReference

type PortReference struct {
	// PortReferenceProperties - Resource properties.
	*PortReferenceProperties `json:"properties,omitempty"`
	// ID - Resource URI.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; Resource type qualifier.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Kind - Possible values include: 'KindResourceReference', 'KindRefmachine', 'KindRefprocess', 'KindRefport', 'KindRefmachinewithhints', 'KindRefclientgroup'
	Kind Kind `json:"kind,omitempty"`
}

PortReference reference to a port.

func (PortReference) AsBasicResourceReference

func (pr PortReference) AsBasicResourceReference() (BasicResourceReference, bool)

AsBasicResourceReference is the BasicResourceReference implementation for PortReference.

func (PortReference) AsClientGroupReference

func (pr PortReference) AsClientGroupReference() (*ClientGroupReference, bool)

AsClientGroupReference is the BasicResourceReference implementation for PortReference.

func (PortReference) AsMachineReference

func (pr PortReference) AsMachineReference() (*MachineReference, bool)

AsMachineReference is the BasicResourceReference implementation for PortReference.

func (PortReference) AsMachineReferenceWithHints

func (pr PortReference) AsMachineReferenceWithHints() (*MachineReferenceWithHints, bool)

AsMachineReferenceWithHints is the BasicResourceReference implementation for PortReference.

func (PortReference) AsPortReference

func (pr PortReference) AsPortReference() (*PortReference, bool)

AsPortReference is the BasicResourceReference implementation for PortReference.

func (PortReference) AsProcessReference

func (pr PortReference) AsProcessReference() (*ProcessReference, bool)

AsProcessReference is the BasicResourceReference implementation for PortReference.

func (PortReference) AsResourceReference

func (pr PortReference) AsResourceReference() (*ResourceReference, bool)

AsResourceReference is the BasicResourceReference implementation for PortReference.

func (PortReference) MarshalJSON

func (pr PortReference) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PortReference.

func (*PortReference) UnmarshalJSON

func (pr *PortReference) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PortReference struct.

type PortReferenceProperties

type PortReferenceProperties struct {
	// Machine - READ-ONLY; Machine hosting the port.
	Machine *MachineReference `json:"machine,omitempty"`
	// IPAddress - READ-ONLY; IP address of the port.
	IPAddress *string `json:"ipAddress,omitempty"`
	// PortNumber - Port number.
	PortNumber *int32 `json:"portNumber,omitempty"`
}

PortReferenceProperties resource properties.

type PortsClient

type PortsClient struct {
	BaseClient
}

PortsClient is the service Map API Reference

func NewPortsClient

func NewPortsClient(subscriptionID string) PortsClient

NewPortsClient creates an instance of the PortsClient client.

func NewPortsClientWithBaseURI

func NewPortsClientWithBaseURI(baseURI string, subscriptionID string) PortsClient

NewPortsClientWithBaseURI creates an instance of the PortsClient client.

func (PortsClient) Get

func (client PortsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (result Port, err error)

Get returns the specified port. The port must be live during the specified time interval. If the port is not live during the interval, status 404 (Not Found) is returned. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. portName - port resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow

func (PortsClient) GetLiveness

func (client PortsClient) GetLiveness(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (result Liveness, err error)

GetLiveness obtains the liveness status of the port during the specified time interval. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. portName - port resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow

func (PortsClient) GetLivenessPreparer

func (client PortsClient) GetLivenessPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)

GetLivenessPreparer prepares the GetLiveness request.

func (PortsClient) GetLivenessResponder

func (client PortsClient) GetLivenessResponder(resp *http.Response) (result Liveness, err error)

GetLivenessResponder handles the response to the GetLiveness request. The method always closes the http.Response Body.

func (PortsClient) GetLivenessSender

func (client PortsClient) GetLivenessSender(req *http.Request) (*http.Response, error)

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

func (PortsClient) GetPreparer

func (client PortsClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)

GetPreparer prepares the Get request.

func (PortsClient) GetResponder

func (client PortsClient) GetResponder(resp *http.Response) (result Port, err error)

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

func (PortsClient) GetSender

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

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

func (PortsClient) ListAcceptingProcesses

func (client PortsClient) ListAcceptingProcesses(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (result ProcessCollectionPage, err error)

ListAcceptingProcesses returns a collection of processes accepting on the specified port Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. portName - port resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow

func (PortsClient) ListAcceptingProcessesComplete

func (client PortsClient) ListAcceptingProcessesComplete(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (result ProcessCollectionIterator, err error)

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

func (PortsClient) ListAcceptingProcessesPreparer

func (client PortsClient) ListAcceptingProcessesPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)

ListAcceptingProcessesPreparer prepares the ListAcceptingProcesses request.

func (PortsClient) ListAcceptingProcessesResponder

func (client PortsClient) ListAcceptingProcessesResponder(resp *http.Response) (result ProcessCollection, err error)

ListAcceptingProcessesResponder handles the response to the ListAcceptingProcesses request. The method always closes the http.Response Body.

func (PortsClient) ListAcceptingProcessesSender

func (client PortsClient) ListAcceptingProcessesSender(req *http.Request) (*http.Response, error)

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

func (PortsClient) ListConnections

func (client PortsClient) ListConnections(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (result ConnectionCollectionPage, err error)

ListConnections returns a collection of connections established via the specified port. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. portName - port resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow

func (PortsClient) ListConnectionsComplete

func (client PortsClient) ListConnectionsComplete(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (result ConnectionCollectionIterator, err error)

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

func (PortsClient) ListConnectionsPreparer

func (client PortsClient) ListConnectionsPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)

ListConnectionsPreparer prepares the ListConnections request.

func (PortsClient) ListConnectionsResponder

func (client PortsClient) ListConnectionsResponder(resp *http.Response) (result ConnectionCollection, err error)

ListConnectionsResponder handles the response to the ListConnections request. The method always closes the http.Response Body.

func (PortsClient) ListConnectionsSender

func (client PortsClient) ListConnectionsSender(req *http.Request) (*http.Response, error)

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

type Process

type Process struct {
	autorest.Response `json:"-"`
	// ProcessProperties - Resource properties.
	*ProcessProperties `json:"properties,omitempty"`
	// Etag - Resource ETAG.
	Etag *string `json:"etag,omitempty"`
	// Kind - Possible values include: 'KindCoreResource', 'KindMachine', 'KindProcess', 'KindPort', 'KindClientGroup', 'KindMachineGroup'
	Kind KindBasicCoreResource `json:"kind,omitempty"`
	// ID - READ-ONLY; Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
}

Process a process resource represents a process running on a machine. The process may be actively *monitored*, i.e., a Dependency Agent is running on its machine, or *discovered*, i.e., its existence was inferred by observing the data stream from monitored machines. A process resource represents a pool of actual operating system resources that share command lines and metadata. As the process pool evolves over time, prior versions of the process resource are preserved and available for access. A process is live during an interval of time, if that process is executing during (parts) of that interval

func (Process) AsBasicCoreResource

func (p Process) AsBasicCoreResource() (BasicCoreResource, bool)

AsBasicCoreResource is the BasicCoreResource implementation for Process.

func (Process) AsClientGroup

func (p Process) AsClientGroup() (*ClientGroup, bool)

AsClientGroup is the BasicCoreResource implementation for Process.

func (Process) AsCoreResource

func (p Process) AsCoreResource() (*CoreResource, bool)

AsCoreResource is the BasicCoreResource implementation for Process.

func (Process) AsMachine

func (p Process) AsMachine() (*Machine, bool)

AsMachine is the BasicCoreResource implementation for Process.

func (Process) AsMachineGroup

func (p Process) AsMachineGroup() (*MachineGroup, bool)

AsMachineGroup is the BasicCoreResource implementation for Process.

func (Process) AsPort

func (p Process) AsPort() (*Port, bool)

AsPort is the BasicCoreResource implementation for Process.

func (Process) AsProcess

func (p Process) AsProcess() (*Process, bool)

AsProcess is the BasicCoreResource implementation for Process.

func (Process) MarshalJSON

func (p Process) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Process.

func (*Process) UnmarshalJSON

func (p *Process) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Process struct.

type ProcessCollection

type ProcessCollection struct {
	autorest.Response `json:"-"`
	// Value - Collection of Process resources.
	Value *[]Process `json:"value,omitempty"`
	// NextLink - The URL to the next set of resources.
	NextLink *string `json:"nextLink,omitempty"`
}

ProcessCollection collection of Process resources.

func (ProcessCollection) IsEmpty

func (pc ProcessCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ProcessCollectionIterator

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

ProcessCollectionIterator provides access to a complete listing of Process values.

func NewProcessCollectionIterator

func NewProcessCollectionIterator(page ProcessCollectionPage) ProcessCollectionIterator

Creates a new instance of the ProcessCollectionIterator type.

func (*ProcessCollectionIterator) Next

func (iter *ProcessCollectionIterator) 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 (*ProcessCollectionIterator) NextWithContext

func (iter *ProcessCollectionIterator) 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 (ProcessCollectionIterator) NotDone

func (iter ProcessCollectionIterator) NotDone() bool

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

func (ProcessCollectionIterator) Response

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

func (ProcessCollectionIterator) Value

func (iter ProcessCollectionIterator) Value() Process

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

type ProcessCollectionPage

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

ProcessCollectionPage contains a page of Process values.

func NewProcessCollectionPage

func NewProcessCollectionPage(getNextPage func(context.Context, ProcessCollection) (ProcessCollection, error)) ProcessCollectionPage

Creates a new instance of the ProcessCollectionPage type.

func (*ProcessCollectionPage) Next

func (page *ProcessCollectionPage) 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 (*ProcessCollectionPage) NextWithContext

func (page *ProcessCollectionPage) 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 (ProcessCollectionPage) NotDone

func (page ProcessCollectionPage) NotDone() bool

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

func (ProcessCollectionPage) Response

func (page ProcessCollectionPage) Response() ProcessCollection

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

func (ProcessCollectionPage) Values

func (page ProcessCollectionPage) Values() []Process

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

type ProcessDetails

type ProcessDetails struct {
	// PersistentKey - A unique identifier for a process, generally resilient to process restart, computed by Service Map.
	PersistentKey *string `json:"persistentKey,omitempty"`
	// PoolID - Represents the identity of the process pool assigned to the process by Dependency Agent.
	PoolID *int32 `json:"poolId,omitempty"`
	// FirstPid - The Operating System Process Identifier (PID) of the first process in this process pool.
	FirstPid *int32 `json:"firstPid,omitempty"`
	// Description - Process description.
	Description *string `json:"description,omitempty"`
	// CompanyName - Name of company that created the process executable.
	CompanyName *string `json:"companyName,omitempty"`
	// InternalName - Internal process name.
	InternalName *string `json:"internalName,omitempty"`
	// ProductName - Product name.
	ProductName *string `json:"productName,omitempty"`
	// ProductVersion - Product version.
	ProductVersion *string `json:"productVersion,omitempty"`
	// FileVersion - File version.
	FileVersion *string `json:"fileVersion,omitempty"`
	// CommandLine - Process command line.
	CommandLine *string `json:"commandLine,omitempty"`
	// ExecutablePath - Process executable path.
	ExecutablePath *string `json:"executablePath,omitempty"`
	// WorkingDirectory - Process workingDirectory.
	WorkingDirectory *string `json:"workingDirectory,omitempty"`
	// Services - Collection of services hosted by this Process (Windows only).
	Services *[]ProcessHostedService `json:"services,omitempty"`
	// ZoneName - Process zone name (Linux only).
	ZoneName *string `json:"zoneName,omitempty"`
}

ProcessDetails describes process metadata.

type ProcessHostedService

type ProcessHostedService struct {
	// Name - The name of the service.
	Name *string `json:"name,omitempty"`
	// DisplayName - The service's display name.
	DisplayName *string `json:"displayName,omitempty"`
}

ProcessHostedService a service hosted by a process.

type ProcessHostingConfiguration

type ProcessHostingConfiguration struct {
	// Provider - The hosting provider of the VM. Possible values include: 'Provider1Azure'
	Provider Provider1 `json:"provider,omitempty"`
	// Kind - Possible values include: 'KindBasicProcessHostingConfigurationKindProcessHostingConfiguration', 'KindBasicProcessHostingConfigurationKindProviderazure'
	Kind KindBasicProcessHostingConfiguration `json:"kind,omitempty"`
}

ProcessHostingConfiguration describes the hosting configuration of a process.

func (ProcessHostingConfiguration) AsAzureProcessHostingConfiguration

func (phc ProcessHostingConfiguration) AsAzureProcessHostingConfiguration() (*AzureProcessHostingConfiguration, bool)

AsAzureProcessHostingConfiguration is the BasicProcessHostingConfiguration implementation for ProcessHostingConfiguration.

func (ProcessHostingConfiguration) AsBasicProcessHostingConfiguration

func (phc ProcessHostingConfiguration) AsBasicProcessHostingConfiguration() (BasicProcessHostingConfiguration, bool)

AsBasicProcessHostingConfiguration is the BasicProcessHostingConfiguration implementation for ProcessHostingConfiguration.

func (ProcessHostingConfiguration) AsProcessHostingConfiguration

func (phc ProcessHostingConfiguration) AsProcessHostingConfiguration() (*ProcessHostingConfiguration, bool)

AsProcessHostingConfiguration is the BasicProcessHostingConfiguration implementation for ProcessHostingConfiguration.

func (ProcessHostingConfiguration) MarshalJSON

func (phc ProcessHostingConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProcessHostingConfiguration.

type ProcessProperties

type ProcessProperties struct {
	// Timestamp - UTC date and time when this process resource was updated in the system
	Timestamp *date.Time `json:"timestamp,omitempty"`
	// MonitoringState - Specifies whether the process is actively monitored or discovered. Possible values include: 'Monitored', 'Discovered'
	MonitoringState MonitoringState `json:"monitoringState,omitempty"`
	// Machine - Machine hosting this process.
	Machine BasicResourceReference `json:"machine,omitempty"`
	// ExecutableName - The name of the process executable
	ExecutableName *string `json:"executableName,omitempty"`
	// DisplayName - Name to use for display purposes
	DisplayName *string `json:"displayName,omitempty"`
	// StartTime - UTC date and time when the process started
	StartTime *date.Time `json:"startTime,omitempty"`
	// Role - The inferred role of this process based on its name, command line, etc. Possible values include: 'WebServer', 'AppServer', 'DatabaseServer', 'LdapServer', 'SmbServer'
	Role ProcessRole `json:"role,omitempty"`
	// Group - The name of the product or suite of the process. The group is determined by its executable name, command line, etc.
	Group *string `json:"group,omitempty"`
	// Details - Process metadata (command line, product name, etc.).
	Details *ProcessDetails `json:"details,omitempty"`
	// User - Information about the account under which the process is executing.
	User *ProcessUser `json:"user,omitempty"`
	// ClientOf - Present only for a discovered process acting as a client of a monitored process/machine/port. References the monitored process/machine/port that this process is a client of.
	ClientOf BasicResourceReference `json:"clientOf,omitempty"`
	// AcceptorOf - Present only for a discovered process acting as a server. References the port on which the discovered process is accepting.
	AcceptorOf BasicResourceReference `json:"acceptorOf,omitempty"`
	// Hosting - Information about the hosting environment
	Hosting BasicProcessHostingConfiguration `json:"hosting,omitempty"`
}

ProcessProperties resource properties.

func (*ProcessProperties) UnmarshalJSON

func (p *ProcessProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ProcessProperties struct.

type ProcessReference

type ProcessReference struct {
	// ProcessReferenceProperties - Resource properties.
	*ProcessReferenceProperties `json:"properties,omitempty"`
	// ID - Resource URI.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; Resource type qualifier.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Kind - Possible values include: 'KindResourceReference', 'KindRefmachine', 'KindRefprocess', 'KindRefport', 'KindRefmachinewithhints', 'KindRefclientgroup'
	Kind Kind `json:"kind,omitempty"`
}

ProcessReference reference to a process.

func (ProcessReference) AsBasicResourceReference

func (pr ProcessReference) AsBasicResourceReference() (BasicResourceReference, bool)

AsBasicResourceReference is the BasicResourceReference implementation for ProcessReference.

func (ProcessReference) AsClientGroupReference

func (pr ProcessReference) AsClientGroupReference() (*ClientGroupReference, bool)

AsClientGroupReference is the BasicResourceReference implementation for ProcessReference.

func (ProcessReference) AsMachineReference

func (pr ProcessReference) AsMachineReference() (*MachineReference, bool)

AsMachineReference is the BasicResourceReference implementation for ProcessReference.

func (ProcessReference) AsMachineReferenceWithHints

func (pr ProcessReference) AsMachineReferenceWithHints() (*MachineReferenceWithHints, bool)

AsMachineReferenceWithHints is the BasicResourceReference implementation for ProcessReference.

func (ProcessReference) AsPortReference

func (pr ProcessReference) AsPortReference() (*PortReference, bool)

AsPortReference is the BasicResourceReference implementation for ProcessReference.

func (ProcessReference) AsProcessReference

func (pr ProcessReference) AsProcessReference() (*ProcessReference, bool)

AsProcessReference is the BasicResourceReference implementation for ProcessReference.

func (ProcessReference) AsResourceReference

func (pr ProcessReference) AsResourceReference() (*ResourceReference, bool)

AsResourceReference is the BasicResourceReference implementation for ProcessReference.

func (ProcessReference) MarshalJSON

func (pr ProcessReference) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProcessReference.

func (*ProcessReference) UnmarshalJSON

func (pr *ProcessReference) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ProcessReference struct.

type ProcessReferenceProperties

type ProcessReferenceProperties struct {
	// Machine - READ-ONLY; Machine hosting the process.
	Machine *MachineReference `json:"machine,omitempty"`
}

ProcessReferenceProperties resource properties.

type ProcessRole

type ProcessRole string

ProcessRole enumerates the values for process role.

const (
	// AppServer ...
	AppServer ProcessRole = "appServer"
	// DatabaseServer ...
	DatabaseServer ProcessRole = "databaseServer"
	// LdapServer ...
	LdapServer ProcessRole = "ldapServer"
	// SmbServer ...
	SmbServer ProcessRole = "smbServer"
	// WebServer ...
	WebServer ProcessRole = "webServer"
)

func PossibleProcessRoleValues

func PossibleProcessRoleValues() []ProcessRole

PossibleProcessRoleValues returns an array of possible values for the ProcessRole const type.

type ProcessUser

type ProcessUser struct {
	// UserName - User name under which the process is running.
	UserName *string `json:"userName,omitempty"`
	// UserDomain - Domain name for the user.
	UserDomain *string `json:"userDomain,omitempty"`
}

ProcessUser describes the user under which a process is running.

type ProcessesClient

type ProcessesClient struct {
	BaseClient
}

ProcessesClient is the service Map API Reference

func NewProcessesClient

func NewProcessesClient(subscriptionID string) ProcessesClient

NewProcessesClient creates an instance of the ProcessesClient client.

func NewProcessesClientWithBaseURI

func NewProcessesClientWithBaseURI(baseURI string, subscriptionID string) ProcessesClient

NewProcessesClientWithBaseURI creates an instance of the ProcessesClient client.

func (ProcessesClient) Get

func (client ProcessesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, timestamp *date.Time) (result Process, err error)

Get returns the specified process. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. processName - process resource name. timestamp - UTC date and time specifying a time instance relative to which to evaluate a resource. When not specified, the service uses DateTime.UtcNow.

func (ProcessesClient) GetLiveness

func (client ProcessesClient) GetLiveness(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (result Liveness, err error)

GetLiveness obtains the liveness status of the process during the specified time interval. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. processName - process resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow

func (ProcessesClient) GetLivenessPreparer

func (client ProcessesClient) GetLivenessPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)

GetLivenessPreparer prepares the GetLiveness request.

func (ProcessesClient) GetLivenessResponder

func (client ProcessesClient) GetLivenessResponder(resp *http.Response) (result Liveness, err error)

GetLivenessResponder handles the response to the GetLiveness request. The method always closes the http.Response Body.

func (ProcessesClient) GetLivenessSender

func (client ProcessesClient) GetLivenessSender(req *http.Request) (*http.Response, error)

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

func (ProcessesClient) GetPreparer

func (client ProcessesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, timestamp *date.Time) (*http.Request, error)

GetPreparer prepares the Get request.

func (ProcessesClient) GetResponder

func (client ProcessesClient) GetResponder(resp *http.Response) (result Process, err error)

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

func (ProcessesClient) GetSender

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

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

func (ProcessesClient) ListAcceptingPorts

func (client ProcessesClient) ListAcceptingPorts(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (result PortCollectionPage, err error)

ListAcceptingPorts returns a collection of ports on which this process is accepting Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. processName - process resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow

func (ProcessesClient) ListAcceptingPortsComplete

func (client ProcessesClient) ListAcceptingPortsComplete(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (result PortCollectionIterator, err error)

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

func (ProcessesClient) ListAcceptingPortsPreparer

func (client ProcessesClient) ListAcceptingPortsPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)

ListAcceptingPortsPreparer prepares the ListAcceptingPorts request.

func (ProcessesClient) ListAcceptingPortsResponder

func (client ProcessesClient) ListAcceptingPortsResponder(resp *http.Response) (result PortCollection, err error)

ListAcceptingPortsResponder handles the response to the ListAcceptingPorts request. The method always closes the http.Response Body.

func (ProcessesClient) ListAcceptingPortsSender

func (client ProcessesClient) ListAcceptingPortsSender(req *http.Request) (*http.Response, error)

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

func (ProcessesClient) ListConnections

func (client ProcessesClient) ListConnections(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (result ConnectionCollectionPage, err error)

ListConnections returns a collection of connections terminating or originating at the specified process Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. processName - process resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow

func (ProcessesClient) ListConnectionsComplete

func (client ProcessesClient) ListConnectionsComplete(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (result ConnectionCollectionIterator, err error)

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

func (ProcessesClient) ListConnectionsPreparer

func (client ProcessesClient) ListConnectionsPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)

ListConnectionsPreparer prepares the ListConnections request.

func (ProcessesClient) ListConnectionsResponder

func (client ProcessesClient) ListConnectionsResponder(resp *http.Response) (result ConnectionCollection, err error)

ListConnectionsResponder handles the response to the ListConnections request. The method always closes the http.Response Body.

func (ProcessesClient) ListConnectionsSender

func (client ProcessesClient) ListConnectionsSender(req *http.Request) (*http.Response, error)

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

type Provider

type Provider string

Provider enumerates the values for provider.

const (
	// Azure ...
	Azure Provider = "azure"
)

func PossibleProviderValues

func PossibleProviderValues() []Provider

PossibleProviderValues returns an array of possible values for the Provider const type.

type Provider1

type Provider1 string

Provider1 enumerates the values for provider 1.

const (
	// Provider1Azure ...
	Provider1Azure Provider1 = "azure"
)

func PossibleProvider1Values

func PossibleProvider1Values() []Provider1

PossibleProvider1Values returns an array of possible values for the Provider1 const type.

type Relationship

type Relationship struct {
	// Kind - Possible values include: 'KindRelationship', 'KindRelconnection', 'KindRelacceptor'
	Kind KindBasicRelationship `json:"kind,omitempty"`
	// ID - READ-ONLY; Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
}

Relationship a typed relationship between two entities.

func (Relationship) AsAcceptor

func (r Relationship) AsAcceptor() (*Acceptor, bool)

AsAcceptor is the BasicRelationship implementation for Relationship.

func (Relationship) AsBasicRelationship

func (r Relationship) AsBasicRelationship() (BasicRelationship, bool)

AsBasicRelationship is the BasicRelationship implementation for Relationship.

func (Relationship) AsConnection

func (r Relationship) AsConnection() (*Connection, bool)

AsConnection is the BasicRelationship implementation for Relationship.

func (Relationship) AsRelationship

func (r Relationship) AsRelationship() (*Relationship, bool)

AsRelationship is the BasicRelationship implementation for Relationship.

func (Relationship) MarshalJSON

func (r Relationship) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Relationship.

type RelationshipProperties

type RelationshipProperties struct {
	// Source - Source resource of the relationship.
	Source BasicResourceReference `json:"source,omitempty"`
	// Destination - Destination resource of the relationship.
	Destination BasicResourceReference `json:"destination,omitempty"`
	// StartTime - Relationship start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - Relationship end time.
	EndTime *date.Time `json:"endTime,omitempty"`
}

RelationshipProperties relationship properties.

func (*RelationshipProperties) UnmarshalJSON

func (rp *RelationshipProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RelationshipProperties struct.

type Resource

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

Resource resource model definition.

type ResourceReference

type ResourceReference struct {
	// ID - Resource URI.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; Resource type qualifier.
	Type *string `json:"type,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Kind - Possible values include: 'KindResourceReference', 'KindRefmachine', 'KindRefprocess', 'KindRefport', 'KindRefmachinewithhints', 'KindRefclientgroup'
	Kind Kind `json:"kind,omitempty"`
}

ResourceReference represents a reference to another resource.

func (ResourceReference) AsBasicResourceReference

func (rr ResourceReference) AsBasicResourceReference() (BasicResourceReference, bool)

AsBasicResourceReference is the BasicResourceReference implementation for ResourceReference.

func (ResourceReference) AsClientGroupReference

func (rr ResourceReference) AsClientGroupReference() (*ClientGroupReference, bool)

AsClientGroupReference is the BasicResourceReference implementation for ResourceReference.

func (ResourceReference) AsMachineReference

func (rr ResourceReference) AsMachineReference() (*MachineReference, bool)

AsMachineReference is the BasicResourceReference implementation for ResourceReference.

func (ResourceReference) AsMachineReferenceWithHints

func (rr ResourceReference) AsMachineReferenceWithHints() (*MachineReferenceWithHints, bool)

AsMachineReferenceWithHints is the BasicResourceReference implementation for ResourceReference.

func (ResourceReference) AsPortReference

func (rr ResourceReference) AsPortReference() (*PortReference, bool)

AsPortReference is the BasicResourceReference implementation for ResourceReference.

func (ResourceReference) AsProcessReference

func (rr ResourceReference) AsProcessReference() (*ProcessReference, bool)

AsProcessReference is the BasicResourceReference implementation for ResourceReference.

func (ResourceReference) AsResourceReference

func (rr ResourceReference) AsResourceReference() (*ResourceReference, bool)

AsResourceReference is the BasicResourceReference implementation for ResourceReference.

func (ResourceReference) MarshalJSON

func (rr ResourceReference) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceReference.

type SingleMachineDependencyMapRequest

type SingleMachineDependencyMapRequest struct {
	// MachineID - URI of machine resource for which to generate the map.
	MachineID *string `json:"machineId,omitempty"`
	// StartTime - Map interval start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - Map interval end time.
	EndTime *date.Time `json:"endTime,omitempty"`
	// Kind - Possible values include: 'KindMapRequest', 'KindMapsingleMachineDependency', 'KindMultipleMachinesMapRequest', 'KindMapmachineListDependency', 'KindMapmachineGroupDependency'
	Kind KindBasicMapRequest `json:"kind,omitempty"`
}

SingleMachineDependencyMapRequest specifies the computation of a single server dependency map. A single server dependency map includes all direct dependencies of a given machine.

func (SingleMachineDependencyMapRequest) AsBasicMapRequest

func (smdmr SingleMachineDependencyMapRequest) AsBasicMapRequest() (BasicMapRequest, bool)

AsBasicMapRequest is the BasicMapRequest implementation for SingleMachineDependencyMapRequest.

func (SingleMachineDependencyMapRequest) AsBasicMultipleMachinesMapRequest

func (smdmr SingleMachineDependencyMapRequest) AsBasicMultipleMachinesMapRequest() (BasicMultipleMachinesMapRequest, bool)

AsBasicMultipleMachinesMapRequest is the BasicMapRequest implementation for SingleMachineDependencyMapRequest.

func (SingleMachineDependencyMapRequest) AsMachineGroupMapRequest

func (smdmr SingleMachineDependencyMapRequest) AsMachineGroupMapRequest() (*MachineGroupMapRequest, bool)

AsMachineGroupMapRequest is the BasicMapRequest implementation for SingleMachineDependencyMapRequest.

func (SingleMachineDependencyMapRequest) AsMachineListMapRequest

func (smdmr SingleMachineDependencyMapRequest) AsMachineListMapRequest() (*MachineListMapRequest, bool)

AsMachineListMapRequest is the BasicMapRequest implementation for SingleMachineDependencyMapRequest.

func (SingleMachineDependencyMapRequest) AsMapRequest

func (smdmr SingleMachineDependencyMapRequest) AsMapRequest() (*MapRequest, bool)

AsMapRequest is the BasicMapRequest implementation for SingleMachineDependencyMapRequest.

func (SingleMachineDependencyMapRequest) AsMultipleMachinesMapRequest

func (smdmr SingleMachineDependencyMapRequest) AsMultipleMachinesMapRequest() (*MultipleMachinesMapRequest, bool)

AsMultipleMachinesMapRequest is the BasicMapRequest implementation for SingleMachineDependencyMapRequest.

func (SingleMachineDependencyMapRequest) AsSingleMachineDependencyMapRequest

func (smdmr SingleMachineDependencyMapRequest) AsSingleMachineDependencyMapRequest() (*SingleMachineDependencyMapRequest, bool)

AsSingleMachineDependencyMapRequest is the BasicMapRequest implementation for SingleMachineDependencyMapRequest.

func (SingleMachineDependencyMapRequest) MarshalJSON

func (smdmr SingleMachineDependencyMapRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SingleMachineDependencyMapRequest.

type SummariesClient

type SummariesClient struct {
	BaseClient
}

SummariesClient is the service Map API Reference

func NewSummariesClient

func NewSummariesClient(subscriptionID string) SummariesClient

NewSummariesClient creates an instance of the SummariesClient client.

func NewSummariesClientWithBaseURI

func NewSummariesClientWithBaseURI(baseURI string, subscriptionID string) SummariesClient

NewSummariesClientWithBaseURI creates an instance of the SummariesClient client.

func (SummariesClient) GetMachines

func (client SummariesClient) GetMachines(ctx context.Context, resourceGroupName string, workspaceName string, startTime *date.Time, endTime *date.Time) (result MachinesSummary, err error)

GetMachines returns summary information about the machines in the workspace. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow

func (SummariesClient) GetMachinesPreparer

func (client SummariesClient) GetMachinesPreparer(ctx context.Context, resourceGroupName string, workspaceName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)

GetMachinesPreparer prepares the GetMachines request.

func (SummariesClient) GetMachinesResponder

func (client SummariesClient) GetMachinesResponder(resp *http.Response) (result MachinesSummary, err error)

GetMachinesResponder handles the response to the GetMachines request. The method always closes the http.Response Body.

func (SummariesClient) GetMachinesSender

func (client SummariesClient) GetMachinesSender(req *http.Request) (*http.Response, error)

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

type Summary

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

Summary base for all resource summaries.

type SummaryProperties

type SummaryProperties struct {
	// StartTime - Summary interval start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - Summary interval end time.
	EndTime *date.Time `json:"endTime,omitempty"`
}

SummaryProperties base for all summaries.

type Timezone

type Timezone struct {
	// FullName - Timezone full name.
	FullName *string `json:"fullName,omitempty"`
}

Timezone describes a timezone.

type VirtualMachineConfiguration

type VirtualMachineConfiguration struct {
	// VirtualMachineType - Specifies the virtualization technology used by the machine (hyperv, vmware, etc.). Possible values include: 'VirtualMachineTypeUnknown', 'VirtualMachineTypeHyperv', 'VirtualMachineTypeLdom', 'VirtualMachineTypeLpar', 'VirtualMachineTypeVmware', 'VirtualMachineTypeVirtualPc', 'VirtualMachineTypeXen'
	VirtualMachineType VirtualMachineType `json:"virtualMachineType,omitempty"`
	// NativeMachineID - The unique identifier of the virtual machine as reported by the underlying virtualization system.
	NativeMachineID *string `json:"nativeMachineId,omitempty"`
	// VirtualMachineName - The Name of the virtual machine.
	VirtualMachineName *string `json:"virtualMachineName,omitempty"`
	// NativeHostMachineID - The unique identifier of the host of this virtual machine as reported by the underlying virtualization system.
	NativeHostMachineID *string `json:"nativeHostMachineId,omitempty"`
}

VirtualMachineConfiguration describes the virtualization-related configuration of a machine.

type VirtualMachineType

type VirtualMachineType string

VirtualMachineType enumerates the values for virtual machine type.

const (
	// VirtualMachineTypeHyperv ...
	VirtualMachineTypeHyperv VirtualMachineType = "hyperv"
	// VirtualMachineTypeLdom ...
	VirtualMachineTypeLdom VirtualMachineType = "ldom"
	// VirtualMachineTypeLpar ...
	VirtualMachineTypeLpar VirtualMachineType = "lpar"
	// VirtualMachineTypeUnknown ...
	VirtualMachineTypeUnknown VirtualMachineType = "unknown"
	// VirtualMachineTypeVirtualPc ...
	VirtualMachineTypeVirtualPc VirtualMachineType = "virtualPc"
	// VirtualMachineTypeVmware ...
	VirtualMachineTypeVmware VirtualMachineType = "vmware"
	// VirtualMachineTypeXen ...
	VirtualMachineTypeXen VirtualMachineType = "xen"
)

func PossibleVirtualMachineTypeValues

func PossibleVirtualMachineTypeValues() []VirtualMachineType

PossibleVirtualMachineTypeValues returns an array of possible values for the VirtualMachineType const type.

type VirtualizationState

type VirtualizationState string

VirtualizationState enumerates the values for virtualization state.

const (
	// VirtualizationStateHypervisor ...
	VirtualizationStateHypervisor VirtualizationState = "hypervisor"
	// VirtualizationStatePhysical ...
	VirtualizationStatePhysical VirtualizationState = "physical"
	// VirtualizationStateUnknown ...
	VirtualizationStateUnknown VirtualizationState = "unknown"
	// VirtualizationStateVirtual ...
	VirtualizationStateVirtual VirtualizationState = "virtual"
)

func PossibleVirtualizationStateValues

func PossibleVirtualizationStateValues() []VirtualizationState

PossibleVirtualizationStateValues returns an array of possible values for the VirtualizationState const type.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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