<?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: Is there any API to POST Process Group Monitoring Rule? in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/188139#M1928</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/22796"&gt;@pahofmann&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks I am able to create custom process monitoring rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the example payload used.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[
    {
        "schemaId": "builtin:process.custom-process-monitoring-rule",
        "scope": "environment",
        "value": {
            "enabled": true,
            "mode": "MONITORING_ON",
            "condition": {
                "item": "IIS_APP_POOL",
                "operator": "STARTS",
                "value": "Demo"
            }
        }
    }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2022 09:49:14 GMT</pubDate>
    <dc:creator>Naveen</dc:creator>
    <dc:date>2022-06-09T09:49:14Z</dc:date>
    <item>
      <title>Is there any API to POST Process Group Monitoring Rule?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/165056#M1497</link>
      <description>&lt;P&gt;Hi I am trying to automate the Process Group Monitoring Rule in Dynatrace but I am unable to find any POST API for this, please let me know if any available or any other way to automate it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naveen_0-1619599365306.png" style="width: 630px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/781iB83D2B602BA7CEE1/image-dimensions/630x340?v=v2" width="630" height="340" role="button" title="naveen_0-1619599365306.png" alt="naveen_0-1619599365306.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 13:34:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/165056#M1497</guid>
      <dc:creator>nakb</dc:creator>
      <dc:date>2021-11-18T13:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API to POST Process Group Monitoring Rule?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/165059#M1498</link>
      <description>&lt;P&gt;Unfortunately there is no API for this yet. &lt;A href="https://community.dynatrace.com/t5/Dynatrace-product-ideas/API-for-Process-Group-Detection-Rules/idi-p/154667" target="_self"&gt;You can vote for my RFE here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 09:03:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/165059#M1498</guid>
      <dc:creator>pahofmann</dc:creator>
      <dc:date>2021-04-28T09:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API to POST Process Group Monitoring Rule?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/185506#M1849</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/22796"&gt;@pahofmann&lt;/a&gt;&amp;nbsp;and &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/13072"&gt;@mark_bley&lt;/a&gt;&amp;nbsp;are mentioning in the related Product Idea, this is now possible through&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings?_ga=2.263790991.2061216437.1650870575-939210357.1648450979" target="_self" rel="noopener noreferrer"&gt;Settings API&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pahofmann_0-1643187417266.png" style="width: 935px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/5505iAC80A2C45C619575/image-size/large?v=v2&amp;amp;px=999" role="button" title="pahofmann_0-1643187417266.png" alt="pahofmann_0-1643187417266.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can try following payload and send it to "/api/v2/settings/objects"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;[
    {
        "schemaVersion": "1.0.7",
        "schemaId": "builtin:declarativegrouping",
        "scope": "environment",
        "value": {
            "enabled": true,
            "name": "MY TEST",
            "detection": [
                {
                    "id": "MY TEST",
                    "processGroupName": "Some PG Name",
                    "rules": [
                        {
                            "property": "executablePath",
                            "condition": "$eq(/path/to/exec)"
                        }
                    ]
                }
            ]
        }
    }
]&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Apr 2022 13:26:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/185506#M1849</guid>
      <dc:creator>MaciejNeumann</dc:creator>
      <dc:date>2022-04-26T13:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API to POST Process Group Monitoring Rule?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/187390#M1911</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/6"&gt;@MaciejNeumann&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the above API and it's not working. I am getting 400 error. Also documentation is not clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please check.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 11:46:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/187390#M1911</guid>
      <dc:creator>nakb</dc:creator>
      <dc:date>2022-05-30T11:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API to POST Process Group Monitoring Rule?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/187397#M1913</link>
      <description>&lt;P&gt;A 400 (Bad Request) means somthing is wrong with the payload&amp;nbsp; you are trying to send.&lt;/P&gt;&lt;P&gt;It should also list a message with the problem (e.g. which part of the json could not be parsed).&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 15:01:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/187397#M1913</guid>
      <dc:creator>pahofmann</dc:creator>
      <dc:date>2022-05-30T15:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API to POST Process Group Monitoring Rule?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/187492#M1916</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/22796"&gt;@pahofmann&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used exact same payload as above also tried from the API documentation it's not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also documentation is not clear like what are the valid schema id's&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings/objects/post-object#definition--SettingsValue" target="_blank"&gt;https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings/objects/post-object#definition--SettingsValue&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 14:27:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/187492#M1916</guid>
      <dc:creator>nakb</dc:creator>
      <dc:date>2022-05-31T14:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API to POST Process Group Monitoring Rule?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/187515#M1917</link>
      <description>&lt;P&gt;I'd be easier if you could post the output from your request. It should list what is wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can get the schema id's either from the UI as mentioned above or from the&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings/schemas/get-all" target="_self"&gt;dedicated endpoint for it.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 18:47:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/187515#M1917</guid>
      <dc:creator>pahofmann</dc:creator>
      <dc:date>2022-05-31T18:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API to POST Process Group Monitoring Rule?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/187964#M1920</link>
      <description>&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/22796"&gt;@pahofmann&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;Payload:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[{
    "schemaId": "builtin:process.custom-process-monitoring-rule",
    "scope": "environment",
    "value":{
        "autoMonitoring": true
    }
}]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;I am getting below error:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
    {
      "code": 400,
      "error": {
        "code": 400,
        "message": "Validation failed for 4 Validators.",
        "constraintViolations": [
          {
            "path": "builtin:process.custom-process-monitoring-rule/0/mode",
            "message": "Given property 'mode' with value: 'null' does not comply with required NonNull of schema",
            "parameterLocation": "PAYLOAD_BODY",
            "location": null
          },
          {
            "path": "builtin:process.custom-process-monitoring-rule/0/condition",
            "message": "Given property 'condition' with value: 'null' does not comply with required NonNull of schema",
            "parameterLocation": "PAYLOAD_BODY",
            "location": null
          },
          {
            "path": "builtin:process.custom-process-monitoring-rule/0/autoMonitoring",
            "message": "Given property 'autoMonitoring' with value: 'true' was not found in the schema",
            "parameterLocation": "PAYLOAD_BODY",
            "location": null
          },
          {
            "path": "builtin:process.custom-process-monitoring-rule/0/enabled",
            "message": "Given property 'enabled' with value: 'null' does not comply with required NonNull of schema",
            "parameterLocation": "PAYLOAD_BODY",
            "location": null
          }
        ]
      },
      "invalidValue": {
        "autoMonitoring": true
      }
    }
  ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="terminal,monaco"&gt;&lt;SPAN&gt;On API &lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings/objects/post-object" target="_self"&gt;page&lt;/A&gt; &lt;STRONG&gt;SettingsValue&lt;/STRONG&gt; navigation not working, unable to check what are the valid parameters.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="terminal,monaco"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="terminal,monaco"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naveen_0-1654607280369.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6005i585AEA1F32544FFE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="naveen_0-1654607280369.png" alt="naveen_0-1654607280369.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Jun 2022 13:17:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/187964#M1920</guid>
      <dc:creator>nakb</dc:creator>
      <dc:date>2022-06-07T13:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API to POST Process Group Monitoring Rule?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/187970#M1921</link>
      <description>&lt;P&gt;Well it lists all the values that must be present that you are missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can check the schema via&amp;nbsp;&lt;SPAN&gt;​&lt;EM&gt;&lt;STRONG&gt;/settings​/schemas​/{schemaId}&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt; to to see all the fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you can just create a setting in the GUI and then list all the objects from the schema via&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;/settings/objects&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to check what it should look like.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 13:32:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/187970#M1921</guid>
      <dc:creator>pahofmann</dc:creator>
      <dc:date>2022-06-07T13:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API to POST Process Group Monitoring Rule?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/188139#M1928</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/22796"&gt;@pahofmann&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks I am able to create custom process monitoring rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the example payload used.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[
    {
        "schemaId": "builtin:process.custom-process-monitoring-rule",
        "scope": "environment",
        "value": {
            "enabled": true,
            "mode": "MONITORING_ON",
            "condition": {
                "item": "IIS_APP_POOL",
                "operator": "STARTS",
                "value": "Demo"
            }
        }
    }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 09:49:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-there-any-API-to-POST-Process-Group-Monitoring-Rule/m-p/188139#M1928</guid>
      <dc:creator>Naveen</dc:creator>
      <dc:date>2022-06-09T09:49:14Z</dc:date>
    </item>
  </channel>
</rss>

