接口 CmdbService


public interface CmdbService
Service to visit CMDB store.
从以下版本开始:
0.7.0
作者:
nkorange
  • 方法详细资料

    • getLabelNames

      Set<String> getLabelNames()
      Get all label names stored in CMDB.
      返回:
      label name set
    • getEntityTypes

      Set<String> getEntityTypes()
      Get all possible entity types in CMDB.
      返回:
      all entity types
    • getLabel

      Label getLabel(String labelName)
      Get label info.
      参数:
      labelName - label name
      返回:
      label info
    • getLabelValue

      String getLabelValue(String entityName, String entityType, String labelName)
      Get label value of label name of ip.
      参数:
      entityName - entity name
      entityType - entity type
      labelName - target label name
      返回:
      label value
    • getLabelValues

      Map<String,​String> getLabelValues(String entityName, String entityType)
      Get all label value of ip.
      参数:
      entityName - entity name
      entityType - entity type
      返回:
      all label values
    • getAllEntities

      Map<String,​Map<String,​Entity>> getAllEntities()
      Dump all entities in CMDB.
      返回:
      all entities
    • getEntityEvents

      List<EntityEvent> getEntityEvents(long timestamp)
      get label change events.
      参数:
      timestamp - start time of generated events
      返回:
      label events
    • getEntity

      Entity getEntity(String entityName, String entityType)
      Get single entity.
      参数:
      entityName - name of entity
      entityType - type of entity
      返回:
      entity.