servicemap

package
v14.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 License: Apache-2.0 Imports: 9 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 - Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// Name - 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 BasicResource implementation for Acceptor.

func (Acceptor) AsBasicCoreResource

func (a Acceptor) AsBasicCoreResource() (BasicCoreResource, bool)

AsBasicCoreResource is the BasicResource implementation for Acceptor.

func (Acceptor) AsBasicRelationship

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

AsBasicRelationship is the BasicResource implementation for Acceptor.

func (Acceptor) AsClientGroup

func (a Acceptor) AsClientGroup() (*ClientGroup, bool)

AsClientGroup is the BasicResource implementation for Acceptor.

func (Acceptor) AsClientGroupMember

func (a Acceptor) AsClientGroupMember() (*ClientGroupMember, bool)

AsClientGroupMember is the BasicResource implementation for Acceptor.

func (Acceptor) AsConnection

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

AsConnection is the BasicResource implementation for Acceptor.

func (Acceptor) AsCoreResource

func (a Acceptor) AsCoreResource() (*CoreResource, bool)

AsCoreResource is the BasicResource implementation for Acceptor.

func (Acceptor) AsMachine

func (a Acceptor) AsMachine() (*Machine, bool)

AsMachine is the BasicResource implementation for Acceptor.

func (Acceptor) AsMachineGroup

func (a Acceptor) AsMachineGroup() (*MachineGroup, bool)

AsMachineGroup is the BasicResource implementation for Acceptor.

func (Acceptor) AsMachinesSummary

func (a Acceptor) AsMachinesSummary() (*MachinesSummary, bool)

AsMachinesSummary is the BasicResource implementation for Acceptor.

func (Acceptor) AsPort

func (a Acceptor) AsPort() (*Port, bool)

AsPort is the BasicResource implementation for Acceptor.

func (Acceptor) AsProcess

func (a Acceptor) AsProcess() (*Process, bool)

AsProcess is the BasicResource implementation for Acceptor.

func (Acceptor) AsRelationship

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

AsRelationship is the BasicResource implementation for Acceptor.

func (Acceptor) AsSummary

func (a Acceptor) AsSummary() (*Summary, bool)

AsSummary is the BasicResource 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"
)

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 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 BasicMapRequest

type BasicMapRequest interface {
	AsSingleMachineDependencyMapRequest() (*SingleMachineDependencyMapRequest, bool)
	AsMachineGroupMapRequest() (*MachineGroupMapRequest, bool)
	AsMapRequest() (*MapRequest, bool)
}

BasicMapRequest specifies the contents of request to generate a map.

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)
	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"
)

type ClientGroup

type ClientGroup struct {
	autorest.Response `json:"-"`
	// ClientGroupProperties - Resource properties.
	*ClientGroupProperties `json:"properties,omitempty"`
	// Etag - Resource ETAG.
	Etag *string `json:"etag,omitempty"`
	// ID - Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// Name - 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) AsAcceptor

func (cg ClientGroup) AsAcceptor() (*Acceptor, bool)

AsAcceptor is the BasicResource implementation for ClientGroup.

func (ClientGroup) AsBasicCoreResource

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

AsBasicCoreResource is the BasicResource implementation for ClientGroup.

func (ClientGroup) AsBasicRelationship

func (cg ClientGroup) AsBasicRelationship() (BasicRelationship, bool)

AsBasicRelationship is the BasicResource implementation for ClientGroup.

func (ClientGroup) AsClientGroup

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

AsClientGroup is the BasicResource implementation for ClientGroup.

func (ClientGroup) AsClientGroupMember

func (cg ClientGroup) AsClientGroupMember() (*ClientGroupMember, bool)

AsClientGroupMember is the BasicResource implementation for ClientGroup.

func (ClientGroup) AsConnection

func (cg ClientGroup) AsConnection() (*Connection, bool)

AsConnection is the BasicResource implementation for ClientGroup.

func (ClientGroup) AsCoreResource

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

AsCoreResource is the BasicResource implementation for ClientGroup.

func (ClientGroup) AsMachine

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

AsMachine is the BasicResource implementation for ClientGroup.

func (ClientGroup) AsMachineGroup

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

AsMachineGroup is the BasicResource implementation for ClientGroup.

func (ClientGroup) AsMachinesSummary

func (cg ClientGroup) AsMachinesSummary() (*MachinesSummary, bool)

AsMachinesSummary is the BasicResource implementation for ClientGroup.

func (ClientGroup) AsPort

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

AsPort is the BasicResource implementation for ClientGroup.

func (ClientGroup) AsProcess

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

AsProcess is the BasicResource implementation for ClientGroup.

func (ClientGroup) AsRelationship

func (cg ClientGroup) AsRelationship() (*Relationship, bool)

AsRelationship is the BasicResource implementation for ClientGroup.

func (ClientGroup) AsSummary

func (cg ClientGroup) AsSummary() (*Summary, bool)

AsSummary is the BasicResource 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 - Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
}

ClientGroupMember represents a member of a client group

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 (*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.

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 (*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.

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 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

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. clientGroupName is client Group resource name. startTime is UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is 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.

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. clientGroupName is client Group resource name. startTime is UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is 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.

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. clientGroupName is client Group resource name. startTime is UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow top is 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"`
	// ID - Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Kind - Possible values include: 'KindRelationship', 'KindRelconnection', 'KindRelacceptor'
	Kind KindBasicRelationship `json:"kind,omitempty"`
}

Connection a network connection.

func (Connection) AsAcceptor

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

AsAcceptor is the BasicResource implementation for Connection.

func (Connection) AsBasicCoreResource

func (c Connection) AsBasicCoreResource() (BasicCoreResource, bool)

AsBasicCoreResource is the BasicResource implementation for Connection.

func (Connection) AsBasicRelationship

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

AsBasicRelationship is the BasicResource implementation for Connection.

func (Connection) AsClientGroup

func (c Connection) AsClientGroup() (*ClientGroup, bool)

AsClientGroup is the BasicResource implementation for Connection.

func (Connection) AsClientGroupMember

func (c Connection) AsClientGroupMember() (*ClientGroupMember, bool)

AsClientGroupMember is the BasicResource implementation for Connection.

func (Connection) AsConnection

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

AsConnection is the BasicResource implementation for Connection.

func (Connection) AsCoreResource

func (c Connection) AsCoreResource() (*CoreResource, bool)

AsCoreResource is the BasicResource implementation for Connection.

func (Connection) AsMachine

func (c Connection) AsMachine() (*Machine, bool)

AsMachine is the BasicResource implementation for Connection.

func (Connection) AsMachineGroup

func (c Connection) AsMachineGroup() (*MachineGroup, bool)

AsMachineGroup is the BasicResource implementation for Connection.

func (Connection) AsMachinesSummary

func (c Connection) AsMachinesSummary() (*MachinesSummary, bool)

AsMachinesSummary is the BasicResource implementation for Connection.

func (Connection) AsPort

func (c Connection) AsPort() (*Port, bool)

AsPort is the BasicResource implementation for Connection.

func (Connection) AsProcess

func (c Connection) AsProcess() (*Process, bool)

AsProcess is the BasicResource implementation for Connection.

func (Connection) AsRelationship

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

AsRelationship is the BasicResource implementation for Connection.

func (Connection) AsSummary

func (c Connection) AsSummary() (*Summary, bool)

AsSummary is the BasicResource 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 (*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.

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 (*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.

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"
)

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 - Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
}

CoreResource marker resource for the core Service Map resources

func (CoreResource) AsAcceptor

func (cr CoreResource) AsAcceptor() (*Acceptor, bool)

AsAcceptor is the BasicResource implementation for CoreResource.

func (CoreResource) AsBasicCoreResource

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

AsBasicCoreResource is the BasicResource implementation for CoreResource.

func (CoreResource) AsBasicRelationship

func (cr CoreResource) AsBasicRelationship() (BasicRelationship, bool)

AsBasicRelationship is the BasicResource implementation for CoreResource.

func (CoreResource) AsClientGroup

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

AsClientGroup is the BasicResource implementation for CoreResource.

func (CoreResource) AsClientGroupMember

func (cr CoreResource) AsClientGroupMember() (*ClientGroupMember, bool)

AsClientGroupMember is the BasicResource implementation for CoreResource.

func (CoreResource) AsConnection

func (cr CoreResource) AsConnection() (*Connection, bool)

AsConnection is the BasicResource implementation for CoreResource.

func (CoreResource) AsCoreResource

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

AsCoreResource is the BasicResource implementation for CoreResource.

func (CoreResource) AsMachine

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

AsMachine is the BasicResource implementation for CoreResource.

func (CoreResource) AsMachineGroup

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

AsMachineGroup is the BasicResource implementation for CoreResource.

func (CoreResource) AsMachinesSummary

func (cr CoreResource) AsMachinesSummary() (*MachinesSummary, bool)

AsMachinesSummary is the BasicResource implementation for CoreResource.

func (CoreResource) AsPort

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

AsPort is the BasicResource implementation for CoreResource.

func (CoreResource) AsProcess

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

AsProcess is the BasicResource implementation for CoreResource.

func (CoreResource) AsRelationship

func (cr CoreResource) AsRelationship() (*Relationship, bool)

AsRelationship is the BasicResource implementation for CoreResource.

func (CoreResource) AsSummary

func (cr CoreResource) AsSummary() (*Summary, bool)

AsSummary is the BasicResource 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 HypervisorConfiguration

type HypervisorConfiguration struct {
	// HypervisorType - Specifies the virtualization technology used by the hypervisor (hyperv, vmware, etc.). Possible values include: 'Unknown', 'Hyperv'
	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 (
	// Hyperv ...
	Hyperv HypervisorType = "hyperv"
	// Unknown ...
	Unknown HypervisorType = "unknown"
)

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 (
	// KindRefmachine ...
	KindRefmachine Kind = "ref:machine"
	// KindRefmachinewithhints ...
	KindRefmachinewithhints Kind = "ref:machinewithhints"
	// KindRefport ...
	KindRefport Kind = "ref:port"
	// KindRefprocess ...
	KindRefprocess Kind = "ref:process"
	// KindResourceReference ...
	KindResourceReference Kind = "ResourceReference"
)

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"
)

type KindBasicMapRequest

type KindBasicMapRequest string

KindBasicMapRequest enumerates the values for kind basic map request.

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

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"
)

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 - Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// Name - 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) AsAcceptor

