summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYadnesh Kulkarni <ykulkarn@redhat.com>2023-03-02 12:55:03 +0530
committerYadnesh Kulkarni <ykulkarn@redhat.com>2023-03-02 12:55:03 +0530
commit2a5f63da95a26dae46707a2a22e593604726aeae (patch)
tree1e76917d0e42da31eeafa38dce69c08c8ab3c06c
parentccce41555008fcffc941c91d1d1090be6611a57e (diff)
downloadceilometer-2a5f63da95a26dae46707a2a22e593604726aeae.tar.gz
Add vanity names to telemetry polling notifications
This change adds "project_name" and "user_name" fields to polling samples which is related to the identification of vanity names change 79454d6b22787627ae6239aa7b2707101ba30212 Change-Id: I5fbe97439e7fadbdd8fd2641c49f1c88fbc416fc
-rw-r--r--ceilometer/telemetry/notifications.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ceilometer/telemetry/notifications.py b/ceilometer/telemetry/notifications.py
index 195e00f8..cd739a47 100644
--- a/ceilometer/telemetry/notifications.py
+++ b/ceilometer/telemetry/notifications.py
@@ -31,7 +31,9 @@ class TelemetryIpc(endpoint.SampleEndpoint):
unit=sample_dict['counter_unit'],
volume=sample_dict['counter_volume'],
user_id=sample_dict['user_id'],
+ user_name=sample_dict['user_name'],
project_id=sample_dict['project_id'],
+ project_name=sample_dict['project_name'],
resource_id=sample_dict['resource_id'],
timestamp=sample_dict['timestamp'],
resource_metadata=sample_dict['resource_metadata'],