Interface Client

    • Method Detail

      • deleteRollupTask

        void deleteRollupTask​(String id)
        Delete the roll-up. Throws an exception if the delete fails.
        Parameters:
        id - identifier of the roll-up
        Throws:
        UnexpectedResponseException - if the operation fails
      • getRollupTask

        RollupTask getRollupTask​(String id)
        Returns the roll-up.
        Parameters:
        id - roll-up identifier
        Returns:
        roll-up or null if no roll-ups match the specified identifier
        Throws:
        UnexpectedResponseException - if the operation fails
      • getMetricNames

        Object getMetricNames()
        Returns a list of all metric names.
        Returns:
        list of all metric names
        Throws:
        UnexpectedResponseException - if the operation fails
      • getStatusCheck

        int getStatusCheck()
        Returns a status code fo 204 if all is healthy.
        Returns:
        status of Kairos instance
        Throws:
        UnexpectedResponseException - if the operation fails
      • pushMetrics

        void pushMetrics​(MetricBuilder builder)
        Sends metrics from the builder to the KairosDB server.
        Parameters:
        builder - metrics builder
        Throws:
        UnexpectedResponseException - if the operation fails
      • deleteMetric

        void deleteMetric​(String name)
        Deletes a metric. This is the metric and all its data points. An exception is thrown if this operation fails.
        Parameters:
        name - the metric to delete
        Throws:
        UnexpectedResponseException - if the operation fails
      • delete

        void delete​(QueryBuilder builder)
        Deletes data in KairosDB using the query built by the builder. An exception is thrown if this operation fails.
        Parameters:
        builder - query builder
        Throws:
        UnexpectedResponseException - if the operation fails
      • getVersion

        String getVersion()
        Returns the version string for the KairosDB server.
        Returns:
        KairosDB version
      • registerCustomDataType

        void registerCustomDataType​(String groupType,
                                    Class dataPointValueClass)
        Registers a new custom data type. The assumption is that this data type already exists on the server. The dataPointValueClass is used to serialize and deserialize the custom type. This is simply a POJO.
        Parameters:
        groupType - type used to deserialize the json on the client
        dataPointValueClass - class that is the value of a data point
      • getDataPointValueClass

        Class getDataPointValueClass​(String groupType)
        Returns the data point value class for the given group type or null if one is not registered for the group type
        Parameters:
        groupType - group type
        Returns:
        data point class associated with the group type