<?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: Creating Pre-defined Application IDs for consistent Webapp/Detecion rules with Monaco in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Creating-Pre-defined-Application-IDs-for-consistent-Webapp/m-p/251109#M33153</link>
    <description>&lt;P&gt;My mistake, I mixed KUA and action properties APIs&lt;BR /&gt;&lt;BR /&gt;Let's say you try to set new Key User action -&amp;nbsp;&lt;BR /&gt;you will use this API&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/rum/web-application-configuration-api/key-user-actions/post-configuration&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Here you have no control over id - it will generated randomly on server side&lt;BR /&gt;&lt;BR /&gt;Other case is&lt;BR /&gt;&lt;A href="https://docs.dynatrace.com/docs/dynatrace-api/configuration-api/rum/web-application-configuration-api/web-application/put-web-application#definition--UserActionAndSessionProperties" target="_blank"&gt;https://docs.dynatrace.com/docs/dynatrace-api/configuration-api/rum/web-application-configuration-api/web-application/put-web-application#definition--UserActionAndSessionProperties&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;where you can manually assign metaid and unique ids - up to integer&amp;nbsp; limit.&lt;BR /&gt;&lt;BR /&gt;it looks like behind different API's is very different logic.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 19 Jul 2024 15:38:18 GMT</pubDate>
    <dc:creator>Slawa</dc:creator>
    <dc:date>2024-07-19T15:38:18Z</dc:date>
    <item>
      <title>Creating Pre-defined Application IDs for consistent Webapp/Detecion rules with Monaco</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Creating-Pre-defined-Application-IDs-for-consistent-Webapp/m-p/251016#M33141</link>
      <description>&lt;P&gt;I'm slowly switching from my own config management solution to Monaco 2.x.&lt;/P&gt;&lt;P&gt;Now I'm trying to create consistent Web Application configs with monaco but this seems to be impossible, due to the non-unique naming of Applications (multiple Applications with the same name, but different IDs can exist).&lt;/P&gt;&lt;P&gt;In my own solution I've "delegated" the uniqness to the user (which is perfectly fine if you have control over the config anyway. But with monaco this isn't possible?&lt;/P&gt;&lt;P&gt;Assume you want to create a webapplication and detection rules, there are two issues:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;To create the detection rule, you need an application ID first&lt;/LI&gt;&lt;LI&gt;You can't create an application with a predefined ID with monaco&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;In my own solution I did use a PUT instead of a POST for creating the application and specify the Application identifier myself in the API payload and URL. If monaco would support this, it would be possible to create a full transportable configuration that can be applied to any environment that creates consistent applications. All the dependencies could be easily managed in monaco.&lt;/P&gt;&lt;P&gt;But currenlty you can only create the applications, then take note of the Application IDs and modify any depending configs based on that. It is not really automatable.&lt;/P&gt;&lt;P&gt;Has anyone found a solution for this?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 18:51:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Creating-Pre-defined-Application-IDs-for-consistent-Webapp/m-p/251016#M33141</guid>
      <dc:creator>r_weber</dc:creator>
      <dc:date>2024-07-18T18:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Pre-defined Application IDs for consistent Webapp/Detecion rules with Monaco</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Creating-Pre-defined-Application-IDs-for-consistent-Webapp/m-p/251057#M33146</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/35901"&gt;@r_weber&lt;/a&gt;&amp;nbsp;maybe Terraform is more flexible in this case&lt;BR /&gt;BTW you can use tags as pseudo-ids to differentiate app configs&lt;BR /&gt;&lt;BR /&gt;(In my case I have no such issue since always stuck with naming conventions in app names like {ENV}-{APP ABBR}-{APP 2nd name fs needed})&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regarding generated ids - I don't think it will be allowed to delegate to the user. This logic is everywhere.&lt;BR /&gt;There are some exceptions like key user action IDs which you can assign manually, but it looks like legacy because dynatrace doesn't have a proper UUID generator in this case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 08:34:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Creating-Pre-defined-Application-IDs-for-consistent-Webapp/m-p/251057#M33146</guid>
      <dc:creator>Slawa</dc:creator>
      <dc:date>2024-07-19T08:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Pre-defined Application IDs for consistent Webapp/Detecion rules with Monaco</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Creating-Pre-defined-Application-IDs-for-consistent-Webapp/m-p/251077#M33148</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/60907"&gt;@Slawa&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Actually you CAN generate IDs for Applications and totally post your own ones (this works for almost every config entity). I've been doing this for years now with my own solution and it works perfectly fine. It's kind of a key requirement for concise config management.&lt;/P&gt;&lt;P&gt;Even monaco already has a understanding of the applications it created (by name) and somehow tracks this, but I have no idea how this could be leveraged.&lt;/P&gt;&lt;P&gt;E.g. in debug mode you will see this (nowhere in my config definitions I've set this ID, so it must be fetched by monaco itself...by name)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="r_weber_0-1721387221680.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21233i59A0AF927F186F3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="r_weber_0-1721387221680.png" alt="r_weber_0-1721387221680.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 11:08:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Creating-Pre-defined-Application-IDs-for-consistent-Webapp/m-p/251077#M33148</guid>
      <dc:creator>r_weber</dc:creator>
      <dc:date>2024-07-19T11:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Pre-defined Application IDs for consistent Webapp/Detecion rules with Monaco</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Creating-Pre-defined-Application-IDs-for-consistent-Webapp/m-p/251079#M33149</link>
      <description>&lt;P&gt;Yes, you can &lt;EM&gt;&lt;STRONG&gt;generate&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;an ID but not &lt;EM&gt;&lt;STRONG&gt;assign&lt;/STRONG&gt;&lt;/EM&gt; the desired/constant value. (like in the legacy key user actions mentioned above)&lt;BR /&gt;&lt;BR /&gt;I believe Monaco used the same logic as Terraform&lt;BR /&gt;You have 2 file&lt;BR /&gt;1 declare configuration more or less human readable (id can be present or omitted)&lt;BR /&gt;2 technical state file/s with all details and ids are included indeed since it is required for API calls&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 11:15:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Creating-Pre-defined-Application-IDs-for-consistent-Webapp/m-p/251079#M33149</guid>
      <dc:creator>Slawa</dc:creator>
      <dc:date>2024-07-19T11:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Pre-defined Application IDs for consistent Webapp/Detecion rules with Monaco</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Creating-Pre-defined-Application-IDs-for-consistent-Webapp/m-p/251104#M33152</link>
      <description>&lt;P&gt;You mean monaco can't assign a custom generated ID? It's well possible via the API that monaco uses. It's just that monaco doesn't support it. Or - if monaco actually does generate it's own IDs based on name - which I get the impression it does, then there should be a way to re-use those IDs in other config items, I haven't found out how this is done though.&lt;BR /&gt;&lt;BR /&gt;What do you mean by state files? I haven't seen any state files when monaco deploy runs?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 14:46:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Creating-Pre-defined-Application-IDs-for-consistent-Webapp/m-p/251104#M33152</guid>
      <dc:creator>r_weber</dc:creator>
      <dc:date>2024-07-19T14:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Pre-defined Application IDs for consistent Webapp/Detecion rules with Monaco</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Creating-Pre-defined-Application-IDs-for-consistent-Webapp/m-p/251109#M33153</link>
      <description>&lt;P&gt;My mistake, I mixed KUA and action properties APIs&lt;BR /&gt;&lt;BR /&gt;Let's say you try to set new Key User action -&amp;nbsp;&lt;BR /&gt;you will use this API&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/rum/web-application-configuration-api/key-user-actions/post-configuration&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Here you have no control over id - it will generated randomly on server side&lt;BR /&gt;&lt;BR /&gt;Other case is&lt;BR /&gt;&lt;A href="https://docs.dynatrace.com/docs/dynatrace-api/configuration-api/rum/web-application-configuration-api/web-application/put-web-application#definition--UserActionAndSessionProperties" target="_blank"&gt;https://docs.dynatrace.com/docs/dynatrace-api/configuration-api/rum/web-application-configuration-api/web-application/put-web-application#definition--UserActionAndSessionProperties&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;where you can manually assign metaid and unique ids - up to integer&amp;nbsp; limit.&lt;BR /&gt;&lt;BR /&gt;it looks like behind different API's is very different logic.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Jul 2024 15:38:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Creating-Pre-defined-Application-IDs-for-consistent-Webapp/m-p/251109#M33153</guid>
      <dc:creator>Slawa</dc:creator>
      <dc:date>2024-07-19T15:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Pre-defined Application IDs for consistent Webapp/Detecion rules with Monaco</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Creating-Pre-defined-Application-IDs-for-consistent-Webapp/m-p/251119#M33156</link>
      <description>&lt;P&gt;Yes there is quite some inconsistency on the APIs, I've seen that in the past already.&lt;/P&gt;&lt;P&gt;But even Applications and Application Key user actions can be managed. Actually I've even solved that in the past with &lt;A href="https://github.com/360Performance/dt-config-mgmnt" target="_self"&gt;this solution&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;e.g. you can create Applications like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="r_weber_0-1721408886818.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21241iD18267B1F0EAC705/image-size/large?v=v2&amp;amp;px=999" role="button" title="r_weber_0-1721408886818.png" alt="r_weber_0-1721408886818.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In code create an Application ID like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="r_weber_1-1721408935204.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21242i8DB05CF12534B893/image-size/medium?v=v2&amp;amp;px=400" role="button" title="r_weber_1-1721408935204.png" alt="r_weber_1-1721408935204.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;By having a custom APP-ID starting with "0000" and then add a known hash based on the name we can simply identify out own managed Applications from the ones created via UI. Wondering if monaco can do that or is doing that.&lt;BR /&gt;(I remember when monaco was still in it's very early stages I presented the ID generation to the monaco devs and they picked it up for some things shortly after that, but that was long before monaco 2.0 - no idea what/how it is done today)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And when adding key useractions we first need to look at the application itself to add the KUA.&lt;BR /&gt;Similar for appdetection rules. FYI &lt;A href="https://github.com/360Performance/dt-config-mgmnt/blob/master/docker/configmanager/configtypes/config_v1/applicationswebkeyUserActions.py" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So custom IDs are completely possible, it's really just monaco not working like that..&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 17:16:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Creating-Pre-defined-Application-IDs-for-consistent-Webapp/m-p/251119#M33156</guid>
      <dc:creator>r_weber</dc:creator>
      <dc:date>2024-07-19T17:16:35Z</dc:date>
    </item>
  </channel>
</rss>

