Unverified Commit a826c4a6 authored by jonhehir's avatar jonhehir Committed by GitHub

Send actual dashboard product (rather than hardcoded mode) to ES (#286)

parent 9e17b75b
......@@ -79,7 +79,6 @@ class Neo4jSearchDataExtractor(Extractor):
"""
)
# todo: 1. change mode to generic once add more support for dashboard
DEFAULT_NEO4J_DASHBOARD_CYPHER_QUERY = textwrap.dedent(
"""
MATCH (db:Dashboard)
......@@ -96,7 +95,7 @@ class Neo4jSearchDataExtractor(Extractor):
coalesce(db_descr.description, '') as description,
coalesce(dbg.description, '') as group_description, dbg.dashboard_group_url as group_url,
db.dashboard_url as url, db.key as uri,
'mode' as product, toInt(last_exec.timestamp) as last_successful_run_timestamp,
split(db.key, '_')[0] as product, toInt(last_exec.timestamp) as last_successful_run_timestamp,
COLLECT(DISTINCT query.name) as query_names,
total_usage
order by dbg.name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment