{"id":3368,"date":"2021-03-07T18:51:19","date_gmt":"2021-03-07T18:51:19","guid":{"rendered":"https:\/\/wiki.thomasandsofia.com\/?p=3368"},"modified":"2021-03-07T21:31:44","modified_gmt":"2021-03-07T21:31:44","slug":"dimensions-metadata-and-smart-view","status":"publish","type":"post","link":"https:\/\/wiki.thomasandsofia.com\/?p=3368","title":{"rendered":"Dimensions, Metadata and Smart View"},"content":{"rendered":"<h2>detailedResponse Field<\/h2>\n<ul>\n<li>If an error occurs in parsing a metric or model, such as a required field is missing, an error is returned in the JSON response body.<\/li>\n<li>If there are only a few metrics or models, these may be easy to identify, but can prove difficult if there are many at one time.<\/li>\n<li>Specific feedback is provided when parsing fails if the <code>detailedResponse<\/code> field is set to <code>true<\/code>.<\/li>\n<li><code>detailedResponse<\/code> must be set at the same level as the <code>metrics<\/code> or <code>models<\/code> field.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3370\" src=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse1.png\" alt=\"\" width=\"1722\" height=\"798\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse1.png 1722w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse1-300x139.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse1-1024x475.png 1024w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse1-768x356.png 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse1-1536x712.png 1536w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse1-150x70.png 150w\" sizes=\"auto, (max-width: 1722px) 100vw, 1722px\" \/><\/a><\/p>\n<p>Without setting <code>\"detailedResponse\": true<\/code><\/p>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3372\" src=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse2.png\" alt=\"\" width=\"1723\" height=\"258\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse2.png 1723w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse2-300x45.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse2-1024x153.png 1024w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse2-768x115.png 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse2-1536x230.png 1536w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse2-150x22.png 150w\" sizes=\"auto, (max-width: 1723px) 100vw, 1723px\" \/><\/a><\/p>\n<p>With setting <code>\"detailedResponse\": true<\/code><\/p>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3373\" src=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse3.png\" alt=\"\" width=\"1725\" height=\"649\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse3.png 1725w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse3-300x113.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse3-1024x385.png 1024w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse3-768x289.png 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse3-1536x578.png 1536w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/detailedResponse3-150x56.png 150w\" sizes=\"auto, (max-width: 1725px) 100vw, 1725px\" \/><\/a><\/p>\n<h1>Relationships between Entities<\/h1>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3375\" src=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels1.png\" alt=\"\" width=\"1109\" height=\"791\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels1.png 1109w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels1-300x214.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels1-1024x730.png 1024w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels1-768x548.png 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels1-150x107.png 150w\" sizes=\"auto, (max-width: 1109px) 100vw, 1109px\" \/><\/a><\/p>\n<ul>\n<li>Used with Smartview<\/li>\n<li>A model&#8217;s dimension fields identify the entity it defines.<\/li>\n<li>You can create one or more relationships between the entity represented by the model and another entity<\/li>\n<li>Entity relationships are directional\n<ul>\n<li>The arrows shown in the image represent who is dependent on what.<\/li>\n<li>API Gateway is dependent on Products service and Orders service<\/li>\n<li>Products service is dependent on the Redis Products DB<\/li>\n<li>Orders service is dependent on the PostgreSQL Orders DB<\/li>\n<\/ul>\n<\/li>\n<li>Most common way to create a relationship between two or more entities is by using the <code>impactToDimensions<\/code> (Most commonly used) or <code>impactFromDimensions<\/code> (less common) metadataField in one of the entities models\n<ul>\n<li>Products DB impacts to the Products service<\/li>\n<li>Orders DB impacts to the Orders service<\/li>\n<\/ul>\n<\/li>\n<li>Zenoss Cloud Smart View displays information about the selected entity (the &#8220;anchor entity&#8221;) on the left and related entities on the right.<\/li>\n<li>Smartview allows users to ispect metric data for related entities on one screen<\/li>\n<li>Synced time-sliders between related graphs make it easier to for users to understand what caused a problem.<\/li>\n<\/ul>\n<h2>Example:<\/h2>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/smartview-relationships.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3378\" src=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/smartview-relationships.png\" alt=\"\" width=\"1567\" height=\"611\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/smartview-relationships.png 1567w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/smartview-relationships-300x117.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/smartview-relationships-1024x399.png 1024w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/smartview-relationships-768x299.png 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/smartview-relationships-1536x599.png 1536w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/smartview-relationships-150x58.png 150w\" sizes=\"auto, (max-width: 1567px) 100vw, 1567px\" \/><\/a><\/p>\n<p>If there is an issue with the API gateway (Web UI), we can drill down into the microservices to see what might be the cause of the issue.<\/p>\n<h2>How do these work<\/h2>\n<ul>\n<li>impactToDimensions\n<ul>\n<li>Creates a relations <strong>from<\/strong> the current entity <strong>to<\/strong> another entity<\/li>\n<li>current-entity -&gt; other-entity\n<ul>\n<li>If I go down, I affect this&#8230;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>impactFromDimensions\n<ul>\n<li>Creates a relationship <strong>to<\/strong> the current entity <strong>from<\/strong> another entity<\/li>\n<li>current-entity &lt;- other-entity\n<ul>\n<li>If that goes down, it affects me.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>These fields are always list datatypes.<\/li>\n<li>This creates a <strong>directed acyclic graph<\/strong> between the two entities.<\/li>\n<li>If Entity-A is related to Entity-B (A -&gt; B): (think fo the arrow as &#8220;impacts&#8221;)\n<ul>\n<li>Smart View display for Entity-B <strong>will<\/strong> show Entity-A as a related entity<\/li>\n<li>Smart View display for Entity-A <strong>will not<\/strong> show Entity-B as a related entity<\/li>\n<li>Per the example, neither the Products DB nor the PostgreSQL DBs will have related entities.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>impactToDimensions Relationships with JSON<\/h2>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3382\" src=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels2.png\" alt=\"\" width=\"1487\" height=\"788\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels2.png 1487w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels2-300x159.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels2-1024x543.png 1024w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels2-768x407.png 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels2-150x79.png 150w\" sizes=\"auto, (max-width: 1487px) 100vw, 1487px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels2-json.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3383\" src=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels2-json.png\" alt=\"\" width=\"1886\" height=\"792\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels2-json.png 1886w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels2-json-300x126.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels2-json-1024x430.png 1024w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels2-json-768x323.png 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels2-json-1536x645.png 1536w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/rels2-json-150x63.png 150w\" sizes=\"auto, (max-width: 1886px) 100vw, 1886px\" \/><\/a><\/p>\n<h3>Single entity relationship example<\/h3>\n<pre>...\r\n  \"metadataFields\": {\r\n    \"impactsToDimensions\": [\r\n      \"shop.gateway=austin-gateway\"\r\n    ],\r\n...<\/pre>\n<h3>Multiple entity relationship example<\/h3>\n<ul>\n<li>Note: The only reason this example would be necessary is because there is no directly relationship between the API Gateway and Orders Service here.<\/li>\n<li>This would not be necessary to relate the Products DB to the Gateway because it is inherited from the Products Service.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/mrel1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3386\" src=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/mrel1.png\" alt=\"\" width=\"1486\" height=\"786\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/mrel1.png 1486w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/mrel1-300x159.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/mrel1-1024x542.png 1024w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/mrel1-768x406.png 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/mrel1-150x79.png 150w\" sizes=\"auto, (max-width: 1486px) 100vw, 1486px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/mrel1-json.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3387\" src=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/mrel1-json.png\" alt=\"\" width=\"1430\" height=\"732\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/mrel1-json.png 1430w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/mrel1-json-300x154.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/mrel1-json-1024x524.png 1024w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/mrel1-json-768x393.png 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/mrel1-json-150x77.png 150w\" sizes=\"auto, (max-width: 1430px) 100vw, 1430px\" \/><\/a><\/p>\n<pre>...\r\n  \"metadataFields\": {\r\n    \"impactsToDimensions\": [\r\n      \"shop.gateway=austin-gateway,shop.service=products-service\"\r\n    ],\r\n...<\/pre>\n<ul>\n<li>Note, above example image shows all one string. This defines <strong>that<\/strong> entity.\n<ul>\n<li>All dimensions listed must EXACTLY match the entity<\/li>\n<\/ul>\n<\/li>\n<li>Additional entities are entered as additional strings in the list.<\/li>\n<\/ul>\n<pre>    \"impactsToDimensions\": [\r\n      \"shop.gateway=austin-gateway,shop.service=products-service\",\r\n      \"order.service=orders-service\"\r\n    ],\r\n<\/pre>\n<h2>impactFromDimensions Examples<\/h2>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/relfrom.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3390\" src=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/relfrom.png\" alt=\"\" width=\"1483\" height=\"787\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/relfrom.png 1483w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/relfrom-300x159.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/relfrom-1024x543.png 1024w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/relfrom-768x408.png 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/relfrom-150x80.png 150w\" sizes=\"auto, (max-width: 1483px) 100vw, 1483px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/relfrom-json.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3391\" src=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/relfrom-json.png\" alt=\"\" width=\"1430\" height=\"717\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/relfrom-json.png 1430w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/relfrom-json-300x150.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/relfrom-json-1024x513.png 1024w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/relfrom-json-768x385.png 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/relfrom-json-150x75.png 150w\" sizes=\"auto, (max-width: 1430px) 100vw, 1430px\" \/><\/a><\/p>\n<h2>Best Practices &#8211; Which one should you use<\/h2>\n<ul>\n<li>The agent creating the model for one entity must know the precise dimensions of any related entity\/entities in order to use these fields.<\/li>\n<li>Because of this, <code>impactToDimensions<\/code> is often the more natural choice.<\/li>\n<li>impactToDimensions works best for entities that have the shortest lifespan\n<ul>\n<li>For example: services and containers are normally created and destroyed more frequently than higher-level entities, so it&#8217;s easier to define the relationship in the model of the more short-lived entity.<\/li>\n<li>Imagine a service that needs to spin up\/spin down multiple worker processes.\u00a0 It would be better for these worker processes to define whom they affect vs. trying to keep track of all of these in the parent service and constantly update its model.<\/li>\n<\/ul>\n<\/li>\n<li>impactFromDimensions are useful when the agent that creates the impacted entity&#8217;s model knows the dimensions of the impacting entity but not the other way around.\n<ul>\n<li>For example: EntityA is impacted by EntityB (B -&gt; A)<\/li>\n<li>EntityB (more correctly, the agent publishing the model for EntityB) does not have access to EntityA&#8217;s dimensions<\/li>\n<li>EntityA can create the relationship<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>Bottom Line: Use <code>impactToDimensions<\/code> unless you cannot.<\/strong><\/p>\n<h1>Named Relationships<\/h1>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3396\" src=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1.png\" alt=\"\" width=\"1154\" height=\"540\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1.png 1154w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1-300x140.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1-1024x479.png 1024w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1-768x359.png 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1-150x70.png 150w\" sizes=\"auto, (max-width: 1154px) 100vw, 1154px\" \/><\/a><\/p>\n<ul>\n<li>if you need to define a relationship between two or more entities where none of the entities are aware of the other&#8217;s dimensions, you can create a unidirectional\u00a0 named relationship using one of the these metadata fields in each of the related entity&#8217;s models:\n<ul>\n<li><code>simpleCustomRelationshipSourceTag<\/code> declares that this entity <strong>impacts<\/strong> any entities with a corresponding Sink tag.<\/li>\n<li><code>simpleCustomRelationshipSinkTag<\/code> declares that this entity <strong>is impacted by<\/strong> any entities with a corresponding Source tag.<\/li>\n<li>Tags in both the source and sink models must exist for the relationship to exist.\u00a0 This is different from the impactTo and impactFrom tags where only 1 is required.<\/li>\n<li>Names can be anything you want, as long as they match, but they should be descriptive.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>Source tag example (I impact you)<\/h3>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1-json1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3397\" src=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1-json1.png\" alt=\"\" width=\"1428\" height=\"757\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1-json1.png 1428w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1-json1-300x159.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1-json1-1024x543.png 1024w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1-json1-768x407.png 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1-json1-150x80.png 150w\" sizes=\"auto, (max-width: 1428px) 100vw, 1428px\" \/><\/a><\/p>\n<h3>Sink tag example (I&#8217;m impacted by)<\/h3>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1-json2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3398\" src=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1-json2.png\" alt=\"\" width=\"1427\" height=\"753\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1-json2.png 1427w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1-json2-300x158.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1-json2-1024x540.png 1024w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1-json2-768x405.png 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2021\/03\/named1-json2-150x79.png 150w\" sizes=\"auto, (max-width: 1427px) 100vw, 1427px\" \/><\/a><\/p>\n<h1>Deleting Entites<\/h1>\n<ul>\n<li>To delete an entity, publish its <strong>model<\/strong> with the _zen_deleted_entity metadata field set to true:<\/li>\n<li>This will not affect the time slider.\u00a0 If the entity existed in the past, it will still be available in the graphs any time the entity existed.<\/li>\n<\/ul>\n<pre>{\r\n  \"models\": [\r\n    {\r\n...\r\n      \"metadataFields\": {\r\n        \"_zen_deleted_entity\": true\r\n      }\r\n...<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>detailedResponse Field If an error occurs in parsing a metric or model, such as a required field is missing, an error is returned in the JSON response body. If there are only a few metrics or models, these may be easy to identify, but can prove difficult if there are many at one time. Specific ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/?p=3368\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64,59],"tags":[],"class_list":["post-3368","post","type-post","status-publish","format-standard","hentry","category-streaming-data","category-zenoss"],"_links":{"self":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/3368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3368"}],"version-history":[{"count":18,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/3368\/revisions"}],"predecessor-version":[{"id":3400,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/3368\/revisions\/3400"}],"wp:attachment":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}