Skip to content

Commit

Permalink
[frontend] Add metrict to Event::DeleteProject
Browse files Browse the repository at this point in the history
Now we track this event in influxdb through rabbitmq

Co-authored-by: Ana María Martínez Gómez <ammartinez@suse.de>
Co-authored-by: David Kang <dkang@suse.com>
  • Loading branch information
3 people committed Apr 24, 2018
1 parent 2efe1be commit d88c24b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/api/app/models/event/delete_project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ class DeleteProject < Base
def self.message_bus_routing_key
'project.delete'
end

private

def metric_tags
{ home: ::Project.home?(payload['project']) }
end

def metric_fields
{ value: 1 }
end
end
end

Expand Down

0 comments on commit d88c24b

Please sign in to comment.