func (mVar Machine) AsAcceptor() (*Acceptor, bool)

AsAcceptor is the BasicResource implementation for Machine.

func (Machine) AsBasicCoreResource

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

AsBasicCoreResource is the BasicResource implementation for Machine.

func (Machine) AsBasicRelationship

func (mVar Machine) AsBasicRelationship() (BasicRelationship, bool)

AsBasicRelationship is the BasicResource implementation for Machine.

func (Machine) AsClientGroup

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

AsClientGroup is the BasicResource implementation for Machine.

func (Machine) AsClientGroupMember

func (mVar Machine) AsClientGroupMember() (*ClientGroupMember, bool)

AsClientGroupMember is the BasicResource implementation for Machine.

func (Machine) AsConnection

func (mVar Machine) AsConnection() (*Connection, bool)

AsConnection is the BasicResource implementation for Machine.

func (Machine) AsCoreResource

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

AsCoreResource is the BasicResource implementation for Machine.

func (Machine) AsMachine

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

AsMachine is the BasicResource implementation for Machine.

func (Machine) AsMachineGroup

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

AsMachineGroup is the BasicResource implementation for Machine.

func (Machine) AsMachinesSummary

func (mVar Machine) AsMachinesSummary() (*MachinesSummary, bool)

AsMachinesSummary is the BasicResource implementation for Machine.

func (Machine) AsPort

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

AsPort is the BasicResource implementation for Machine.

func (Machine) AsProcess

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

AsProcess is the BasicResource implementation for Machine.

func (Machine) AsRelationship

func (mVar Machine) AsRelationship() (*Relationship, bool)

AsRelationship is the BasicResource implementation for Machine.

func (Machine) AsSummary

func (mVar Machine) AsSummary() (*Summary, bool)

