Creating alert rules with AlertClient

hi
I have been looking at the AlertsClient as shown in this blog by Mr Gu http://weblogs.asp.net/scottgu/archive/2013/11/21/windows-azure-general-availability-release-of-biztalk-services-traffic-manager-azure-ad-app-access-xamarin-support-for-mobile-services.aspx.
His example of creating an alert using the API against an endpoint monitor (using the "WindowsAzure.Availabilty" namespace) works OK, but I have never been able to programmatically create any alerts using the alerts client.
I can search for existing alerts and create an object that is near identical to an existing alert (looking at the JSON of the object), but any attempts to create it using Rules.CreateOrUpdate result in the error:
Error Microsoft.WindowsAzure.CloudException: <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">{"Code":"InvalidRequest","Message":"Metric definitions could not be retreived."}</string>
I have got the latest pre-release of Microsoft.WindowsAzure.Management.Monitoring 0.9.2-preview (this shows as 0.9.0.0 in the assembly version).
Any pointers greatly appreciated.
Regards
John

Could you please first use the SDK to get the list of metric definitions, and verify that the metric you are trying to add exists in the metric definitions for that resource you're adding the alert for?

Similar Messages

  • How to create Alert Rules???

    Hi all,
    iam creating Alert rule,i have doughts in creating Alert Rule.
    In Alert Rule Definition we have two check boxes.
    1)Rule active
    2)Suppress multiple alert of this rule
    what does this two check boxs do,dont give me links please explain me
    in condtions we have drop down in that we have three options.
    1)Not relevent
    2)yes
    3)no
    what all this three means.
    iam checking for INBOUND and OUTBOUND interfaces idoc to file and file to idoc sceanrios.
    should i give all sender and receiver details...
    after creating Alert rules sholud i create any thing in ALERTINBOX.......please giave me all details of alerts.
    Please explain me in detail.
    Regards,
    Phani
    Points will be rewarded if Helpful

    go through this
    blog on step by step process configuration.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2328. [original link is broken] [original link is broken] [original link is broken]
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    For BPM
    Alert Message - BPM
    Also check this
    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    /people/sap.user72/blog/2005/01/14/alert-management--improving-monitoring-of-your-landscape
    /people/sap.user72/blog/2005/03/03/alert-management--use-it-in-ccms-to-shorten-response-times-for-business-critical-situaltions
    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/content.htm.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9418d690-0201-0010-85bb-e9b2c1af895b -- How to setup alerts for monitoring in XI 3.0
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/003de490-0201-0010-68a4-bf7a1e1fd3a5 -- Monitoring in XI 3.0
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    /people/community.user/blog/2006/10/16/simple-steps-to-get-descriptive-alerts-from-bpm-in-xi
    Alerts
    transaction handling in XI
    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    • Auto triggering of alerts
    transaction handling in XI
    • SCOT
    not sending email from alert inbox
    CCMS ALERTS
    /people/sap.user72/blog/2005/11/24/xi-configuring-ccms-monitoring-for-xi-part-i
    /people/sap.user72/blog/2005/12/05/xi-grmg-customizing-for-xi-ccms-heartbeat-monitoring-part-ii
    /people/aravindh.prasanna/blog/2006/02/20/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-3
    Thanks
    <b>Reward if it is useful</b>
    regards
    sasi
    Message was edited by:
            RSK

  • How to create an rule with action to subtract from the event log of Ips manager express console?

    how to create an rule with action to subtract from the event log of Ips manager express console?, some knows of has an guide?.
    Thank you.
    Sent from Cisco Technical Support iPad App

    Hi,
    http://www.cisco.com/en/US/products/sw/secursw/ps2113/products_tech_note09186a0080bc7910.shtml
    HTH
    Luis Silva
    "If you need PDI (Planning, Design, Implement) assistance feel free to reach us"
    http://www.cisco.com/web/partners/tools/pdihd.html

  • Smart mailboxes:  How to create a rule with an OR statement?

    I have three different accounts in Apple Mail.app. I'd like to create a smart mailbox that shows just the sent messages from all three accounts in the past seven days. The rule begins with +Contains messages that match all of the following conditions+
    1. The first part of the rule is +Date received is in last 7 days+
    2. I hit the plus button to add another part, which is my first account email address +From is equal to [email protected]+ This works fine and displays all outgoing messages from that account for last seven days.
    3. I again hit the plus button to add another part, which is my second account email address +From is equal to [email protected]+ Now nothing appears, which is because none of my messages have both addresses in the From field. If I change the match parameter to Any, then all messages, incoming and outgoing from the last seven days, appears.
    So I'd like somehow to display all messages from all three accounts that have arrived in the last seven days. How can this be done? As an experiment I entered [email protected] OR [email protected]+ in the From is equal to field. That got me nowhere as well.
    Any tips or advice on this would be greatly appreciated. Thank you.
    Mail version is 4.4

    I compiled and runned this code on my machine and it works fine.
    How did you did to compile and run this code ?
    Did you put each code on its own file or all codes in the same file ?
    I did like this:
    I put each code in its own file and put all in the same dir, after I did:
    javac -classpath . MainClass.java
    After that, I did:
    java -classpath . MainClass
    I hope this help you
    Lucas

  • Create Email Rule with "AND" conditions

    I want to create the following email rule for Outlook:
    If the email subject contains "ABC" AND "CDF", then it should be moved to "Spam" folder.
    However, in Outlook, it seems that the rule always use "OR" instead of "AND" operation if I add multiple terms for the subject. How to solve this problem?
    THanks

    Hi,
    I'm marking the reply as answer as there has been no update for a couple of days.
    If you come back to find it doesn't work for you, please reply to us and unmark the answer.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • How to creat Mail Rule with a script

    i can writ a script and runing is ok, but can't applied to mail rule !?

    Strangely, Mountain Lion requires that all Mail scripts reside in this location:
    ~/Library/Application Scripts/com.apple.mail/
    Put it there.

  • Set JArray values with invalid key value: "LastUpdatedTime" on new alert rule creation

    Hey all!
    I'm trying to create a new alert rule using version 0.9.11 of the Monitoring Library and am getting this error on alertsClient.rules.CreateOrUpdate:
    "Set JArray values with invalid key value: "LastUpdatedTime". Array position index expected."
    That's interesting because LastUpdatedTime is a DateTime object, and whether I set it or I don't, if I set a breakpoint, it does set itself correctly, but the API appears to be expecting a JSON hash?
    I've tested alertsClient and I'm able to get existing alerts (also metrics with metrics client), so I don't believe it's an access issue.
    Any ideas?
    The full code I'm using for the test (borrowed virtually verbatim from the Cloud Cover video
    here): 
    Rule newRule = new Rule
        Name = "CPU Over 90%",
        Id = Guid.NewGuid().ToString(),
        Description = "CPU Has been over 90% for 5 minutes",
        IsEnabled = true,
        LastUpdatedTime = DateTime.Now,
        Condition = new ThresholdRuleCondition
            Operator = Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.ConditionOperator.GreaterThan,
            Threshold = 90,
            WindowSize = TimeSpan.FromMinutes(5),
            DataSource = new RuleMetricDataSource
                MetricName = "Percentage CPU",
                ResourceId = "",
                MetricNamespace = ResourceIdBuilder.BuildCloudServiceResourceId(<cloudservicename>, <deploymentname>)
    RuleAction action = new RuleEmailAction
        SendToServiceOwners = true,
    newRule.Actions.Add(action);
    OperationResponse alertResponse = alertsClient.Rules.CreateOrUpdate(new
    RuleCreateOrUpdateParameters { Rule = newRule });
    Console.WriteLine("Create alert rule response: " + alertResponse.StatusCode);

    Hi Greg,
    Thanks for your post!
    Error "JArray" has been fixed in the latest nugget package.
    Refer to:
    http://www.nuget.org/packages/Microsoft.WindowsAzure.Management.Monitoring/
    Hope this helps!
    Regards,
    Sadiqh

  • Transport alert category and alert rule

    Hi,
    We are using SAP BASIS 700 (NW2004S SP9). We have created alert category and alert rule in development system. We now want to transport this alert category and alert rule to test system. I have referred to sapnote 913858 but its valid till SAP BASIS 640 and we are using SAP BASIS 700.
    Does anybody know how to resolve this issue?
    Regards,
    Mateen.

    Thank you all you 3 wonderful people, your replies did helped and I am definitely going to reward you with the points..Now I am getting alerts in my alert inbox. Can you also help me with some info on alerts?
    1) What exactly happens when I check and uncheck "Suppress Multiple Alerts of this rule" checkbox while creating alert rule? I have read some documentations for it in sap help website and also in some of the forums but its still very confusing to me. Can you please give me an exact picture of it?
    2) I am unable to get alert emails in my lotus notes. I compared my profile setup in XIJ and XIT using TCode SU01 and found that the PARAMETERS tab had some discrepancies. Can you please confirm if this can be the reason?
    Best Regards,
    Mateen.

  • Alert Rules vs Alert Category - Is there any limitations for multiple rules

    I have an alert configuration implemented already and i want to add few more rules for the same alert category.  While creating the rules for new set of scenarios, I am able to create only one rule . Is there any limitations for having the rules per category ?

    Hi,
    If the Suppress Multiple Alerts of This Rule checkbox is selected (default setting), then no further alerts are generated once the rule has been met until the first alert has been confirmed.
    There is no limitation of creating alert rule for a particular alert category.
    Check out the steps of Alert rule configuration.
    Creating Alert Rules
    To create an alert rule in which you use a defined alert category, proceed as follows:
           1.      Give the rule a name (Description).
           2.      Select the alert category that you want to use by clicking the corresponding category in the alert category table.
           3.      If necessary, specify conditions for the sender or receiver, or both.
    &#9675;       If your rule results in alerts that must be assigned to a specific message, select the option Yes for the Bound to Message condition.
    &#9675;       If your rule results in alerts that are not assigned to a message, that is, they are caused by errors that occurred before the message was sent, select the option No for the Bound to Message condition.
    In this case you cannot enter any further details about the sender or receiver.
    &#9675;       If the rule is to cover both cases, select the Not Relevant option.
           4.      If required, restrict the errors further to:
    &#9675;       Errors reported from the Integration Engine (with or without error category or error code)
    &#9675;       Errors reported from the Adapter Engine (with or without adapter type)
    You can enter an asterisk (*) in steps 3 and 4. You can enter just the asterisk, or enter it at the start, end, or start and end of a string.
           5.      To add the new rule to the list of alert rules, choose Add Rule.
    If the Rule Activated check box is selected (default setting), the rule is automatically activated when you add it and is displayed as active.
    If the Suppress Multiple Alerts of This Rule checkbox is selected (default setting), then no further alerts are generated once the rule has been met until the first alert has been confirmed.
    Once you have created a rule, it is automatically displayed in the list of alert rules. If you want to display the conditions of a rule, select a rule in the list and choose Show Conditions.
    Hope this will help you.
    Regards
    Aashish Sinha
    PS : reward point if helpful

  • Copy Update rules with routines

    Hi,
    How can i copy the update rules (with routine) for a cube from the  predefined update rules of some cube.
    Like its giving error when i am creating update rule, with using the Template functionality in that.
    Please give step by step explanantions....

    Hi,
    Try this.
    Copying/Transferring Update Rules from a Template
    http://help.sap.com/saphelp_nw04/helpdata/en/02/70f837329cb402e10000009b38f889/frameset.htm
    Hope this helps.
    Thanks,
    JituK

  • Create multiple rule in single alert category

    Hi All,
    any body tell me can we create multiple rule in single alert category.When i click on a  add rule button in existing category nothing will happen same page will come with existing data.
    Thanks & Regards
    Samarjit

    HI,
    you can define alert category multiple rules.. see the below links
    http://help.sap.com/saphelp_nw2004s/helpdata/en/bb/f0033c128f4a7de10000000a114084/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/45/23827054604aa8e10000000a11466f/content.htm
    You must define the binding from the task container to the rule container for each rule. For further information, refer to Rule Resolution
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4b5aa453d11d189430000e829fbbd/content.htm
    Regards
    Chilla

  • How to create Rules with Flex Field mapping in the bpm worklist

    I Have created a flex field label and was able to map to the flex field attributes .
    But when i try to create a rules , I don't see the label or the flex attributes in the task payload .
    Can someone please help is understanding how to create Rules with Flex Field mapping in the bpm worklist .
    Even I am also searching for any scripts which will take the flex fields prompts and can directly create a label in the bpm worklist .
    Any pointers or suggestion is highly appreciated .

    Hi,
    SE38 -> Enter program
    Select Variants button and display. In the next screen, enter a variant name, (If not existing , press Create to create new one), else click on Change.
    Now the selection screen will display with a button "Variant Attributes" at the top.
    Click on that button.
    In the next screen, go to the selection variable column of the date field. Press F4 or drop down and select 'D' for date maintenance.
    In the column "Name of Variable (Input Only Using F4)" press F4 or drop down, select whichever kind of date calculation you want and save the variant.
    Now whenever you run the prgrm with this variant, date will be displayed by default.
    Regards,
    Subramanian

  • Create custom rule: Looking for ORA errors in the alert log

    I would like to create a rule to notify me when ORA errors are generated to the alert log. When I try to create a rule, I seem to only be able to choose from predefined lists. Has anyone configured a rule for this?

    Grrr. This is for 10.2 Grid:
    Go to databases --> select your database
    Under Diagnostic summary, you'll see:
    Alert Log 28-Dec-2006 09:19:48
    The date part is a clickable link, click on it. Scroll to the bootom of the next page and click on:
    "Generic Alert Log Error Monitoring Configuration"
    Now read the page very carefully, its all self explanatory. The reason who haven't had some errors reported is because of that filter. Now set it up the way you want it.
    Good luck
    Bazzza

  • ISE: create rules with AD groups for Users and Computers

    Hello,
    We've just begun to work with ISE.
    Is it the good place to post on ISE, or there is a dedicated forum in another place?
    We'd like to create some rule depending of Computer member groups AND Users member groups from AD, but we meet some difficulties.
    We've created AD groups for Computers and Users depending of their Department:
    Users_1
    Users_2
    Computers_1
    Computers_2
    When we create some basics rules regarding one group only:
    - with a group Computers_x to attribute a specific VLAN to a computer (when no Windows session is opened), it runs correctly.
    - with a group Users_x to attribute a specific VLAN to an user (when Windows session is opened), it runs correctly.
    But when we create a rule regarding a group from Computers and one from Users, to attribute a specific VLAN to an user on a specific computer, this rule is not applied.
    Is it possible to use ISE on this way?
    Thanks for help.
    Regards,
    Chris

    Enable EAP Chaining— if  you want Cisco ISE to allow authentication of both machine and user in the same  EAP-FAST authentication.
    http://www.cisco.com/en/US/solutions/collateral/ns340/ns414/ns742/ns744/docs/howto_80_eapchaining_deployment.pdf

  • Problem with Alert rules

    Hi All,
    I created 6 alert rules in Alert configuration of RWB.
    One of them is 'AE related alert'. For this, error occurance place is Adapter Engine and Adapter type is '*'. This is related to an alert caletory 'AE alerts'
    Other 5 alerts are IE related alerts for which error occurance places are Adapter, Application, Server, Protocol & Server. All these are related to an alert category 'IE Alerts'.
    For all the alert rules, Rule Active is Checked, Supress multiple alerts is not checked, connected to a message is YES, sender and receiver party/service/int/int namespace are all '*'.
    Now, wheneveran error occurs, say for example mapping related error, i am getting 5 alerts from all the 5 IE related rules.
    My expectation is, only one of the alerts should be sent. How can i achieve this?
    Many Thanks
    Chandra

    Hi Prakasu
    In my scenario, i do not want to use 'supress multiple alerts'.
    By doing this, i will supress alert from 2nd message, till the alert from the 1st message is confirmed(both messages belonging to same interface).
    I want to supress multiple alerts for the same message.
    As i said earlier, i have multiple alert rules for problems in different areas (proxy, mapping, server, ).
    When there is a problem in mapping, all the 5 alerts belonging to different error categories are being sent.
    I only want one alert to be sent.
    Many Thanks
    Chandra

