Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: PFUN-18612

...

Code Block
languagegroovy
def resultMatrix = api.newMatrix("Name","Type","Icon")

resultMatrix.addRow(
        resultMatrix.styledCell("Increase", "black", "none", "bold", "left"),
        resultMatrix.styledCell("Trends", "black", "none", "regular"),
        resultMatrix.styledCell("").withFormatting("▲").withCSS("color: green"),
)

resultMatrix.addRow(
        resultMatrix.styledCell("Constant", "black", "none", "bold", "left"),
        resultMatrix.styledCell("Trends", "black", "none", "regular"),
        resultMatrix.styledCell("").withFormatting("\uD83D\uDD37"),
)

resultMatrix.addRow(
        resultMatrix.styledCell("Decrease", "black", "none", "bold", "left"),
        resultMatrix.styledCell("Trends", "black", "none", "regular"),
        resultMatrix.styledCell("").withFormatting("▼").withCSS("color: red"),
)

resultMatrix.addRow(
        resultMatrix.styledCell("Top", "black", "none", "bold", "left"),
        resultMatrix.styledCell("Aggregation", "black", "none", "regular"),
        resultMatrix.styledCell("").withFormatting("\uD83D\uDC4D"),
)

resultMatrix.addRow(
        resultMatrix.styledCell("Worst", "black", "none", "bold", "left"),
        resultMatrix.styledCell("Aggregation", "black", "none", "regular"),
        resultMatrix.styledCell("").withFormatting("\uD83D\uDC4E\uD83C\uDFFC"),
)

resultMatrix.addRow(
        resultMatrix.styledCell("Good", "black", "none", "bold", "left"),
        resultMatrix.styledCell("Health", "black", "none", "regular"),
        resultMatrix.styledCell("").withFormatting("✅"),
)

resultMatrix.addRow(
        resultMatrix.styledCell("Bad", "black", "none", "bold", "left"),
        resultMatrix.styledCell("Health", "black", "none", "regular"),
        resultMatrix.styledCell("").withFormatting("❌"),
)

resultMatrix.addRow(
        resultMatrix.styledCell("Low", "black", "none", "bold", "left"),
        resultMatrix.styledCell("Category", "black", "none", "regular"),
        resultMatrix.styledCell("").withFormatting("1️⃣"),
)

resultMatrix.addRow(
        resultMatrix.styledCell("Normal", "black", "none", "bold", "left"),
        resultMatrix.styledCell("Category", "black", "none", "regular"),
        resultMatrix.styledCell("").withFormatting("2️⃣️"),
)

resultMatrix.addRow(
        resultMatrix.styledCell("High", "black", "none", "bold", "left"),
        resultMatrix.styledCell("Category", "black", "none", "regular"),
        resultMatrix.styledCell("").withFormatting("3️⃣️ "),
)

resultMatrix.addRow(
        resultMatrix.styledCell("Low", "black", "none", "bold", "left"),
        resultMatrix.styledCell("Category", "black", "none", "regular"),
        resultMatrix.styledCell("").withFormatting("4️⃣️"),
)

return resultMatrix

...