AsSummary is the BasicResource 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 (*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.

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 (*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.

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 - Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
}

MachineGroup a user-defined logical grouping of machines.

func (MachineGroup) AsAcceptor

func (mg MachineGroup) AsAcceptor() (*Acceptor, bool)

AsAcceptor is the BasicResource implementation for MachineGroup.

func (MachineGroup) AsBasicCoreResource

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

AsBasicCoreResource is the BasicResource implementation for MachineGroup.

func (MachineGroup) AsBasicRelationship

func (mg MachineGroup) AsBasicRelationship() (BasicRelationship, bool)

AsBasicRelationship is the BasicResource implementation for MachineGroup.

func (MachineGroup) AsClientGroup

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

AsClientGroup is the BasicResource implementation for MachineGroup.

func (MachineGroup) AsClientGroupMember

func (mg MachineGroup) AsClientGroupMember() (*ClientGroupMember, bool)

AsClientGroupMember is the BasicResource implementation for MachineGroup.

func (MachineGroup) AsConnection

func (mg MachineGroup) AsConnection() (*Connection, bool)

AsConnection is the BasicResource implementation for MachineGroup.

func (MachineGroup) AsCoreResource

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

AsCoreResource is the BasicResource implementation for MachineGroup.

func (MachineGroup) AsMachine

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

AsMachine is the BasicResource implementation for MachineGroup.

func (MachineGroup) AsMachineGroup

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

AsMachineGroup is the BasicResource implementation for MachineGroup.

func (MachineGroup) AsMachinesSummary

func (mg MachineGroup) AsMachinesSummary() (*MachinesSummary, bool)

AsMachinesSummary is the BasicResource implementation for MachineGroup.

func (MachineGroup) AsPort

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

AsPort is the BasicResource implementation for MachineGroup.

func (MachineGroup) AsProcess

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

AsProcess is the BasicResource implementation for MachineGroup.

func (MachineGroup) AsRelationship

func (mg MachineGroup) AsRelationship() (*Relationship, bool)

AsRelationship is the BasicResource implementation for MachineGroup.

func (MachineGroup) AsSummary

func (mg MachineGroup) AsSummary() (*Summary, bool)

AsSummary is the BasicResource 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 (*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.

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 (*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.

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 grouped 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', '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 of a group of machines.

func (MachineGroupMapRequest) AsBasicMapRequest

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

AsBasicMapRequest is the BasicMapRequest implementation for MachineGroupMapRequest.

func (MachineGroupMapRequest) AsMachineGroupMapRequest

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

AsMachineGroupMapRequest is the BasicMapRequest implementation for MachineGroupMapRequest.

func (MachineGroupMapRequest) AsMapRequest

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

AsMapRequest 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 {
	// DisplayName - User defined name for the group
	DisplayName *string `json:"displayName,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 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.

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. machineGroup is 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.

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. machineGroupName is 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) (result MachineGroup, err error)

Get returns the specified machine group.

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. machineGroupName is machine Group resource name.

func (MachineGroupsClient) GetPreparer

func (client MachineGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineGroupName string) (*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) (result MachineGroupCollectionPage, err error)

ListByWorkspace returns all machine groups.

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest.

func (MachineGroupsClient) ListByWorkspaceComplete

func (client MachineGroupsClient) ListByWorkspaceComplete(ctx context.Context, resourceGroupName string, workspaceName string) (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) (*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.

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. machineGroupName is machine Group resource name. machineGroup is 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 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"`
}

MachineProperties resource properties.

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"
)

type MachineReference

type MachineReference struct {
	// ID - Resource URI.
	ID *string `json:"id,omitempty"`
	// Type - Resource type qualifier.
	Type *string `json:"type,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Kind - Possible values include: 'KindResourceReference', 'KindRefmachine', 'KindRefprocess', 'KindRefport', 'KindRefmachinewithhints'
	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) 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 - Resource type qualifier.
	Type *string `json:"type,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Kind - Possible values include: 'KindResourceReference', 'KindRefmachine', 'KindRefprocess', 'KindRefport', 'KindRefmachinewithhints'
	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) 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 - Last known display name.
	DisplayNameHint *string `json:"displayNameHint,omitempty"`
	// OsFamilyHint - 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.

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. machineName is machine resource name. timestamp is 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.

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. machineName is machine resource name. startTime is UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is 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).

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. live is 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 is UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow timestamp is 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 is 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

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. machineName is machine resource name. startTime is UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is 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) (result MachineGroupCollectionPage, err error)

ListMachineGroupMembership returns a collection of machine groups this machine belongs to.

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. machineName is machine resource name.

