Interface CmdbService


  • public interface CmdbService
    Service to visit CMDB store
    Since:
    0.7.0
    Author:
    nkorange
    • Method Detail

      • getLabelNames

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

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

        Label getLabel​(String labelName)
        Get label info
        Parameters:
        labelName - label name
        Returns:
        label info
      • getLabelValue

        String getLabelValue​(String entityName,
                             String entityType,
                             String labelName)
        Get label value of label name of ip
        Parameters:
        entityName - entity name
        entityType - entity type
        labelName - target label name
        Returns:
        label value
      • getLabelValues

        Map<String,​String> getLabelValues​(String entityName,
                                                String entityType)
        Get all label value of ip
        Parameters:
        entityName - entity name
        entityType - entity type
        Returns:
        all label values
      • getEntityEvents

        List<EntityEvent> getEntityEvents​(long timestamp)
        get label change events
        Parameters:
        timestamp - start time of generated events
        Returns:
        label events
      • getEntity

        Entity getEntity​(String entityName,
                         String entityType)
        Get single entity
        Parameters:
        entityName - name of entity
        entityType - type of entity
        Returns: