@backstage-community/plugin-dynatrace 10.13.0 → 10.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @backstage-community/plugin-dynatrace
2
2
 
3
+ ## 10.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6a80272: Updated documentation to reflect support for multiple Dynatrace entity IDs in the annotation
8
+
9
+ ## 10.13.1
10
+
11
+ ### Patch Changes
12
+
13
+ - c1b506f: Fixed a minor React warning
14
+
3
15
  ## 10.13.0
4
16
 
5
17
  ### Minor Changes
package/README.md CHANGED
@@ -93,6 +93,21 @@ metadata:
93
93
 
94
94
  The `DYNATRACE_ENTITY_ID` can be found in Dynatrace by browsing to the entity (a service, synthetic, frontend, workload, etc.). It will be located in the browser address bar in the `id` parameter and has the format `ENTITY_TYPE-ENTITY_ID`, where `ENTITY_TYPE` will be one of `SERVICE`, `SYNTHETIC_TEST`, or other, and `ENTITY_ID` will be a string of characters containing uppercase letters and numbers.
95
95
 
96
+ ###### Multiple Entity IDs
97
+
98
+ To monitor multiple entities, you can specify multiple entity IDs separated by commas:
99
+
100
+ ```yaml
101
+ # catalog-info.yaml
102
+ # [...]
103
+ metadata:
104
+ annotations:
105
+ dynatrace.com/dynatrace-entity-id: DYNATRACE_ENTITY_ID_1, DYNATRACE_ENTITY_ID_2
106
+ # [...]
107
+ ```
108
+
109
+ This allows you to aggregate problems from multiple Dynatrace entities into a single view. For more information on how entity IDs are handled, see the [Dynatrace Problems API documentation](https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/problems-v2/problems/get-problems-list#parameters).
110
+
96
111
  ##### Viewing Recent Synthetics Results
97
112
 
98
113
  To show recent results from a Synthetic Monitor, add the following annotation to `catalog-info.yaml`:
@@ -17,7 +17,7 @@ const DynatraceTab = () => {
17
17
  return /* @__PURE__ */ jsx(Page, { themeId: "tool", children: /* @__PURE__ */ jsx(Content, { children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
18
18
  dynatraceEntityId ? /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, lg: 12, children: /* @__PURE__ */ jsx(ProblemsList, { dynatraceEntityId }) }) : "",
19
19
  syntheticsIds?.split(/[ ,]/).filter(Boolean).map((id) => {
20
- return /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, lg: 12, children: /* @__PURE__ */ jsx(SyntheticsCard, { syntheticsId: id }) });
20
+ return /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, lg: 12, children: /* @__PURE__ */ jsx(SyntheticsCard, { syntheticsId: id }) }, id);
21
21
  })
22
22
  ] }) }) });
