← Back to team overview

monasca team mailing list archive

List alarms by tenant id

 

Hi,

According to monasca-api documentation (https://github.com/stackforge/monasca-api/blob/master/docs/monasca-api-spec.md#get-v20alarms) and my test work results, I couldn’t find a way to list alarms by tenant id parameter. Is there a way to overcome this problem?

I am writing a monitoring application and connecting to openstack environment by a single admin user account. When the user on my monitoring application side chooses a tenant to display latest status, I want to list alarms, metrics … etc over monasca-api functions. But when it comes to list alarms of a specific tenant, list alarms function on monasca-api does not give me a tenant_id parameter to fulfill.

I can list the metric measurements by passing a tenant_id parameter to /v2.0/metrics/measurements method (if the user has monasca-admin role). https://github.com/stackforge/monasca-api/blob/master/docs/monasca-api-spec.md#get-v20metricsmeasurements  document section explains the idea.

Regards,
Emrecan

Emrecan Sezen

Uzman
Specialist
Bilişim Ar-Ge ve Teknoloji Direktörlüğü
IT R & D and Technology

www.turksat.com.tr<http://www.turksat.com.tr>
esezen@xxxxxxxxxxxxxx<mailto:esezen@xxxxxxxxxxxxxx>


T : +90 232 323 43 00
F : +90





"Bu mesaj ve ekleri mesajda gönderildiği belirtilen kişi ya da kişilere özel olup gizli bilgiler içeriyor olabilir. Mesajın muhatabı ilgilisi ya da gönderileni değilseniz lütfen mesajı herhangi bir şekilde kullanmayınız çoğaltmayınız ve başkalarına ifşa etmeyiniz. Eğer mesaj yanlışlıkla size ulaşmışsa anılan mesaj ve ekinde yer alan bilgileri gizli tutunuz ve mesajı gönderen kişiyi bilgilendirerek söz konusu mesaj ile eklerini derhal imha ediniz. Bu mesaj ve ekindeki belgelerin bilinen virüslere karşı kontrolü yapılmıştır. Ancak e-posta sistemlerinin taşıdığı risklerden dolayı şirketimiz bu mesajın ve içerdiği bilgilerin size değişikliğe uğrayarak veya geç ulaşmasından bütünlüğünün ve gizliliğinin korunamamasından virüs içermesinden ve herhangi bir sebeple bilgisayarınıza ve sisteminize verebileceği zararlardan sorumlu tutulamaz.”<<<<<

“This message together with its attachments is intended solely for the address(es) and may contain confidential or privileged information. If you are not the intended recipient please do not use copy or disclose the message for any purpose. Should you receive this message by mistake please keep all information contained in the message or its attachments strictly confidential and advise the sender and delete it immediately without retaining a copy. This message and its attachments have been swept by anti-virus systems for the presence of known viruses. However due to the risks of e-mail systems our company cannot accept liability for any changes or delay in receiving loss of integrity and confidentiality containing viruses and any damages caused in any way to your computer and system recipient, you are notified that disclosing, distributing, or copying this e-mail is strictly prohibited. “