Interface InsightReport
public interface InsightReport
Represents an InsightReport.
- Since:
- 5.15
-
Method Summary
Modifier and TypeMethodDescriptionThe commit id which this report was registered against.The date this report was created.getData()
Free form data stored with this report.Details for the report.getKey()
Unique key for the report.getLink()
Callback link.URL to fetch the icon for the report from.Name of the tool that produced the report, this may contain characters that are unsafe to display without escaping.com.atlassian.bitbucket.repository.Repository
Repository that the report is attached to.The result of the report and by extension the job that produced the report.getTitle()
Title of the report.
-
Method Details
-
getCommitId
The commit id which this report was registered against.- Returns:
- the commit id
-
getCoverageProviderKey
- Returns:
- an
Optional
containing the code coverage provider key, orOptional.empty()
if no provider - Since:
- 6.8
-
getCreatedDate
The date this report was created.- Returns:
- The date this report was created, the date would be the date of the node servicing the request to create the report
-
getData
Free form data stored with this report. The data is defined by the caller, and as such no guarantees are made on the shape of it. The order of the array is the same as it was when the report was stored.- Returns:
- the data, if no data is stored an empty list will be returned
-
getDetails
Details for the report. This is typically a longer description of the report or longer information for the report. If the string is too long it will be either trimmed or truncated at the time of display.- Returns:
- an
Optional
containing the stored details, orOptional.empty()
if no details were recorded
-
getKey
Unique key for the report. This report is typically a reporter prefixed string and say a CI system plan key. The key should typically not contain the build number as that would generate multiple reports for the same commit if the build is re-run. There can only be one report with a given key for a commit.- Returns:
- key for the report
-
getLink
Callback link. This link is typically a link back to the reporter that produced the report. For the case of CI system it would link back to the build that produced the report.- Returns:
- an
Optional
containing the link, orOptional.empty()
if no link was stored
-
getLogoUrl
URL to fetch the icon for the report from.- Returns:
- an
Optional
containing the url orOptional.empty()
if no icon is to be displayed
-
getRepository
@Nonnull com.atlassian.bitbucket.repository.Repository getRepository()Repository that the report is attached to.- Returns:
- the repository for this report
-
getResult
The result of the report and by extension the job that produced the report. The semantic meaning of what a 'FAILED' report means is up to the producer of the report.- Returns:
- an
Optional
containing the result orOptional.empty()
if the report does not have a result
-
getTitle
Title of the report.- Returns:
- title of the report, this may contain characters that are unsafe to display without escaping
-
getReporter
Name of the tool that produced the report, this may contain characters that are unsafe to display without escaping.- Returns:
- an
Optional
containing the reporter name orOptional.empty()
if the report has no reporter
-