Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions business/definitionService.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ class DefinitionService {

_logDefinitionStatus(definition, coordinates) {
if (this._isEmpty(definition)) {
this.logger.info('definition harvest in progress', { coordinates: coordinates.toString() })
this.logger.debug('definition harvest in progress', { coordinates: coordinates.toString() })
} else {
// Log line used for /status page insights
this.logger.info('computed definition available', { coordinates: coordinates.toString() })
this.logger.debug('computed definition available', { coordinates: coordinates.toString() })
}
}

Expand Down
15 changes: 0 additions & 15 deletions business/statusService.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class StatusService {
_getStatusLookup() {
return {
requestcount: this._requestCount,
definitionavailability: this._definitionAvailability,
processedperday: this._processedPerDay,
recentlycrawled: this._recentlyCrawled,
crawlbreakdown: this._crawlbreakdown,
Expand All @@ -57,20 +56,6 @@ class StatusService {
}, {})
}

async _definitionAvailability() {
const data = await requestPromise(
this._serviceQuery(`
traces
| where timestamp > ago(90d)
| where message == "recomputed definition available" or message == "definition not available" or message == "computed definition available"
| summarize count() by message`)
)
return data.tables[0].rows.reduce((result, row) => {
result[row[0]] = row[1]
return result
}, {})
}

async _processedPerDay() {
const data = await requestPromise(
this._crawlerQuery(`
Expand Down