use of org.stepik.api.objects.metrics.Metric in project intellij-plugins by StepicOrg.
the class Metrics method postSimpleMetric.
private static void postSimpleMetric(@NotNull Project project, @NotNull String action, @NotNull MetricsStatus status) {
Metric metric = new Metric();
metric.addTags("action", action);
postMetrics(project, metric, status);
}
use of org.stepik.api.objects.metrics.Metric in project intellij-plugins by StepicOrg.
the class Metrics method stepAction.
private static void stepAction(@NotNull String actionName, @NotNull Project project, @NotNull StepNode stepNode, @NotNull MetricsStatus status) {
Metric metric = new Metric();
metric.addTags("action", actionName);
metric.addData("step_id", stepNode.getId());
metric.addTags("step_programming_language", stepNode.getCurrentLang().getName());
StepType stepType = stepNode.getType();
metric.addTags("step_type", stepType.getName());
postMetrics(project, metric, status);
}