How to get cloud services CPU Percentage and Network In

Hi,
I am using Service management API to collect the cloud services related metrics for example
Cloud name, Status and location etc.
How to get the CPU, memory, network and disk related metrics of cloud services using the same API.  I am using java code to collect all the details. Please verify the below source code..But i did not get the output. But there is no error message. Help
me how to get those details..
Configuration config = ManagementConfiguration.configure(
new URI(uri),
subscriptionId,
keyStoreLocation, // path to the JKS file
keyStorePassword, // password for the JKS file
KeyStoreType.jks  // flag that you are using a JKS keystore
CloudServiceManagementClient cldCli = CloudServiceManagementService.create(config);
CloudServiceOperations cldOpe = cldCli.getCloudServicesOperations();
CloudServiceListResponse cldListRes = cldOpe.list();
ArrayList<CloudServiceListResponse.CloudService> cldServices = cldListRes.getCloudServices();
if(cldServices != null)
for(int cc=0; cc<cldServices.size();cc++)
CloudServiceListResponse.CloudService yesCld = (CloudServiceListResponse.CloudService)cldServices.get(cc);
if(yesCld == null)
continue;
ArrayList<CloudServiceListResponse.CloudService.AddOnResource> cldResRes = yesCld.getResources();
if(cldResRes == null)
continue;
for(int r=0; r<cldResRes.size(); r++)
CloudServiceListResponse.CloudService.AddOnResource addOnRes = cldResRes.get(r);
if(addOnRes == null)
continue;
ArrayList<CloudServiceListResponse.CloudService.AddOnResource.UsageLimit> cldUse = addOnRes.getUsageLimits();
if(cldUse == null )
continue;
for(int u=0;u<cldUse.size(); u++)
CloudServiceListResponse.CloudService.AddOnResource.UsageLimit useLimit = cldUse.get(u);
if(useLimit == null)
continue;
System.out.println("NAME:"+useLimit.getName()+"UNIT "+useLimit.getUnit()+" Amount used "+useLimit.getAmountUsed());
Thanks & Regards,
Rathidevi

Hi,
The Azure Diagnostics capability supports the configuration of diagnostics information than can be captured locally on a role instance and then persisted to Azure Storage on some timescale, this only support Azure Cloud service, I think it is useful for
us to analyze the performance, if you don't want to use it, please try to use
Azure Monitoring Service API, for more information, refer the below articles.
#https://convective.wordpress.com/2014/06/22/using-azure-monitoring-service-with-azure-virtual-machines/
#https://convective.wordpress.com/2014/06/27/using-azure-monitoring-services-api-with-azure-cloud-services/
Best Regards,
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How to get the health , performance information and about the services run on devices that have connected to the system center?

    Hi All,
    I want to know how to get the health , performance information and about the services run on devices that have connected to the system center to my c# application. Also I need to know about the information of databases that have connected to system center.
    I will appreciate your feedback
    Thank you

    Hi,
    You can configure service monitor for the required service on the server
    refer below link for how to configure service monitoring
    http://www.bictt.com/blogs/bictt.php/2011/03/17/scom-monitoring-a-service-part3
    You can use SCOM SDK to connect to the scom server using c# and get required information
    http://msdn.microsoft.com/en-us/library/hh329086.aspx
    you can find the database in below registry path on management server
    HKLM:\SOFTWARE\Microsoft\Microsoft Operations Manager\3.0\Setup\DatabaseName
    Regards
    sridhar v

  • Unfamiliar icon & how to get it serviced

    I let the ipod go too long without charging...
    In addition to the exclamation point/folder icon, sometimes an unfamiliar icon (not one of those seen on the ipod support page) will appear. It has an exclamation and a battery.
    The ipod can be recognized by computers and the music and data can be accessed, the problem is that when disconnected from the computer, the ipod will not turn on (except to give the "you have a problem" icons). I've gone thru the reset, charge (which it appears to be doing when connected), update, etc. and that does not help.
    So, how to get it serviced?
    I've had it for less than 6 months so it should be under warranty. Problem is that I'm moving out of the country in a few days, not enough time to have them get it back to me - and I don't think the warranty is good for outside the US.
    I might be able to stop by an Apple store, but so far the genius bars are all booked up, will they look at it if I don't have an appointment?
    ipod nano   Mac OS X (10.4.3)   with Mac

    Whats happened is the battery has degraded where you have not charge it in forever.
    the Battery with ! Icon is shown here on this page at apple along with a link to steps you may take if it still shows this icon after getting a full charge http://docs.info.apple.com/article.html?artnum=93936
    Id say if you keep it connected to a charge and let it charge up for afew hours (Not like afew min or just one hour), then restore it most of the issues will go away.
    If connected to a computer to charge, make sure the computer stays on and doesn't go into some "Sleep Mode". If on a laptop plug the lap up to its ac adapter while the nano is charging and don't close the screen down

  • How to get the "CMYK" Color percentages?

    Could you please advise me how to get the "CMYK" Color percentages of every pixel via scripting.

    You have to be patched to the 10.0.2 version of FM and you must use the CMYK option with SaveAsPDF. If thee colour is defined as Spot in the FM file, it should remain as a spot colour in th PDF. However, that being said, the CMYK route is still a bit wonky (even in FM12) and you may get odd results in your PDF.
    Alternatives are to make the fix in Acrobat with the Print Production tools (or even better to use a third-party tool like Enfocus Pro) or to use GrafikHuset's (now freebie) PubliPDF to convert FM's RGB postscript output to CMYK+Spot PDFs. Download at: http://design.grafikhuset.dk/index.php/kontakt/downloads/grafikhuset-publi-pdf and more details available at: http://www.grafikhuset.net/PubliPDF/

  • How to get a service notification number for given serial number

    Please, someones know how to get a service notification number based on serial number.
    In our process the notification can be created as first step (IW51) or can be created starting from service order (IW32).
    Thanks in advance.
    Luca

    Hi pooja,
    actually standard service request numbers are configured in spro->crm->transactions->Settings for Service Requests->Number Ranges. here they are maintain service request,incident,problem number ranges..
    so when ever your creating any service request then that number range will appear in that object id.
    you have to get that object id in your custom field get_method and based on that you have to change your number..
    example:
    current = me->bo.
    current->get_property_as_string( EXPORTING iv_attr_name  = 'OBJECTI_ID'  RECEIVING rv_result  = lv_id ).
    here you will get object_id based on that you have to write your own logic to display custom value.
    " write your custom logic to populate custom field. pass that custom field value into returning parameter.
    value = custom_value.
    Thanks & Regards,
    Srinivas.

  • HT5312 I really need help. I forgot my security question answers and i dont remember them. I dont know how to get to this email thing and i dont remember if i ever set one up or not.. Please help quickly

    I forgot my security questions and i dont know how to get to the email rescue and don't think i ever set one up with my account.. Please help me !!!!

    The Three Best Alternatives for Security Questions and Rescue Mail
        1. Use Apple's Express Lane.
              Go to https://expresslane.apple.com ; click 'See all products and services' at the
              bottom of the page. In the next page click 'More Products and Services, then
              'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
              ID security questions' and click 'Continue'.
         2.  Call Apple Support in your country: Customer Service: Contact Apple support.
         3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • How to get warranty service claim from nokia c5-03...

    how to get warranty service claim from nokia c5-03 in india because i have problem with nokia c5-03 I Purchase 2 week ago a new nokia c5-03 but from day 1 i facing same problem like 1) app close itself 2) internet browse close if any thing is downloading or downloading over 3) memory full always then i should reboot the phone then it work. 4) ovi map is open it shows memory full close the app So kindly help me how to get warranty service claim from nokia c5-03 in india i am unhappy with nokia c5-03
    Solved!
    Go to Solution.

    i updated software also but the same problem cont... I want to know that nokia will give back money or exchange for other new mobile

  • Hi, just need to know how to get my music, video, pictures and apps form my iPhone to my new laptop as the old computer, which I used before was stolen. I only have my phone left and if I try to conect it to my new laptop it's trying to delete everything.

    Hi, just need to know how to get my music, video, pictures and apps form my iPhone to my new laptop as the old computer, which I used before was stolen. I only have my phone left and if I try to conect it to my new laptop it's trying to delete everything.

    I have also noticed all my settings won't stay set, example....I removed the check mark from "third party cookies", the when I close Firefox and reopen the check mark is back, also my tool bar has screwed up....can't reset, been having trouble the up grade.

  • How to get the service name of a webservice using UDDI API

    Hi,
    Iam working on setting up a dynamic partner link in a BPEL, by passing the endpoint of a web service queried from the UDDI (Oracle Service Registry 10.3 ) using the API. Iam able to do it successfully.
    Now, for example I have two operations in my wsdl, one to createCustomer and the other to bookTicket. I need to get the operation name using UDDI API so that i can pass it along with the endpoint to the partner link. ie. When i need to createCustomer, my UDDI API code will need to get the service name createCustomer and the endpoint and I would pass them to the partnerlink and the createCustomer operation of my webservice would be called.
    Can any one help me to get the service names of the wsdl using UDDI APIs.
    Thanks,
    Ananth

    Hi sia,
    1. Table is APQI
    2. field name for session name is GROUPID
    regards,
    amit m.

  • How to get Lion off my computer and go back to Snow Leopard???

    How do I get rid of Lion and go back to Snow Leopard PERMANENTLY?
    I am not techno.
    I need simple instructions with plain descriptions. I do not have any discs. The iMac came with Snow Leopard and I loaded NOTHING.
    I should never have bought  Lion. It is awful.
    Please someone tell me how to get Lion off my computer and go back to Snow Leopard.

    Can I use time machine to restart the machine before the fateful day when I bought and installed Lion?
    Yes, if you have a pre-Lion backup, but you need an installation disc.
    Is there anything else I can do?  more RAM?
    I don't know how much RAM you have. It must be at least 2 GB, or Lion wouldn't have installed. If that's all you have, you might get better performance by adding more. But from your description, I doubt that your problem is due entirely, if at all, to a lack of RAM. If you want to troubleshoot the problem, it will take some patience and effort, and you'll need to be in a calm frame of mind.

  • I just downloaded the new iOS 5.0 and did all of the backup prompted steps beforehand, but I can't figure out how to get all of my apps and music back on my iPhone. Where did they go and how can I put them back on my iPhone?

    I just downloaded the new iOS 5.0 and did all of the backup prompted steps beforehand, but I can't figure out how to get all of my apps and music back on my iPhone. Where did they go and how can I put them back on my iPhone?

    Hi, Abril_Perez17.
    This may be related to a new feature embedded in iOS7 that shows all purchased music by default.  Go to Settings > Music, then turn off Show All Music.  See if the issue ceases once the feature has been disabled.  This information is located on page 63 of the user guide below. 
    iPhone User Guide
    Regards,
    Jason H. 

  • I have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending

    i have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending the mail.
    Also the mail is acting very funny by not getting the rules work in a proper method.  Is ther a software to repair mail.

    i did both of them, but still the while sending the mail the diolog box is not showing up and also the spelling and grammer does not do the spelling check. 
    This problem just started for about 3 to 4 days now.  earlier it was working normally.

  • How to get the all process orders and outbound deliveries based on material

    Hi Team ,
    I need one help from you regarding the MB 56 transaction.
    My doubt is : How to get the all process orders and outbound deliveries based on material, plant and batch?
    Please help me regarding this.
    Thanks & Regards,
    Srikanth.

    Hi,
    You can use ST05,to trace the program and find out,
    hope it will help you...
    thanks and regards,
    veera.

  • How to get  shipped orders, unshipped orders and orders with open deliverie

    Hi
    how to get  shipped orders, unshipped orders and orders with open deliveries
    can anybody answer this.
    points would be rewrded
    Thanks

    Hi,
    You can check in the VBUK table for the status of an order. If you do a Query on VBUK table to get all the orders whose delivery status is not 'C' or the total goods movement status is not 'C' you get to know the orders not yet shipped.
    Hope this helps. Reqard points if useful.
    David.

  • When i update my IOS7 i lost my all pic from my IPAD2 how to get back those pic? and i don,t think so i did kept back up before i did that. can anyone help me for this issue?

    When i update my IOS7 i lost my all pic from my IPAD2 can anyone suggest how to get back those pic? and i don,t think so i did kept back up before i update ios7. can anyone help me for this issue?

    The photo's in your camera roll would be in a backup, if you have one (iCloud or iTunes).  If you did not keep a backup somewhere, they are gone.  Sorry, but that is the way of any data - if you don't have a backup of it somewhere, there is nothing to restore it from.
    All other photo's should be on your computer somewhere anyway - whereever you had them to sync to the device originally.

Maybe you are looking for

  • How to store data from xml in oracle database

    Hello All Could anyone tell me ways of storing XML in Oracle and whats the best one in terms of performance issues. any URL to this q/s would be great. thanks kedar

  • Downgrading Mountain Lion back to Snow Leopard

    I have a mid summer 2010 Mac Mini that originally came with Snow Leopard and I still have the install disks.  In september, I upgrade to Mountain lion and due to the slow and unacceptable performance since then, I want to go back to Snow Leopard. I h

  • How do i get whats on my computer screen on my tv via apple tv

    /how do i get whats on my computer screen on my tv via apple tv?

  • Function key drop-down doesn't appear anymore

    Hi there When i press the Fn Key the computer no longer displays the drop down menu that it used to. The function key still works but I can no longer see what function i have selected. How can I resolve this??

  • Adobe Kills Flash ?

    Should we take it officially granted that Adobe Kills flash ? The following threads Re: After Effects CC 2014 - removal of H.264, MPEG-2, WMV, FLV, F4V, and SWF exporters - WHY !? Re: Show Deprecated Formats in Output Module Settings don't appear in