const ( // DefaultBaseURI is the default URI used for the service Servicemap DefaultBaseURI = "https://management.azure.com" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Acceptor a process accepting on a port.
type Acceptor struct { *AcceptorProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource identifier. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Kind - Possible values include: 'KindRelationship', 'KindRelconnection', 'KindRelacceptor' Kind KindBasicRelationship `json:"kind,omitempty"` }
func (a Acceptor) AsAcceptor() (*Acceptor, bool)
AsAcceptor is the BasicRelationship implementation for Acceptor.
func (a Acceptor) AsBasicRelationship() (BasicRelationship, bool)
AsBasicRelationship is the BasicRelationship implementation for Acceptor.
func (a Acceptor) AsConnection() (*Connection, bool)
AsConnection is the BasicRelationship implementation for Acceptor.
func (a Acceptor) AsRelationship() (*Relationship, bool)
AsRelationship is the BasicRelationship implementation for Acceptor.
func (a Acceptor) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Acceptor.
func (a *Acceptor) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Acceptor struct.
AcceptorProperties properties for an acceptor relationship.
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"` }
Accuracy enumerates the values for accuracy.
type Accuracy string
const ( // Actual ... Actual Accuracy = "actual" // Estimated ... Estimated Accuracy = "estimated" )
func PossibleAccuracyValues() []Accuracy
PossibleAccuracyValues returns an array of possible values for the Accuracy const type.
AgentConfiguration describes the configuration of the Dependency Agent installed on a machine.
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"` }
AzureCloudServiceConfiguration describes an Azure Cloud Service
type AzureCloudServiceConfiguration struct { // Name - Cloud Service name Name *string `json:"name,omitempty"` // InstanceID - Cloud Service instance identifier InstanceID *string `json:"instanceId,omitempty"` // Deployment - Cloud Service deployment identifier Deployment *string `json:"deployment,omitempty"` // RoleName - Cloud Service role name RoleName *string `json:"roleName,omitempty"` // RoleType - Used to specify type of an Azure Cloud Service role. Possible values include: 'Unknown', 'Worker', 'Web' RoleType AzureCloudServiceRoleType `json:"roleType,omitempty"` }
AzureCloudServiceRoleType enumerates the values for azure cloud service role type.
type AzureCloudServiceRoleType string
const ( // Unknown ... Unknown AzureCloudServiceRoleType = "unknown" // Web ... Web AzureCloudServiceRoleType = "web" // Worker ... Worker AzureCloudServiceRoleType = "worker" )
func PossibleAzureCloudServiceRoleTypeValues() []AzureCloudServiceRoleType
PossibleAzureCloudServiceRoleTypeValues returns an array of possible values for the AzureCloudServiceRoleType const type.
AzureHostingConfiguration provides information about how a machine is hosted in Azure
type AzureHostingConfiguration struct { // VMID - Virtual Machine ID (unique identifier). VMID *string `json:"vmId,omitempty"` // Location - Geographical location of the VM. Location *string `json:"location,omitempty"` // Name - Machine name according to the hosting provider. Name *string `json:"name,omitempty"` // Size - Size of the VM. Size *string `json:"size,omitempty"` // UpdateDomain - Update domain of the VM. UpdateDomain *string `json:"updateDomain,omitempty"` // FaultDomain - Fault domain of the VM. FaultDomain *string `json:"faultDomain,omitempty"` // SubscriptionID - Subscription ID. SubscriptionID *string `json:"subscriptionId,omitempty"` // ResourceGroup - Resource group name within the specified subscription. ResourceGroup *string `json:"resourceGroup,omitempty"` // ResourceID - Unique identifier of the resource. ResourceID *string `json:"resourceId,omitempty"` // Image - Image of the machine. Image *ImageConfiguration `json:"image,omitempty"` // CloudService - Contains information about machines hosted as an Azure Cloud Service CloudService *AzureCloudServiceConfiguration `json:"cloudService,omitempty"` // VMScaleSet - Contains information about machines hosted as an Azure Virtual Machine Scale Set VMScaleSet *AzureVMScaleSetConfiguration `json:"vmScaleSet,omitempty"` // ServiceFabricCluster - Contains information about machines that belong an Azure Service Fabric Cluster ServiceFabricCluster *AzureServiceFabricClusterConfiguration `json:"serviceFabricCluster,omitempty"` // Provider - The hosting provider of the VM. Possible values include: 'Azure' Provider Provider `json:"provider,omitempty"` // Kind - Possible values include: 'KindHostingConfiguration', 'KindProviderazure' Kind KindBasicHostingConfiguration `json:"kind,omitempty"` }
func (ahc AzureHostingConfiguration) AsAzureHostingConfiguration() (*AzureHostingConfiguration, bool)
AsAzureHostingConfiguration is the BasicHostingConfiguration implementation for AzureHostingConfiguration.
func (ahc AzureHostingConfiguration) AsBasicHostingConfiguration() (BasicHostingConfiguration, bool)
AsBasicHostingConfiguration is the BasicHostingConfiguration implementation for AzureHostingConfiguration.
func (ahc AzureHostingConfiguration) AsHostingConfiguration() (*HostingConfiguration, bool)
AsHostingConfiguration is the BasicHostingConfiguration implementation for AzureHostingConfiguration.
func (ahc AzureHostingConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureHostingConfiguration.
AzureProcessHostingConfiguration describes the hosting configuration of a process when hosted on azure
type AzureProcessHostingConfiguration struct { // CloudService - Contains information about the cloud service the process belongs to CloudService *AzureCloudServiceConfiguration `json:"cloudService,omitempty"` // Provider - The hosting provider of the VM. Possible values include: 'Provider1Azure' Provider Provider1 `json:"provider,omitempty"` // Kind - Possible values include: 'KindBasicProcessHostingConfigurationKindProcessHostingConfiguration', 'KindBasicProcessHostingConfigurationKindProviderazure' Kind KindBasicProcessHostingConfiguration `json:"kind,omitempty"` }
func (aphc AzureProcessHostingConfiguration) AsAzureProcessHostingConfiguration() (*AzureProcessHostingConfiguration, bool)
AsAzureProcessHostingConfiguration is the BasicProcessHostingConfiguration implementation for AzureProcessHostingConfiguration.
func (aphc AzureProcessHostingConfiguration) AsBasicProcessHostingConfiguration() (BasicProcessHostingConfiguration, bool)
AsBasicProcessHostingConfiguration is the BasicProcessHostingConfiguration implementation for AzureProcessHostingConfiguration.
func (aphc AzureProcessHostingConfiguration) AsProcessHostingConfiguration() (*ProcessHostingConfiguration, bool)
AsProcessHostingConfiguration is the BasicProcessHostingConfiguration implementation for AzureProcessHostingConfiguration.
func (aphc AzureProcessHostingConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureProcessHostingConfiguration.
AzureServiceFabricClusterConfiguration describes an Azure Service Fabric Cluster
type AzureServiceFabricClusterConfiguration struct { // Name - Service Fabric cluster name. Name *string `json:"name,omitempty"` // ClusterID - Service Fabric cluster identifier. ClusterID *string `json:"clusterId,omitempty"` }
AzureVMScaleSetConfiguration describes an Azure Virtual Machine Scale Set
type AzureVMScaleSetConfiguration struct { // Name - Virtual Machine Scale Set name Name *string `json:"name,omitempty"` // InstanceID - Virtual Machine Scale Set instance identifier InstanceID *string `json:"instanceId,omitempty"` // Deployment - Virtual Machine Scale Set deployment identifier Deployment *string `json:"deployment,omitempty"` // ResourceID - Unique identifier of the resource. ResourceID *string `json:"resourceId,omitempty"` }
BaseClient is the base client for Servicemap.
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string }
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
BasicCoreResource marker resource for the core Service Map resources
type BasicCoreResource interface { AsMachine() (*Machine, bool) AsProcess() (*Process, bool) AsPort() (*Port, bool) AsClientGroup() (*ClientGroup, bool) AsMachineGroup() (*MachineGroup, bool) AsCoreResource() (*CoreResource, bool) }
BasicHostingConfiguration describes the hosting configuration of a machine.
type BasicHostingConfiguration interface { AsAzureHostingConfiguration() (*AzureHostingConfiguration, bool) AsHostingConfiguration() (*HostingConfiguration, bool) }
BasicMapRequest specifies the contents of request to generate a map.
type BasicMapRequest interface { AsSingleMachineDependencyMapRequest() (*SingleMachineDependencyMapRequest, bool) AsMultipleMachinesMapRequest() (*MultipleMachinesMapRequest, bool) AsBasicMultipleMachinesMapRequest() (BasicMultipleMachinesMapRequest, bool) AsMachineListMapRequest() (*MachineListMapRequest, bool) AsMachineGroupMapRequest() (*MachineGroupMapRequest, bool) AsMapRequest() (*MapRequest, bool) }
BasicMultipleMachinesMapRequest provides a base class for describing map requests for a collection of machines
type BasicMultipleMachinesMapRequest interface { AsMachineListMapRequest() (*MachineListMapRequest, bool) AsMachineGroupMapRequest() (*MachineGroupMapRequest, bool) AsMultipleMachinesMapRequest() (*MultipleMachinesMapRequest, bool) }
BasicProcessHostingConfiguration describes the hosting configuration of a process.
type BasicProcessHostingConfiguration interface { AsAzureProcessHostingConfiguration() (*AzureProcessHostingConfiguration, bool) AsProcessHostingConfiguration() (*ProcessHostingConfiguration, bool) }
BasicRelationship a typed relationship between two entities.
type BasicRelationship interface { AsConnection() (*Connection, bool) AsAcceptor() (*Acceptor, bool) AsRelationship() (*Relationship, bool) }
BasicResourceReference represents a reference to another resource.
type BasicResourceReference interface { AsMachineReference() (*MachineReference, bool) AsProcessReference() (*ProcessReference, bool) AsPortReference() (*PortReference, bool) AsMachineReferenceWithHints() (*MachineReferenceWithHints, bool) AsClientGroupReference() (*ClientGroupReference, bool) AsResourceReference() (*ResourceReference, bool) }
Bitness enumerates the values for bitness.
type Bitness string
const ( // SixFourbit ... SixFourbit Bitness = "64bit" // ThreeTwobit ... ThreeTwobit Bitness = "32bit" )
func PossibleBitnessValues() []Bitness
PossibleBitnessValues returns an array of possible values for the Bitness const type.
ClientGroup represents a collection of clients of a resource. A client group can represent the clients of a port, process, or a machine.
type ClientGroup struct { autorest.Response `json:"-"` // ClientGroupProperties - Resource properties. *ClientGroupProperties `json:"properties,omitempty"` // Etag - Resource ETAG. Etag *string `json:"etag,omitempty"` // ID - READ-ONLY; Resource identifier. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Kind - Possible values include: 'KindCoreResource', 'KindMachine', 'KindProcess', 'KindPort', 'KindClientGroup', 'KindMachineGroup' Kind KindBasicCoreResource `json:"kind,omitempty"` }
func (cg ClientGroup) AsBasicCoreResource() (BasicCoreResource, bool)
AsBasicCoreResource is the BasicCoreResource implementation for ClientGroup.
func (cg ClientGroup) AsClientGroup() (*ClientGroup, bool)
AsClientGroup is the BasicCoreResource implementation for ClientGroup.
func (cg ClientGroup) AsCoreResource() (*CoreResource, bool)
AsCoreResource is the BasicCoreResource implementation for ClientGroup.
func (cg ClientGroup) AsMachine() (*Machine, bool)
AsMachine is the BasicCoreResource implementation for ClientGroup.
func (cg ClientGroup) AsMachineGroup() (*MachineGroup, bool)
AsMachineGroup is the BasicCoreResource implementation for ClientGroup.
func (cg ClientGroup) AsPort() (*Port, bool)
AsPort is the BasicCoreResource implementation for ClientGroup.
func (cg ClientGroup) AsProcess() (*Process, bool)
AsProcess is the BasicCoreResource implementation for ClientGroup.
func (cg ClientGroup) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ClientGroup.
func (cg *ClientGroup) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ClientGroup struct.
ClientGroupMember represents a member of a client group
type ClientGroupMember struct { // ClientGroupMemberProperties - Resource properties. *ClientGroupMemberProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource identifier. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` }
func (cgm ClientGroupMember) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ClientGroupMember.
func (cgm *ClientGroupMember) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ClientGroupMember struct.
ClientGroupMemberProperties resource properties.
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"` }
ClientGroupMembersCollection collection of ClientGroupMember resources.
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"` }
func (cgmc ClientGroupMembersCollection) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ClientGroupMembersCollectionIterator provides access to a complete listing of ClientGroupMember values.
type ClientGroupMembersCollectionIterator struct {
// contains filtered or unexported fields
}
func NewClientGroupMembersCollectionIterator(page ClientGroupMembersCollectionPage) ClientGroupMembersCollectionIterator
Creates a new instance of the ClientGroupMembersCollectionIterator type.
func (iter *ClientGroupMembersCollectionIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *ClientGroupMembersCollectionIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ClientGroupMembersCollectionIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ClientGroupMembersCollectionIterator) Response() ClientGroupMembersCollection
Response returns the raw server response from the last page request.
func (iter ClientGroupMembersCollectionIterator) Value() ClientGroupMember
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ClientGroupMembersCollectionPage contains a page of ClientGroupMember values.
type ClientGroupMembersCollectionPage struct {
// contains filtered or unexported fields
}
func NewClientGroupMembersCollectionPage(cur ClientGroupMembersCollection, getNextPage func(context.Context, ClientGroupMembersCollection) (ClientGroupMembersCollection, error)) ClientGroupMembersCollectionPage
Creates a new instance of the ClientGroupMembersCollectionPage type.
func (page *ClientGroupMembersCollectionPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *ClientGroupMembersCollectionPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ClientGroupMembersCollectionPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ClientGroupMembersCollectionPage) Response() ClientGroupMembersCollection
Response returns the raw server response from the last page request.
func (page ClientGroupMembersCollectionPage) Values() []ClientGroupMember
Values returns the slice of values for the current page or nil if there are no values.
ClientGroupMembersCount specifies the number of members in a client group.
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"` }
ClientGroupProperties resource properties.
type ClientGroupProperties struct { // ClientsOf - Reference to the resource whose clients are represented by this group. ClientsOf BasicResourceReference `json:"clientsOf,omitempty"` }
func (cg *ClientGroupProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ClientGroupProperties struct.
ClientGroupReference reference to a client group.
type ClientGroupReference struct { // ID - Resource URI. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type qualifier. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Kind - Possible values include: 'KindResourceReference', 'KindRefmachine', 'KindRefprocess', 'KindRefport', 'KindRefmachinewithhints', 'KindRefclientgroup' Kind Kind `json:"kind,omitempty"` }
func (cgr ClientGroupReference) AsBasicResourceReference() (BasicResourceReference, bool)
AsBasicResourceReference is the BasicResourceReference implementation for ClientGroupReference.
func (cgr ClientGroupReference) AsClientGroupReference() (*ClientGroupReference, bool)
AsClientGroupReference is the BasicResourceReference implementation for ClientGroupReference.
func (cgr ClientGroupReference) AsMachineReference() (*MachineReference, bool)
AsMachineReference is the BasicResourceReference implementation for ClientGroupReference.
func (cgr ClientGroupReference) AsMachineReferenceWithHints() (*MachineReferenceWithHints, bool)
AsMachineReferenceWithHints is the BasicResourceReference implementation for ClientGroupReference.
func (cgr ClientGroupReference) AsPortReference() (*PortReference, bool)
AsPortReference is the BasicResourceReference implementation for ClientGroupReference.
func (cgr ClientGroupReference) AsProcessReference() (*ProcessReference, bool)
AsProcessReference is the BasicResourceReference implementation for ClientGroupReference.
func (cgr ClientGroupReference) AsResourceReference() (*ResourceReference, bool)
AsResourceReference is the BasicResourceReference implementation for ClientGroupReference.
func (cgr ClientGroupReference) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ClientGroupReference.
ClientGroupsClient is the service Map API Reference
type ClientGroupsClient struct { BaseClient }
func NewClientGroupsClient(subscriptionID string) ClientGroupsClient
NewClientGroupsClient creates an instance of the ClientGroupsClient client.
func NewClientGroupsClientWithBaseURI(baseURI string, subscriptionID string) ClientGroupsClient
NewClientGroupsClientWithBaseURI creates an instance of the ClientGroupsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client ClientGroupsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, clientGroupName string, startTime *date.Time, endTime *date.Time) (result ClientGroup, err error)
Get retrieves the specified client group Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. clientGroupName - client Group resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
func (client ClientGroupsClient) GetMembersCount(ctx context.Context, resourceGroupName string, workspaceName string, clientGroupName string, startTime *date.Time, endTime *date.Time) (result ClientGroupMembersCount, err error)
GetMembersCount returns the approximate number of members in the client group. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. clientGroupName - client Group resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
func (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 (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 (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 (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 (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 (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 (client ClientGroupsClient) ListMembers(ctx context.Context, resourceGroupName string, workspaceName string, clientGroupName string, startTime *date.Time, endTime *date.Time, top *int32) (result ClientGroupMembersCollectionPage, err error)
ListMembers returns the members of the client group during the specified time interval. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. clientGroupName - client Group resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow top - page size to use. When not specified, the default page size is 100 records.
func (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 (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 (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 (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.
Connection a network connection.
type Connection struct { *ConnectionProperties `json:"properties,omitempty"` // Kind - Possible values include: 'KindRelationship', 'KindRelconnection', 'KindRelacceptor' Kind KindBasicRelationship `json:"kind,omitempty"` // ID - READ-ONLY; Resource identifier. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` }
func (c Connection) AsAcceptor() (*Acceptor, bool)
AsAcceptor is the BasicRelationship implementation for Connection.
func (c Connection) AsBasicRelationship() (BasicRelationship, bool)
AsBasicRelationship is the BasicRelationship implementation for Connection.
func (c Connection) AsConnection() (*Connection, bool)
AsConnection is the BasicRelationship implementation for Connection.
func (c Connection) AsRelationship() (*Relationship, bool)
AsRelationship is the BasicRelationship implementation for Connection.
func (c Connection) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Connection.
func (c *Connection) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Connection struct.
ConnectionCollection collection of Connection resources.
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"` }
func (cc ConnectionCollection) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ConnectionCollectionIterator provides access to a complete listing of Connection values.
type ConnectionCollectionIterator struct {
// contains filtered or unexported fields
}
func NewConnectionCollectionIterator(page ConnectionCollectionPage) ConnectionCollectionIterator
Creates a new instance of the ConnectionCollectionIterator type.
func (iter *ConnectionCollectionIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *ConnectionCollectionIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ConnectionCollectionIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ConnectionCollectionIterator) Response() ConnectionCollection
Response returns the raw server response from the last page request.
func (iter ConnectionCollectionIterator) Value() Connection
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ConnectionCollectionPage contains a page of Connection values.
type ConnectionCollectionPage struct {
// contains filtered or unexported fields
}
func NewConnectionCollectionPage(cur ConnectionCollection, getNextPage func(context.Context, ConnectionCollection) (ConnectionCollection, error)) ConnectionCollectionPage
Creates a new instance of the ConnectionCollectionPage type.
func (page *ConnectionCollectionPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *ConnectionCollectionPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ConnectionCollectionPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ConnectionCollectionPage) Response() ConnectionCollection
Response returns the raw server response from the last page request.
func (page ConnectionCollectionPage) Values() []Connection
Values returns the slice of values for the current page or nil if there are no values.
ConnectionFailureState enumerates the values for connection failure state.
type ConnectionFailureState string
const ( // Failed ... Failed ConnectionFailureState = "failed" // Mixed ... Mixed ConnectionFailureState = "mixed" // Ok ... Ok ConnectionFailureState = "ok" )
func PossibleConnectionFailureStateValues() []ConnectionFailureState
PossibleConnectionFailureStateValues returns an array of possible values for the ConnectionFailureState const type.
ConnectionProperties properties for a connection resource.
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"` }
func (cp *ConnectionProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ConnectionProperties struct.
CoreResource marker resource for the core Service Map resources
type CoreResource struct { // Etag - Resource ETAG. Etag *string `json:"etag,omitempty"` // Kind - Possible values include: 'KindCoreResource', 'KindMachine', 'KindProcess', 'KindPort', 'KindClientGroup', 'KindMachineGroup' Kind KindBasicCoreResource `json:"kind,omitempty"` // ID - READ-ONLY; Resource identifier. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` }
func (cr CoreResource) AsBasicCoreResource() (BasicCoreResource, bool)
AsBasicCoreResource is the BasicCoreResource implementation for CoreResource.
func (cr CoreResource) AsClientGroup() (*ClientGroup, bool)
AsClientGroup is the BasicCoreResource implementation for CoreResource.
func (cr CoreResource) AsCoreResource() (*CoreResource, bool)
AsCoreResource is the BasicCoreResource implementation for CoreResource.
func (cr CoreResource) AsMachine() (*Machine, bool)
AsMachine is the BasicCoreResource implementation for CoreResource.
func (cr CoreResource) AsMachineGroup() (*MachineGroup, bool)
AsMachineGroup is the BasicCoreResource implementation for CoreResource.
func (cr CoreResource) AsPort() (*Port, bool)
AsPort is the BasicCoreResource implementation for CoreResource.
func (cr CoreResource) AsProcess() (*Process, bool)
AsProcess is the BasicCoreResource implementation for CoreResource.
func (cr CoreResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CoreResource.
Error error details.
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"` }
ErrorResponse an error response from the API.
type ErrorResponse struct { // Error - Error information. Error *Error `json:"error,omitempty"` }
HostingConfiguration describes the hosting configuration of a machine.
type HostingConfiguration struct { // Provider - The hosting provider of the VM. Possible values include: 'Azure' Provider Provider `json:"provider,omitempty"` // Kind - Possible values include: 'KindHostingConfiguration', 'KindProviderazure' Kind KindBasicHostingConfiguration `json:"kind,omitempty"` }
func (hc HostingConfiguration) AsAzureHostingConfiguration() (*AzureHostingConfiguration, bool)
AsAzureHostingConfiguration is the BasicHostingConfiguration implementation for HostingConfiguration.
func (hc HostingConfiguration) AsBasicHostingConfiguration() (BasicHostingConfiguration, bool)
AsBasicHostingConfiguration is the BasicHostingConfiguration implementation for HostingConfiguration.
func (hc HostingConfiguration) AsHostingConfiguration() (*HostingConfiguration, bool)
AsHostingConfiguration is the BasicHostingConfiguration implementation for HostingConfiguration.
func (hc HostingConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for HostingConfiguration.
HypervisorConfiguration describes the hypervisor configuration of a machine.
type HypervisorConfiguration struct { // HypervisorType - Specifies the virtualization technology used by the hypervisor (hyperv, vmware, etc.). Possible values include: 'HypervisorTypeUnknown', 'HypervisorTypeHyperv' HypervisorType HypervisorType `json:"hypervisorType,omitempty"` // NativeHostMachineID - The unique identifier of the hypervisor machine as reported by the underlying virtualization system. NativeHostMachineID *string `json:"nativeHostMachineId,omitempty"` }
HypervisorType enumerates the values for hypervisor type.
type HypervisorType string
const ( // HypervisorTypeHyperv ... HypervisorTypeHyperv HypervisorType = "hyperv" // HypervisorTypeUnknown ... HypervisorTypeUnknown HypervisorType = "unknown" )
func PossibleHypervisorTypeValues() []HypervisorType
PossibleHypervisorTypeValues returns an array of possible values for the HypervisorType const type.
ImageConfiguration describes the VM image of a machine.
type ImageConfiguration struct { // Publisher - Publisher of the VM image. Publisher *string `json:"publisher,omitempty"` // Offering - Offering of the VM image. Offering *string `json:"offering,omitempty"` // Sku - SKU of the VM image. Sku *string `json:"sku,omitempty"` // Version - Version of the VM image. Version *string `json:"version,omitempty"` }
Ipv4NetworkInterface describes an IPv4 network interface.
type Ipv4NetworkInterface struct { // IPAddress - IPv4 address. IPAddress *string `json:"ipAddress,omitempty"` // SubnetMask - IPv4 subnet mask. SubnetMask *string `json:"subnetMask,omitempty"` }
Ipv6NetworkInterface describes an IPv6 network interface.
type Ipv6NetworkInterface struct { // IPAddress - IPv6 address. IPAddress *string `json:"ipAddress,omitempty"` }
Kind enumerates the values for kind.
type Kind string
const ( // KindRefclientgroup ... KindRefclientgroup Kind = "ref:clientgroup" // KindRefmachine ... KindRefmachine Kind = "ref:machine" // KindRefmachinewithhints ... KindRefmachinewithhints Kind = "ref:machinewithhints" // KindRefport ... KindRefport Kind = "ref:port" // KindRefprocess ... KindRefprocess Kind = "ref:process" // KindResourceReference ... KindResourceReference Kind = "ResourceReference" )
func PossibleKindValues() []Kind
PossibleKindValues returns an array of possible values for the Kind const type.
KindBasicCoreResource enumerates the values for kind basic core resource.
type KindBasicCoreResource string
const ( // KindClientGroup ... KindClientGroup KindBasicCoreResource = "clientGroup" // KindCoreResource ... KindCoreResource KindBasicCoreResource = "CoreResource" // KindMachine ... KindMachine KindBasicCoreResource = "machine" // KindMachineGroup ... KindMachineGroup KindBasicCoreResource = "machineGroup" // KindPort ... KindPort KindBasicCoreResource = "port" // KindProcess ... KindProcess KindBasicCoreResource = "process" )
func PossibleKindBasicCoreResourceValues() []KindBasicCoreResource
PossibleKindBasicCoreResourceValues returns an array of possible values for the KindBasicCoreResource const type.
KindBasicHostingConfiguration enumerates the values for kind basic hosting configuration.
type KindBasicHostingConfiguration string
const ( // KindHostingConfiguration ... KindHostingConfiguration KindBasicHostingConfiguration = "HostingConfiguration" // KindProviderazure ... KindProviderazure KindBasicHostingConfiguration = "provider:azure" )
func PossibleKindBasicHostingConfigurationValues() []KindBasicHostingConfiguration
PossibleKindBasicHostingConfigurationValues returns an array of possible values for the KindBasicHostingConfiguration const type.
KindBasicMapRequest enumerates the values for kind basic map request.
type KindBasicMapRequest string
const ( // KindMapmachineGroupDependency ... KindMapmachineGroupDependency KindBasicMapRequest = "map:machine-group-dependency" // KindMapmachineListDependency ... KindMapmachineListDependency KindBasicMapRequest = "map:machine-list-dependency" // KindMapRequest ... KindMapRequest KindBasicMapRequest = "MapRequest" // KindMapsingleMachineDependency ... KindMapsingleMachineDependency KindBasicMapRequest = "map:single-machine-dependency" // KindMultipleMachinesMapRequest ... KindMultipleMachinesMapRequest KindBasicMapRequest = "MultipleMachinesMapRequest" )
func PossibleKindBasicMapRequestValues() []KindBasicMapRequest
PossibleKindBasicMapRequestValues returns an array of possible values for the KindBasicMapRequest const type.
KindBasicProcessHostingConfiguration enumerates the values for kind basic process hosting configuration.
type KindBasicProcessHostingConfiguration string
const ( // KindBasicProcessHostingConfigurationKindProcessHostingConfiguration ... KindBasicProcessHostingConfigurationKindProcessHostingConfiguration KindBasicProcessHostingConfiguration = "ProcessHostingConfiguration" // KindBasicProcessHostingConfigurationKindProviderazure ... KindBasicProcessHostingConfigurationKindProviderazure KindBasicProcessHostingConfiguration = "provider:azure" )
func PossibleKindBasicProcessHostingConfigurationValues() []KindBasicProcessHostingConfiguration
PossibleKindBasicProcessHostingConfigurationValues returns an array of possible values for the KindBasicProcessHostingConfiguration const type.
KindBasicRelationship enumerates the values for kind basic relationship.
type KindBasicRelationship string
const ( // KindRelacceptor ... KindRelacceptor KindBasicRelationship = "rel:acceptor" // KindRelationship ... KindRelationship KindBasicRelationship = "Relationship" // KindRelconnection ... KindRelconnection KindBasicRelationship = "rel:connection" )
func PossibleKindBasicRelationshipValues() []KindBasicRelationship
PossibleKindBasicRelationshipValues returns an array of possible values for the KindBasicRelationship const type.
Liveness specifies the contents of a check liveness response.
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"` }
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.
type Machine struct { autorest.Response `json:"-"` // MachineProperties - Resource properties. *MachineProperties `json:"properties,omitempty"` // Etag - Resource ETAG. Etag *string `json:"etag,omitempty"` // Kind - Possible values include: 'KindCoreResource', 'KindMachine', 'KindProcess', 'KindPort', 'KindClientGroup', 'KindMachineGroup' Kind KindBasicCoreResource `json:"kind,omitempty"` // ID - READ-ONLY; Resource identifier. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` }
func (mVar Machine) AsBasicCoreResource() (BasicCoreResource, bool)
AsBasicCoreResource is the BasicCoreResource implementation for Machine.
func (mVar Machine) AsClientGroup() (*ClientGroup, bool)
AsClientGroup is the BasicCoreResource implementation for Machine.
func (mVar Machine) AsCoreResource() (*CoreResource, bool)
AsCoreResource is the BasicCoreResource implementation for Machine.
func (mVar Machine) AsMachine() (*Machine, bool)
AsMachine is the BasicCoreResource implementation for Machine.
func (mVar Machine) AsMachineGroup() (*MachineGroup, bool)
AsMachineGroup is the BasicCoreResource implementation for Machine.
func (mVar Machine) AsPort() (*Port, bool)
AsPort is the BasicCoreResource implementation for Machine.
func (mVar Machine) AsProcess() (*Process, bool)
AsProcess is the BasicCoreResource implementation for Machine.
func (mVar Machine) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Machine.
func (mVar *Machine) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Machine struct.
MachineCollection collection of Machine resources.
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"` }
func (mc MachineCollection) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
MachineCollectionIterator provides access to a complete listing of Machine values.
type MachineCollectionIterator struct {
// contains filtered or unexported fields
}
func NewMachineCollectionIterator(page MachineCollectionPage) MachineCollectionIterator
Creates a new instance of the MachineCollectionIterator type.
func (iter *MachineCollectionIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *MachineCollectionIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter MachineCollectionIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter MachineCollectionIterator) Response() MachineCollection
Response returns the raw server response from the last page request.
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.
MachineCollectionPage contains a page of Machine values.
type MachineCollectionPage struct {
// contains filtered or unexported fields
}
func NewMachineCollectionPage(cur MachineCollection, getNextPage func(context.Context, MachineCollection) (MachineCollection, error)) MachineCollectionPage
Creates a new instance of the MachineCollectionPage type.
func (page *MachineCollectionPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *MachineCollectionPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page MachineCollectionPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page MachineCollectionPage) Response() MachineCollection
Response returns the raw server response from the last page request.
func (page MachineCollectionPage) Values() []Machine
Values returns the slice of values for the current page or nil if there are no values.
MachineCountsByOperatingSystem machines by operating system.
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"` }
MachineGroup a user-defined logical grouping of machines.
type MachineGroup struct { autorest.Response `json:"-"` // MachineGroupProperties - Resource properties. *MachineGroupProperties `json:"properties,omitempty"` // Etag - Resource ETAG. Etag *string `json:"etag,omitempty"` // Kind - Possible values include: 'KindCoreResource', 'KindMachine', 'KindProcess', 'KindPort', 'KindClientGroup', 'KindMachineGroup' Kind KindBasicCoreResource `json:"kind,omitempty"` // ID - READ-ONLY; Resource identifier. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` }
func (mg MachineGroup) AsBasicCoreResource() (BasicCoreResource, bool)
AsBasicCoreResource is the BasicCoreResource implementation for MachineGroup.
func (mg MachineGroup) AsClientGroup() (*ClientGroup, bool)
AsClientGroup is the BasicCoreResource implementation for MachineGroup.
func (mg MachineGroup) AsCoreResource() (*CoreResource, bool)
AsCoreResource is the BasicCoreResource implementation for MachineGroup.
func (mg MachineGroup) AsMachine() (*Machine, bool)
AsMachine is the BasicCoreResource implementation for MachineGroup.
func (mg MachineGroup) AsMachineGroup() (*MachineGroup, bool)
AsMachineGroup is the BasicCoreResource implementation for MachineGroup.
func (mg MachineGroup) AsPort() (*Port, bool)
AsPort is the BasicCoreResource implementation for MachineGroup.
func (mg MachineGroup) AsProcess() (*Process, bool)
AsProcess is the BasicCoreResource implementation for MachineGroup.
func (mg MachineGroup) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MachineGroup.
func (mg *MachineGroup) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MachineGroup struct.
MachineGroupCollection collection of Machine Group resources.
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"` }
func (mgc MachineGroupCollection) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
MachineGroupCollectionIterator provides access to a complete listing of MachineGroup values.
type MachineGroupCollectionIterator struct {
// contains filtered or unexported fields
}
func NewMachineGroupCollectionIterator(page MachineGroupCollectionPage) MachineGroupCollectionIterator
Creates a new instance of the MachineGroupCollectionIterator type.
func (iter *MachineGroupCollectionIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *MachineGroupCollectionIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter MachineGroupCollectionIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter MachineGroupCollectionIterator) Response() MachineGroupCollection
Response returns the raw server response from the last page request.
func (iter MachineGroupCollectionIterator) Value() MachineGroup
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
MachineGroupCollectionPage contains a page of MachineGroup values.
type MachineGroupCollectionPage struct {
// contains filtered or unexported fields
}
func NewMachineGroupCollectionPage(cur MachineGroupCollection, getNextPage func(context.Context, MachineGroupCollection) (MachineGroupCollection, error)) MachineGroupCollectionPage
Creates a new instance of the MachineGroupCollectionPage type.
func (page *MachineGroupCollectionPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *MachineGroupCollectionPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page MachineGroupCollectionPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page MachineGroupCollectionPage) Response() MachineGroupCollection
Response returns the raw server response from the last page request.
func (page MachineGroupCollectionPage) Values() []MachineGroup
Values returns the slice of values for the current page or nil if there are no values.
MachineGroupMapRequest specifies the computation of a machine group dependency map. A machine group dependency map includes all direct dependencies the machines in the group.
type MachineGroupMapRequest struct { // MachineGroupID - URI of machine group resource for which to generate the map. MachineGroupID *string `json:"machineGroupId,omitempty"` // FilterProcesses - If true, only processes between specified machines will be included. Any connections in or out of those processes will be included. FilterProcesses *bool `json:"filterProcesses,omitempty"` // StartTime - Map interval start time. StartTime *date.Time `json:"startTime,omitempty"` // EndTime - Map interval end time. EndTime *date.Time `json:"endTime,omitempty"` // Kind - Possible values include: 'KindMapRequest', 'KindMapsingleMachineDependency', 'KindMultipleMachinesMapRequest', 'KindMapmachineListDependency', 'KindMapmachineGroupDependency' Kind KindBasicMapRequest `json:"kind,omitempty"` }
func (mgmr MachineGroupMapRequest) AsBasicMapRequest() (BasicMapRequest, bool)
AsBasicMapRequest is the BasicMapRequest implementation for MachineGroupMapRequest.
func (mgmr MachineGroupMapRequest) AsBasicMultipleMachinesMapRequest() (BasicMultipleMachinesMapRequest, bool)
AsBasicMultipleMachinesMapRequest is the BasicMapRequest implementation for MachineGroupMapRequest.
func (mgmr MachineGroupMapRequest) AsMachineGroupMapRequest() (*MachineGroupMapRequest, bool)
AsMachineGroupMapRequest is the BasicMapRequest implementation for MachineGroupMapRequest.
func (mgmr MachineGroupMapRequest) AsMachineListMapRequest() (*MachineListMapRequest, bool)
AsMachineListMapRequest is the BasicMapRequest implementation for MachineGroupMapRequest.
func (mgmr MachineGroupMapRequest) AsMapRequest() (*MapRequest, bool)
AsMapRequest is the BasicMapRequest implementation for MachineGroupMapRequest.
func (mgmr MachineGroupMapRequest) AsMultipleMachinesMapRequest() (*MultipleMachinesMapRequest, bool)
AsMultipleMachinesMapRequest is the BasicMapRequest implementation for MachineGroupMapRequest.
func (mgmr MachineGroupMapRequest) AsSingleMachineDependencyMapRequest() (*SingleMachineDependencyMapRequest, bool)
AsSingleMachineDependencyMapRequest is the BasicMapRequest implementation for MachineGroupMapRequest.
func (mgmr MachineGroupMapRequest) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MachineGroupMapRequest.
MachineGroupProperties resource properties.
type MachineGroupProperties struct { // GroupType - Type of the machine group. Possible values include: 'MachineGroupTypeUnknown', 'MachineGroupTypeAzureCs', 'MachineGroupTypeAzureSf', 'MachineGroupTypeAzureVmss', 'MachineGroupTypeUserStatic' GroupType MachineGroupType `json:"groupType,omitempty"` // DisplayName - User defined name for the group DisplayName *string `json:"displayName,omitempty"` // Count - Count of machines in this group. The value of count may be bigger than the number of machines in case of the group has been truncated due to exceeding the max number of machines a group can handle. Count *int32 `json:"count,omitempty"` // Machines - References of the machines in this group. The hints within each reference do not represent the current value of the corresponding fields. They are a snapshot created during the last time the machine group was updated. Machines *[]MachineReferenceWithHints `json:"machines,omitempty"` }
MachineGroupType enumerates the values for machine group type.
type MachineGroupType string
const ( // MachineGroupTypeAzureCs ... MachineGroupTypeAzureCs MachineGroupType = "azure-cs" // MachineGroupTypeAzureSf ... MachineGroupTypeAzureSf MachineGroupType = "azure-sf" // MachineGroupTypeAzureVmss ... MachineGroupTypeAzureVmss MachineGroupType = "azure-vmss" // MachineGroupTypeUnknown ... MachineGroupTypeUnknown MachineGroupType = "unknown" // MachineGroupTypeUserStatic ... MachineGroupTypeUserStatic MachineGroupType = "user-static" )
func PossibleMachineGroupTypeValues() []MachineGroupType
PossibleMachineGroupTypeValues returns an array of possible values for the MachineGroupType const type.
MachineGroupsClient is the service Map API Reference
type MachineGroupsClient struct { BaseClient }
func NewMachineGroupsClient(subscriptionID string) MachineGroupsClient
NewMachineGroupsClient creates an instance of the MachineGroupsClient client.
func NewMachineGroupsClientWithBaseURI(baseURI string, subscriptionID string) MachineGroupsClient
NewMachineGroupsClientWithBaseURI creates an instance of the MachineGroupsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client MachineGroupsClient) Create(ctx context.Context, resourceGroupName string, workspaceName string, machineGroup MachineGroup) (result MachineGroup, err error)
Create creates a new machine group. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineGroup - machine Group resource to create.
func (client MachineGroupsClient) CreatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineGroup MachineGroup) (*http.Request, error)
CreatePreparer prepares the Create request.
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 (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 (client MachineGroupsClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, machineGroupName string) (result autorest.Response, err error)
Delete deletes the specified Machine Group. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineGroupName - machine Group resource name.
func (client MachineGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineGroupName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (client MachineGroupsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, machineGroupName string, startTime *date.Time, endTime *date.Time) (result MachineGroup, err error)
Get returns the specified machine group as it existed during the specified time interval. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineGroupName - machine Group resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
func (client MachineGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineGroupName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)
GetPreparer prepares the Get request.
func (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 (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 (client MachineGroupsClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string, startTime *date.Time, endTime *date.Time) (result MachineGroupCollectionPage, err error)
ListByWorkspace returns all machine groups during the specified time interval. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
func (client MachineGroupsClient) ListByWorkspaceComplete(ctx context.Context, resourceGroupName string, workspaceName string, startTime *date.Time, endTime *date.Time) (result MachineGroupCollectionIterator, err error)
ListByWorkspaceComplete enumerates all values, automatically crossing page boundaries as required.
func (client MachineGroupsClient) ListByWorkspacePreparer(ctx context.Context, resourceGroupName string, workspaceName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)
ListByWorkspacePreparer prepares the ListByWorkspace request.
func (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 (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 (client MachineGroupsClient) Update(ctx context.Context, resourceGroupName string, workspaceName string, machineGroupName string, machineGroup MachineGroup) (result MachineGroup, err error)
Update updates a machine group. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineGroupName - machine Group resource name. machineGroup - machine Group resource to update.
func (client MachineGroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineGroupName string, machineGroup MachineGroup) (*http.Request, error)
UpdatePreparer prepares the Update request.
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 (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.
MachineListMapRequest specifies the computation of a one hope dependency map for a list of machines. The resulting map includes all direct dependencies for the specified machines.
type MachineListMapRequest struct { // MachineIds - a list of URIs of machine resources for which to generate the map. MachineIds *[]string `json:"machineIds,omitempty"` // FilterProcesses - If true, only processes between specified machines will be included. Any connections in or out of those processes will be included. FilterProcesses *bool `json:"filterProcesses,omitempty"` // StartTime - Map interval start time. StartTime *date.Time `json:"startTime,omitempty"` // EndTime - Map interval end time. EndTime *date.Time `json:"endTime,omitempty"` // Kind - Possible values include: 'KindMapRequest', 'KindMapsingleMachineDependency', 'KindMultipleMachinesMapRequest', 'KindMapmachineListDependency', 'KindMapmachineGroupDependency' Kind KindBasicMapRequest `json:"kind,omitempty"` }
func (mlmr MachineListMapRequest) AsBasicMapRequest() (BasicMapRequest, bool)
AsBasicMapRequest is the BasicMapRequest implementation for MachineListMapRequest.
func (mlmr MachineListMapRequest) AsBasicMultipleMachinesMapRequest() (BasicMultipleMachinesMapRequest, bool)
AsBasicMultipleMachinesMapRequest is the BasicMapRequest implementation for MachineListMapRequest.
func (mlmr MachineListMapRequest) AsMachineGroupMapRequest() (*MachineGroupMapRequest, bool)
AsMachineGroupMapRequest is the BasicMapRequest implementation for MachineListMapRequest.
func (mlmr MachineListMapRequest) AsMachineListMapRequest() (*MachineListMapRequest, bool)
AsMachineListMapRequest is the BasicMapRequest implementation for MachineListMapRequest.
func (mlmr MachineListMapRequest) AsMapRequest() (*MapRequest, bool)
AsMapRequest is the BasicMapRequest implementation for MachineListMapRequest.
func (mlmr MachineListMapRequest) AsMultipleMachinesMapRequest() (*MultipleMachinesMapRequest, bool)
AsMultipleMachinesMapRequest is the BasicMapRequest implementation for MachineListMapRequest.
func (mlmr MachineListMapRequest) AsSingleMachineDependencyMapRequest() (*SingleMachineDependencyMapRequest, bool)
AsSingleMachineDependencyMapRequest is the BasicMapRequest implementation for MachineListMapRequest.
func (mlmr MachineListMapRequest) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MachineListMapRequest.
MachineProperties resource properties.
type MachineProperties struct { // Timestamp - UTC date and time when this resource was updated in the system. Timestamp *date.Time `json:"timestamp,omitempty"` // MonitoringState - Specifies whether the machine is actively monitored or discovered. Possible values include: 'Monitored', 'Discovered' MonitoringState MonitoringState `json:"monitoringState,omitempty"` // VirtualizationState - Specifies whether the machine is virtualized. Possible values include: 'VirtualizationStateUnknown', 'VirtualizationStatePhysical', 'VirtualizationStateVirtual', 'VirtualizationStateHypervisor' VirtualizationState VirtualizationState `json:"virtualizationState,omitempty"` // DisplayName - Name to use for display purposes DisplayName *string `json:"displayName,omitempty"` // ComputerName - Name of the machine, e.g., server ComputerName *string `json:"computerName,omitempty"` // FullyQualifiedDomainName - Fully-qualified name of the machine, e.g., server.company.com FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"` // BootTime - UTC date and time when the machine last booted BootTime *date.Time `json:"bootTime,omitempty"` // Timezone - Timezone of the machine. Timezone *Timezone `json:"timezone,omitempty"` // Agent - Dependency Agent configuration. Agent *AgentConfiguration `json:"agent,omitempty"` // Resources - Machine resources (memory, cpu, etc.). Resources *MachineResourcesConfiguration `json:"resources,omitempty"` // Networking - Network configuration (ips, gateways, dns, etc.) Networking *NetworkConfiguration `json:"networking,omitempty"` // OperatingSystem - Operating system information. OperatingSystem *OperatingSystemConfiguration `json:"operatingSystem,omitempty"` // VirtualMachine - Virtualization-related configuration. Present only when `virtualizationState` is `virtual`. VirtualMachine *VirtualMachineConfiguration `json:"virtualMachine,omitempty"` // Hypervisor - Hypervisor-related configuration. Present only when 'virtualizationState' is `hypervisor`. Hypervisor *HypervisorConfiguration `json:"hypervisor,omitempty"` // Hosting - Hosting-related configuration. Present if hosting information is discovered for the VM. Hosting BasicHostingConfiguration `json:"hosting,omitempty"` }
func (mVar *MachineProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MachineProperties struct.
MachineRebootStatus enumerates the values for machine reboot status.
type MachineRebootStatus string
const ( // MachineRebootStatusNotRebooted ... MachineRebootStatusNotRebooted MachineRebootStatus = "notRebooted" // MachineRebootStatusRebooted ... MachineRebootStatusRebooted MachineRebootStatus = "rebooted" // MachineRebootStatusUnknown ... MachineRebootStatusUnknown MachineRebootStatus = "unknown" )
func PossibleMachineRebootStatusValues() []MachineRebootStatus
PossibleMachineRebootStatusValues returns an array of possible values for the MachineRebootStatus const type.
MachineReference reference to a machine.
type MachineReference struct { // ID - Resource URI. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type qualifier. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Kind - Possible values include: 'KindResourceReference', 'KindRefmachine', 'KindRefprocess', 'KindRefport', 'KindRefmachinewithhints', 'KindRefclientgroup' Kind Kind `json:"kind,omitempty"` }
func (mr MachineReference) AsBasicResourceReference() (BasicResourceReference, bool)
AsBasicResourceReference is the BasicResourceReference implementation for MachineReference.
func (mr MachineReference) AsClientGroupReference() (*ClientGroupReference, bool)
AsClientGroupReference is the BasicResourceReference implementation for MachineReference.
func (mr MachineReference) AsMachineReference() (*MachineReference, bool)
AsMachineReference is the BasicResourceReference implementation for MachineReference.
func (mr MachineReference) AsMachineReferenceWithHints() (*MachineReferenceWithHints, bool)
AsMachineReferenceWithHints is the BasicResourceReference implementation for MachineReference.
func (mr MachineReference) AsPortReference() (*PortReference, bool)
AsPortReference is the BasicResourceReference implementation for MachineReference.
func (mr MachineReference) AsProcessReference() (*ProcessReference, bool)
AsProcessReference is the BasicResourceReference implementation for MachineReference.
func (mr MachineReference) AsResourceReference() (*ResourceReference, bool)
AsResourceReference is the BasicResourceReference implementation for MachineReference.
func (mr MachineReference) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MachineReference.
MachineReferenceWithHints a machine reference with a hint of the machine's name and operating system.
type MachineReferenceWithHints struct { // MachineReferenceWithHintsProperties - Machine reference with name and os hints. *MachineReferenceWithHintsProperties `json:"properties,omitempty"` // ID - Resource URI. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type qualifier. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Kind - Possible values include: 'KindResourceReference', 'KindRefmachine', 'KindRefprocess', 'KindRefport', 'KindRefmachinewithhints', 'KindRefclientgroup' Kind Kind `json:"kind,omitempty"` }
func (mrwh MachineReferenceWithHints) AsBasicResourceReference() (BasicResourceReference, bool)
AsBasicResourceReference is the BasicResourceReference implementation for MachineReferenceWithHints.
func (mrwh MachineReferenceWithHints) AsClientGroupReference() (*ClientGroupReference, bool)
AsClientGroupReference is the BasicResourceReference implementation for MachineReferenceWithHints.
func (mrwh MachineReferenceWithHints) AsMachineReference() (*MachineReference, bool)
AsMachineReference is the BasicResourceReference implementation for MachineReferenceWithHints.
func (mrwh MachineReferenceWithHints) AsMachineReferenceWithHints() (*MachineReferenceWithHints, bool)
AsMachineReferenceWithHints is the BasicResourceReference implementation for MachineReferenceWithHints.
func (mrwh MachineReferenceWithHints) AsPortReference() (*PortReference, bool)
AsPortReference is the BasicResourceReference implementation for MachineReferenceWithHints.
func (mrwh MachineReferenceWithHints) AsProcessReference() (*ProcessReference, bool)
AsProcessReference is the BasicResourceReference implementation for MachineReferenceWithHints.
func (mrwh MachineReferenceWithHints) AsResourceReference() (*ResourceReference, bool)
AsResourceReference is the BasicResourceReference implementation for MachineReferenceWithHints.
func (mrwh MachineReferenceWithHints) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MachineReferenceWithHints.
func (mrwh *MachineReferenceWithHints) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MachineReferenceWithHints struct.
MachineReferenceWithHintsProperties machine reference with name and os hints.
type MachineReferenceWithHintsProperties struct { // DisplayNameHint - READ-ONLY; Last known display name. DisplayNameHint *string `json:"displayNameHint,omitempty"` // OsFamilyHint - READ-ONLY; Last known operating system family. Possible values include: 'OperatingSystemFamilyUnknown', 'OperatingSystemFamilyWindows', 'OperatingSystemFamilyLinux', 'OperatingSystemFamilySolaris', 'OperatingSystemFamilyAix' OsFamilyHint OperatingSystemFamily `json:"osFamilyHint,omitempty"` }
func (mrwh MachineReferenceWithHintsProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MachineReferenceWithHintsProperties.
MachineResourcesConfiguration describes the resources of a machine.
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"` }
MachinesClient is the service Map API Reference
type MachinesClient struct { BaseClient }
func NewMachinesClient(subscriptionID string) MachinesClient
NewMachinesClient creates an instance of the MachinesClient client.
func NewMachinesClientWithBaseURI(baseURI string, subscriptionID string) MachinesClient
NewMachinesClientWithBaseURI creates an instance of the MachinesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client MachinesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, timestamp *date.Time) (result Machine, err error)
Get returns the specified machine. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. timestamp - UTC date and time specifying a time instance relative to which to evaluate the machine resource. When not specified, the service uses DateTime.UtcNow.
func (client MachinesClient) GetLiveness(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result Liveness, err error)
GetLiveness obtains the liveness status of the machine during the specified time interval. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
func (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 (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 (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 (client MachinesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, timestamp *date.Time) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (client MachinesClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string, live *bool, startTime *date.Time, endTime *date.Time, timestamp *date.Time, top *int32) (result MachineCollectionPage, err error)
ListByWorkspace returns a collection of machines matching the specified conditions. The returned collection represents either machines that are active/live during the specified interval of time (`live=true` and `startTime`/`endTime` are specified) or that are known to have existed at or some time prior to the specified point in time (`live=false` and `timestamp` is specified). Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. live - specifies whether to return live resources (true) or inventory resources (false). Defaults to **true**. When retrieving live resources, the start time (`startTime`) and end time (`endTime`) of the desired interval should be included. When retrieving inventory resources, an optional timestamp (`timestamp`) parameter can be specified to return the version of each resource closest (not-after) that timestamp. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow timestamp - UTC date and time specifying a time instance relative to which to evaluate each machine resource. Only applies when `live=false`. When not specified, the service uses DateTime.UtcNow. top - page size to use. When not specified, the default page size is 100 records.
func (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 (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 (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 (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 (client MachinesClient) ListConnections(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result ConnectionCollectionPage, err error)
ListConnections returns a collection of connections terminating or originating at the specified machine Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
func (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 (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 (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 (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 (client MachinesClient) ListMachineGroupMembership(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result MachineGroupCollectionPage, err error)
ListMachineGroupMembership returns a collection of machine groups this machine belongs to during the specified time interval. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
func (client MachinesClient) ListMachineGroupMembershipComplete(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result MachineGroupCollectionIterator, err error)
ListMachineGroupMembershipComplete enumerates all values, automatically crossing page boundaries as required.
func (client MachinesClient) ListMachineGroupMembershipPreparer(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (*http.Request, error)
ListMachineGroupMembershipPreparer prepares the ListMachineGroupMembership request.
func (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 (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 (client MachinesClient) ListPorts(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result PortCollectionPage, err error)
ListPorts returns a collection of live ports on the specified machine during the specified time interval. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
func (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 (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 (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 (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 (client MachinesClient) ListProcesses(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, live *bool, startTime *date.Time, endTime *date.Time, timestamp *date.Time) (result ProcessCollectionPage, err error)
ListProcesses returns a collection of processes on the specified machine matching the specified conditions. The returned collection represents either processes that are active/live during the specified interval of time (`live=true` and `startTime`/`endTime` are specified) or that are known to have existed at or some time prior to the specified point in time (`live=false` and `timestamp` is specified). Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. live - specifies whether to return live resources (true) or inventory resources (false). Defaults to **true**. When retrieving live resources, the start time (`startTime`) and end time (`endTime`) of the desired interval should be included. When retrieving inventory resources, an optional timestamp (`timestamp`) parameter can be specified to return the version of each resource closest (not-after) that timestamp. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow timestamp - UTC date and time specifying a time instance relative to which to evaluate all process resource. Only applies when `live=false`. When not specified, the service uses DateTime.UtcNow.
func (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 (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 (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 (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.
MachinesSummary a summary of the machines in the workspace.
type MachinesSummary struct { autorest.Response `json:"-"` *MachinesSummaryProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource identifier. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` }
func (ms MachinesSummary) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MachinesSummary.
func (ms *MachinesSummary) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MachinesSummary struct.
MachinesSummaryProperties summarizes machines in the workspace.
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"` }
Map a map of resources and relationships between them.
type Map struct { Nodes *MapNodes `json:"nodes,omitempty"` Edges *MapEdges `json:"edges,omitempty"` }
MapEdges the edges (relationships) of a map.
type MapEdges struct { // Connections - Network connections. Connections *[]Connection `json:"connections,omitempty"` // Acceptors - Processes accepting on a port. Acceptors *[]Acceptor `json:"acceptors,omitempty"` }
MapNodes the nodes (entities) of a map.
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"` }
MapRequest specifies the contents of request to generate a map.
type MapRequest struct { // StartTime - Map interval start time. StartTime *date.Time `json:"startTime,omitempty"` // EndTime - Map interval end time. EndTime *date.Time `json:"endTime,omitempty"` // Kind - Possible values include: 'KindMapRequest', 'KindMapsingleMachineDependency', 'KindMultipleMachinesMapRequest', 'KindMapmachineListDependency', 'KindMapmachineGroupDependency' Kind KindBasicMapRequest `json:"kind,omitempty"` }
func (mr MapRequest) AsBasicMapRequest() (BasicMapRequest, bool)
AsBasicMapRequest is the BasicMapRequest implementation for MapRequest.
func (mr MapRequest) AsBasicMultipleMachinesMapRequest() (BasicMultipleMachinesMapRequest, bool)
AsBasicMultipleMachinesMapRequest is the BasicMapRequest implementation for MapRequest.
func (mr MapRequest) AsMachineGroupMapRequest() (*MachineGroupMapRequest, bool)
AsMachineGroupMapRequest is the BasicMapRequest implementation for MapRequest.
func (mr MapRequest) AsMachineListMapRequest() (*MachineListMapRequest, bool)
AsMachineListMapRequest is the BasicMapRequest implementation for MapRequest.
func (mr MapRequest) AsMapRequest() (*MapRequest, bool)
AsMapRequest is the BasicMapRequest implementation for MapRequest.
func (mr MapRequest) AsMultipleMachinesMapRequest() (*MultipleMachinesMapRequest, bool)
AsMultipleMachinesMapRequest is the BasicMapRequest implementation for MapRequest.
func (mr MapRequest) AsSingleMachineDependencyMapRequest() (*SingleMachineDependencyMapRequest, bool)
AsSingleMachineDependencyMapRequest is the BasicMapRequest implementation for MapRequest.
func (mr MapRequest) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MapRequest.
MapResponse specified the contents of a map response.
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"` }
MapsClient is the service Map API Reference
type MapsClient struct { BaseClient }
func NewMapsClient(subscriptionID string) MapsClient
NewMapsClient creates an instance of the MapsClient client.
func NewMapsClientWithBaseURI(baseURI string, subscriptionID string) MapsClient
NewMapsClientWithBaseURI creates an instance of the MapsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client MapsClient) Generate(ctx context.Context, resourceGroupName string, workspaceName string, request BasicMapRequest) (result MapResponse, err error)
Generate generates the specified map. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. request - request options.
func (client MapsClient) GeneratePreparer(ctx context.Context, resourceGroupName string, workspaceName string, request BasicMapRequest) (*http.Request, error)
GeneratePreparer prepares the Generate request.
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 (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.
MonitoringState enumerates the values for monitoring state.
type MonitoringState string
const ( // Discovered ... Discovered MonitoringState = "discovered" // Monitored ... Monitored MonitoringState = "monitored" )
func PossibleMonitoringStateValues() []MonitoringState
PossibleMonitoringStateValues returns an array of possible values for the MonitoringState const type.
MultipleMachinesMapRequest provides a base class for describing map requests for a collection of machines
type MultipleMachinesMapRequest struct { // FilterProcesses - If true, only processes between specified machines will be included. Any connections in or out of those processes will be included. FilterProcesses *bool `json:"filterProcesses,omitempty"` // StartTime - Map interval start time. StartTime *date.Time `json:"startTime,omitempty"` // EndTime - Map interval end time. EndTime *date.Time `json:"endTime,omitempty"` // Kind - Possible values include: 'KindMapRequest', 'KindMapsingleMachineDependency', 'KindMultipleMachinesMapRequest', 'KindMapmachineListDependency', 'KindMapmachineGroupDependency' Kind KindBasicMapRequest `json:"kind,omitempty"` }
func (mmmr MultipleMachinesMapRequest) AsBasicMapRequest() (BasicMapRequest, bool)
AsBasicMapRequest is the BasicMapRequest implementation for MultipleMachinesMapRequest.
func (mmmr MultipleMachinesMapRequest) AsBasicMultipleMachinesMapRequest() (BasicMultipleMachinesMapRequest, bool)
AsBasicMultipleMachinesMapRequest is the BasicMapRequest implementation for MultipleMachinesMapRequest.
func (mmmr MultipleMachinesMapRequest) AsMachineGroupMapRequest() (*MachineGroupMapRequest, bool)
AsMachineGroupMapRequest is the BasicMapRequest implementation for MultipleMachinesMapRequest.
func (mmmr MultipleMachinesMapRequest) AsMachineListMapRequest() (*MachineListMapRequest, bool)
AsMachineListMapRequest is the BasicMapRequest implementation for MultipleMachinesMapRequest.
func (mmmr MultipleMachinesMapRequest) AsMapRequest() (*MapRequest, bool)
AsMapRequest is the BasicMapRequest implementation for MultipleMachinesMapRequest.
func (mmmr MultipleMachinesMapRequest) AsMultipleMachinesMapRequest() (*MultipleMachinesMapRequest, bool)
AsMultipleMachinesMapRequest is the BasicMapRequest implementation for MultipleMachinesMapRequest.
func (mmmr MultipleMachinesMapRequest) AsSingleMachineDependencyMapRequest() (*SingleMachineDependencyMapRequest, bool)
AsSingleMachineDependencyMapRequest is the BasicMapRequest implementation for MultipleMachinesMapRequest.
func (mmmr MultipleMachinesMapRequest) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MultipleMachinesMapRequest.
NetworkConfiguration describes the network configuration of a machine.
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"` }
OperatingSystemConfiguration describes the configuration of the operating system of a machine.
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"` }
OperatingSystemFamily enumerates the values for operating system family.
type OperatingSystemFamily string
const ( // OperatingSystemFamilyAix ... OperatingSystemFamilyAix OperatingSystemFamily = "aix" // OperatingSystemFamilyLinux ... OperatingSystemFamilyLinux OperatingSystemFamily = "linux" // OperatingSystemFamilySolaris ... OperatingSystemFamilySolaris OperatingSystemFamily = "solaris" // OperatingSystemFamilyUnknown ... OperatingSystemFamilyUnknown OperatingSystemFamily = "unknown" // OperatingSystemFamilyWindows ... OperatingSystemFamilyWindows OperatingSystemFamily = "windows" )
func PossibleOperatingSystemFamilyValues() []OperatingSystemFamily
PossibleOperatingSystemFamilyValues returns an array of possible values for the OperatingSystemFamily const type.
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.
type Port struct { autorest.Response `json:"-"` // PortProperties - Resource properties. *PortProperties `json:"properties,omitempty"` // Etag - Resource ETAG. Etag *string `json:"etag,omitempty"` // Kind - Possible values include: 'KindCoreResource', 'KindMachine', 'KindProcess', 'KindPort', 'KindClientGroup', 'KindMachineGroup' Kind KindBasicCoreResource `json:"kind,omitempty"` // ID - READ-ONLY; Resource identifier. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` }
func (p Port) AsBasicCoreResource() (BasicCoreResource, bool)
AsBasicCoreResource is the BasicCoreResource implementation for Port.
func (p Port) AsClientGroup() (*ClientGroup, bool)
AsClientGroup is the BasicCoreResource implementation for Port.
func (p Port) AsCoreResource() (*CoreResource, bool)
AsCoreResource is the BasicCoreResource implementation for Port.
func (p Port) AsMachine() (*Machine, bool)
AsMachine is the BasicCoreResource implementation for Port.
func (p Port) AsMachineGroup() (*MachineGroup, bool)
AsMachineGroup is the BasicCoreResource implementation for Port.
func (p Port) AsPort() (*Port, bool)
AsPort is the BasicCoreResource implementation for Port.
func (p Port) AsProcess() (*Process, bool)
AsProcess is the BasicCoreResource implementation for Port.
func (p Port) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Port.
func (p *Port) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Port struct.
PortCollection collection of Port resources.
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"` }
func (pc PortCollection) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
PortCollectionIterator provides access to a complete listing of Port values.
type PortCollectionIterator struct {
// contains filtered or unexported fields
}
func NewPortCollectionIterator(page PortCollectionPage) PortCollectionIterator
Creates a new instance of the PortCollectionIterator type.
func (iter *PortCollectionIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *PortCollectionIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter PortCollectionIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter PortCollectionIterator) Response() PortCollection
Response returns the raw server response from the last page request.
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.
PortCollectionPage contains a page of Port values.
type PortCollectionPage struct {
// contains filtered or unexported fields
}
func NewPortCollectionPage(cur PortCollection, getNextPage func(context.Context, PortCollection) (PortCollection, error)) PortCollectionPage
Creates a new instance of the PortCollectionPage type.
func (page *PortCollectionPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *PortCollectionPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page PortCollectionPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page PortCollectionPage) Response() PortCollection
Response returns the raw server response from the last page request.
func (page PortCollectionPage) Values() []Port
Values returns the slice of values for the current page or nil if there are no values.
PortProperties resource properties.
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"` }
func (p *PortProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for PortProperties struct.
PortReference reference to a port.
type PortReference struct { // PortReferenceProperties - Resource properties. *PortReferenceProperties `json:"properties,omitempty"` // ID - Resource URI. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type qualifier. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Kind - Possible values include: 'KindResourceReference', 'KindRefmachine', 'KindRefprocess', 'KindRefport', 'KindRefmachinewithhints', 'KindRefclientgroup' Kind Kind `json:"kind,omitempty"` }
func (pr PortReference) AsBasicResourceReference() (BasicResourceReference, bool)
AsBasicResourceReference is the BasicResourceReference implementation for PortReference.
func (pr PortReference) AsClientGroupReference() (*ClientGroupReference, bool)
AsClientGroupReference is the BasicResourceReference implementation for PortReference.
func (pr PortReference) AsMachineReference() (*MachineReference, bool)
AsMachineReference is the BasicResourceReference implementation for PortReference.
func (pr PortReference) AsMachineReferenceWithHints() (*MachineReferenceWithHints, bool)
AsMachineReferenceWithHints is the BasicResourceReference implementation for PortReference.
func (pr PortReference) AsPortReference() (*PortReference, bool)
AsPortReference is the BasicResourceReference implementation for PortReference.
func (pr PortReference) AsProcessReference() (*ProcessReference, bool)
AsProcessReference is the BasicResourceReference implementation for PortReference.
func (pr PortReference) AsResourceReference() (*ResourceReference, bool)
AsResourceReference is the BasicResourceReference implementation for PortReference.
func (pr PortReference) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PortReference.
func (pr *PortReference) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for PortReference struct.
PortReferenceProperties resource properties.
type PortReferenceProperties struct { // Machine - READ-ONLY; Machine hosting the port. Machine *MachineReference `json:"machine,omitempty"` // IPAddress - READ-ONLY; IP address of the port. IPAddress *string `json:"ipAddress,omitempty"` // PortNumber - Port number. PortNumber *int32 `json:"portNumber,omitempty"` }
func (pr PortReferenceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PortReferenceProperties.
PortsClient is the service Map API Reference
type PortsClient struct { BaseClient }
func NewPortsClient(subscriptionID string) PortsClient
NewPortsClient creates an instance of the PortsClient client.
func NewPortsClientWithBaseURI(baseURI string, subscriptionID string) PortsClient
NewPortsClientWithBaseURI creates an instance of the PortsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client PortsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (result Port, err error)
Get returns the specified port. The port must be live during the specified time interval. If the port is not live during the interval, status 404 (Not Found) is returned. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. portName - port resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
func (client PortsClient) GetLiveness(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (result Liveness, err error)
GetLiveness obtains the liveness status of the port during the specified time interval. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. portName - port resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
func (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 (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 (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 (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 (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 (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 (client PortsClient) ListAcceptingProcesses(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (result ProcessCollectionPage, err error)
ListAcceptingProcesses returns a collection of processes accepting on the specified port Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. portName - port resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
func (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 (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 (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 (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 (client PortsClient) ListConnections(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (result ConnectionCollectionPage, err error)
ListConnections returns a collection of connections established via the specified port. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. portName - port resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
func (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 (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 (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 (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.
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
type Process struct { autorest.Response `json:"-"` // ProcessProperties - Resource properties. *ProcessProperties `json:"properties,omitempty"` // Etag - Resource ETAG. Etag *string `json:"etag,omitempty"` // Kind - Possible values include: 'KindCoreResource', 'KindMachine', 'KindProcess', 'KindPort', 'KindClientGroup', 'KindMachineGroup' Kind KindBasicCoreResource `json:"kind,omitempty"` // ID - READ-ONLY; Resource identifier. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` }
func (p Process) AsBasicCoreResource() (BasicCoreResource, bool)
AsBasicCoreResource is the BasicCoreResource implementation for Process.
func (p Process) AsClientGroup() (*ClientGroup, bool)
AsClientGroup is the BasicCoreResource implementation for Process.
func (p Process) AsCoreResource() (*CoreResource, bool)
AsCoreResource is the BasicCoreResource implementation for Process.
func (p Process) AsMachine() (*Machine, bool)
AsMachine is the BasicCoreResource implementation for Process.
func (p Process) AsMachineGroup() (*MachineGroup, bool)
AsMachineGroup is the BasicCoreResource implementation for Process.
func (p Process) AsPort() (*Port, bool)
AsPort is the BasicCoreResource implementation for Process.
func (p Process) AsProcess() (*Process, bool)
AsProcess is the BasicCoreResource implementation for Process.
func (p Process) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Process.
func (p *Process) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Process struct.
ProcessCollection collection of Process resources.
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"` }
func (pc ProcessCollection) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ProcessCollectionIterator provides access to a complete listing of Process values.
type ProcessCollectionIterator struct {
// contains filtered or unexported fields
}
func NewProcessCollectionIterator(page ProcessCollectionPage) ProcessCollectionIterator
Creates a new instance of the ProcessCollectionIterator type.
func (iter *ProcessCollectionIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *ProcessCollectionIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ProcessCollectionIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ProcessCollectionIterator) Response() ProcessCollection
Response returns the raw server response from the last page request.
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.
ProcessCollectionPage contains a page of Process values.
type ProcessCollectionPage struct {
// contains filtered or unexported fields
}
func NewProcessCollectionPage(cur ProcessCollection, getNextPage func(context.Context, ProcessCollection) (ProcessCollection, error)) ProcessCollectionPage
Creates a new instance of the ProcessCollectionPage type.
func (page *ProcessCollectionPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (page *ProcessCollectionPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (page ProcessCollectionPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ProcessCollectionPage) Response() ProcessCollection
Response returns the raw server response from the last page request.
func (page ProcessCollectionPage) Values() []Process
Values returns the slice of values for the current page or nil if there are no values.
ProcessDetails describes process metadata.
type ProcessDetails struct { // PersistentKey - A unique identifier for a process, generally resilient to process restart, computed by Service Map. PersistentKey *string `json:"persistentKey,omitempty"` // PoolID - Represents the identity of the process pool assigned to the process by Dependency Agent. PoolID *int32 `json:"poolId,omitempty"` // FirstPid - The Operating System Process Identifier (PID) of the first process in this process pool. FirstPid *int32 `json:"firstPid,omitempty"` // Description - Process description. Description *string `json:"description,omitempty"` // CompanyName - Name of company that created the process executable. CompanyName *string `json:"companyName,omitempty"` // InternalName - Internal process name. InternalName *string `json:"internalName,omitempty"` // ProductName - Product name. ProductName *string `json:"productName,omitempty"` // ProductVersion - Product version. ProductVersion *string `json:"productVersion,omitempty"` // FileVersion - File version. FileVersion *string `json:"fileVersion,omitempty"` // CommandLine - Process command line. CommandLine *string `json:"commandLine,omitempty"` // ExecutablePath - Process executable path. ExecutablePath *string `json:"executablePath,omitempty"` // WorkingDirectory - Process workingDirectory. WorkingDirectory *string `json:"workingDirectory,omitempty"` // Services - Collection of services hosted by this Process (Windows only). Services *[]ProcessHostedService `json:"services,omitempty"` // ZoneName - Process zone name (Linux only). ZoneName *string `json:"zoneName,omitempty"` }
ProcessHostedService a service hosted by a process.
type ProcessHostedService struct { // Name - The name of the service. Name *string `json:"name,omitempty"` // DisplayName - The service's display name. DisplayName *string `json:"displayName,omitempty"` }
ProcessHostingConfiguration describes the hosting configuration of a process.
type ProcessHostingConfiguration struct { // Provider - The hosting provider of the VM. Possible values include: 'Provider1Azure' Provider Provider1 `json:"provider,omitempty"` // Kind - Possible values include: 'KindBasicProcessHostingConfigurationKindProcessHostingConfiguration', 'KindBasicProcessHostingConfigurationKindProviderazure' Kind KindBasicProcessHostingConfiguration `json:"kind,omitempty"` }
func (phc ProcessHostingConfiguration) AsAzureProcessHostingConfiguration() (*AzureProcessHostingConfiguration, bool)
AsAzureProcessHostingConfiguration is the BasicProcessHostingConfiguration implementation for ProcessHostingConfiguration.
func (phc ProcessHostingConfiguration) AsBasicProcessHostingConfiguration() (BasicProcessHostingConfiguration, bool)
AsBasicProcessHostingConfiguration is the BasicProcessHostingConfiguration implementation for ProcessHostingConfiguration.
func (phc ProcessHostingConfiguration) AsProcessHostingConfiguration() (*ProcessHostingConfiguration, bool)
AsProcessHostingConfiguration is the BasicProcessHostingConfiguration implementation for ProcessHostingConfiguration.
func (phc ProcessHostingConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProcessHostingConfiguration.
ProcessProperties resource properties.
type ProcessProperties struct { // Timestamp - UTC date and time when this process resource was updated in the system Timestamp *date.Time `json:"timestamp,omitempty"` // MonitoringState - Specifies whether the process is actively monitored or discovered. Possible values include: 'Monitored', 'Discovered' MonitoringState MonitoringState `json:"monitoringState,omitempty"` // Machine - Machine hosting this process. Machine BasicResourceReference `json:"machine,omitempty"` // ExecutableName - The name of the process executable ExecutableName *string `json:"executableName,omitempty"` // DisplayName - Name to use for display purposes DisplayName *string `json:"displayName,omitempty"` // StartTime - UTC date and time when the process started StartTime *date.Time `json:"startTime,omitempty"` // Role - The inferred role of this process based on its name, command line, etc. Possible values include: 'WebServer', 'AppServer', 'DatabaseServer', 'LdapServer', 'SmbServer' Role ProcessRole `json:"role,omitempty"` // Group - The name of the product or suite of the process. The group is determined by its executable name, command line, etc. Group *string `json:"group,omitempty"` // Details - Process metadata (command line, product name, etc.). Details *ProcessDetails `json:"details,omitempty"` // User - Information about the account under which the process is executing. User *ProcessUser `json:"user,omitempty"` // ClientOf - Present only for a discovered process acting as a client of a monitored process/machine/port. References the monitored process/machine/port that this process is a client of. ClientOf BasicResourceReference `json:"clientOf,omitempty"` // AcceptorOf - Present only for a discovered process acting as a server. References the port on which the discovered process is accepting. AcceptorOf BasicResourceReference `json:"acceptorOf,omitempty"` // Hosting - Information about the hosting environment Hosting BasicProcessHostingConfiguration `json:"hosting,omitempty"` }
func (p *ProcessProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ProcessProperties struct.
ProcessReference reference to a process.
type ProcessReference struct { // ProcessReferenceProperties - Resource properties. *ProcessReferenceProperties `json:"properties,omitempty"` // ID - Resource URI. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type qualifier. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Kind - Possible values include: 'KindResourceReference', 'KindRefmachine', 'KindRefprocess', 'KindRefport', 'KindRefmachinewithhints', 'KindRefclientgroup' Kind Kind `json:"kind,omitempty"` }
func (pr ProcessReference) AsBasicResourceReference() (BasicResourceReference, bool)
AsBasicResourceReference is the BasicResourceReference implementation for ProcessReference.
func (pr ProcessReference) AsClientGroupReference() (*ClientGroupReference, bool)
AsClientGroupReference is the BasicResourceReference implementation for ProcessReference.
func (pr ProcessReference) AsMachineReference() (*MachineReference, bool)
AsMachineReference is the BasicResourceReference implementation for ProcessReference.
func (pr ProcessReference) AsMachineReferenceWithHints() (*MachineReferenceWithHints, bool)
AsMachineReferenceWithHints is the BasicResourceReference implementation for ProcessReference.
func (pr ProcessReference) AsPortReference() (*PortReference, bool)
AsPortReference is the BasicResourceReference implementation for ProcessReference.
func (pr ProcessReference) AsProcessReference() (*ProcessReference, bool)
AsProcessReference is the BasicResourceReference implementation for ProcessReference.
func (pr ProcessReference) AsResourceReference() (*ResourceReference, bool)
AsResourceReference is the BasicResourceReference implementation for ProcessReference.
func (pr ProcessReference) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProcessReference.
func (pr *ProcessReference) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ProcessReference struct.
ProcessReferenceProperties resource properties.
type ProcessReferenceProperties struct { // Machine - READ-ONLY; Machine hosting the process. Machine *MachineReference `json:"machine,omitempty"` }
func (pr ProcessReferenceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProcessReferenceProperties.
ProcessRole enumerates the values for process role.
type ProcessRole string
const ( // AppServer ... AppServer ProcessRole = "appServer" // DatabaseServer ... DatabaseServer ProcessRole = "databaseServer" // LdapServer ... LdapServer ProcessRole = "ldapServer" // SmbServer ... SmbServer ProcessRole = "smbServer" // WebServer ... WebServer ProcessRole = "webServer" )
func PossibleProcessRoleValues() []ProcessRole
PossibleProcessRoleValues returns an array of possible values for the ProcessRole const type.
ProcessUser describes the user under which a process is running.
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"` }
ProcessesClient is the service Map API Reference
type ProcessesClient struct { BaseClient }
func NewProcessesClient(subscriptionID string) ProcessesClient
NewProcessesClient creates an instance of the ProcessesClient client.
func NewProcessesClientWithBaseURI(baseURI string, subscriptionID string) ProcessesClient
NewProcessesClientWithBaseURI creates an instance of the ProcessesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client ProcessesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, timestamp *date.Time) (result Process, err error)
Get returns the specified process. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. processName - process resource name. timestamp - UTC date and time specifying a time instance relative to which to evaluate a resource. When not specified, the service uses DateTime.UtcNow.
func (client ProcessesClient) GetLiveness(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (result Liveness, err error)
GetLiveness obtains the liveness status of the process during the specified time interval. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. processName - process resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
func (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 (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 (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 (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 (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 (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 (client ProcessesClient) ListAcceptingPorts(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (result PortCollectionPage, err error)
ListAcceptingPorts returns a collection of ports on which this process is accepting Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. processName - process resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
func (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 (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 (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 (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 (client ProcessesClient) ListConnections(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (result ConnectionCollectionPage, err error)
ListConnections returns a collection of connections terminating or originating at the specified process Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. machineName - machine resource name. processName - process resource name. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
func (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 (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 (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 (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.
Provider enumerates the values for provider.
type Provider string
const ( // Azure ... Azure Provider = "azure" )
func PossibleProviderValues() []Provider
PossibleProviderValues returns an array of possible values for the Provider const type.
Provider1 enumerates the values for provider 1.
type Provider1 string
const ( // Provider1Azure ... Provider1Azure Provider1 = "azure" )
func PossibleProvider1Values() []Provider1
PossibleProvider1Values returns an array of possible values for the Provider1 const type.
Relationship a typed relationship between two entities.
type Relationship struct { // Kind - Possible values include: 'KindRelationship', 'KindRelconnection', 'KindRelacceptor' Kind KindBasicRelationship `json:"kind,omitempty"` // ID - READ-ONLY; Resource identifier. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` }
func (r Relationship) AsAcceptor() (*Acceptor, bool)
AsAcceptor is the BasicRelationship implementation for Relationship.
func (r Relationship) AsBasicRelationship() (BasicRelationship, bool)
AsBasicRelationship is the BasicRelationship implementation for Relationship.
func (r Relationship) AsConnection() (*Connection, bool)
AsConnection is the BasicRelationship implementation for Relationship.
func (r Relationship) AsRelationship() (*Relationship, bool)
AsRelationship is the BasicRelationship implementation for Relationship.
func (r Relationship) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Relationship.
RelationshipProperties relationship properties.
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"` }
func (rp *RelationshipProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RelationshipProperties struct.
Resource resource model definition.
type Resource struct { // ID - READ-ONLY; Resource identifier. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` }
func (r Resource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Resource.
ResourceReference represents a reference to another resource.
type ResourceReference struct { // ID - Resource URI. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type qualifier. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Kind - Possible values include: 'KindResourceReference', 'KindRefmachine', 'KindRefprocess', 'KindRefport', 'KindRefmachinewithhints', 'KindRefclientgroup' Kind Kind `json:"kind,omitempty"` }
func (rr ResourceReference) AsBasicResourceReference() (BasicResourceReference, bool)
AsBasicResourceReference is the BasicResourceReference implementation for ResourceReference.
func (rr ResourceReference) AsClientGroupReference() (*ClientGroupReference, bool)
AsClientGroupReference is the BasicResourceReference implementation for ResourceReference.
func (rr ResourceReference) AsMachineReference() (*MachineReference, bool)
AsMachineReference is the BasicResourceReference implementation for ResourceReference.
func (rr ResourceReference) AsMachineReferenceWithHints() (*MachineReferenceWithHints, bool)
AsMachineReferenceWithHints is the BasicResourceReference implementation for ResourceReference.
func (rr ResourceReference) AsPortReference() (*PortReference, bool)
AsPortReference is the BasicResourceReference implementation for ResourceReference.
func (rr ResourceReference) AsProcessReference() (*ProcessReference, bool)
AsProcessReference is the BasicResourceReference implementation for ResourceReference.
func (rr ResourceReference) AsResourceReference() (*ResourceReference, bool)
AsResourceReference is the BasicResourceReference implementation for ResourceReference.
func (rr ResourceReference) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ResourceReference.
SingleMachineDependencyMapRequest specifies the computation of a single server dependency map. A single server dependency map includes all direct dependencies of a given machine.
type SingleMachineDependencyMapRequest struct { // MachineID - URI of machine resource for which to generate the map. MachineID *string `json:"machineId,omitempty"` // StartTime - Map interval start time. StartTime *date.Time `json:"startTime,omitempty"` // EndTime - Map interval end time. EndTime *date.Time `json:"endTime,omitempty"` // Kind - Possible values include: 'KindMapRequest', 'KindMapsingleMachineDependency', 'KindMultipleMachinesMapRequest', 'KindMapmachineListDependency', 'KindMapmachineGroupDependency' Kind KindBasicMapRequest `json:"kind,omitempty"` }
func (smdmr SingleMachineDependencyMapRequest) AsBasicMapRequest() (BasicMapRequest, bool)
AsBasicMapRequest is the BasicMapRequest implementation for SingleMachineDependencyMapRequest.
func (smdmr SingleMachineDependencyMapRequest) AsBasicMultipleMachinesMapRequest() (BasicMultipleMachinesMapRequest, bool)
AsBasicMultipleMachinesMapRequest is the BasicMapRequest implementation for SingleMachineDependencyMapRequest.
func (smdmr SingleMachineDependencyMapRequest) AsMachineGroupMapRequest() (*MachineGroupMapRequest, bool)
AsMachineGroupMapRequest is the BasicMapRequest implementation for SingleMachineDependencyMapRequest.
func (smdmr SingleMachineDependencyMapRequest) AsMachineListMapRequest() (*MachineListMapRequest, bool)
AsMachineListMapRequest is the BasicMapRequest implementation for SingleMachineDependencyMapRequest.
func (smdmr SingleMachineDependencyMapRequest) AsMapRequest() (*MapRequest, bool)
AsMapRequest is the BasicMapRequest implementation for SingleMachineDependencyMapRequest.
func (smdmr SingleMachineDependencyMapRequest) AsMultipleMachinesMapRequest() (*MultipleMachinesMapRequest, bool)
AsMultipleMachinesMapRequest is the BasicMapRequest implementation for SingleMachineDependencyMapRequest.
func (smdmr SingleMachineDependencyMapRequest) AsSingleMachineDependencyMapRequest() (*SingleMachineDependencyMapRequest, bool)
AsSingleMachineDependencyMapRequest is the BasicMapRequest implementation for SingleMachineDependencyMapRequest.
func (smdmr SingleMachineDependencyMapRequest) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SingleMachineDependencyMapRequest.
SummariesClient is the service Map API Reference
type SummariesClient struct { BaseClient }
func NewSummariesClient(subscriptionID string) SummariesClient
NewSummariesClient creates an instance of the SummariesClient client.
func NewSummariesClientWithBaseURI(baseURI string, subscriptionID string) SummariesClient
NewSummariesClientWithBaseURI creates an instance of the SummariesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client SummariesClient) GetMachines(ctx context.Context, resourceGroupName string, workspaceName string, startTime *date.Time, endTime *date.Time) (result MachinesSummary, err error)
GetMachines returns summary information about the machines in the workspace. Parameters: resourceGroupName - resource group name within the specified subscriptionId. workspaceName - OMS workspace containing the resources of interest. startTime - UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m endTime - UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
func (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 (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 (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.
Summary base for all resource summaries.
type Summary struct { // ID - READ-ONLY; Resource identifier. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` }
func (s Summary) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Summary.
SummaryProperties base for all summaries.
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"` }
Timezone describes a timezone.
type Timezone struct { // FullName - Timezone full name. FullName *string `json:"fullName,omitempty"` }
VirtualMachineConfiguration describes the virtualization-related configuration of a machine.
type VirtualMachineConfiguration struct { // VirtualMachineType - Specifies the virtualization technology used by the machine (hyperv, vmware, etc.). Possible values include: 'VirtualMachineTypeUnknown', 'VirtualMachineTypeHyperv', 'VirtualMachineTypeLdom', 'VirtualMachineTypeLpar', 'VirtualMachineTypeVmware', 'VirtualMachineTypeVirtualPc', 'VirtualMachineTypeXen' VirtualMachineType VirtualMachineType `json:"virtualMachineType,omitempty"` // NativeMachineID - The unique identifier of the virtual machine as reported by the underlying virtualization system. NativeMachineID *string `json:"nativeMachineId,omitempty"` // VirtualMachineName - The Name of the virtual machine. VirtualMachineName *string `json:"virtualMachineName,omitempty"` // NativeHostMachineID - The unique identifier of the host of this virtual machine as reported by the underlying virtualization system. NativeHostMachineID *string `json:"nativeHostMachineId,omitempty"` }
VirtualMachineType enumerates the values for virtual machine type.
type VirtualMachineType string
const ( // VirtualMachineTypeHyperv ... VirtualMachineTypeHyperv VirtualMachineType = "hyperv" // VirtualMachineTypeLdom ... VirtualMachineTypeLdom VirtualMachineType = "ldom" // VirtualMachineTypeLpar ... VirtualMachineTypeLpar VirtualMachineType = "lpar" // VirtualMachineTypeUnknown ... VirtualMachineTypeUnknown VirtualMachineType = "unknown" // VirtualMachineTypeVirtualPc ... VirtualMachineTypeVirtualPc VirtualMachineType = "virtualPc" // VirtualMachineTypeVmware ... VirtualMachineTypeVmware VirtualMachineType = "vmware" // VirtualMachineTypeXen ... VirtualMachineTypeXen VirtualMachineType = "xen" )
func PossibleVirtualMachineTypeValues() []VirtualMachineType
PossibleVirtualMachineTypeValues returns an array of possible values for the VirtualMachineType const type.
VirtualizationState enumerates the values for virtualization state.
type VirtualizationState string
const ( // VirtualizationStateHypervisor ... VirtualizationStateHypervisor VirtualizationState = "hypervisor" // VirtualizationStatePhysical ... VirtualizationStatePhysical VirtualizationState = "physical" // VirtualizationStateUnknown ... VirtualizationStateUnknown VirtualizationState = "unknown" // VirtualizationStateVirtual ... VirtualizationStateVirtual VirtualizationState = "virtual" )
func PossibleVirtualizationStateValues() []VirtualizationState
PossibleVirtualizationStateValues returns an array of possible values for the VirtualizationState const type.
Name | Synopsis |
---|---|
.. | |
servicemapapi | Deprecated: Please note, this package has been deprecated. |