Problem with obtaining the value of availability

Hello

I use HQ API in my program in eclipse to collect values for the various indicators of AVAILABILITY of certain resources and it works! But sometimes, the problem is that the values are equal to 1.0, 0.0 sometimes, or even 2.0. I read in the forum that when the value of the availability of a resource is equal to 1.0 at the time t, the resource is available at that time and when it is equal to 0.0 is that it is not available, but I do not understand how the value of availability is equal to 2.0!
Is my reasoning fair? If this is not the case, what should I do to find the correct values of availability?
Here are some of my code:

getting the list of value for a measure with id = idMetric, start = start time and end = end time
...
listValues = hq.getMetricApi () .getMetricData (idMetric, start, end) .getMetricData () .getDataPoint ();

get the last value

int size = 0;
value of type double = 0.0;
Size = listValues.Size ();
value = listValues.get (Size-1). GetValue();

test
System.out.println (value);

If (value is 1.0)
System.out.println ("resource is available at the time:" + end);

on the other
System.out.println ("resource is not available at the time:" + end);

Thanks for helping me to find a solution because it's very urgent.

Post edited by: kamisan

Post edited by: kamisan

The availability of 2.0 means that the value is unknown.
This is what causes the gray (as opposed to the green/red/yellow) indicator in the table of health resource.

Thank you wschlichter:
http://communities.VMware.com/message/1942176#1942176

Tags: VMware

