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
    • 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
    • DataMiner Insights
      • Security
      • System Architecture
      • DataMiner Releases & Updates
    • 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

Soap API Syntax for Start and End time

Solved318 views21st August 2024API connection SOAP
0
Natalia Santiago77 20th August 2024 0 Comments

Hello Team,

I’m trying to get a TrendData using the operation GetTrendDataForParameter, however, I want to define a start/end time using the trendingSpanType = Custom.

I tested with LastHour/LastDay/LastMonth and it’s working, but I couldn’t find how to use ‘Custom’ properly. Do you know what can be wrong in the following syntax?

Request:

<?xml version=”1.0″ encoding=”utf-8″?>
<soap:Envelope xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns:soap=”http://schemas.xmlsoap.org/soap/envelope/”>
  <soap:Body>
    <GetTrendDataForParameter xmlns=”http://www.skyline.be/api/v1″>
      <connection>0c85a868-7b21-4d9e-b1a7-34d2dc672784</connection>
      <dmaID>2612</dmaID>
      <elementID>9</elementID>
      <parameterID>2060</parameterID>
      <tableIndex>3898</tableIndex>
      <trendingSpanType>Custom</trendingSpanType>
      <StartTime>2024-08-19T12:00:00.000+00:00</StartTime>
      <EndTime>2024-08-19T13:00:00.000+00:00</EndTime>
    </GetTrendDataForParameter>
  </soap:Body>
</soap:Envelope>

Response:

<?xml version=”1.0″ encoding=”utf-8″?>
<soap:Envelope xmlns:soap=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema”>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>Invalid start time.</faultstring>
            <detail />
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 21st August 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
Gilles Bara [SLC] [DevOps Enabler]6.80K Posted 20th August 2024 1 Comment

This cannot be done with the GetTrendDataForParameter call. But you can use this one instead:

<GetTrendDataForTableParameter xmlns=”http://www.skyline.be/api/v1″>
    <connection>0c85a868-7b21-4d9e-b1a7-34d2dc672784</connection>
    <dmaID>2612</dmaID>
    <elementID>9</elementID>
    <parameterID>2060</parameterID>
    <tableIndex>3898</tableIndex>
    <utcStartTime>1724068800000</utcStartTime>
    <utcEndTime>1724072400000</utcEndTime>
</GetTrendDataForTableParameter>

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 21st August 2024
Natalia Santiago commented 20th August 2024

Thanks!

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