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
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • 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
    • 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
    • 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
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Discreet Values Not Reflecting Custom Status Labels

235 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.99K 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.

You are viewing 1 out of 3 answers, click here to view all answers.
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
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