23
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DynatraceTab.esm.js","sources":["../../../src/components/DynatraceTab/DynatraceTab.tsx"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport Grid from '@material-ui/core/Grid';\nimport { Page, Content } from '@backstage/core-components';\nimport {\n useEntity,\n MissingAnnotationEmptyState,\n} from '@backstage/plugin-catalog-react';\nimport { ProblemsList } from '../Problems/ProblemsList';\nimport { SyntheticsCard } from '../Synthetics/SyntheticsCard';\nimport { isDynatraceAvailable } from '../../plugin';\nimport {\n DYNATRACE_ID_ANNOTATION,\n DYNATRACE_SYNTHETICS_ANNOTATION,\n} from '../../constants';\n\nexport const DynatraceTab = () => {\n const { entity } = useEntity();\n\n if (!isDynatraceAvailable(entity)) {\n return <MissingAnnotationEmptyState annotation={DYNATRACE_ID_ANNOTATION} />;\n }\n\n const dynatraceEntityId: string =\n entity?.metadata.annotations?.[DYNATRACE_ID_ANNOTATION]!;\n\n const syntheticsIds: string =\n entity?.metadata.annotations?.[DYNATRACE_SYNTHETICS_ANNOTATION]!;\n\n return (\n <Page themeId=\"tool\">\n <Content>\n <Grid container spacing={2}>\n {dynatraceEntityId ? (\n <Grid item xs={12} lg={12}>\n <ProblemsList dynatraceEntityId={dynatraceEntityId} />\n </Grid>\n ) : (\n ''\n )}\n {syntheticsIds\n ?.split(/[ ,]/)\n .filter(Boolean)\n .map(id => {\n return (\n <Grid item xs={12} lg={12}>\n <SyntheticsCard syntheticsId={id} />\n </Grid>\n );\n })}\n </Grid>\n </Content>\n </Page>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;AA6BO,MAAM,eAAe,MAAM;AAChC,EAAM,MAAA,EAAE,MAAO,EAAA,GAAI,SAAU,EAAA;AAE7B,EAAI,IAAA,CAAC,oBAAqB,CAAA,MAAM,CAAG,EAAA;AACjC,IAAO,uBAAA,GAAA,CAAC,2BAA4B,EAAA,EAAA,UAAA,EAAY,uBAAyB,EAAA,CAAA;AAAA;AAG3E,EAAA,MAAM,iBACJ,GAAA,MAAA,EAAQ,QAAS,CAAA,WAAA,GAAc,uBAAuB,CAAA;AAExD,EAAA,MAAM,aACJ,GAAA,MAAA,EAAQ,QAAS,CAAA,WAAA,GAAc,+BAA+B,CAAA;AAEhE,EACE,uBAAA,GAAA,CAAC,IAAK,EAAA,EAAA,OAAA,EAAQ,MACZ,EAAA,QAAA,kBAAA,GAAA,CAAC,OACC,EAAA,EAAA,QAAA,kBAAA,IAAA,CAAC,IAAK,EAAA,EAAA,SAAA,EAAS,IAAC,EAAA,OAAA,EAAS,CACtB,EAAA,QAAA,EAAA;AAAA,IAAA,iBAAA,mBACE,GAAA,CAAA,IAAA,EAAA,EAAK,IAAI,EAAA,IAAA,EAAC,EAAI,EAAA,EAAA,EAAI,EAAI,EAAA,EAAA,EACrB,QAAC,kBAAA,GAAA,CAAA,YAAA,EAAA,EAAa,iBAAsC,EAAA,CAAA,EACtD,CAEA,GAAA,EAAA;AAAA,IAED,aAAA,EACG,MAAM,MAAM,CAAA,CACb,OAAO,OAAO,CAAA,CACd,IAAI,CAAM,EAAA,KAAA;AACT,MAAA,uBACG,GAAA,CAAA,IAAA,EAAA,EAAK,IAAI,EAAA,IAAA,EAAC,EAAI,EAAA,EAAA,EAAI,EAAI,EAAA,EAAA,EACrB,QAAC,kBAAA,GAAA,CAAA,cAAA,EAAA,EAAe,YAAc,EAAA,EAAA,EAAI,CACpC,EAAA,CAAA;AAAA,KAEH;AAAA,GAAA,EACL,GACF,CACF,EAAA,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"DynatraceTab.esm.js","sources":["../../../src/components/DynatraceTab/DynatraceTab.tsx"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport Grid from '@material-ui/core/Grid';\nimport { Page, Content } from '@backstage/core-components';\nimport {\n useEntity,\n MissingAnnotationEmptyState,\n} from '@backstage/plugin-catalog-react';\nimport { ProblemsList } from '../Problems/ProblemsList';\nimport { SyntheticsCard } from '../Synthetics/SyntheticsCard';\nimport { isDynatraceAvailable } from '../../plugin';\nimport {\n DYNATRACE_ID_ANNOTATION,\n DYNATRACE_SYNTHETICS_ANNOTATION,\n} from '../../constants';\n\nexport const DynatraceTab = () => {\n const { entity } = useEntity();\n\n if (!isDynatraceAvailable(entity)) {\n return <MissingAnnotationEmptyState annotation={DYNATRACE_ID_ANNOTATION} />;\n }\n\n const dynatraceEntityId: string =\n entity?.metadata.annotations?.[DYNATRACE_ID_ANNOTATION]!;\n\n const syntheticsIds: string =\n entity?.metadata.annotations?.[DYNATRACE_SYNTHETICS_ANNOTATION]!;\n\n return (\n <Page themeId=\"tool\">\n <Content>\n <Grid container spacing={2}>\n {dynatraceEntityId ? (\n <Grid item xs={12} lg={12}>\n <ProblemsList dynatraceEntityId={dynatraceEntityId} />\n </Grid>\n ) : (\n ''\n )}\n {syntheticsIds\n ?.split(/[ ,]/)\n .filter(Boolean)\n .map(id => {\n return (\n <Grid key={id} item xs={12} lg={12}>\n <SyntheticsCard syntheticsId={id} />\n </Grid>\n );\n })}\n </Grid>\n </Content>\n </Page>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;AA6BO,MAAM,eAAe,MAAM;AAChC,EAAM,MAAA,EAAE,MAAO,EAAA,GAAI,SAAU,EAAA;AAE7B,EAAI,IAAA,CAAC,oBAAqB,CAAA,MAAM,CAAG,EAAA;AACjC,IAAO,uBAAA,GAAA,CAAC,2BAA4B,EAAA,EAAA,UAAA,EAAY,uBAAyB,EAAA,CAAA;AAAA;AAG3E,EAAA,MAAM,iBACJ,GAAA,MAAA,EAAQ,QAAS,CAAA,WAAA,GAAc,uBAAuB,CAAA;AAExD,EAAA,MAAM,aACJ,GAAA,MAAA,EAAQ,QAAS,CAAA,WAAA,GAAc,+BAA+B,CAAA;AAEhE,EACE,uBAAA,GAAA,CAAC,IAAK,EAAA,EAAA,OAAA,EAAQ,MACZ,EAAA,QAAA,kBAAA,GAAA,CAAC,OACC,EAAA,EAAA,QAAA,kBAAA,IAAA,CAAC,IAAK,EAAA,EAAA,SAAA,EAAS,IAAC,EAAA,OAAA,EAAS,CACtB,EAAA,QAAA,EAAA;AAAA,IAAA,iBAAA,mBACE,GAAA,CAAA,IAAA,EAAA,EAAK,IAAI,EAAA,IAAA,EAAC,EAAI,EAAA,EAAA,EAAI,EAAI,EAAA,EAAA,EACrB,QAAC,kBAAA,GAAA,CAAA,YAAA,EAAA,EAAa,iBAAsC,EAAA,CAAA,EACtD,CAEA,GAAA,EAAA;AAAA,IAED,aAAA,EACG,MAAM,MAAM,CAAA,CACb,OAAO,OAAO,CAAA,CACd,IAAI,CAAM,EAAA,KAAA;AACT,MAAA,uBACG,GAAA,CAAA,IAAA,EAAA,EAAc,IAAI,EAAA,IAAA,EAAC,EAAI,EAAA,EAAA,EAAI,EAAI,EAAA,EAAA,EAC9B,QAAC,kBAAA,GAAA,CAAA,cAAA,EAAA,EAAe,YAAc,EAAA,EAAA,EAAI,KADzB,EAEX,CAAA;AAAA,KAEH;AAAA,GAAA,EACL,GACF,CACF,EAAA,CAAA;AAEJ;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-dynatrace",
3
- "version": "10.13.0",
3
+ "version": "10.14.0",
4
4
  "backstage": {
5
5
  "role": "frontend-plugin",
6
6
  "pluginId": "dynatrace",