func (m *Machine) CloudHealth() bool {
	if m.Aws != nil {
		return m.Aws.CloudHealth
	}
	return false
}
CloudHealth is a convenience routine that returns true if scotty should
write cloud health data for machine.
package machine
import (
	"github.com/Symantec/Dominator/lib/mdb"
	"github.com/Symantec/scotty"
	"github.com/Symantec/scotty/application"
	"github.com/Symantec/scotty/awsinfo"
	"github.com/Symantec/scotty/namesandports"
	"github.com/Symantec/scotty/store"
	"sort"
	"sync"
	"time"
)
type EndpointObservation struct {
	SeqNo uint64
	Endpoints namesandports.NamesAndPorts
}
type EndpointObservations struct {
	mu   sync.Mutex
	data map[string]EndpointObservation
}
func NewEndpointObservations() *EndpointObservations {
	return &EndpointObservations{data: make(map[string]EndpointObservation)}
}
func (e *EndpointObservations) Save(
	hostName string, namesAndPorts namesandports.NamesAndPorts) {
	e.save(hostName, namesAndPorts)
}
func (e *EndpointObservations) GetAll() map[string]EndpointObservation {
	return e.getAll()
}
func (e *EndpointObservations) MaybeAddApp(hostName, appName string, port uint) {
	e.maybeAddApp(hostName, appName, port)
}
type Machine struct {
	Host string
	Region string
	IpAddress string
	Active bool
	Aws *awsinfo.AwsInfo
}
func (m *Machine) AccountId() string {
	if m.Aws != nil {
		return m.Aws.AccountId
	}
	return ""
}
func (m *Machine) InstanceId() string {
	if m.Aws != nil {
		return m.Aws.InstanceId
	}
	return ""
}