Similar Questions

  • Problem with passing the values in a report to the other

    Hello

    I am Agnes, I have developed 2 reports. Summary of the first high level, Mithraeum is detailed. First report is developed using Union (4 union), I have 4 columns. The report generates data. I used the Navigation option on customer column to go to the second report. In the second report with filter I use the easier option. Due to a problem, the customer value of the first report is failed per second. The second report is getting generated for all customers.

    Normally, I have used this option to navigate through other reports and which works very well. I even tested with Union, it works. This time is to give some difficulties.

    Please, let me know what goes wrong.

    Thanks for the help.

    If your Union pivot source then by a simple navigation that you can not pass clicked value to the second report.

    With the help of GoNaV you can pass the selected value source union pivot report to the non-Union target report. If the target report is also union pivot, then it won't pass filters using GoNav.Not sure that because someone talked about a few days back that with the help of GoNav possible to pass the value of a union pivot query to pivot anothet union report.

    Kind regards
    Sandeep

  • Problem with obtaining the installation for CS5 files

    My computer crashed and I lost photoshop CS5.  How can I reinstall the CS5?

    CS5 download products<---Official link.="">

  • Problem with REPLACING the clause in Sybase

    I am facing a problem with REPLACING the clause in embedded SQL with a Sybase database.

    My Cold Fusion Server is MX 7.

    The database is the Adaptive Enterprise/12.5.0.3/EBF 10689 IR/P/Sun_svr4/OS Server 5.8/rel12503/1915/64-bit/FBO/Thu 23 Jan 16:05:19 2003

    That is the problem. I have a variable bureau_incode of Cold Fusion, which I use to set the values in my IN clause. When I comment on my request and display this value in the HTML page, bureau_incode has the following value:

    ('TAB', 'OGC', 'BIG', 'OLA', "MDG", "SEO", "OSP", "ANOTHER OWD ',' ', 'PSHSB", "CAT", "WTB")

    My CFQUERY embedded SQL looks like this:

    Quote:
    < name cfquery = "qResults" datasource = "#request.dsn #" >
    Select Name,
    bureau_code,
    Telephone,
    Mobile phone,
    Pager,
    E-mail
    Availability,
    Explanation,
    Password,
    Admin,
    last_login = convert (varchar (20), last_login, 0)
    of PAMS where availability = ' don't
    < #request.seltype # cfif IS NOT "ALL" >
    and bureau_code IN #bureau_incode #.
    < / cfif >
    < / cfquery >
  • Problem with installing the game "no apps are installed to open this type of link try find at the store.

    Original title: problem with installing the game

    install a game but saying o\s

    No apps are installed to open this type of link try find in the store and when I opened store it for the app its available nt tried compatibility troubleshooting but no use it please help

    Hi harsh,

    For a better understanding of the issue, I would need more information on your side.

    1. What is the name of the game you install?

    2. where did you install the game from?

    3. What is the full error message?

    4. the question facing you while opening the store Windows or you are looking for an app? Have what compatibility troubleshooting steps you tried?

    To resolve the problem with applications, I suggest you try the procedure described in the article and see if it helps.

    Solve problems with a soft

    Please provide the necessary information to help you further, I'll be happy to help you.

  • Problem with uninstalling the Toshiba Bluetooth Stack for Windows

    Guys, I have a problem with uninstalling the Toshiba Bluetooth Stack for Windows v4.00.22 on my laptop Windows XP SP2. Whenever I choose to remove the "battery Bluetooth for Windows by Toshiba" (or "Bluetooth HID Switch Service") the installation program starts to prepare, but crashes after a few minutes - the only way to continue is to turn off the laptop.

    The same thing happens when I try to update the stack to the latest version - the installer says that the old battery has to be removed first and crashes after trying to remove it. So is it possible to remove it by hand? I really don't want to reinstall Windows!

    I don't have a copy of the original Software v4.00.22 to recharge so if you have a copy or know where I can get a copy I would gratefully

    Thanks in advance.

    I would try to delete the folder: "C:\Program Files Toshiba Stack.
    Registry settings will remain, but should be repaired after a new installation of the Bluetooth stack.

  • Problem with finding the SmartGlass an Xbox to Store or App Store

    Original title: xbox a smartglass

    I can't find that the smartglass an Xbox on the windows store or the appstore please help

    Hi Ibrahim.

    Please contact Microsoft Community. I understand that you have a problem with finding the SmartGlass an Xbox to Store or App Store. I will surely you help with this.

    You can download Xbox a SmartGlass from the following Windows store link.

    http://apps.Microsoft.com/Windows/en-us/app/Xbox-one-SmartGlass/c3a46cb8-e733-4579-B716-862e123fa831

    For more information you can check the link.

    http://support.Xbox.com/en-us/Xbox-360/apps/SmartGlass-Info

    Hope this information helps. If you need more assistance or information on this question, reply to this message. I'll be happy to help you.

  • Facing a problem with writing the custom for WLS identity assertion provider

    I am facing a problem with writing the custom for WLS identity assertion provider.

    Requirement:

    Asserter identity configured in WLS should get called when the following cookie is sent in a request by my application
    cookie name: OAMAuthnCookie_blr1234567.idc.oracle.com:7777

    I added the name of the cookie as a token of support and Active token in WeblogicCustomIdentityAsserter.xml

    < MBeanAttribute
    Name = "SupportedTypes.
    Type = "java.lang.String [].
    Writeable = "false".
    Default = "new String() {& quot; OAMAuthnCookie_blr1234567.idc.oracle.com:7777 & quot ;}.
    / >
    <!-ActiveTypes attribute contains the subset of your mbean SupportedTypes who are active in the area. ->
    < MBeanAttribute
    Name = "ActiveTypes".
    Type = "java.lang.String [].
    Default = "new String() {& quot; OAMAuthnCookie_blr1234567.idc.oracle.com:7777 & quot ;}.
    / >

    Problem:

    Identity asserter provider is not invoked for the request that has the cookie named OAMAuthnCookie_blr1234567.idc.oracle.com:7777.

    I did some experiments with the cookie name, to see where the problem could be

    Identity asserter provider is triggered for the following cookies:
    OAMAuthnCookie_blr1234567.idc.oracle.com7777.
    blr1234567. IDC. Oracle
    blr12_XXX. IDC. Oracle.com

    and it does not work for cookie name - OAMAuthnCookie_blr1234567.idc.oracle.com:7777

    I think that the name of the token supports not the colon. I don't have control over the name of the cookie, two points will always be

    Tried it with giving the name of the cookie after the encoding of the colon

    < MBeanAttribute

    Name = "SupportedTypes.

    Type = "java.lang.String [].

    Writeable = "false".

    Default = "new String() {& quot; OAMAuthnCookie_blr2211441.idc.oracle.com & #58;. 7777 & quot ;} »

    / >


    But still does not work
    Am I missing something? Any help will be appreciated.
    Help, please!

    colon ': ' is an illegal character in the name of the cookie.

    RFC 2616, Section 2.2 says:

    token = 1 *.

    separators = "(" | ")" | " <" |="" "="">" | " @"

    | "," | ";" | ":" | " \" |<">

    | "/" | "[" | "]" | "?" | "="

    | "{" | "}" | SP | HT

    It is clear ":" a "separator" and thus not allowed in a token or a cookie name.

  • I have problems with downloading the Lightroom app! What is the location of the appropriate installation?

    I have problems with downloading the Lightroom app! I have already many programs Adobe works on my PC and I have a cloud of Adobe license. But now, with the installation of Lightroom, I get the following error:

    Exit code: 7

    Please see specific errors below for troubleshooting. For example, ERROR: DF014...

    -------------------------------------- Summary --------------------------------------

    -0 fatal Error (s), 1 Error (s)

    -Payload: Adobe Lightroom 6.0.0.0 {8048A5DF-8A70-5BE1-954B-E0FDE1BD0D0D}.

    ERROR: DF014: unable to create the symbolic link to ' \\XC-DC-01\Users\Patricia\... \Desktop\Adobe Lightroom.lnk "(Seq 6641).

    When I go to the solution, then it says: rerun the installation. Select a different installation location.


    But I tried to select all the other folders on my computer for the last two weeks and it still not working? Update other programs is not a problem, then I don't understand what goes wrong? What is the location of the appropriate installation? Why it changed on my computer?

    Can you help me with a solution? Thank you!

    Hello

    Please see Exit Code 7 Installing and errors ' Exit Code: 6 "," Exit Code: 7 "|"» CC, CS6, CS5.5

    Hope that helps!

    Kind regards

    Sheena

  • Need help with setting the value of the variable in the callable statement in the OPS

    Hi all

    I use a callable statement in my code, I put the value as below.

    String updateStmt = "BEGIN TEST_PKG. MAIN_PROCEDURE ("+

    ":1)" +

    "; END; « ;

    CallableStatement cstmt is getDBTransaction (.createCallableStatement(updateStmt,1));.

    cstmt.setString (1, empRow.getLinenum () m:System.NET.SocketAddress.ToString ());

    but the problem is when the value of 1 is NULL, I'm not able to call the procedure, it is not inserting data into the table, but when the value of 1 is not null, it is able to call the procedure and inserting the data correctly.

    Please help me urgent.

    Hello

    Please make changes as below

    If (empRow.getLinenum (). ToString ()! = null)

    {

    String updateStmt = "BEGIN TEST_PKG. MAIN_PROCEDURE ('+': 1) «+»; END; « ;

    CallableStatement cstmt is getDBTransaction (.createCallableStatement(updateStmt,1));.

    cstmt.setString (1, empRow.getLinenum () m:System.NET.SocketAddress.ToString ());

    }

    Also check out the link Oracle Application Framework Dilip Articles: education prepared - controller

    Thank you

    Dilip

  • Problem with editing the content in the administration Console

    Hi I have problems with editing the my site published in the administration Console.

    Everything what top an embeded google map works fine, but everything below is not clickeble/editable.

    Someone else has this problem, and you have any ideas on how to solve the TI?

    Hello

    Will you please try to remove the code embed to Google Map and then check, because it seems that the code used is in conflict.

    Also test with the Google Map widget in the social widgets.

    Thank you

    Sanjit

  • Problem by passing the values in the url

    Hai...

    I have created a report region1, because I change the link to change the values, after clicking on the edit link region.2 will appear, im passing in the url of the region.2. My problem is that the values of a ': ' in that... so by passing the values in the url im not getting the onlu 'Region.2' for values that got ':' in it... How can I overcome the issue.

    im passing value contains ':' in this example:-"petroleum products: Europe.

    When I pass this URL im get like this

    http://nypploratest.Platts.McGraw-Hill.com:7777 / pls/dews/f? p = 100:105:1304192021604971:NO:P105_NEWS_CODE,
    P105_NEWS_DESCRIPTION, P105_NEWS_CODE_HIDDEN:PDD % 2COil % 20Products: % 20Europe, 2-1 colon is included in the url


    Please help me...

    Thank you

    David

    Yes, it's possible. Depends on what you are doing. Source value of the element can be a query, so if you have spent the value PK of a line in a table to the page, then the query source of this element could extract the line using this key and use the text value retrieved from another column to fill the text element.

    Scott

  • I agree with the CC. But I also have APS CS6. I get the message that the updates are available. But whenever I try to 'install', I get the message that it failed and the error code is U44M1P7. What is the problem with obtaining this update?

    Whenever I try to install I get message that he had failed. The error code is U44M1P7. What is the problem with this update?

    U44... Update error http://forums.adobe.com/thread/1289956 can help

    At some point in the past (I don't know the exact date) Adobe "merged" the original update manager in cloud Update Manager, which means that you no longer use your original update manager

    I read a lot of posts that the updater latetest (cloud) sometimes does not work with old programs... Try to install your updates manually

    Beginning of the updates here and product selection, read to see if you need to install updates in the order of the numbers, or if updates are cumulative for the product http://www.adobe.com/downloads/updates/

  • Problem with inputCombobox the list of values

    Hello Experts,

    I use Jdev 12.1.3.0.0

    In my application that we use selectOneChoice for descriptions referenced from table_recherche. The period of time have increased, the description. Where the need for a combobox with autosuggest behavior control. I just changed the LOV's SelectOneChoice to a ComboBox component. In the user interface, the drop-down list box displays the code instead of sense. In seeking to this subject on the internet, we found below solution.

    https://blogs.Oracle.com/ADF/entry/combo_lov_how_to_display

    I can't use above solution proposal that I don't have a link view between my paintings. Is there another solution to this without using a link.

    Thank you

    Mozakkir

    Hello Ashish,

    I solved my problem by writing the expression following groovy in my transient attribute:

    AddressVA.getFilteredRows ("key", AddressLine1) [0] .getAttribute ("Description")

    Thank you

  • Qosmio F60 - 11F - problems with installing the drivers Win7 64 bit

    Hello again.

    I have a Qosmio F60 - 11F and I install * windows 7 ultimate 64 bit *, I installed all the drivers from the Toshiba site,
    and I am facing a problem with some drivers,
    1 - BIOS update v B2.10 - EC1.60 the message "this computer not supported.
    2 - v Eco Utility 1.2.11.64 the message "no supported BIOS.
    3 - PC Health Monitor 1.5.6.64 v & v 1.6.0.64 the message "not support".
    4 - TV Tuner v 2.3.3.31 nothing happens.

    Can anyone help?

    Have you installed the Toshiba value added Package?

    You need the correct PVAT designed for the Qosmio F60 and Win7 64-bit. Take a look at the Toshiba site (section support/drivers).

Maybe you are looking for