<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom event with PingPlotter and API in Alerting</title>
    <link>https://community.dynatrace.com/t5/Alerting/Custom-event-with-PingPlotter-and-API/m-p/119211#M1498</link>
    <description>&lt;P&gt;&lt;A href="https://answers.dynatrace.com/storage/attachments/20720-pingplotterdt-eventpush.txt" target="_blank"&gt;pingplotterDT_eventPush.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;New file...same problem.  I've walked through the API model. &lt;/P&gt;&lt;P&gt;Bad request error - {  "error": {    "code": 400,    "message": "Invalid attachRules object provided. No MEIdentifier do match: Matching rule: PushEventAttachRules{entityIds=null, tagRules=[TagMatchRule{meTypes=[APPLICATION], tags=[[CONTEXTLESS]customTag]}]}"  }&lt;BR /&gt;}&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 03 Jun 2019 15:55:29 GMT</pubDate>
    <dc:creator>bill_scheuernst</dc:creator>
    <dc:date>2019-06-03T15:55:29Z</dc:date>
    <item>
      <title>Custom event with PingPlotter and API</title>
      <link>https://community.dynatrace.com/t5/Alerting/Custom-event-with-PingPlotter-and-API/m-p/119210#M1497</link>
      <description>&lt;P&gt;I am currently working on pushing alerts coming out of PingPlotter to Dynatrace SaaS.  What I would like to do is create a "PERFORMANCE_EVENT" in Dynatrace when an alert is generated in PingPlotter.  This is what I have so far...&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;  "eventType": "PERFORMANCE_EVENT",&lt;/P&gt;&lt;P&gt;  "description": "string",&lt;/P&gt;&lt;P&gt;  "title": "string",&lt;/P&gt;&lt;P&gt;  "source": "string",&lt;/P&gt;&lt;P&gt;  "timeoutMinutes": "60",&lt;/P&gt;&lt;P&gt;  "attachRules": {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;    "tagRule": [&lt;/P&gt;&lt;P&gt;      {&lt;/P&gt;&lt;P&gt;        "meTypes": "APPLICATION",&lt;/P&gt;&lt;P&gt;        "tags": [&lt;/P&gt;&lt;P&gt;          {&lt;/P&gt;&lt;P&gt;            "context": "ENVIRONMENT",&lt;/P&gt;&lt;P&gt;            "key": "customTag"&lt;/P&gt;&lt;P&gt;          }&lt;/P&gt;&lt;P&gt;        ]&lt;/P&gt;&lt;P&gt;      }&lt;/P&gt;&lt;P&gt;    ]&lt;/P&gt;&lt;P&gt;  },&lt;/P&gt;&lt;P&gt;  "host": "${Host}",&lt;/P&gt;&lt;P&gt;  "alertName": "${AlertName}",&lt;/P&gt;&lt;P&gt;  "destinationHost": "${DestinationHost}"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;When I test the API, I'm getting...&lt;/P&gt;&lt;P&gt;{  "error": {    "code": 400,    "message": "Invalid attachRules object provided. No MEIdentifier do match: Matching rule: PushEventAttachRules{entityIds=null, tagRules=[TagMatchRule{meTypes=[APPLICATION], tags=[[ENVIRONMENT]customTag]}]}"  }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have gone through the documentation multiple times!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Help!!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jun 2019 15:27:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Custom-event-with-PingPlotter-and-API/m-p/119210#M1497</guid>
      <dc:creator>bill_scheuernst</dc:creator>
      <dc:date>2019-06-03T15:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Custom event with PingPlotter and API</title>
      <link>https://community.dynatrace.com/t5/Alerting/Custom-event-with-PingPlotter-and-API/m-p/119211#M1498</link>
      <description>&lt;P&gt;&lt;A href="https://answers.dynatrace.com/storage/attachments/20720-pingplotterdt-eventpush.txt" target="_blank"&gt;pingplotterDT_eventPush.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;New file...same problem.  I've walked through the API model. &lt;/P&gt;&lt;P&gt;Bad request error - {  "error": {    "code": 400,    "message": "Invalid attachRules object provided. No MEIdentifier do match: Matching rule: PushEventAttachRules{entityIds=null, tagRules=[TagMatchRule{meTypes=[APPLICATION], tags=[[CONTEXTLESS]customTag]}]}"  }&lt;BR /&gt;}&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jun 2019 15:55:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Custom-event-with-PingPlotter-and-API/m-p/119211#M1498</guid>
      <dc:creator>bill_scheuernst</dc:creator>
      <dc:date>2019-06-03T15:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom event with PingPlotter and API</title>
      <link>https://community.dynatrace.com/t5/Alerting/Custom-event-with-PingPlotter-and-API/m-p/119212#M1499</link>
      <description>&lt;P&gt;I think you have to specify the tags key in a 'key' field as shown below: &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;    "eventType": "ERROR_EVENT",&lt;/P&gt;&lt;P&gt;    "title" : "Power outage",&lt;/P&gt;&lt;P&gt;    "description" : "UPS detected a power outage",&lt;/P&gt;&lt;P&gt;    "timeoutMinutes" : 60,&lt;/P&gt;&lt;P&gt;    "attachRules":    { &lt;/P&gt;&lt;P&gt;        "entityIds":[],&lt;/P&gt;&lt;P&gt;        "tagRule":[{&lt;/P&gt;&lt;P&gt;            "meTypes" : [ "HOST" ],&lt;/P&gt;&lt;P&gt;            "tags" : [ { "context" : "CONTEXTLESS", "key" : "clinic" } ]&lt;/P&gt;&lt;P&gt;        }]&lt;/P&gt;&lt;P&gt;    },&lt;/P&gt;&lt;P&gt;    "source":"UPS-123 (Datacenter South)",&lt;/P&gt;&lt;P&gt;    "customProperties":&lt;/P&gt;&lt;P&gt;    { &lt;/P&gt;&lt;P&gt;        "PowerLevel": "20.000Ah",&lt;/P&gt;&lt;P&gt;        "Estimation": "3 hours",&lt;/P&gt;&lt;P&gt;        "UPS-Model": "APC Smart-UPS C 1000VA, USB"&lt;/P&gt;&lt;P&gt;    }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I will review our help doc to provide better examples on that. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Jun 2019 05:29:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Custom-event-with-PingPlotter-and-API/m-p/119212#M1499</guid>
      <dc:creator>wolfgang_beer</dc:creator>
      <dc:date>2019-06-04T05:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Custom event with PingPlotter and API</title>
      <link>https://community.dynatrace.com/t5/Alerting/Custom-event-with-PingPlotter-and-API/m-p/119213#M1500</link>
      <description>&lt;P&gt;Was wondering, is this issue resolved yet?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Oct 2019 20:45:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Custom-event-with-PingPlotter-and-API/m-p/119213#M1500</guid>
      <dc:creator>Roland</dc:creator>
      <dc:date>2019-10-10T20:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Custom event with PingPlotter and API</title>
      <link>https://community.dynatrace.com/t5/Alerting/Custom-event-with-PingPlotter-and-API/m-p/119214#M1501</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have the same issue, and i have tried the proposed example and received the same issue&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Request&lt;/P&gt;&lt;P&gt;  https://myenvironment/e/1c73bd17-f3f1-4c29-af69-f2447189a9c3/api/v1/events \&lt;/P&gt;&lt;P&gt;  -H 'Authorization: Api-token mytoken' \&lt;/P&gt;&lt;P&gt;  -H 'Content-Type: application/json' \  &lt;/P&gt;&lt;P&gt;  -d '{&lt;!-- --&gt;&lt;/P&gt;&lt;P&gt;    "eventType": "ERROR_EVENT",&lt;/P&gt;&lt;P&gt;    "title" : "Power outage",&lt;/P&gt;&lt;P&gt;    "description" : "UPS detected a power outage",&lt;/P&gt;&lt;P&gt;    "timeoutMinutes" : 60,&lt;/P&gt;&lt;P&gt;    "attachRules": {&lt;!-- --&gt;&lt;/P&gt;&lt;P&gt;    "entityIds":[],&lt;/P&gt;&lt;P&gt;    "tagRule":[{&lt;!-- --&gt;&lt;/P&gt;&lt;P&gt;        "meTypes" : [ "HOST" ],&lt;/P&gt;&lt;P&gt;        "tags" : [ { "context" : "CONTEXTLESS", "key" : "clinic" } ]}&lt;/P&gt;&lt;P&gt;    ]},&lt;/P&gt;&lt;P&gt;    "source":"UPS-123 (Datacenter South)",&lt;/P&gt;&lt;P&gt;    "customProperties":{&lt;!-- --&gt;&lt;/P&gt;&lt;P&gt;        "PowerLevel": "20.000Ah",&lt;/P&gt;&lt;P&gt;        "Estimation": "3 hours",&lt;/P&gt;&lt;P&gt;        "UPS-Model": "APC Smart-UPS C 1000VA, USB"}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Error received:&lt;/P&gt;&lt;P&gt;"code":400,"message":"Invalid attachRules object provided. No MEIdentifier do match: Matching rule: PushEventAttachRules{entityIds=[], tagRules=[TagMatchRule{meTypes=[HOST], tags=[[CONTEXTLESS]clinic]}]}"}}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ahmed&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 11:20:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Custom-event-with-PingPlotter-and-API/m-p/119214#M1501</guid>
      <dc:creator>Ahmed_mohamed-s</dc:creator>
      <dc:date>2020-08-31T11:20:33Z</dc:date>
    </item>
  </channel>
</rss>

