Added metrics for GSL.
This commit is contained in:
parent
af44628def
commit
611b962171
1 changed files with 63 additions and 0 deletions
|
@ -100,6 +100,69 @@ public class GSLProber
|
|||
result.set(Long.valueOf(value), "metrics.gsl.authors", timemarks);
|
||||
}
|
||||
|
||||
// gsl.articles.tags
|
||||
value = properties.getProperty("gsl.tags");
|
||||
if (NumberUtils.isDigits(value))
|
||||
{
|
||||
result.set(Long.valueOf(value), "metrics.gsl.tags", timemarks);
|
||||
}
|
||||
|
||||
// gsl.articles.words
|
||||
value = properties.getProperty("gsl.words");
|
||||
if (NumberUtils.isDigits(value))
|
||||
{
|
||||
result.set(Long.valueOf(value), "metrics.gsl.words", timemarks);
|
||||
}
|
||||
|
||||
// gsl.articles.quotes
|
||||
value = properties.getProperty("gsl.quotes");
|
||||
if (NumberUtils.isDigits(value))
|
||||
{
|
||||
result.set(Long.valueOf(value), "metrics.gsl.quotes", timemarks);
|
||||
}
|
||||
|
||||
// gsl.articles.paragraphs
|
||||
value = properties.getProperty("gsl.paragraphs");
|
||||
if (NumberUtils.isDigits(value))
|
||||
{
|
||||
result.set(Long.valueOf(value), "metrics.gsl.paragraphs", timemarks);
|
||||
}
|
||||
|
||||
// gsl.articles.links
|
||||
value = properties.getProperty("gsl.links");
|
||||
if (NumberUtils.isDigits(value))
|
||||
{
|
||||
result.set(Long.valueOf(value), "metrics.gsl.links", timemarks);
|
||||
}
|
||||
|
||||
// gsl.articles.links.online
|
||||
value = properties.getProperty("gsl.online");
|
||||
if (NumberUtils.isDigits(value))
|
||||
{
|
||||
result.set(Long.valueOf(value), "metrics.gsl.online", timemarks);
|
||||
}
|
||||
|
||||
// gsl.articles.lists
|
||||
value = properties.getProperty("gsl.lists");
|
||||
if (NumberUtils.isDigits(value))
|
||||
{
|
||||
result.set(Long.valueOf(value), "metrics.gsl.lists", timemarks);
|
||||
}
|
||||
|
||||
// gsl.articles.lists.items
|
||||
value = properties.getProperty("gsl.items");
|
||||
if (NumberUtils.isDigits(value))
|
||||
{
|
||||
result.set(Long.valueOf(value), "metrics.gsl.items", timemarks);
|
||||
}
|
||||
|
||||
// gsl_articles.images
|
||||
value = properties.getProperty("gsl.images");
|
||||
if (NumberUtils.isDigits(value))
|
||||
{
|
||||
result.set(Long.valueOf(value), "metrics.gsl.authors", timemarks);
|
||||
}
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue