ru.yoomoney.gradle.plugins.grafana.impl.DashboardContentCreator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grafana-dashboard-plugin Show documentation
Show all versions of grafana-dashboard-plugin Show documentation
Gradle plugin by YooMoney. See README: https://github.com/yoomoney/grafana-dashboard-plugin
The newest version!
package ru.yoomoney.gradle.plugins.grafana.impl;
import javax.annotation.Nonnull;
import java.io.File;
/**
* Interface for content creation
*
* @author Oleg Kandaurov
* @since 29.11.2018
*/
public interface DashboardContentCreator {
/**
* Is file type supported by this format
*
* @param file File
* @return Is able to create content from file
*/
boolean isSupported(@Nonnull File file);
/**
* Create dashboard content from specified file
*
* @param file File
* @return Dashboard content
*/
String createContent(@Nonnull File file);
}