Documentation ¶
Index ¶
- type Category
- type Child
- type Dropdown
- type Link
- type Node
- type Resource
- func (r *Resource) Add() error
- func (r *Resource) CheckMetricExist() (bool, error)
- func (r *Resource) CheckProperty() (*models.Resource, error)
- func (r *Resource) Count() (int, error)
- func (r *Resource) CreateTagInfo(tag *spongeregister.Tag, resource *models.Resource) error
- func (r *Resource) DeleteResource() error
- func (r *Resource) DeleteResources() error
- func (r *Resource) DeleteTagInfos() error
- func (r *Resource) ExistByGuId() (bool, error)
- func (r *Resource) GetAtlasMap() ([]Node, []Link, []Category, error)
- func (r *Resource) GetDeviceIds() ([]string, error)
- func (r *Resource) GetDeviceInfo() (*models.Resource, error)
- func (r *Resource) GetDeviceInfos() ([]*models.Resource, error)
- func (r *Resource) GetOtypeDropdownList() ([]Dropdown, error)
- func (r *Resource) GetRelationGraph() ([]Node, []Link, []Category, error)
- func (r *Resource) GetRelationMap() ([]Node, []Link, error)
- func (r *Resource) GetRelationResources() ([]*models.Resource, error)
- func (r *Resource) GetResourceInfo() (*models.Resource, error)
- func (r *Resource) GetResourceTagByKey(key string) (*models.Tag, error)
- func (r *Resource) GetResourcesByCity() ([]models.CityResource, error)
- func (r *Resource) GetStatisticDropdownList() ([]Dropdown, error)
- func (r *Resource) GetSunburstMap(keyword string, oType int, status int) ([]*Child, error)
- func (r *Resource) GetTagGroupInfos(tagKey string, tagValue string) ([]*models.ResourceMetric, error)
- func (r *Resource) GetTagInfosByGuId() ([]*models.Tag, error)
- func (r *Resource) GetUtilizationInfo() ([]models.UtilizationInfo, error)
- func (r *Resource) InsertMetricInfo() error
- func (r *Resource) RenewalDevice() string
- func (r *Resource) SearchResources() ([]*models.Resource, error)
- func (r *Resource) SearchResourcesByType() ([]models.TypeCount, []models.TypeCount, error)
- func (r *Resource) UpdateMetricInfo() error
- func (r *Resource) UpdateStatus() error
- func (r *Resource) UpdateSubNode() error
- func (r *Resource) UpdateTagInfo(tag *spongeregister.Tag, resource *models.Resource) error
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type Resource struct { GuId string Description string Status int Area string PreNode string SubNode string OType int Utilization int CreateTime string UpdateTime string IsMonitor int IsControl int //AutoRemove int Tags []Tag CpuSet string CpuRatio float64 ID int PageNum int PageSize int Param string GuIds []string }
func (*Resource) CheckMetricExist ¶
func (*Resource) CreateTagInfo ¶
func (*Resource) DeleteResource ¶
func (*Resource) DeleteResources ¶
func (*Resource) DeleteTagInfos ¶
func (*Resource) ExistByGuId ¶
func (*Resource) GetDeviceIds ¶
func (*Resource) GetOtypeDropdownList ¶
func (*Resource) GetRelationGraph ¶
func (*Resource) GetRelationResources ¶
func (*Resource) GetResourceTagByKey ¶
func (*Resource) GetResourcesByCity ¶
func (r *Resource) GetResourcesByCity() ([]models.CityResource, error)
func (*Resource) GetStatisticDropdownList ¶
func (*Resource) GetSunburstMap ¶
func (*Resource) GetTagGroupInfos ¶
func (*Resource) GetUtilizationInfo ¶
func (r *Resource) GetUtilizationInfo() ([]models.UtilizationInfo, error)
func (*Resource) InsertMetricInfo ¶
func (*Resource) RenewalDevice ¶
func (*Resource) SearchResourcesByType ¶
func (*Resource) UpdateMetricInfo ¶
func (*Resource) UpdateStatus ¶
func (*Resource) UpdateSubNode ¶
func (*Resource) UpdateTagInfo ¶
Click to show internal directories.
Click to hide internal directories.