func (MachinesClient) ListMachineGroupMembershipComplete

func (client MachinesClient) ListMachineGroupMembershipComplete(ctx context.Context, resourceGroupName string, workspaceName string, machineName string) (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) (*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.

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. machineName is machine resource name. startTime is UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is 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).

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. machineName is machine resource name. live is 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 is UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow timestamp is 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 - Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
}

MachinesSummary a summary of the machines in the workspace.

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', '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) AsMachineGroupMapRequest

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

AsMachineGroupMapRequest is the BasicMapRequest implementation for MapRequest.

func (MapRequest) AsMapRequest

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

AsMapRequest 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.

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. request is 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"
)

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"
)

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 - Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// Name - 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) AsAcceptor

func (p Port) AsAcceptor() (*Acceptor, bool)

AsAcceptor is the BasicResource implementation for Port.

func (Port) AsBasicCoreResource

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

AsBasicCoreResource is the BasicResource implementation for Port.

func (Port) AsBasicRelationship

func (p Port) AsBasicRelationship() (BasicRelationship, bool)

AsBasicRelationship is the BasicResource implementation for Port.

func (Port) AsClientGroup

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

AsClientGroup is the BasicResource implementation for Port.

func (Port) AsClientGroupMember

func (p Port) AsClientGroupMember() (*ClientGroupMember, bool)

AsClientGroupMember is the BasicResource implementation for Port.

func (Port) AsConnection

func (p Port) AsConnection() (*Connection, bool)

AsConnection is the BasicResource implementation for Port.

func (Port) AsCoreResource

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

AsCoreResource is the BasicResource implementation for Port.

func (Port) AsMachine

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

AsMachine is the BasicResource implementation for Port.

func (Port) AsMachineGroup

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

AsMachineGroup is the BasicResource implementation for Port.

func (Port) AsMachinesSummary

func (p Port) AsMachinesSummary() (*MachinesSummary, bool)

AsMachinesSummary is the BasicResource implementation for Port.

func (Port) AsPort

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

AsPort is the BasicResource implementation for Port.

func (Port) AsProcess

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

AsProcess is the BasicResource implementation for Port.

func (Port) AsRelationship

func (p Port) AsRelationship() (*Relationship, bool)

AsRelationship is the BasicResource implementation for Port.

func (Port) AsSummary

func (p Port) AsSummary() (*Summary, bool)