Maybe you are looking for

  • Lightbox js and css files are empty

    Hello All, I am new to this forum, new to Dreamweaver (running CS6) and new to web design and html and all of it really.  I am hoping you can help me.  I installed the lightbox widget, put my own pictures in, which show up fine, but nothing happened

  • Oracle-XI-IDOC Inbound---URGENT

    Hi I have a scenario withfollowing steps, can anyone tell me how can I design this. It is inbound scenario: 1.  I have stored procedure which will pick up latest value from oracle database. 2.  This value will be used to retrive records from 2 Oracle

  • Dynamic to Static URL

    Dynamic to Static URL's what is the best program to use to do this? Because I dont' want to make hundreds of static pages, is there a easy way to show this properly and get better indexing at the same time. I have heard of wordpress, but don't know i

  • Add New Characteristic to Info Cube

    Matez,    Relating to Standard <b>Info Cube </b><i>0PCA_C01 - PCA: Transaction Data</i>    I added 2 Info Object[0COSTELMNT,0COSTGRP] to this Info Cube    I modified the <b>Info Source</b> 0EC_PCA_1, to include this 2 Info Object[0COSTELMNT,0COSTGRP]

  • Shared videos won't play because the 'operation could not be completed'. Solutions?

    I have recently shared some videos with some friends over iCloud photo share but they will not play because 'the operation could not be completed'. Is there a solution for this other than deleting and starting again?