<?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 Python Datetime Module to set custom tags in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Python-Datetime-Module-to-set-custom-tags/m-p/204328#M2762</link>
    <description>&lt;P&gt;I'm trying to use the Python dt module to set custom tags but I keep running into an error saying some problem with the tags parameter like "AttributeError: 'dict' object has no attribute 'to_json'".&amp;nbsp; The custom_tags.post function contains the following value for the parameter:&amp;nbsp;&lt;SPAN&gt;(parameter) tags: List[AddEntityTags]. I'm probably missing something simple but what is the List type that's expected? I can do this with no problem using curl but I can't seem to use the dt module.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 14:03:11 GMT</pubDate>
    <dc:creator>jstrick</dc:creator>
    <dc:date>2023-02-08T14:03:11Z</dc:date>
    <item>
      <title>Python Datetime Module to set custom tags</title>
      <link>https://community.dynatrace.com/t5/Extensions/Python-Datetime-Module-to-set-custom-tags/m-p/204328#M2762</link>
      <description>&lt;P&gt;I'm trying to use the Python dt module to set custom tags but I keep running into an error saying some problem with the tags parameter like "AttributeError: 'dict' object has no attribute 'to_json'".&amp;nbsp; The custom_tags.post function contains the following value for the parameter:&amp;nbsp;&lt;SPAN&gt;(parameter) tags: List[AddEntityTags]. I'm probably missing something simple but what is the List type that's expected? I can do this with no problem using curl but I can't seem to use the dt module.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 14:03:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Python-Datetime-Module-to-set-custom-tags/m-p/204328#M2762</guid>
      <dc:creator>jstrick</dc:creator>
      <dc:date>2023-02-08T14:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Python Datetime Module to set custom tags</title>
      <link>https://community.dynatrace.com/t5/Extensions/Python-Datetime-Module-to-set-custom-tags/m-p/205963#M2844</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/51588"&gt;@jstrick&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;try passing the tags as follows:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;tag_list = [AddEntityTags("tag-key", "tag-value")]
dt.custom_tags.post("type(custom_device),entityName(TEST)", tag_list)&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Mar 2023 11:20:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Python-Datetime-Module-to-set-custom-tags/m-p/205963#M2844</guid>
      <dc:creator>mark_bley</dc:creator>
      <dc:date>2023-03-01T11:20:38Z</dc:date>
    </item>
  </channel>
</rss>

