public interface

ChangesetMetricsService

com.atlassian.fisheye.spi.services.ChangesetMetricsService

Class Overview

Provides an API for efficiently retrieving repository metrics such as changeset, revision and LOC counts

Summary

Nested Classes
interface ChangesetMetricsService.QueryParameters  
Public Methods
abstract Long getChangesetCount(String repository, ChangesetMetricsService.QueryParameters parameters)
abstract Map<StringInteger> getCommitVolumeByDay(String repository, ChangesetMetricsService.QueryParameters parameters)
abstract Map<StringInteger> getCommitVolumeByHour(String repository, ChangesetMetricsService.QueryParameters parameters)
abstract Map<StringInteger> getCommitVolumeForLastYearByWeek(String repository, ChangesetMetricsService.QueryParameters parameters)
abstract ChangesetMetricsService.QueryParameters.Builder getQueryBuilder()

Public Methods

public abstract Long getChangesetCount (String repository, ChangesetMetricsService.QueryParameters parameters)

Parameters
repository a repository name
parameters a ChangesetMetricsService.QueryParameters object
Returns

public abstract Map<StringInteger> getCommitVolumeByDay (String repository, ChangesetMetricsService.QueryParameters parameters)

Parameters
repository a repository name
parameters a ChangesetMetricsService.QueryParameters object
Returns
  • a Map<String, Integer> representing the commit volume of the specified repositry broken down by days of the week. For example:
    KeyValue
    Sun293
    Mon10293
    Tue12141
    Wed10321
    Thu11421
    Fri9423
    Sat2401

public abstract Map<StringInteger> getCommitVolumeByHour (String repository, ChangesetMetricsService.QueryParameters parameters)

Parameters
repository a repository name
parameters a ChangesetMetricsService.QueryParameters object
Returns
  • a Map<String, Integer> representing the commit volume of the specified repositry broken down by hours of a day (keyed in 24 hour notation, i.e. "0"-"23"). For example:
    KeyValue
    0293
    110293
    212141
    310321
    ......
    229423
    232401

public abstract Map<StringInteger> getCommitVolumeForLastYearByWeek (String repository, ChangesetMetricsService.QueryParameters parameters)

Parameters
repository a repository name
parameters a ChangesetMetricsService.QueryParameters object
Returns
  • a Map<String, Integer> representing the commit volume of the specified repositry over the last year broken down by week. For example, the results for a query performed on May 25th, 2009 (the 22nd week of the year) might look like this (where the key is a four-digit year followed by a two-digit week number):
    KeyValue
    200922293
    20092110293
    20092012141
    20091910321
    ......
    2008249423
    2008232401

public abstract ChangesetMetricsService.QueryParameters.Builder getQueryBuilder ()

Returns