All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.newrelic.api.agent.Insights Maven / Gradle / Ivy

There is a newer version: 8.16.0
Show newest version
/*
 *
 *  * Copyright 2020 New Relic Corporation. All rights reserved.
 *  * SPDX-License-Identifier: Apache-2.0
 *
 */

package com.newrelic.api.agent;

import java.util.Map;

/**
 * Used to send custom events to Insights.
 */
public interface Insights {

    /**
     * Sends an Insights event for the current application.
     *
     * @param eventType Must match /^[a-zA-Z0-9:_ ]+$/, be non-null, and less than 256 chars.
     * @param attributes A map of event data. Each key should be a String and each value should be a String, Number, or Boolean.
     *                   For map values that are not String, Number, or Boolean object types the toString value will be used.
     * @since 3.13.0 
     */
    void recordCustomEvent(String eventType, Map attributes);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy