{"openapi":"3.0.1","info":{"title":"TrendMiner Compute API","description":"API to search and manage index data.","termsOfService":"urn:tos'","contact":{"name":"TrendMiner","url":"http://www.trendminer.com","email":"support@trendminer.com"},"license":{"name":"Commercial","url":"http://www.trendminer.com"},"version":"1.0.0"},"servers":[{"url":"https://tm-toggles-next.trendminer.net/compute","description":"Generated server url"}],"security":[{"bearerAuth":[]},{"openIdConnect":[]}],"tags":[{"name":"PublicDownloadGenerator","description":"Public download generator"}],"paths":{"/search-requests/{searchRequestId}/refinements":{"get":{"tags":["Searches"],"summary":"Retrieve refinements for a search request","description":"Returns set refinements for a specified search request","operationId":"retrieveRefinements","parameters":[{"name":"searchRequestId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Refinement"}}}}},"404":{"description":"Search request not found"}}},"put":{"tags":["Searches"],"summary":"Update refinements request","description":"Updates the refinements on a search request","operationId":"updateRefinementsSearchRequest","parameters":[{"name":"searchRequestId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequestRefinementRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Refinement"}}}}},"400":{"description":"Invalid request"},"404":{"description":"Search request not found"}}}},"/valuebasedsearch/newSearch":{"post":{"tags":["Searches"],"summary":"Perform a value-based search","operationId":"runValueBasedSearch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValueBasedSearchRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeprecatedSearchResult"}}}}},"400":{"description":"Invalid request"},"404":{"description":"Tag not found"},"422":{"description":"Unprocessable Entity (e.g. index does not exist)"}},"deprecated":true}},"/stepsearch/newSearch":{"post":{"tags":["Searches"],"summary":"Perform a step search","operationId":"runStepSearch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepSearchRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeprecatedSearchResult"}}}}},"400":{"description":"Invalid request"},"404":{"description":"Tag not found"},"422":{"description":"Unprocessable Entity (e.g. index does not exist)"}},"deprecated":true}},"/similaritysearch/newSearch":{"post":{"tags":["Searches"],"summary":"Perform a similarity search","operationId":"runSimilaritySearch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimilaritySearchRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SimilaritySearchResult"}}}}},"400":{"description":"Invalid request"},"404":{"description":"Tag not found"},"422":{"description":"Unprocessable Entity (e.g. index does not exist)"}},"deprecated":true}},"/searches/results/export":{"post":{"tags":["Searches"],"summary":"Export search results","description":"Generate an export file with the provided results (supported file formats: .xlsx).\n\n**Note: for the search details to be included, a parameter `searchDetails` should be provided with the correct content (depending on the search type). Consult the _Schema_ for more information.**","operationId":"exportSearchResults","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchExportRequestModel"}}},"required":true},"responses":{"200":{"description":"Ok","headers":{"Content-Type":{"description":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","style":"simple","schema":{"type":"string"}}}},"400":{"description":"Invalid request"}}}},"/search":{"post":{"tags":["Searches"],"summary":"Search on index data","description":"Run a search on index data. The results are returned to the caller on the same exchange.\n\n**Note: the request must contain a `definition` property with the correct content (depending on the search type). Consult the _Schema_ for more information.**\n\nSupported types of `definition`:\n\n\t- SIMILARITY_SEARCH\n\t- VALUE_BASED_SEARCH\n\t- STEP_SEARCH\n\t- AREA_SEARCH\n\t- CONTEXT_ITEM_SEARCH\n","operationId":"search","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SearchResult"}}}}},"400":{"description":"Invalid request"},"404":{"description":"Tag not found"},"422":{"description":"Unprocessable entity (e.g. index not found)"}}}},"/search-requests":{"post":{"tags":["Searches"],"summary":"Search on index data","description":"Run a search on index data. The request is scheduled for execution and the results will be stored in a database for further retrieval (see related APIs).\n\n**Note: the request must contain a `definition` property with the correct content (depending on the search type). Consult the _Schema_ for more information.**\n\nSupported types of `definition`:\n\n\t- SIMILARITY_SEARCH\n\t- VALUE_BASED_SEARCH\n\t- STEP_SEARCH\n\t- AREA_SEARCH\n\t- CONTEXT_ITEM_SEARCH\n","operationId":"searchAsync","parameters":[{"name":"clientTimeZone","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequestDTO"}}}},"400":{"description":"Invalid request"},"422":{"description":"Unprocessable entity (e.g. index not found)"}}}},"/search-requests/{searchRequestId}/refinementOptions":{"post":{"tags":["Searches"],"summary":"Refinement search request","description":"Returns refinement options on which search request results are found","operationId":"refinementSearchRequest","parameters":[{"name":"searchRequestId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequestRefinementRequest"}}}},"responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EnrichedRefinementOptions"}}}},"400":{"description":"Invalid request"},"404":{"description":"Search request not found"}}}},"/search-requests/{searchRequestId}/highlights":{"post":{"tags":["Searches"],"summary":"Highlight search request","description":"Returns periods on which search request results are found.\n\nThe periods are determined by the amount of distinguishable periods on the context time period.","operationId":"highlightSearchRequest","parameters":[{"name":"searchRequestId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequestHighlightRequest"}}},"required":true},"responses":{"202":{"description":"Accepted","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SearchRequestHighlight"}}}}},"400":{"description":"Invalid request"}}}},"/search-requests/{searchRequestId}/export":{"post":{"tags":["Searches"],"summary":"Export results of search request","description":"Generate an export file for the search request (supported file formats: .xlsx).\n\nThe `clientTimeZoneId` should be one of the ids listed on the **IANA time zone database**.","operationId":"exportSearchRequest","parameters":[{"name":"searchRequestId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequestExportRequestModel"}}},"required":true},"responses":{"202":{"description":"Accepted"},"400":{"description":"Invalid request"}}}},"/search-requests/{searchRequestId}/calculations":{"post":{"tags":["Searches"],"summary":"Update and trigger calculations","operationId":"updateCalculationsOnRequestById","parameters":[{"name":"searchRequestId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"clientTimeZone","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CalculationDefinition"}}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequestDTO"}}}},"400":{"description":"Invalid request"},"404":{"description":"Search request does not exist"},"409":{"description":"Search request is already in progress"},"412":{"description":"Search request detected an error"}}}},"/scatterChart":{"post":{"tags":["Charting"],"summary":"Generate scatter plots for the each pair of requested tags","description":"Generate a scatter plot for each pair of tags, using a mix of index data and interpolated data at a fixed sample rate.\n\nThe detail of the plot is controlled by the required number of intervals, specified on the `params` property.","operationId":"generateScatterChart","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScatterChartRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScatterChartResult"}}}}},"400":{"description":"Invalid request"},"404":{"description":"Tag not found"},"422":{"description":"Unprocessable Entity (e.g. index does not exist)"}}}},"/newHistogram":{"post":{"tags":["Charting"],"summary":"Generate histograms for the requested tags","description":"Group charting data into equally-sized buckets depending on the index values in the provided time range.","operationId":"generateHistograms","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistogramRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HistogramResultDTO"}}}}},"400":{"description":"Invalid request"},"422":{"description":"Unprocessable Entity (e.g. index does not exist)"}}}},"/newFocusChart":{"post":{"tags":["Charting"],"summary":"Generate plot data to display on the focus chart","operationId":"generateFocusChart","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChartRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChartResult"}}}}},"400":{"description":"Invalid request"}}}},"/newContextChart":{"post":{"tags":["Charting"],"summary":"Generate plot data to display on the context chart","operationId":"generateContextChart","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChartRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContextChartResult"}}}}},"400":{"description":"Invalid request"},"404":{"description":"Tag not found"}}}},"/newComparison":{"post":{"tags":["Calculations"],"summary":"Compare layers by a given algorithm","description":"Available comparison types:\n\n\t- Minimum (min)\n\t- Maximum (max)\n\t- Mean (mean)\n\t- Range (range)\n\t- Start Value (startValue)\n\t- End Value (endValue)\n\t- Delta (delta)\n\t- Integral (integral)\n\t- Standard Deviation (stdev)\n\t- Correlation (correlation)\n\t- Evolution (evolution)\n\t- Statistical Similarity (statistics)","operationId":"compare","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparisonRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ComparisonResult"}}}}},"400":{"description":"Invalid request"},"404":{"description":"Tag not found"},"422":{"description":"Unprocessable Entity (e.g. index does not exist)"}}}},"/newCalculation":{"post":{"tags":["Calculations"],"summary":"Calculate the value of a tag on specific time ranges","description":"Available calculation types:\n\n\t- Minimum (min)\n\t- Maximum (max)\n\t- Mean (mean)\n\t- Range (range)\n\t- Start Value (startValue)\n\t- End Value (endValue)\n\t- Delta (delta)\n\t- Integral (integral)\n\t- Standard Deviation (stdev)","operationId":"calculate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalculationRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CalculationResult"}}}}},"400":{"description":"Invalid request"},"404":{"description":"Tag not found"},"422":{"description":"Unprocessable entity (e.g. index not found)"}}}},"/interpolatedData":{"post":{"tags":["Data"],"summary":"Get interpolated data","description":"Get interpolated data at a fixed sample rate (`step`, in seconds).\n\n**For big time periods and a small step, consider using the paged endpoint!**","operationId":"requestData","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterpolatedDataRequestAdapter"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterpolatedDataResult"}}}},"400":{"description":"Invalid request"},"422":{"description":"Unprocessable Entity (e.g. index does not exist)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissingIndexDataBody"}}}}}}},"/interpolatedData/paged":{"post":{"tags":["Data"],"summary":"Get paged interpolated data for some tag","description":"Get interpolated data at a fixed sample rate (`step`, in seconds).\n\nThis endpoint returns only 1 page of data. The response contains the start of the next page for subsequent requests.","operationId":"requestDataPaged","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedInterpolatedDataRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterpolatedDataPage"}}}},"400":{"description":"Invalid request"},"422":{"description":"Unprocessable Entity (e.g. index does not exist)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissingIndexDataBody"}}}}}}},"/indexing/byName":{"get":{"tags":["IndexingByName"],"summary":"Get simplified indexing status by tag name","operationId":"getSimplifiedIndexingStatus","parameters":[{"name":"tagName","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimplifiedIndexingStatus"}}}},"404":{"description":"Tag not found"}}},"post":{"tags":["IndexingByName"],"summary":"Trigger indexing by tag name","operationId":"indexByTagName","parameters":[{"name":"tagName","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok. Indexing started"},"404":{"description":"Tag not found"}}},"delete":{"tags":["IndexingByName"],"summary":"Delete index data by tag name","operationId":"deleteIndexByTagName","parameters":[{"name":"tagName","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok. Index deleted","content":{"*/*":{"schema":{"type":"string"}}}},"404":{"description":"Tag not found"}}}},"/indexing/byName/status/":{"post":{"tags":["IndexingByName"],"summary":"Get indexing status by tag name","operationId":"getLegacyIndexingProgress","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIndexingStatusRequest"}}},"required":true},"responses":{"200":{"description":"Ok. Indexing status in legacy format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIndexingStatusResponse"}}}},"404":{"description":"Tag not found"},"424":{"description":"Datasource not reachable"}},"deprecated":true}},"/indexing/byName/newStatus/":{"post":{"tags":["IndexingByName"],"summary":"Get indexing status by tag name","operationId":"getIndexingProgress","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexingStatusRequest"}}},"required":true},"responses":{"200":{"description":"Ok. Indexing percentage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexingPercentage"}}}},"404":{"description":"Tag not found"},"424":{"description":"DataSource not reachable"}}}},"/index/{id}":{"get":{"tags":["Indexing"],"summary":"Get index details by time series id","operationId":"getIndexingDetailsByTimeSeriesId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexingDetailDTO"}}}},"404":{"description":"Index data for time series not found"}}},"post":{"tags":["Indexing"],"summary":"Index a specific tag by time series id","operationId":"indexTagByTimeSeriesId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok. Indexing started"},"424":{"description":"Index operation is not possible due to failed service dependencies"}}},"delete":{"tags":["Indexing"],"summary":"Delete index data by time series id","operationId":"deleteIndexByTimeSeriesId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok"}}}},"/index/{id}/refresh":{"post":{"tags":["Indexing"],"summary":"Refresh index data by time series id","operationId":"refreshIndexByTimeSeriesId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok. Refresh index started"},"424":{"description":"Index operation is not possible due to failed service dependencies"}}}},"/index/repair":{"post":{"tags":["Indexing"],"summary":"Repair index","description":"Schedule an operation to repair all existing indexes (i.e. remove potentially out-of-order points from every index).\n\n**This operation will affect indexing performance until the process completes!**","operationId":"repairIndex","responses":{"200":{"description":"Ok. Index repair started"}}}},"/index/check":{"post":{"tags":["Indexing"],"summary":"Check if index needs repairing","description":"Check if any of the existing indexes needs repairing (i.e. check if the index contains out-of-order points).\n\nThe feedback of the operation will be printed on the application logs.\n\n**This operation will affect indexing performance until the process completes!**","operationId":"checkIndex","responses":{"200":{"description":"Ok. Index check started"}}}},"/index-files":{"post":{"tags":["indexFiles"],"summary":"Create the index files for a tag","operationId":"createIndexDataFile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIndexFileRequest"}}},"required":true},"responses":{"200":{"description":"Index files already exists"},"201":{"description":"Index files created"},"400":{"description":"Invalid request"}}},"delete":{"tags":["indexFiles"],"summary":"Delete the index files for a tag","operationId":"deleteIndexDataFile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteIndexFileRequest"}}},"required":true},"responses":{"200":{"description":"Index files deleted"}}}},"/index-files/repair":{"post":{"tags":["indexFiles"],"summary":"Repairs the index files of the requested tag","operationId":"repair","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairIndexFileRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexingHeaderDetails"}}}},"400":{"description":"Invalid request"}}}},"/index-files/points":{"post":{"tags":["indexFiles"],"summary":"Stores the points of a certain timeSeries into the correct file","operationId":"storePoints","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexingDetailsResult"}}}},"400":{"description":"Invalid request"}}}},"/fingerprintsearch/newSearch":{"post":{"tags":["Searches"],"summary":"Perform a fingerprint search","operationId":"runFingerprintSearch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FingerprintSearchRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SimilaritySearchResult"}}}}},"400":{"description":"Invalid request"},"404":{"description":"Tag not found"},"422":{"description":"Unprocessable Entity (e.g. index does not exist)"}}}},"/fingerprintsearch/earlywarning":{"post":{"tags":["Searches"],"summary":"Detect fingerprint deviations (with early warning support)","operationId":"runFingerprintEarlyWarningDetection","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FingerprintEarlyWarningRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EarlyWarningResult"}}}},"400":{"description":"Invalid request"},"404":{"description":"Tag not found"},"422":{"description":"Unprocessable Entity (e.g. index does not exist)"}}}},"/download/generate":{"post":{"tags":["PublicDownloadGenerator"],"summary":"Generate","operationId":"generate","requestBody":{"description":"The model containing the requested link","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataModel"}}}}}}},"/contextitemsearch/search":{"post":{"tags":["Searches"],"summary":"Perform a context item search","operationId":"runContextItemSearch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextItemSearchRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeprecatedSearchResult"}}}}},"400":{"description":"Invalid request"}},"deprecated":true}},"/charting/legacy-export":{"post":{"tags":["Charting"],"summary":"Export focus chart data","description":"Generate an export file with data for each time range (layer) present in the request (supported file formats: .xlsx).\n\nThe data is an approximation of the index data for the given sample rate, for all tags present in the request.\n\nThe `clientTimeZoneId` should be one of the ids listed on the **IANA time zone database**.","operationId":"legacyExportFocusChart","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyChartExportRequest"}}},"required":true},"responses":{"200":{"description":"Ok","headers":{"Content-Type":{"description":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","style":"simple","schema":{"type":"string"}}}},"400":{"description":"Invalid request"},"422":{"description":"Unprocessable Entity (e.g. index does not exist)"}}}},"/charting/export":{"post":{"tags":["Charting"],"summary":"Export focus chart data","description":"Generate an export file with data for each time range (layer) present in the request (supported file formats: .xlsx).\n\nThe data is an approximation of the index data for the given sample rate, for all tags present in the request.\n\nThe `clientTimeZoneId` should be one of the ids listed on the **IANA time zone database**.","operationId":"exportFocusChart","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChartExportRequest"}}},"required":true},"responses":{"202":{"description":"Accepted"},"400":{"description":"Invalid request"},"422":{"description":"Unprocessable Entity (e.g. index does not exist)"}}}},"/charting/export/check-maximum-number-of-points":{"post":{"tags":["Charting"],"summary":"Check if request exceeds maximum number of points","description":"Check if request exceeds maximum number of points\n\nThe `clientTimeZoneId` should be one of the ids listed on the **IANA time zone database**.","operationId":"checkRequestExceedsMaximumNumberOfPoints","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChartExportRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CheckMaximumNumberOfPointsResult"}}}},"400":{"description":"Invalid request"},"422":{"description":"Unprocessable Entity (e.g. index does not exist)"}}}},"/areasearch/newSearch":{"post":{"tags":["Searches"],"summary":"Perform an area search search","operationId":"runAreaSearch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaSearchRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeprecatedSearchResult"}}}}},"400":{"description":"Invalid request"},"404":{"description":"Tag not found"},"422":{"description":"Unprocessable Entity (e.g. index does not exist)"}},"deprecated":true}},"/search-requests/{searchRequestId}/export/{exportId}/download":{"get":{"tags":["Searches"],"summary":"Download search request export","operationId":"downloadSearchRequestExport","parameters":[{"name":"searchRequestId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"exportId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"404":{"description":"Search request export not found"},"410":{"description":"Search request export no longer exists"}}},"head":{"tags":["Searches"],"summary":"Check existence search request export","operationId":"searchRequestExportExists","parameters":[{"name":"searchRequestId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"exportId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized"},"404":{"description":"Search request export not found"}}}},"/charting/export/{id}/download":{"get":{"tags":["Charting"],"summary":"Download chart export","operationId":"downloadChartExport","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized"},"404":{"description":"Chart export not found"},"410":{"description":"Chart export no longer exists"}}},"head":{"tags":["Charting"],"summary":"Check existence chart export","operationId":"chartExportExists","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized"},"404":{"description":"Chart export not found"}}}},"/search-requests/{searchRequestId}":{"get":{"tags":["Searches"],"summary":"Get search request","operationId":"getSearchRequest","parameters":[{"name":"searchRequestId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"clientTimeZone","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequestDTO"}}}},"400":{"description":"Invalid request"},"404":{"description":"Search request not found"}}}},"/search-requests/{searchRequestId}/results":{"get":{"tags":["Searches"],"summary":"Get search results","description":"Returns a page of search results, filtered and sorted by the specified properties.","operationId":"getSearchResults","parameters":[{"name":"searchRequestId","in":"path","description":"The id of the search request","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"binBy","in":"query","description":"The type of bins to retrieve for the search.\n\nSupported binning types:\n\n\t DATE\n\t DURATION\n","required":true,"schema":{"type":"string"}},{"name":"lowerBound","in":"query","description":"The lower bound for the bin type for which to generate bins","required":false,"schema":{"type":"string"}},{"name":"upperBound","in":"query","description":"The upper bound for the bin type for which to generate bins","required":false,"schema":{"type":"string"}},{"name":"clientTimeZone","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelSearchResultDTO"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelSearchResultDTO"}}}}}}},"/search-requests/{searchRequestId}/results/all":{"get":{"tags":["Searches"],"summary":"Get all search results including refined results","description":"Returns a page of search results including refined results","operationId":"getAllSearchResults","parameters":[{"name":"searchRequestId","in":"path","description":"The id of the search request","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelSearchResultDTO"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelSearchResultDTO"}}}}}}},"/search-requests/{searchRequestId}/bins":{"get":{"tags":["Searches"],"summary":"Get bins for a search request","description":"Returns a list of bins for a search request, based on the binning type and bounds.","operationId":"getBins","parameters":[{"name":"searchRequestId","in":"path","description":"The id of the search request","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"binBy","in":"query","description":"The type of bins to retrieve for the search.\n\nSupported binning types:\n\n\t DATE\n\t DURATION\n","required":true,"schema":{"type":"string"}},{"name":"lowerBound","in":"query","description":"The lower bound for the bin type for which to generate bins","required":false,"schema":{"type":"string"}},{"name":"upperBound","in":"query","description":"The upper bound for the bin type for which to generate bins","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","description":"Sorting criteria in the format: binType(,asc|desc).\n\nDefault sort ordering depends on the bin type\n\nbinType needs to be equivalent to the defined binBy parameter","required":false,"schema":{"type":"string"}},{"name":"clientTimeZone","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BinsDTO"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/BinsDTO"}}}}}}},"/search-requests/{searchRequestId}/binningOptions":{"get":{"tags":["Searches"],"summary":"Get search request binning/sorting options","operationId":"getBinningAndSortingOptions","parameters":[{"name":"searchRequestId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"clientTimeZone","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BinningAndSortingOptionsDTO"}}}},"400":{"description":"Invalid request"},"404":{"description":"Search request does not exist"}}}},"/indexing/byName/search-period":{"get":{"tags":["IndexingByName"],"summary":"Get search period","description":"Returns the part of the index in which data can be searched for each of the requested tags","operationId":"getSearchPeriod","parameters":[{"name":"tagNames","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"interpolationTypes","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SearchPeriod"}}}},"400":{"description":"tag and interpolation types do not align"},"404":{"description":"If a tag cannot be found or the user is not authorised"},"424":{"description":"The DataSource service is not reachable"}}}},"/indexing/byName/periods":{"get":{"tags":["IndexingByName"],"summary":"Get indexed periods","description":"Returns the index boundaries for each of the requested tags","operationId":"getIndexedPeriods","parameters":[{"name":"tagNames","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IndexingPeriodDTO"}}}}},"404":{"description":"If a tag cannot be found or the user is not authorised"},"424":{"description":"The DataSource service is not reachable"}}}},"/index":{"get":{"tags":["Indexing"],"summary":"Get paged overview of indexing processes","description":"Get an overview of the indexed tags, their status and the indexing progress","operationId":"getIndexingDetails","parameters":[{"name":"query","in":"query","description":"Query to filter results (RSQL syntax)","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelIndexingDetailDTO"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelIndexingDetailDTO"}}}}}}},"/index/{id}/last-indexed-point":{"get":{"tags":["Indexing"],"summary":"Get last indexed point for a given time series","description":"Returns the last indexed point for a given time series, if such point exists","operationId":"getLastIndexedPoint","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PointDTO"}}}},"404":{"description":"Time series or index data not found"}}}},"/index/repair/status":{"get":{"tags":["Indexing"],"summary":"Check if repair is running","description":"Returns if the repair operation is still running on the background or not","operationId":"getRepairIndexStatus","responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RepairIndexStatus"}}}}}}},"/index/repair/progress":{"get":{"tags":["Indexing"],"summary":"Get repair index overview","description":"Returns a detailed overview of the repair process, including how many tags were affected by it","operationId":"getRepairProgress","responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RepairProgress"}}}}}}},"/data/last-value":{"get":{"tags":["Data"],"summary":"Get last value","description":"Retrieve the last value for a given tag.","operationId":"getLastValue","parameters":[{"name":"timeSeriesId","in":"query","required":true,"schema":{"type":"string"}},{"name":"interpolationType","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LastValueModel"}}}},"422":{"description":"Unprocessable entity (e.g. index not found)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LastValueModel"}}}},"201":{"description":"No Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LastValueModel"}}}}}}},"/data/index":{"get":{"tags":["Data"],"summary":"Get index data","description":"Retrieve index data for a given tag. The level of detail is controlled by `numberOfIntervals`.\n\nThis API follows the plot data url contract.","operationId":"getIndexValues","parameters":[{"name":"timeSeriesId","in":"query","required":true,"schema":{"type":"string"}},{"name":"interpolationType","in":"query","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"endDate","in":"query","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"numberOfIntervals","in":"query","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/stream+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WrappedDataPoints"}}}}}}}}},"components":{"schemas":{"Refinement":{"type":"object","properties":{"option":{"type":"string"},"min":{"type":"number","format":"float"},"max":{"type":"number","format":"float"}}},"SearchRequestRefinementRequest":{"type":"object","properties":{"refinements":{"type":"array","items":{"$ref":"#/components/schemas/Refinement"}}}},"DeprecatedValueBasedSearchParameters":{"type":"object","properties":{"minIntervalInSeconds":{"type":"integer","format":"int64"},"searchOperator":{"type":"string","enum":["AND","OR"]}}},"DeprecatedValueBasedSearchQuery":{"type":"object","properties":{"tagDescriptor":{"$ref":"#/components/schemas/TagDescriptorDTO"},"conditionOperator":{"type":"string","enum":["LESS_THAN","LESS_THAN_OR_EQUAL","EQUAL","NOT_EQUAL","GREATER_THAN_OR_EQUAL","GREATER_THAN","CONSTANT","INSET"]},"values":{"type":"array","items":{"type":"number","format":"float"}}}},"FilterTimePeriod":{"type":"object","properties":{"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"type":{"type":"string","default":"EXCLUDE","enum":["EXCLUDE","INCLUDE"]}}},"TagDescriptorDTO":{"type":"object","properties":{"id":{"type":"string"},"shift":{"type":"integer","format":"int64"},"interpolationType":{"type":"string","example":"linear"}}},"TimePeriod":{"type":"object","properties":{"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"}}},"ValueBasedSearchRequest":{"type":"object","properties":{"contextTimeRange":{"$ref":"#/components/schemas/TimePeriod"},"filters":{"type":"array","items":{"$ref":"#/components/schemas/FilterTimePeriod"}},"queries":{"type":"array","items":{"$ref":"#/components/schemas/DeprecatedValueBasedSearchQuery"}},"params":{"$ref":"#/components/schemas/DeprecatedValueBasedSearchParameters"}}},"DeprecatedSearchResult":{"type":"object","properties":{"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"openEnded":{"type":"boolean"}}},"DeprecatedStepSearchQuery":{"type":"object","properties":{"tagDescriptor":{"$ref":"#/components/schemas/TagDescriptorDTO"},"from":{"$ref":"#/components/schemas/StepSearchCondition"},"to":{"$ref":"#/components/schemas/StepSearchCondition"}}},"StepSearchCondition":{"type":"object","properties":{"state":{"type":"number","format":"float"},"duration":{"type":"integer","format":"int32"}}},"StepSearchRequest":{"type":"object","properties":{"contextTimeRange":{"$ref":"#/components/schemas/TimePeriod"},"filters":{"type":"array","items":{"$ref":"#/components/schemas/FilterTimePeriod"}},"query":{"$ref":"#/components/schemas/DeprecatedStepSearchQuery"}}},"DeprecatedSimilaritySearchParameters":{"type":"object","properties":{"focusTimePeriod":{"$ref":"#/components/schemas/TimePeriod"},"detectionThreshold":{"type":"number","format":"float"},"limitResults":{"type":"integer","format":"int32"}}},"DeprecatedSimilaritySearchQuery":{"type":"object","properties":{"patternTag":{"$ref":"#/components/schemas/TagDescriptorDTO"},"searchInTag":{"$ref":"#/components/schemas/TagDescriptorDTO"},"searchType":{"type":"string","enum":["ABSOLUTE_VALUES","FINGERPRINT","SIGNAL_SHAPE"]},"range":{"$ref":"#/components/schemas/SimilaritySearchRange"},"weights":{"type":"array","items":{"$ref":"#/components/schemas/DeprecatedSimilaritySearchWeight"}}}},"DeprecatedSimilaritySearchWeight":{"type":"object","properties":{"weight":{"type":"number","format":"float"},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}}},"SimilaritySearchRange":{"type":"object","properties":{"min":{"type":"number","format":"float"},"max":{"type":"number","format":"float"}}},"SimilaritySearchRequest":{"type":"object","properties":{"contextTimePeriod":{"$ref":"#/components/schemas/TimePeriod"},"filters":{"type":"array","items":{"$ref":"#/components/schemas/FilterTimePeriod"}},"queries":{"type":"array","items":{"$ref":"#/components/schemas/DeprecatedSimilaritySearchQuery"}},"params":{"$ref":"#/components/schemas/DeprecatedSimilaritySearchParameters"}}},"SimilaritySearchResult":{"type":"object","properties":{"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"openEnded":{"type":"boolean"},"score":{"type":"number","format":"float"}}},"AreaSearchDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/SearchDetails"},{"type":"object","properties":{"minimumIntervalLength":{"type":"integer","format":"int64"},"isInExtent":{"type":"boolean"},"xTag":{"$ref":"#/components/schemas/AxisTag"},"yTag":{"$ref":"#/components/schemas/AxisTag"}}}]},"AxisTag":{"type":"object","properties":{"name":{"type":"string"}}},"CalculationToExport":{"type":"object","properties":{"name":{"type":"string"},"tagName":{"type":"string"},"unit":{"type":"string"},"operator":{"type":"string"}}},"ContextItemSearchDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/SearchDetails"},{"type":"object","properties":{"queries":{"type":"array","items":{"type":"object","additionalProperties":{"type":"object"}}}}}]},"CrossAssetValueBasedSearchDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/SearchDetails"},{"type":"object","properties":{"contextTimeRange":{"$ref":"#/components/schemas/TimePeriod"},"filters":{"type":"array","items":{"$ref":"#/components/schemas/FilterTimePeriod"}},"queries":{"type":"array","items":{"$ref":"#/components/schemas/CrossAssetValueBasedSearchQuery"}},"params":{"$ref":"#/components/schemas/CrossAssetValueBasedSearchParameters"},"requestId":{"type":"string","format":"uuid"}}}]},"CrossAssetValueBasedSearchParameters":{"type":"object","properties":{"assets":{"type":"array","items":{"$ref":"#/components/schemas/DataReference"}},"minimumIntervalLength":{"type":"integer","format":"int64"},"operator":{"type":"string"}}},"CrossAssetValueBasedSearchQuery":{"type":"object","properties":{"attributeTemplateId":{"type":"string"},"operator":{"type":"string"},"values":{"type":"array","items":{"type":"number","format":"float"}}}},"DataReference":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["ASSET","ATTRIBUTE","TAG"]}}},"ExportSimilaritySearchQuery":{"type":"object","properties":{"name":{"type":"string"},"shift":{"type":"integer","format":"int64"},"searchIn":{"$ref":"#/components/schemas/SimilaritySearchQuerySearchIn"},"searchType":{"type":"string"},"weights":{"type":"array","items":{"$ref":"#/components/schemas/SimilaritySearchWeight"}}}},"ExportValueBasedSearchQuery":{"type":"object","properties":{"operator":{"type":"string"},"shift":{"type":"integer","format":"int64"},"tagName":{"type":"string"},"value":{"type":"array","items":{"type":"string"}}}},"SearchDetails":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"type":{"type":"string"},"searchPeriod":{"$ref":"#/components/schemas/SearchPeriod"}},"discriminator":{"propertyName":"type"}},"SearchExportRequestModel":{"type":"object","properties":{"searchDetails":{"oneOf":[{"$ref":"#/components/schemas/AreaSearchDetails"},{"$ref":"#/components/schemas/ContextItemSearchDetails"},{"$ref":"#/components/schemas/CrossAssetValueBasedSearchDetails"},{"$ref":"#/components/schemas/SimilaritySearchDetails"},{"$ref":"#/components/schemas/StepSearchDetails"},{"$ref":"#/components/schemas/ValueBasedSearchDetails"}]},"results":{"type":"array","items":{"$ref":"#/components/schemas/SearchResultToExportModel"}},"calculation":{"$ref":"#/components/schemas/CalculationToExport"},"clientTimeZoneId":{"type":"string"}}},"SearchPeriod":{"type":"object","properties":{"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"}}},"SearchResultToExportModel":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"dataReference":{"type":"string"},"calc":{"type":"string"},"score":{"type":"number","format":"float"}}},"SimilaritySearchDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/SearchDetails"},{"type":"object","properties":{"originalStartDate":{"type":"string","format":"date-time"},"originalEndDate":{"type":"string","format":"date-time"},"cutOffPercentage":{"type":"number","format":"float"},"tags":{"type":"array","items":{"$ref":"#/components/schemas/ExportSimilaritySearchQuery"}}}}]},"SimilaritySearchQuerySearchIn":{"type":"object","properties":{"tagName":{"type":"string"}}},"SimilaritySearchWeight":{"type":"object","properties":{"weight":{"type":"integer","format":"int32"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"}}},"StepSearchDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/SearchDetails"},{"type":"object","properties":{"tagName":{"type":"string"},"stateFrom":{"$ref":"#/components/schemas/StepSearchStateModel"},"stateTo":{"$ref":"#/components/schemas/StepSearchStateModel"},"durationFrom":{"type":"integer","format":"int32"},"durationTo":{"type":"integer","format":"int32"},"shift":{"type":"integer","format":"int64"}}}]},"StepSearchStateModel":{"type":"object","properties":{"name":{"type":"string"}}},"ValueBasedSearchDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/SearchDetails"},{"type":"object","properties":{"minimumIntervalLength":{"type":"string"},"operator":{"type":"string"},"queries":{"type":"array","items":{"$ref":"#/components/schemas/ExportValueBasedSearchQuery"}}}}]},"AreaSearchDefinition":{"type":"object","allOf":[{"$ref":"#/components/schemas/SearchDefinition"},{"type":"object","properties":{"queries":{"type":"array","items":{"$ref":"#/components/schemas/AreaSearchQuery"}},"parameters":{"$ref":"#/components/schemas/AreaSearchParameters"}}}]},"AreaSearchParameters":{"type":"object","properties":{"minimumDuration":{"type":"integer","format":"int64"},"searchType":{"type":"string","enum":["INSIDE_AREA","OUTSIDE_AREA"]},"searchArea":{"type":"array","items":{"$ref":"#/components/schemas/PointCoordinate"}}}},"AreaSearchQuery":{"type":"object","properties":{"xAxis":{"$ref":"#/components/schemas/TimeSeriesDescriptor"},"yAxis":{"$ref":"#/components/schemas/TimeSeriesDescriptor"}}},"CalculationDefinition":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["MIN","MAX","MEAN","RANGE","START","END","DELTA","INTEGRAL","STDEV"]},"unit":{"type":"string"},"reference":{"$ref":"#/components/schemas/TimeSeriesDescriptor"}}},"ContextItemSearchDefinition":{"type":"object","allOf":[{"$ref":"#/components/schemas/SearchDefinition"},{"type":"object","properties":{"queries":{"type":"array","items":{"type":"object","additionalProperties":{"type":"object"}}}}}]},"PointCoordinate":{"type":"object","properties":{"x":{"type":"number","format":"float"},"y":{"type":"number","format":"float"}}},"SearchDefinition":{"type":"object","properties":{"type":{"type":"string","enum":["SIMILARITY_SEARCH","VALUE_BASED_SEARCH","AREA_SEARCH","STEP_SEARCH","CONTEXT_ITEM_SEARCH"]},"calculations":{"type":"array","items":{"$ref":"#/components/schemas/CalculationDefinition"}}},"discriminator":{"propertyName":"type"}},"SearchRequest":{"required":["definition"],"type":"object","properties":{"contextTimePeriod":{"$ref":"#/components/schemas/TimePeriod"},"exclusionPeriods":{"type":"array","items":{"$ref":"#/components/schemas/FilterTimePeriod"}},"definition":{"oneOf":[{"$ref":"#/components/schemas/AreaSearchDefinition"},{"$ref":"#/components/schemas/ContextItemSearchDefinition"},{"$ref":"#/components/schemas/SimilaritySearchDefinition"},{"$ref":"#/components/schemas/StepSearchDefinition"},{"$ref":"#/components/schemas/ValueBasedSearchDefinition"}]}}},"SimilaritySearchDefinition":{"type":"object","allOf":[{"$ref":"#/components/schemas/SearchDefinition"},{"type":"object","properties":{"queries":{"type":"array","items":{"$ref":"#/components/schemas/SimilaritySearchQuery"}},"parameters":{"$ref":"#/components/schemas/SimilaritySearchParameters"}}}]},"SimilaritySearchParameters":{"type":"object","properties":{"focusTimePeriod":{"$ref":"#/components/schemas/TimePeriod"},"detectionThreshold":{"type":"number","format":"float"}}},"SimilaritySearchQuery":{"type":"object","properties":{"source":{"$ref":"#/components/schemas/TimeSeriesDescriptor"},"target":{"$ref":"#/components/schemas/TimeSeriesDescriptor"},"searchType":{"type":"string","enum":["ABSOLUTE_VALUES","FINGERPRINT","SIGNAL_SHAPE"]},"range":{"$ref":"#/components/schemas/SimilaritySearchQueryRange"},"weights":{"type":"array","items":{"$ref":"#/components/schemas/SimilaritySearchQueryWeight"}}}},"SimilaritySearchQueryRange":{"type":"object","properties":{"min":{"type":"number","format":"float"},"max":{"type":"number","format":"float"}}},"SimilaritySearchQueryWeight":{"type":"object","properties":{"weight":{"type":"number","format":"float"},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}}},"StepSearchDefinition":{"type":"object","allOf":[{"$ref":"#/components/schemas/SearchDefinition"},{"type":"object","properties":{"queries":{"type":"array","items":{"$ref":"#/components/schemas/StepSearchQuery"}}}}]},"StepSearchQuery":{"type":"object","properties":{"reference":{"$ref":"#/components/schemas/TimeSeriesDescriptor"},"from":{"$ref":"#/components/schemas/StepSearchQueryCondition"},"to":{"$ref":"#/components/schemas/StepSearchQueryCondition"}}},"StepSearchQueryCondition":{"type":"object","properties":{"state":{"type":"integer","format":"int32"},"duration":{"type":"integer","format":"int64"}}},"TimeSeriesDescriptor":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"interpolationType":{"type":"string","enum":["LINEAR","STEPPED"]},"shift":{"type":"integer","format":"int64"}}},"ValueBasedSearchDefinition":{"type":"object","allOf":[{"$ref":"#/components/schemas/SearchDefinition"},{"type":"object","properties":{"queries":{"type":"array","items":{"$ref":"#/components/schemas/ValueBasedSearchQuery"}},"parameters":{"$ref":"#/components/schemas/ValueBasedSearchParameters"}}}]},"ValueBasedSearchParameters":{"type":"object","properties":{"minimumDuration":{"type":"integer","format":"int64"},"operator":{"type":"string","enum":["AND","OR"]}}},"ValueBasedSearchQuery":{"type":"object","properties":{"values":{"type":"array","items":{"type":"number","format":"float"}},"reference":{"$ref":"#/components/schemas/TimeSeriesDescriptor"},"condition":{"type":"string"}}},"SearchResult":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"calculations":{"type":"object","additionalProperties":{"type":"object"}},"properties":{"type":"object","additionalProperties":{"type":"object"}},"duration":{"type":"integer","format":"int64"}}},"AbstractSearchWarningDto":{"type":"object","properties":{"details":{"type":"object","additionalProperties":{"type":"object"}},"message":{"type":"string"},"errorCode":{"type":"string"}}},"Link":{"type":"object","properties":{"rel":{"type":"string"},"href":{"type":"string"},"hreflang":{"type":"string"},"media":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"deprecation":{"type":"string"},"profile":{"type":"string"},"name":{"type":"string"}}},"SearchRequestDTO":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["IN_PROGRESS","DONE","ERROR"]},"completedAt":{"type":"string","format":"date-time"},"errorCode":{"type":"string"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/AbstractSearchWarningDto"}},"refined":{"type":"boolean"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"EnrichedRefinementOptions":{"type":"object","properties":{"refinedNumberOfResults":{"type":"integer","format":"int64"},"options":{"type":"array","items":{"$ref":"#/components/schemas/RefinementOption"}}}},"HistogramBucketDTO":{"type":"object","properties":{"min":{"type":"number","format":"float"},"max":{"type":"number","format":"float"},"totalNumberOfResults":{"type":"integer","format":"int64"},"refinedNumberOfResults":{"type":"integer","format":"int64"}}},"RefinementOption":{"type":"object","properties":{"start":{"type":"string","writeOnly":true},"min":{"type":"number","format":"float"},"max":{"type":"number","format":"float"},"histogramBuckets":{"type":"array","items":{"$ref":"#/components/schemas/HistogramBucketDTO"}},"excludedValues":{"type":"boolean"},"option":{"type":"string"}}},"SearchRequestHighlightRequest":{"type":"object","properties":{"contextTimePeriod":{"$ref":"#/components/schemas/TimePeriod"},"maximumDistinguishablePeriods":{"type":"integer","format":"int32"}}},"SearchRequestHighlight":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}}},"SearchDetailsModel":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}},"SearchRequestExportRequestModel":{"type":"object","properties":{"searchDetails":{"$ref":"#/components/schemas/SearchDetailsModel"},"clientTimeZone":{"type":"string"},"resultType":{"type":"string","enum":["SEARCH_RESULT","BIN"]},"results":{"type":"array","items":{"type":"string"}},"sort":{"$ref":"#/components/schemas/Sort"}}},"Sort":{"type":"object","properties":{"sortKey":{"type":"string"},"direction":{"type":"string"}}},"ScatterChartRequest":{"type":"object","properties":{"timePeriod":{"$ref":"#/components/schemas/TimePeriod"},"queries":{"type":"array","items":{"$ref":"#/components/schemas/TagDescriptorDTO"}},"params":{"type":"integer","format":"int32"},"filters":{"type":"array","items":{"$ref":"#/components/schemas/FilterTimePeriod"}}}},"ScatterChartPoint":{"type":"object","properties":{"x":{"type":"number","format":"float"},"y":{"type":"number","format":"float"},"ts":{"type":"string","format":"date-time"}}},"ScatterChartResult":{"type":"object","properties":{"tagX":{"$ref":"#/components/schemas/TagDescriptorDTO"},"tagY":{"$ref":"#/components/schemas/TagDescriptorDTO"},"values":{"type":"array","items":{"$ref":"#/components/schemas/ScatterChartPoint"}}}},"HistogramQueryDTO":{"type":"object","properties":{"tag":{"$ref":"#/components/schemas/TagDescriptorDTO"},"scale":{"$ref":"#/components/schemas/Scale"}}},"HistogramRequest":{"type":"object","properties":{"timePeriod":{"$ref":"#/components/schemas/TimePeriod"},"queries":{"type":"array","items":{"$ref":"#/components/schemas/HistogramQueryDTO"}},"filters":{"type":"array","items":{"$ref":"#/components/schemas/FilterTimePeriod"}}}},"Scale":{"type":"object","properties":{"min":{"type":"number","format":"float"},"max":{"type":"number","format":"float"}}},"HistogramResultDTO":{"type":"object","properties":{"query":{"$ref":"#/components/schemas/HistogramQueryDTO"},"values":{"type":"array","items":{"$ref":"#/components/schemas/HistogramValue"}}}},"HistogramValue":{"type":"object","properties":{"frequency":{"type":"integer","format":"int32"},"value":{"type":"number","format":"float"}}},"ChartRequest":{"type":"object","properties":{"timePeriod":{"$ref":"#/components/schemas/TimePeriod"},"queries":{"type":"array","items":{"$ref":"#/components/schemas/TagDescriptorDTO"}},"parameters":{"$ref":"#/components/schemas/ChartRequestParameters"}}},"ChartRequestParameters":{"type":"object","properties":{"numberOfIntervals":{"type":"integer","format":"int32"}}},"ChartResult":{"type":"object","properties":{"tag":{"$ref":"#/components/schemas/TagDescriptorDTO"},"values":{"type":"array","items":{"$ref":"#/components/schemas/PointDTO"}},"error":{"type":"string"},"errorCode":{"type":"string","enum":["OUT_OF_ORDER","ONLY_RAW_VALUES_SUPPORTED","TIMEOUT","REMOTE_SERVICE","SERVICE_UNAVAILABLE","UNEXPECTED","VALIDATION_FAILED","PARSE_FAILED","NOT_ALLOWED","NOT_FOUND","TOO_MANY_REQUESTS","FAILED_DEPENDENCY","PLOT_PERIOD_TOO_LARGE","MISSING_INDEX_DATA"]}}},"PointDTO":{"type":"object","properties":{"ts":{"type":"string","format":"date-time"},"value":{"type":"number","format":"float"}}},"ContextChartResult":{"type":"object","properties":{"tag":{"$ref":"#/components/schemas/TagDescriptorDTO"},"values":{"type":"array","items":{"$ref":"#/components/schemas/PointDTO"}},"isFullyIndexed":{"type":"boolean"}}},"CalculationTimePeriod":{"type":"object","properties":{"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"key":{"type":"string","example":"UserDefinedTimePeriod-001"}}},"ComparisonRequest":{"type":"object","properties":{"query":{"$ref":"#/components/schemas/ComparisonRequestQuery"},"params":{"$ref":"#/components/schemas/ComparisonRequestParams"},"filters":{"type":"array","items":{"$ref":"#/components/schemas/FilterTimePeriod"}}}},"ComparisonRequestParams":{"type":"object","properties":{"comparisonType":{"type":"string","enum":["MIN","MAX","MEAN","RANGE","START","END","DELTA","INTEGRAL","STDEV","CORRELATION","EVOLUTION","STATISTICAL_SIMILARITY"]}}},"ComparisonRequestQuery":{"type":"object","properties":{"tag":{"type":"array","items":{"$ref":"#/components/schemas/TagDescriptorDTO"}},"referenceLayer":{"$ref":"#/components/schemas/CalculationTimePeriod"},"compareLayers":{"type":"array","items":{"$ref":"#/components/schemas/CalculationTimePeriod"}}}},"CalculationResult":{"type":"object","properties":{"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"value":{"type":"number","format":"float"},"key":{"type":"string","example":"UserDefinedTimePeriod-001"}}},"ComparisonLayerResult":{"type":"object","properties":{"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"key":{"type":"string","example":"UserDefinedTimePeriod-001"},"value":{"type":"number","format":"float"},"differenceToBase":{"type":"number","format":"float"}}},"ComparisonResult":{"type":"object","properties":{"tag":{"$ref":"#/components/schemas/TagDescriptorDTO"},"referenceLayerResult":{"$ref":"#/components/schemas/CalculationResult"},"compareLayerResults":{"type":"array","items":{"$ref":"#/components/schemas/ComparisonLayerResult"}}}},"CalculationParameters":{"type":"object","properties":{"calculationType":{"type":"string","example":"mean","enum":["MIN","MAX","MEAN","RANGE","START","END","DELTA","INTEGRAL","STDEV"]}}},"CalculationQuery":{"type":"object","properties":{"tag":{"$ref":"#/components/schemas/TagDescriptorDTO"},"timePeriods":{"type":"array","items":{"$ref":"#/components/schemas/CalculationTimePeriod"}}}},"CalculationRequest":{"type":"object","properties":{"queries":{"$ref":"#/components/schemas/CalculationQuery"},"parameters":{"$ref":"#/components/schemas/CalculationParameters"}}},"MissingIndexDataBody":{"type":"object","properties":{"message":{"type":"string"},"path":{"type":"string"},"timestamp":{"type":"string"},"status":{"type":"integer","format":"int32"},"errorCode":{"type":"string","example":"MISSING_INDEX_DATA"},"error":{"type":"string"}}},"InterpolatedDataRequestAdapter":{"type":"object","properties":{"tag":{"$ref":"#/components/schemas/TagDescriptorDTO"},"timePeriod":{"$ref":"#/components/schemas/TimePeriod"},"step":{"type":"integer","format":"int32"}}},"InterpolatedDataResult":{"type":"object","properties":{"tag":{"$ref":"#/components/schemas/TagDescriptorDTO"},"values":{"type":"array","items":{"$ref":"#/components/schemas/PointDTO"}}}},"PagedInterpolatedDataRequest":{"type":"object","properties":{"tag":{"$ref":"#/components/schemas/TagDescriptorDTO"},"timePeriod":{"$ref":"#/components/schemas/TimePeriod"},"step":{"type":"integer","format":"int32"}}},"InterpolatedDataPage":{"type":"object","properties":{"tag":{"$ref":"#/components/schemas/TagDescriptorDTO"},"values":{"type":"array","items":{"$ref":"#/components/schemas/PointDTO"}},"nextStartDate":{"type":"string","format":"date-time"}}},"LegacyIndexingStatusRequest":{"type":"object","properties":{"name":{"type":"string"},"shift":{"type":"integer","format":"int64"},"interpolationType":{"type":"string"}}},"LegacyIndexingStatusResponse":{"type":"object","properties":{"allowSearch":{"type":"boolean"},"indexed":{"type":"boolean"},"percentage":{"type":"number","format":"float"}}},"IndexingStatusQuery":{"type":"object","properties":{"tag":{"$ref":"#/components/schemas/TagDescriptorDTO"}}},"IndexingStatusRequest":{"type":"object","properties":{"query":{"$ref":"#/components/schemas/IndexingStatusQuery"}}},"IndexingPercentage":{"type":"object","properties":{"percentage":{"type":"number","format":"float"}}},"CreateIndexFileRequest":{"type":"object","properties":{"name":{"type":"string"},"startDate":{"type":"string","format":"date-time"}}},"RepairIndexFileRequest":{"type":"object","properties":{"name":{"type":"string"}}},"IndexingHeaderDetails":{"type":"object","properties":{"indexStartTs":{"type":"string","format":"date-time"},"indexEndTs":{"type":"string","format":"date-time"}}},"Task":{"type":"object","properties":{"name":{"type":"string"},"indexDirection":{"type":"string","enum":["BACKWARD","FORWARD"]},"taskStart":{"type":"string","format":"date-time"},"taskEnd":{"type":"string","format":"date-time"},"points":{"type":"array","items":{"$ref":"#/components/schemas/TaskPoint"}}}},"TaskPoint":{"type":"object","properties":{"ts":{"type":"integer","format":"int64"},"value":{"type":"number","format":"float"}}},"IndexingDetailsResult":{"type":"object","properties":{"indexStartTs":{"type":"string","format":"date-time"},"indexEndTs":{"type":"string","format":"date-time"},"firstPointTs":{"type":"string","format":"date-time"},"lastPointTs":{"type":"string","format":"date-time"}}},"FingerprintSearchParameters":{"type":"object","properties":{"detectionThreshold":{"type":"number","format":"float"},"duration":{"type":"integer","format":"int64"}}},"FingerprintSearchQuery":{"type":"object","properties":{"tag":{"$ref":"#/components/schemas/TagDescriptorDTO"},"hulls":{"type":"array","items":{"$ref":"#/components/schemas/HullValue"}}}},"FingerprintSearchRequest":{"type":"object","properties":{"contextTimePeriod":{"$ref":"#/components/schemas/TimePeriod"},"filters":{"type":"array","items":{"$ref":"#/components/schemas/FilterTimePeriod"}},"params":{"$ref":"#/components/schemas/FingerprintSearchParameters"},"queries":{"type":"array","items":{"$ref":"#/components/schemas/FingerprintSearchQuery"}}}},"HullValue":{"required":["maxValue","minValue","offset"],"type":"object","properties":{"minValue":{"type":"number","format":"float"},"maxValue":{"type":"number","format":"float"},"offset":{"type":"integer","format":"int64"}}},"FingerprintEarlyWarningRequest":{"type":"object","properties":{"contextTimePeriod":{"$ref":"#/components/schemas/TimePeriod"},"params":{"$ref":"#/components/schemas/FingerprintSearchParameters"},"queries":{"type":"array","items":{"$ref":"#/components/schemas/FingerprintSearchQuery"}}}},"EarlyWarningResult":{"type":"object","properties":{"partial":{"type":"boolean"},"mismatch":{"type":"boolean"},"score":{"type":"number","format":"float"}}},"LinkModel":{"required":["link"],"type":"object","properties":{"link":{"type":"string","description":"The requested link."},"validity":{"type":"integer","description":"Validity of the requested token, in seconds.","format":"int64","default":30}}},"DataModel":{"type":"object","properties":{"data":{"type":"string","description":"the signed link data"}}},"ContextItemSearchRequest":{"type":"object","properties":{"contextTimeRange":{"$ref":"#/components/schemas/TimePeriod"},"filters":{"type":"array","items":{"$ref":"#/components/schemas/FilterTimePeriod"}},"queries":{"type":"array","example":[{"type":"PERIOD_FILTER","periodType":"LAST_EIGHT_HOURS"}],"items":{"type":"object","additionalProperties":{"type":"object","example":[{"type":"PERIOD_FILTER","periodType":"LAST_EIGHT_HOURS"}]},"example":[{"type":"PERIOD_FILTER","periodType":"LAST_EIGHT_HOURS"}]}}}},"FocusChartTag":{"type":"object","properties":{"tagName":{"type":"string"},"shift":{"type":"integer","format":"int32"},"interpolationType":{"type":"string"}}},"LegacyChartExportRequest":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/FocusChartTag"}}},"timePeriods":{"type":"array","items":{"$ref":"#/components/schemas/TimePeriod"}},"filterPeriods":{"type":"array","items":{"$ref":"#/components/schemas/TimePeriod"}},"multipleOfIndexBlockSize":{"type":"integer","format":"int32"},"clientTimeZoneId":{"type":"string"},"viewName":{"type":"string"}}},"ChartExportRequest":{"type":"object","properties":{"layers":{"type":"array","items":{"$ref":"#/components/schemas/Layer"}},"filterTimePeriods":{"type":"array","items":{"$ref":"#/components/schemas/TimePeriod"}},"chartDataResolutionInSeconds":{"type":"integer","format":"int32"},"clientTimeZoneId":{"type":"string"},"excludeFilteredTimePeriods":{"type":"boolean"},"viewName":{"type":"string"},"downloadName":{"type":"string"},"fileType":{"type":"string","enum":["XLSX"]},"exportType":{"type":"string","enum":["FOCUS_CHART","SEARCH_RESULT"]},"downloadLink":{"type":"string"}}},"DataReferenceDescriptor":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["ASSET","ATTRIBUTE","TAG"]},"shift":{"type":"integer","format":"int64"},"interpolationType":{"type":"string"}}},"Layer":{"type":"object","properties":{"name":{"type":"string"},"dataReferences":{"type":"array","items":{"$ref":"#/components/schemas/DataReferenceDescriptor"}},"timePeriod":{"$ref":"#/components/schemas/TimePeriod"}}},"CheckMaximumNumberOfPointsResult":{"type":"object","properties":{"requestExceedsMaximumNumberOfPoints":{"type":"boolean"},"maximumNumberOfPoints":{"type":"integer","format":"int64"}}},"AreaSearchRequest":{"type":"object","properties":{"contextTimeRange":{"$ref":"#/components/schemas/TimePeriod"},"filters":{"type":"array","items":{"$ref":"#/components/schemas/FilterTimePeriod"}},"query":{"$ref":"#/components/schemas/DeprecatedAreaSearchQuery"},"params":{"$ref":"#/components/schemas/DeprecatedAreaSearchParameters"}}},"DeprecatedAreaPoint":{"type":"object","properties":{"x":{"type":"number","format":"float"},"y":{"type":"number","format":"float"}}},"DeprecatedAreaSearchParameters":{"type":"object","properties":{"searchArea":{"type":"array","items":{"$ref":"#/components/schemas/DeprecatedAreaPoint"}},"searchType":{"type":"string","enum":["INSIDE_AREA","OUTSIDE_AREA"]},"minimumIntervalLength":{"type":"integer","format":"int64"}}},"DeprecatedAreaSearchQuery":{"type":"object","properties":{"xAxisTag":{"$ref":"#/components/schemas/TagDescriptorDTO"},"yAxisTag":{"$ref":"#/components/schemas/TagDescriptorDTO"}}},"PageMetadata":{"type":"object","properties":{"size":{"type":"integer","format":"int64"},"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int64"},"number":{"type":"integer","format":"int64"}}},"PagedModelSearchResultDTO":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/SearchResultDTO"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"SearchResultDTO":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string"},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"duration":{"type":"integer","format":"int32"},"calculations":{"type":"object","additionalProperties":{"type":"object"}},"properties":{"type":"object","additionalProperties":{"type":"object"}},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"BinDTO":{"type":"object","properties":{"id":{"type":"string"},"upperBound":{"type":"string"},"lowerBound":{"type":"string"},"type":{"type":"string"},"size":{"type":"integer","format":"int32"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"BinsDTO":{"type":"object","properties":{"bins":{"type":"array","items":{"$ref":"#/components/schemas/BinDTO"}},"size":{"type":"integer","format":"int32"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"BinningAndSortingOptionsDTO":{"type":"object","properties":{"options":{"type":"array","items":{"$ref":"#/components/schemas/BinningOptionDTO"}},"calculations":{"type":"array","items":{"$ref":"#/components/schemas/BinningOptionDTO"}},"default":{"$ref":"#/components/schemas/SortingOptionDTO"}}},"BinningOptionDTO":{"type":"object","properties":{"option":{"type":"string"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"sortKey":{"type":"string"}}},"SortingOptionDTO":{"type":"object","properties":{"binningOption":{"$ref":"#/components/schemas/BinningOptionDTO"},"sort":{"type":"string"}}},"SimplifiedIndexingStatus":{"type":"object","properties":{"indexed":{"type":"boolean"}}},"IndexingPeriodDTO":{"type":"object","properties":{"tagName":{"type":"string"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"indexed":{"type":"boolean"}}},"IndexingDetailDTO":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"lastUpdatedDate":{"type":"string","format":"date-time"},"indexingProgress":{"type":"number","format":"float"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"PagedModelIndexingDetailDTO":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/IndexingDetailDTO"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"RepairIndexStatus":{"type":"object","properties":{"running":{"type":"boolean"}}},"RepairProgress":{"type":"object","properties":{"totalNumberOfTags":{"type":"integer","format":"int32"},"totalCheckedTags":{"type":"integer","format":"int32"},"totalCorruptTags":{"type":"integer","format":"int32"},"corruptedTags":{"type":"object","additionalProperties":{"type":"string","format":"date-time"}},"failedTags":{"type":"object","additionalProperties":{"type":"string"}}}},"LastValueModel":{"type":"object","properties":{"value":{"type":"number","format":"float"},"ts":{"type":"string","format":"date-time"},"upToDate":{"type":"boolean"}}},"DataPoint":{"type":"object","properties":{"ts":{"type":"string","format":"date-time"},"value":{"type":"number","format":"float"}}},"ErrorResponse":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"errorCode":{"type":"string","enum":["OUT_OF_ORDER","ONLY_RAW_VALUES_SUPPORTED","TIMEOUT","REMOTE_SERVICE","SERVICE_UNAVAILABLE","UNEXPECTED","VALIDATION_FAILED","PARSE_FAILED","INVALID_DUPLICATE_POINT","NOT_ALLOWED","NOT_FOUND","TOO_MANY_REQUESTS","PLOT_PERIOD_TOO_LARGE","MISSING_INDEX_DATA"]},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{"type":"string"}},"httpStatus":{"type":"string","enum":["100 CONTINUE","101 SWITCHING_PROTOCOLS","102 PROCESSING","103 EARLY_HINTS","103 CHECKPOINT","200 OK","201 CREATED","202 ACCEPTED","203 NON_AUTHORITATIVE_INFORMATION","204 NO_CONTENT","205 RESET_CONTENT","206 PARTIAL_CONTENT","207 MULTI_STATUS","208 ALREADY_REPORTED","226 IM_USED","300 MULTIPLE_CHOICES","301 MOVED_PERMANENTLY","302 FOUND","302 MOVED_TEMPORARILY","303 SEE_OTHER","304 NOT_MODIFIED","305 USE_PROXY","307 TEMPORARY_REDIRECT","308 PERMANENT_REDIRECT","400 BAD_REQUEST","401 UNAUTHORIZED","402 PAYMENT_REQUIRED","403 FORBIDDEN","404 NOT_FOUND","405 METHOD_NOT_ALLOWED","406 NOT_ACCEPTABLE","407 PROXY_AUTHENTICATION_REQUIRED","408 REQUEST_TIMEOUT","409 CONFLICT","410 GONE","411 LENGTH_REQUIRED","412 PRECONDITION_FAILED","413 PAYLOAD_TOO_LARGE","413 REQUEST_ENTITY_TOO_LARGE","414 URI_TOO_LONG","414 REQUEST_URI_TOO_LONG","415 UNSUPPORTED_MEDIA_TYPE","416 REQUESTED_RANGE_NOT_SATISFIABLE","417 EXPECTATION_FAILED","418 I_AM_A_TEAPOT","419 INSUFFICIENT_SPACE_ON_RESOURCE","420 METHOD_FAILURE","421 DESTINATION_LOCKED","422 UNPROCESSABLE_ENTITY","423 LOCKED","424 FAILED_DEPENDENCY","425 TOO_EARLY","426 UPGRADE_REQUIRED","428 PRECONDITION_REQUIRED","429 TOO_MANY_REQUESTS","431 REQUEST_HEADER_FIELDS_TOO_LARGE","451 UNAVAILABLE_FOR_LEGAL_REASONS","500 INTERNAL_SERVER_ERROR","501 NOT_IMPLEMENTED","502 BAD_GATEWAY","503 SERVICE_UNAVAILABLE","504 GATEWAY_TIMEOUT","505 HTTP_VERSION_NOT_SUPPORTED","506 VARIANT_ALSO_NEGOTIATES","507 INSUFFICIENT_STORAGE","508 LOOP_DETECTED","509 BANDWIDTH_LIMIT_EXCEEDED","510 NOT_EXTENDED","511 NETWORK_AUTHENTICATION_REQUIRED"]},"statusCode":{"type":"integer","format":"int32"}}},"WrappedDataPoints":{"type":"object","properties":{"points":{"type":"array","items":{"$ref":"#/components/schemas/DataPoint"}},"error":{"$ref":"#/components/schemas/ErrorResponse"}}},"DeleteIndexFileRequest":{"type":"object","properties":{"name":{"type":"string"}}}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"openIdConnect":{"type":"openIdConnect","openIdConnectUrl":"https://tm-toggles-next.trendminer.net/auth/realms/trendminer/.well-known/openid-configuration"}}}}