Skip to main content

OIAnalytics®

Query time series data from OIAnalytics® SaaS application.

Connection Settings

Main Configuration

SettingDescriptionDefault Value
Use OIAnalytics registrationUse pre-configured connection settings from OIAnalytics registrationEnabled
TimeoutDuration before connection failure is reported (s)30

Manual Configuration (when registration not used)

SettingDescription
HostHostname of the OIAnalytics® SaaS application (e.g., https://optimistik.oianalytics.com).
Accept unauthorized certificateEnable if HTTP queries pass through a firewall that strips certificates.

Authentication Methods

MethodDescriptionRequired Parameters
Access key/SecretStandard authentication using access keys.Access key, Secret
Azure AD (Client Secret)Use Azure Active Directory with a client secret.Tenant ID, Client ID, Client Secret
Azure AD (Certificate)Use Azure Active Directory with a certificate.Tenant ID, Client ID, Certificate, Scope

Proxy Configuration

SettingDescription
Use proxyRoute requests through a proxy.
Proxy URLURL of the proxy server (e.g., http://proxy.example.com:8080).
Proxy usernameUsername for proxy authentication (if required).
Proxy passwordPassword for proxy authentication (if required).

Throttling Settings

You can optimize data requests using throttling configurations. These settings help manage large data intervals and network conditions effectively.

Key Throttling Parameters

SettingDescriptionData TypeExample Value
Max read intervalMaximum duration (in seconds) for each data request interval. Larger intervals are automatically divided into smaller chunks not exceeding this value.Seconds3600
Read delayDelay (in milliseconds) between consecutive data requests. Helps prevent server overload.Milliseconds1000
OverlapTime overlap (in milliseconds) between consecutive queries to ensure data continuity. This value is subtracted from the @StartTime of the next query.Milliseconds60000

How Throttling Works

  1. Interval Division:
  • Large time ranges are automatically split into smaller intervals
  • Each sub-interval does not exceed the Max read interval duration
  • Example: A 24-hour request with Max read interval = 3600 (1 hour) will be split into 24 separate 1-hour requests
  1. Request Timing:
  • The Read delay introduces a pause between consecutive requests
  • Helps manage server load and prevents rate limiting
  • Particularly useful during network instability or when querying large datasets
  1. Data Continuity:
  • The Overlap setting ensures no gaps in your data
  • Creates a time buffer between consecutive queries
  • Example: With Overlap = 60000 (1 minute), each query will include 1 minute of overlapping data with the previous query
Overlap Functionality

The overlap setting modifies the @StartTime of each query by subtracting the overlap value from the calculated start time. This adjustment applies to the entire query range, not to individual sub-intervals when large requests are split into smaller chunks.

This functionality is particularly useful when:

  • New data is ingested after previous queries have executed
  • You need to account for potential ingestion delays in the source system

Example: With overlap=60000 (1 minute), a query for the interval [10:00-11:00] will actually request [9:59-11:00], ensuring capture of any late-arriving data from the previous time period.

ScenarioMax read intervalRead delayOverlap
Stable network, small datasets3600 (1 hour)5000 (no overlap)
Unstable network1800 (30 min)20000 (no overlap)
Large historical retrievals7200 (2 hours)10000 (no overlap)
Real-time with occasional gaps900 (15 min)20015000 (15 sec)

Item Settings

Endpoint Settings

SettingDescriptionExample Value
EndpointAPI endpoint for HTTP requests/api/oianalytics/data/values

Query Parameters

Query Variables:

  • @StartTime: Initial execution time, updates to most recent timestamp from results
  • @EndTime: Current time (now()) or sub-interval end when queries are split
Query Splitting

Large time intervals are automatically divided into smaller chunks using:

  • Max read interval (from throttling settings)
  • Reduces server and network load
  • Improves data stream resilience

CSV Serialization Options

SettingDescriptionExample Value
FilenameOutput filename pattern with variables: @ConnectorName, @CurrentDatedata_@ConnectorName.csv
DelimiterField separator character, or ;
CompressionEnable gzip compressionEnabled/Disabled
Output datetime formatFormat for datetime fields in CSVyyyy-MM-dd HH:mm:ss
Output timezoneTimezone for datetime valuesUTC or Europe/Paris
Filename Variables
  • @ConnectorName: Connector name
  • @CurrentDate: Current timestamp in yyyy_MM_dd_HH_mm_ss_SSS format (fixed format)
  • Datetime format setting doesn't affect filename timestamp