AsSummary is the BasicResource 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 (*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.

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 (*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.

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 - Resource type qualifier.
	Type *string `json:"type,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Kind - Possible values include: 'KindResourceReference', 'KindRefmachine', 'KindRefprocess', 'KindRefport', 'KindRefmachinewithhints'
	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) 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 - Machine hosting the port.
	Machine *MachineReference `json:"machine,omitempty"`
	// IPAddress - 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.

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. machineName is machine resource name. portName is port resource name. startTime is UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is 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.

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. machineName is machine resource name. portName is port resource name. startTime is UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is 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

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. machineName is machine resource name. portName is port resource name. startTime is UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is 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.

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. machineName is machine resource name. portName is port resource name. startTime is UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is 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 - Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// Name - 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) AsAcceptor

func (p Process) AsAcceptor() (*Acceptor, bool)

AsAcceptor is the BasicResource implementation for Process.

func (Process) AsBasicCoreResource

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

AsBasicCoreResource is the BasicResource implementation for Process.

func (Process) AsBasicRelationship

func (p Process) AsBasicRelationship() (BasicRelationship, bool)

AsBasicRelationship is the BasicResource implementation for Process.

func (Process) AsClientGroup

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

AsClientGroup is the BasicResource implementation for Process.

func (Process) AsClientGroupMember

func (p Process) AsClientGroupMember() (*ClientGroupMember, bool)

AsClientGroupMember is the BasicResource implementation for Process.

func (Process) AsConnection

func (p Process) AsConnection() (*Connection, bool)

AsConnection is the BasicResource implementation for Process.

func (Process) AsCoreResource

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

AsCoreResource is the BasicResource implementation for Process.

func (Process) AsMachine

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

AsMachine is the BasicResource implementation for Process.

func (Process) AsMachineGroup

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

AsMachineGroup is the BasicResource implementation for Process.

func (Process) AsMachinesSummary

func (p Process) AsMachinesSummary() (*MachinesSummary, bool)

AsMachinesSummary is the BasicResource implementation for Process.

func (Process) AsPort

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

AsPort is the BasicResource implementation for Process.

func (Process) AsProcess

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

AsProcess is the BasicResource implementation for Process.

func (Process) AsRelationship

func (p Process) AsRelationship() (*Relationship, bool)

AsRelationship is the BasicResource implementation for Process.

func (Process) AsSummary

func (p Process) AsSummary() (*Summary, bool)

AsSummary is the BasicResource 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 (*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.

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 (*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.

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 indentifier 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 Idendifier (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"`
}

ProcessDetails describes process metadata.

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"`
	// 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"`
}

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 - Resource type qualifier.
	Type *string `json:"type,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Kind - Possible values include: 'KindResourceReference', 'KindRefmachine', 'KindRefprocess', 'KindRefport', 'KindRefmachinewithhints'
	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) 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 - 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"
)

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.

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. machineName is machine resource name. processName is process resource name. timestamp is 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.

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. machineName is machine resource name. processName is process resource name. startTime is UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is 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

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. machineName is machine resource name. processName is process resource name. startTime is UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is 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

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. machineName is machine resource name. processName is process resource name. startTime is UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is 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 Relationship

type Relationship struct {
	// Kind - Possible values include: 'KindRelationship', 'KindRelconnection', 'KindRelacceptor'
	Kind KindBasicRelationship `json:"kind,omitempty"`
	// ID - Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// Name - 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 BasicResource implementation for Relationship.

func (Relationship) AsBasicCoreResource

func (r Relationship) AsBasicCoreResource() (BasicCoreResource, bool)

AsBasicCoreResource is the BasicResource implementation for Relationship.

func (Relationship) AsBasicRelationship

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

AsBasicRelationship is the BasicResource implementation for Relationship.

func (Relationship) AsClientGroup

func (r Relationship) AsClientGroup() (*ClientGroup, bool)

AsClientGroup is the BasicResource implementation for Relationship.

func (Relationship) AsClientGroupMember

func (r Relationship) AsClientGroupMember() (*ClientGroupMember, bool)

AsClientGroupMember is the BasicResource implementation for Relationship.

func (Relationship) AsConnection

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

AsConnection is the BasicResource implementation for Relationship.

func (Relationship) AsCoreResource

func (r Relationship) AsCoreResource() (*CoreResource, bool)

AsCoreResource is the BasicResource implementation for Relationship.

func (Relationship) AsMachine

func (r Relationship) AsMachine() (*Machine, bool)

AsMachine is the BasicResource implementation for Relationship.

func (Relationship) AsMachineGroup

func (r Relationship) AsMachineGroup() (*MachineGroup, bool)

AsMachineGroup is the BasicResource implementation for Relationship.

func (Relationship) AsMachinesSummary

func (r Relationship) AsMachinesSummary() (*MachinesSummary, bool)

AsMachinesSummary is the BasicResource implementation for Relationship.

func (Relationship) AsPort

func (r Relationship) AsPort() (*Port, bool)

AsPort is the BasicResource implementation for Relationship.

func (Relationship) AsProcess

func (r Relationship) AsProcess() (*Process, bool)

AsProcess is the BasicResource implementation for Relationship.

func (Relationship) AsRelationship

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

AsRelationship is the BasicResource implementation for Relationship.

func (Relationship) AsSummary

func (r Relationship) AsSummary() (*Summary, bool)

AsSummary is the BasicResource 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 - Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// Name - 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 - Resource type qualifier.
	Type *string `json:"type,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Kind - Possible values include: 'KindResourceReference', 'KindRefmachine', 'KindRefprocess', 'KindRefport', 'KindRefmachinewithhints'
	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) 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', '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) AsMachineGroupMapRequest

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

AsMachineGroupMapRequest is the BasicMapRequest implementation for SingleMachineDependencyMapRequest.

func (SingleMachineDependencyMapRequest) AsMapRequest

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

AsMapRequest 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.

resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace containing the resources of interest. startTime is UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime is 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 - Resource identifier.
	ID *string `json:"id,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// Name - 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 sytem.
	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 virtualizaton-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"
)

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"
)

Jump to

Keyboard shortcuts

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