Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Tutorials
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Discreet Values Not Reflecting Custom Status Labels

216 views16th April 2025
2
Rachel Andrews78 16th April 2025 0 Comments

Hi everyone,

I’m using a discreet parameter in my connector to display HTTP status codes. However, even though I’ve defined discreets for values like 200, 400, etc., the parameter still displays the raw value (HTTP/1.1 200) instead of the label I want (like OK or Bad Request).

Here’s what I’d like to display:

  • 200 → OK

  • 400, 403, 404 → Bad Request

How can I fix this so the parameter shows the discreet label (e.g., OK) instead of the raw value? Can you share an example where this worked as expected?

Thanks in advance

Bram Devlaminck [SLC] [DevOps Advocate] Answered question 16th April 2025

3 Answers

  • Active
  • Voted
  • Newest
  • Oldest
3
João Severino [SLC] [DevOps Catalyst]12.94K Posted 16th April 2025 2 Comments

Hi Rachel,

Could you share your parameter XML definition?

Sometimes the HTTP status code received from an HTTP session contains more than just the code number, and if you just defined 200 as a value and received HTTP/1.1 200 then it will not map it to the string OK you defined in the Display tag.

João Severino [SLC] [DevOps Catalyst] Posted new comment 16th April 2025
Rachel Andrews commented 16th April 2025

Hi Joao, I did do this however its still showing HTTP/1.1 200. Also how can I pass 404 and 403 ad bad request as well.

Stream Viewer:
<- 11:48:05 – GET https://url:443/api?endpoint
-> 11:48:06 – HTTP/1.1 200

<Param id="103" trending="false">
<Name>StatusCode</Name>
<Description>Status Code</Description>
<Type>read</Type>
<Information>
<Subtext>Status Code</Subtext>
</Information>
<Interprete>
<RawType>other</RawType>
<LengthType>next param</LengthType>
<Type>string</Type>
</Interprete>
<Alarm>
<Monitored>true</Monitored>
</Alarm>
<Display>
<RTDisplay>true</RTDisplay>
</Display>
<Measurement>
<Type>discreet</Type>
<Discreets>
<Discreet>
<Display>OK</Display>
<Value>HTTP/1.1 200</Value>
</Discreet>
<Discreet>
<Display>Bad Request</Display>
<Value>HTTP/1.1 400</Value>
</Discreet>
</Discreets>
</Measurement>
</Param>

João Severino [SLC] [DevOps Catalyst] commented 16th April 2025

Hi Rachel,
At first glance, it looks like it is correct, although if you want to map multiple incoming values into a single display value, I would suggest considering using a QAction to do such mapping.
Very likely, one is already being used to process the HTTP response, so it could be expanded to include the processing of the status code.

0
Bram Devlaminck [SLC] [DevOps Advocate]177 Posted 16th April 2025 0 Comments

Hi Rachel,

The "value" tag in the discreet element expects an exact match.
As the value is "HTTP/1.1 200" and not just "200" DataMiner cannot find a match and does not know what to display. As a solution, it displays the "raw" value.

To resolve this, change your "value" in the discreet tag from "200" to "HTTP/1.1 200"
Do the same for 400, 403 & 404.

I think this should resolve your issue.

Best of luck!

Kind regards,

Bram Devlaminck [SLC] [DevOps Advocate] Answered question 16th April 2025
0
Michiel Vanthuyne [SLC] [DevOps Enabler]4.10K Posted 16th April 2025 0 Comments

Hi Rachel, I suspect some other part of your connector, like the QAction that processes the responses, is writing this raw value to the parameter instead of only the code number. You can either change the part that writes the value, or change the definition of the discreets so "HTTP/1.1 200" maps to "OK".

Michiel Vanthuyne [SLC] [DevOps Enabler] Answered question 16th April 2025
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas

Recent questions

Alarm Dashboard PDF/CSV Export 1 Answer | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (108) Correlation (68) Cube (150) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (139) driver (65) DVE (55) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (151) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) services (51) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin