{"openapi":"3.0.1","info":{"title":"TrendMiner Datasource API","description":"API to work with Datasources.","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/ds","description":"Generated server url"}],"security":[{"bearerAuth":[]},{"openIdConnect":[]}],"tags":[{"name":"Providers","description":"Obtain provider information"},{"name":"Configuration","description":"Manage global configurations"},{"name":"ImportedTimeSeries","description":"Manage imported TimeSeries"},{"name":"LegacyTimeSeries","description":"Legacy resources to work with timeseries"},{"name":"Asset","description":"Query datasources with asset capability"},{"name":"Context","description":"Query datasources with context capability"},{"name":"Event","description":"Query data sources with event capability"},{"name":"Connectors","description":"Manage connectors"},{"name":"Datasources","description":"Manage datasources"},{"name":"TimeSeries","description":"Manage time series"}],"paths":{"/timeseries":{"get":{"tags":["TimeSeries"],"summary":"Search the time series definitions","operationId":"searchTimeSeriesDefinitions","parameters":[{"name":"searchPattern","in":"query","description":"Pattern to search time series definitions. Cannot be used at the same time as name parameter.","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","description":"The name of the time series definitions to search for. Cannot be used at the same time as searchPattern parameter.","required":false,"schema":{"type":"string"}},{"name":"deletedAllowed","in":"query","description":"Allow deleted time series definition","required":false,"schema":{"type":"boolean"}},{"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/PagedModelTimeSeriesDefinitionRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelTimeSeriesDefinitionRepresentation"}}}}}},"put":{"tags":["TimeSeries"],"summary":"Update a time series definition by datasource id and external id.","operationId":"updateTimeSeriesDefinitionByExternalId","parameters":[{"name":"datasourceId","in":"query","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The external identifier of the time series.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDefinitionModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDefinitionRepresentation"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDefinitionRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDefinitionRepresentation"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDefinitionRepresentation"}}}}}},"post":{"tags":["TimeSeries"],"summary":"Create a new time series definition.","operationId":"createTimeSeriesDefinition","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDefinitionModel"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDefinitionRepresentation"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDefinitionRepresentation"}}}}}},"delete":{"tags":["TimeSeries"],"summary":"Deletes a time series definition by datasource id and external id","operationId":"deleteTimeSeriesDefinitionByExternalId","parameters":[{"name":"datasourceId","in":"query","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The external identifier of the time series.","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No content"},"404":{"description":"The resource was not found"}}}},"/timeseries/{id}":{"get":{"tags":["TimeSeries"],"summary":"Get the time series definition for the specified identifier.","operationId":"getTimeSeriesDefinitionById","parameters":[{"name":"id","in":"path","description":"The identifier of the time series definition","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDefinitionRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDefinitionRepresentation"}}}}}},"put":{"tags":["TimeSeries"],"summary":"Update a time series definition.","operationId":"updateTimeSeriesDefinition","parameters":[{"name":"id","in":"path","description":"The identifier of the time series definition","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDefinitionModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDefinitionRepresentation"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDefinitionRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDefinitionRepresentation"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDefinitionRepresentation"}}}}}}},"/datasources/{id}":{"get":{"tags":["Datasources"],"summary":"Get the datasource for the specified identifier.","operationId":"getDatasourceById","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasourceRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasourceRepresentation"}}}}}},"put":{"tags":["Datasources"],"summary":"Update a datasource.","description":"It is possible to update only part of the datasource, the model does not have to be complete in order to be updated.","operationId":"updateDatasource","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasourceModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasourceRepresentation"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasourceRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasourceRepresentation"}}}}}},"delete":{"tags":["Datasources"],"summary":"Delete a datasource.","operationId":"deleteDatasource","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No content"},"404":{"description":"The resource was not found"},"202":{"description":"Accepted"}}}},"/connectors/{id}":{"get":{"tags":["Connectors"],"summary":"Get the connector for the specified identifier.","operationId":"getConnectorById","parameters":[{"name":"id","in":"path","description":"The identifier of the connector","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorRepresentation"}}}}}},"put":{"tags":["Connectors"],"summary":"Update a connector.","operationId":"updateConnector","parameters":[{"name":"id","in":"path","description":"The identifier of the connector","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorRepresentation"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorRepresentation"}}}}}},"delete":{"tags":["Connectors"],"summary":"Delete a connector.","operationId":"deleteConnector","parameters":[{"name":"id","in":"path","description":"The identifier of the connector","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No content"},"404":{"description":"The resource was not found"},"202":{"description":"Accepted"}}}},"/configurations/{name}":{"get":{"tags":["Configuration"],"summary":"Get a configuration item by name","operationId":"getConfigurationItemByName","parameters":[{"name":"name","in":"path","description":"Name of the configuration item to return","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigurationItemRepresentation"}}}}}},"put":{"tags":["Configuration"],"summary":"Update a configuration item.","operationId":"updateConfigurationItem","parameters":[{"name":"name","in":"path","description":"Name of the configuration item to update","required":true,"schema":{"type":"string"}},{"name":"value","in":"query","description":"New value to update","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully updated configuration item","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConfigurationItemRepresentation"}}}},"404":{"description":"The configuration item was not found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConfigurationItemRepresentation"}}}},"204":{"description":"No Content","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConfigurationItemRepresentation"}}}}}}},"/timeseries/{id}/valuesmapping":{"get":{"tags":["TimeSeries"],"summary":"Get all digital states for the specified time series.","operationId":"getValuesMapping","parameters":[{"name":"id","in":"path","description":"The identifier of the time series definition","required":true,"schema":{"type":"string","format":"uuid"}},{"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/PagedModelTimeSeriesValueMappingRepresesentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelTimeSeriesValueMappingRepresesentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelTimeSeriesValueMappingRepresesentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelTimeSeriesValueMappingRepresesentation"}}}}}},"post":{"tags":["TimeSeries"],"summary":"Get the digital states by intValue for the specified time series.","operationId":"getValuesMappingForValueList_1","parameters":[{"name":"id","in":"path","description":"The identifier of the time series definition","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"description":"Model containing the identifiers of the value mappings in a int list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValueMappingRequestModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TimeSeriesValueMappingRepresesentation"}}},"application/hal+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TimeSeriesValueMappingRepresesentation"}}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TimeSeriesValueMappingRepresesentation"}}},"application/hal+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TimeSeriesValueMappingRepresesentation"}}}}}}}},"/timeseries/{id}/valuesmapping/search":{"post":{"tags":["TimeSeries"],"summary":"Search digital states for the specified time series with rsql.","description":"Available search operators:\n\n\tequal(==)\n\tnot equal(!=)\n\tin(=in=)\n\tnot in(=out=)\nAvailable logical operators:\n\n\tAND(;) \n\tOR(,) \n\nYou can makes groups using parentheses \n\n\t((expression),(expression));expression\n\nBy default, the AND operator takes precedence \nWildcards are supported \n\n\tWildcard symbol: * \nWildcards can be at any position \n\nSearch values have to be surrounded by quotes\n\n\tproperty1=='value1';property2=in=('value2','value3')\t","operationId":"searchTimeSeriesValueMappings","parameters":[{"name":"id","in":"path","description":"The identifier of the time series definition","required":true,"schema":{"type":"string","format":"uuid"}},{"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"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RsqlRequest"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelTimeSeriesValueMappingRepresesentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelTimeSeriesValueMappingRepresesentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelTimeSeriesValueMappingRepresesentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelTimeSeriesValueMappingRepresesentation"}}}}}}},"/timeseries/search":{"post":{"tags":["TimeSeries"],"summary":"Search the time series definition with rsql.","description":"Available search operators:\n\n\tequal(==)\n\tnot equal(!=)\n\tin(=in=)\n\tnot in(=out=)\nAvailable logical operators:\n\n\tAND(;) \n\tOR(,) \n\nYou can makes groups using parentheses \n\n\t((expression),(expression));expression\n\nBy default, the AND operator takes precedence \nWildcards are supported \n\n\tWildcard symbol: * \nWildcards can be at any position \n\nSearch values have to be surrounded by quotes\n\n\tproperty1=='value1';property2=in=('value2','value3')\t","operationId":"searchTimeSeriesByRsql","parameters":[{"name":"deletedAllowed","in":"query","description":"True if deleted time series should be returned","required":false,"schema":{"type":"boolean"}},{"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"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RsqlRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelTimeSeriesDefinitionRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelTimeSeriesDefinitionRepresentation"}}}}}}},"/timeseries/basicsearch":{"post":{"tags":["TimeSeries"],"summary":"EXPERIMENTAL - basic search","description":"Will execute a timeseries definition search based on the provided query criterium within a given set of datasources \n\nThis search will do a lookup in active timeseries definitions for the provided set of datasources.\nHits will have a (partial) match on name OR description of the timeseries definition\n\nWildcards are supported \n\n\tWildcard symbol: * \nWildcards can be at any position \n\nThe first 200 matches order by name are returned","operationId":"advancedSearch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BasicSearchRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionModelTimeSeriesDefinitionRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/CollectionModelTimeSeriesDefinitionRepresentation"}}}}}}},"/timeseries/advancedsearch":{"post":{"tags":["TimeSeries"],"summary":"EXPERIMENTAL -  advanced search","description":"Will execute a timeseries definition search based on the provided name or description criterium within a given set of datasources \n\nThis search will do a lookup in active timeseries definitions for the provided set of datasources.\nHits will have a (partial) match on name of the timeseries definition only, if only a name was provided\n\nHits will have a (partial) match on description of the timeseries definition only, if only a description was provided\n\nHits will have a (partial) match on name AND description of the timeseries definition only, if a name and description was provided\n\nWildcards are supported \n\n\tWildcard symbol: * \nWildcards can be at any position \n\nThe first 200 matches order by name are returned","operationId":"advancedSearch_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvancedSearchRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionModelTimeSeriesDefinitionRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/CollectionModelTimeSeriesDefinitionRepresentation"}}}}}}},"/imported/timeseries":{"get":{"tags":["ImportedTimeSeries"],"summary":"Search the imported time series.","operationId":"getImportedTimeSeriesForLoggedInOwner","parameters":[{"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/PagedModelImportedTimeSeriesRepresentation"}}}}}},"post":{"tags":["ImportedTimeSeries"],"summary":"Imports time series from a csv file","operationId":"importTimeSeries","responses":{"422":{"description":"Validation error","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotImportedTimeSeries"}}}}},"204":{"description":"Valid","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotImportedTimeSeries"}}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotImportedTimeSeries"}}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotImportedTimeSeries"}}}}}}}},"/datasources":{"get":{"tags":["Datasources"],"summary":"Get a list of all datasources","operationId":"getDatasources","parameters":[{"name":"type","in":"query","description":"The datasource type","required":false,"schema":{"type":"string"}},{"name":"capabilityType","in":"query","description":"The capability type","required":false,"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/PagedModelDatasourceRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelDatasourceRepresentation"}}}}}},"post":{"tags":["Datasources"],"summary":"Create a new datasource.","operationId":"createDatasource","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasourceModel"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasourceRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasourceRepresentation"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasourceRepresentation"}}}}}}},"/datasources/{id}/test":{"post":{"tags":["Datasources"],"summary":"Test datasource connection status.","operationId":"testDatasource","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConnectionStatus"}}}},"404":{"description":"The resource was not found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConnectionStatus"}}}}}}},"/datasources/{id}/sync":{"post":{"tags":["Datasources"],"summary":"Synchronizes datasource time series definitions.","operationId":"synchronizeDatasource","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Ok"},"404":{"description":"The resource was not found"},"202":{"description":"Accepted"}}}},"/datasources/{id}/events/event":{"get":{"tags":["Event"],"summary":"Get all events after a given date","operationId":"getEvents","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"after","in":"query","description":"Events occurring after a specific date. Internet DateTime format, see RFC3339 e.g.: '2012-01-01T00:00:00Z’.","required":true,"schema":{"type":"string"}},{"name":"before","in":"query","description":"Events occurring before a specific date. Internet DateTime format, see RFC3339 e.g.: '2012-01-01T00:00:00Z’.","required":false,"schema":{"type":"string"}},{"name":"continuationToken","in":"query","description":"cursor","schema":{"type":"string"}},{"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/CursorPagedModelEventRepresentation"}},"application/stream+json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventRepresentation"}}}},"501":{"description":"Datasource does not support 'EVENT' capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventRepresentation"}},"application/stream+json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventRepresentation"}},"application/stream+json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventRepresentation"}}}}}},"post":{"tags":["Event"],"summary":"Write an event back to the source.","operationId":"createEvent","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventModel"}}},"required":true},"responses":{"404":{"description":"The datasource id does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventRepresentation"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventRepresentation"}}}},"501":{"description":"Provider type does not support 'EVENT_WRITE' capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventRepresentation"}}}},"500":{"description":"Remote source server exception","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventRepresentation"}}}}}}},"/datasources/{id}/context":{"get":{"tags":["Context"],"summary":"Get a list of context items for the given datasource","operationId":"getContextItems","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"startDate","in":"query","description":"The start date of the query period. Internet DateTime format, see RFC3339 e.g.: '2012-01-01T00:00:00Z’.","required":true,"schema":{"type":"string"}},{"name":"endDate","in":"query","description":"The end date of the query period. Internet DateTime format, see RFC3339 e.g.: '2012-01-01T00:00:00Z’.","required":true,"schema":{"type":"string"}},{"name":"createdAfter","in":"query","description":"Returned context items need to be created after this date. Internet DateTime format, see RFC3339 e.g.: '2012-01-01T00:00:00Z’.","required":false,"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/PagedModelContextItemRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextItemRepresentation"}}}},"501":{"description":"Datasource does not support 'CONTEXT' capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelContextItemRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextItemRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelContextItemRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextItemRepresentation"}}}}}},"post":{"tags":["Context"],"summary":"Get a list of context items for the given datasource and context identifiers.","operationId":"getContextItemsById","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContextItemRepresentation"}}},"application/hal+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContextItemRepresentation"}}}}},"501":{"description":"Datasource does not support 'CONTEXT' capability","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContextItemRepresentation"}}},"application/hal+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContextItemRepresentation"}}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContextItemRepresentation"}}},"application/hal+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContextItemRepresentation"}}}}}}}},"/datasources/{id}/assets":{"get":{"tags":["Asset"],"summary":"Get all root assets from the tree","operationId":"getRootAssets","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssetRepresentation"}}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssetRepresentation"}}}}}}},"post":{"tags":["Asset"],"summary":"Get assets by ids from the tree","operationId":"getAssetsByIds","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssetRepresentation"}}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssetRepresentation"}}}}},"501":{"description":"Datasource does not support 'ASSET' capability","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssetRepresentation"}}}}}}}},"/datasources/test":{"post":{"tags":["Datasources"],"summary":"Test datasource connection status.","operationId":"testConnection","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasourceModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConnectionStatus"}}}}}}},"/connectors":{"get":{"tags":["Connectors"],"summary":"Get a list of all connectors","operationId":"getAllConnectors","parameters":[{"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/PagedModelConnectorRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelConnectorRepresentation"}}}}}},"post":{"tags":["Connectors"],"summary":"Create a new connector.","operationId":"createConnector","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorModel"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorRepresentation"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorRepresentation"}}}}}}},"/connectors/{id}/test":{"post":{"tags":["Connectors"],"summary":"Test connector connection.","operationId":"testConnector","parameters":[{"name":"id","in":"path","description":"The identifier of the connector","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionTest"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionTest"}}}}}}},"/connectors/{id}/sync":{"post":{"tags":["Connectors"],"summary":"Synchronizes a connector.","operationId":"synchronizeConnector","parameters":[{"name":"id","in":"path","description":"The identifier of the connector","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Ok"},"404":{"description":"The resource was not found"},"202":{"description":"Accepted"}}}},"/timeseries/{id}/valuemapping":{"get":{"tags":["TimeSeries"],"summary":"Get the value mapping for the specified time series, string or int value. If stringValue is present and autocreate=true - new value mapping entry will be created","operationId":"getOrCreateValueMapping","parameters":[{"name":"id","in":"path","description":"The identifier of the time series definition","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"intValue","in":"query","description":"Int value of value mapping","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"stringValue","in":"query","description":"String value of value mapping","required":false,"schema":{"type":"string"}},{"name":"autocreate","in":"query","description":"Create new value mapping if string value is not present for requested time series definition","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesValueMappingRepresesentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesValueMappingRepresesentation"}}}}}}},"/timeseries/{id}/dependency-tree":{"get":{"tags":["TimeSeries"],"summary":"Get the time series definition for the specified identifier with dependency tree.","operationId":"getTimeSeriesDefinitionDependencyTree","parameters":[{"name":"id","in":"path","description":"The identifier of the time series definition","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDependencyTreeDefinitionRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDependencyTreeDefinitionRepresentation"}}}}}}},"/timeseries/{id}/accessibility":{"get":{"tags":["TimeSeries"],"summary":"Check whether the logged in user is allowed to read the time series.","operationId":"checkAccessibility","parameters":[{"name":"id","in":"path","description":"The identifier of the time series definition","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"string","enum":["accessible","denied","deleted","undefined"]}}}}}}},"/timeseries/relations":{"get":{"tags":["TimeSeries"],"summary":"Get the time series definitions relations.","operationId":"getTimeSeriesRelations","parameters":[{"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/PagedModelTimeSeriesRelationRepresentation"}}}}}}},"/timeseries/indexhorizon":{"get":{"tags":["TimeSeries"],"summary":"Effective index horizon","description":"Will return the effective index horizon, regardless of the strategy selected on ConfigHub","operationId":"indexHorizon","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexHorizonRepresentation"}}}}}}},"/timeseries/dependency-tree":{"get":{"tags":["TimeSeries"],"summary":"Get the time series definition by external id for the specified identifier with dependency tree.","operationId":"getTimeSeriesDefinitionDependencyTreeByExternalId","parameters":[{"name":"datasourceId","in":"query","description":"The identifier of the datasource.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The external identifier of the time series definition","required":true,"schema":{"type":"string"}},{"name":"deletedAllowed","in":"query","description":"Allow deleted time series definition","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDependencyTreeDefinitionRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesDependencyTreeDefinitionRepresentation"}}}}}}},"/timeseries/advanced":{"get":{"tags":["TimeSeries"],"summary":"Search the time series definition by name and description patterns","operationId":"advancedSearchTimeSeriesDefinitionsWithHistorianNames","parameters":[{"name":"nameSearchPattern","in":"query","description":"Pattern to search time series definitions by name.","required":false,"schema":{"type":"string"}},{"name":"descriptionSearchPattern","in":"query","description":"Pattern to search time series definitions by description.","required":false,"schema":{"type":"string"}},{"name":"historians","in":"query","description":"Pattern to search time series definitions by description","required":false,"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/PagedModelTimeSeriesDefinitionRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelTimeSeriesDefinitionRepresentation"}}}}},"deprecated":true}},"/providers":{"get":{"tags":["Providers"],"summary":"Get a list of all providers and their metadata","operationId":"getProvidersMetaData","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProviderMetaDataRepresentation"}}},"application/hal+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProviderMetaDataRepresentation"}}}}}}}},"/providers/{name}":{"get":{"tags":["Providers"],"summary":"Get a provider and its metadata","operationId":"getProvidersMetaDataByName","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderMetaDataRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ProviderMetaDataRepresentation"}}}}}}},"/legacy-timeseries":{"get":{"tags":["LegacyTimeSeries"],"summary":"Get the timeseries definition by name query parameter.","operationId":"getTimeSeriesDefinitionByName","parameters":[{"name":"tagName","in":"query","description":"The name of the timeseries definition","required":true,"schema":{"type":"string"}},{"name":"fetchStates","in":"query","description":"Should fetch states","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyTagDetailsModel"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyTagDetailsModel"}}}}}}},"/legacy-timeseries/{id}":{"get":{"tags":["LegacyTimeSeries"],"summary":"Get the timeseries definition for the specified id","operationId":"getLegacyTimeSeriesDefinitionById","parameters":[{"name":"id","in":"path","description":"The identifier of the timeseries definition","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"fetchStates","in":"query","description":"Should fetch states","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyTagDetailsModel"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyTagDetailsModel"}}}}}}},"/legacy-timeseries/{id}/states":{"get":{"tags":["LegacyTimeSeries"],"summary":"Get all states of the timeseries definition by id query parameter.","operationId":"getTimeSeriesDefinitionValueMappings","parameters":[{"name":"id","in":"path","description":"The id of the timeseries definition","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LegacyStateModel"}}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LegacyStateModel"}}}}}}}},"/legacy-timeseries/accessibility":{"get":{"tags":["LegacyTimeSeries"],"summary":"Get timeseries definition accessibility details.","operationId":"getTimeSeriesDefinitionAccessibility","parameters":[{"name":"tagName","in":"query","description":"The name of the timeseries definition","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyAccessibilityModel"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyAccessibilityModel"}}}}}}},"/imported/timeseries/{id}":{"get":{"tags":["ImportedTimeSeries"],"summary":"Get the imported time series by specified id.","operationId":"getImportedTimeSeriesById","parameters":[{"name":"id","in":"path","description":"The identifier of the imported time series","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportedTimeSeriesRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportedTimeSeriesRepresentation"}}}}}},"delete":{"tags":["ImportedTimeSeries"],"summary":"Delete an imported time series.","operationId":"deleteImportedTimeSeries","parameters":[{"name":"id","in":"path","description":"The identifier of the imported time series","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No content"},"404":{"description":"The resource was not found"}}}},"/datasources/{id}/metrics":{"get":{"tags":["metrics-controller"],"operationId":"getMetrics","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/MetricRepresentation"}}}}}}},"/datasources/{id}/events/type":{"get":{"tags":["Event"],"summary":"Get all event type definitions","operationId":"getEventTypes","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"continuationToken","in":"query","description":"cursor","schema":{"type":"string"}},{"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/CursorPagedModelEventTypeRepresentation"}},"application/stream+json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventTypeRepresentation"}}}},"501":{"description":"Datasource does not support 'EVENT' capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventTypeRepresentation"}},"application/stream+json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventTypeRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventTypeRepresentation"}},"application/stream+json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventTypeRepresentation"}}}}}}},"/datasources/{id}/events/type/{typeId}":{"get":{"tags":["Event"],"summary":"Get the event type for the specified identifier.","operationId":"getEventTypeById","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"typeId","in":"path","description":"The identifier of the type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventTypeRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/EventTypeRepresentation"}}}},"501":{"description":"Datasource does not support 'EVENT' capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventTypeRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/EventTypeRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventTypeRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/EventTypeRepresentation"}}}}}}},"/datasources/{id}/events/groupedevent":{"get":{"tags":["Event"],"summary":"Get all events based on a grouping key","operationId":"getEventsGrouped","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"groupingKey","in":"query","description":"Events belonging together are grouped by a grouping key","required":true,"schema":{"type":"string"}},{"name":"continuationToken","in":"query","description":"cursor","schema":{"type":"string"}},{"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/CursorPagedModelEventRepresentation"}},"application/stream+json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventRepresentation"}}}},"501":{"description":"Datasource does not support 'EVENT' capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventRepresentation"}},"application/stream+json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventRepresentation"}},"application/stream+json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventRepresentation"}}}}}}},"/datasources/{id}/events/field":{"get":{"tags":["Event"],"summary":"Get all field definitions","operationId":"getFields","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"continuationToken","in":"query","description":"cursor","schema":{"type":"string"}},{"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/CursorPagedModelEventFieldRepresentation"}},"application/stream+json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventFieldRepresentation"}}}},"501":{"description":"Datasource does not support 'EVENT' capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventFieldRepresentation"}},"application/stream+json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventFieldRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventFieldRepresentation"}},"application/stream+json":{"schema":{"$ref":"#/components/schemas/CursorPagedModelEventFieldRepresentation"}}}}}}},"/datasources/{id}/events/field/{fieldId}":{"get":{"tags":["Event"],"summary":"Get the field for the specified identifier.","operationId":"getFieldById","parameters":[{"name":"id","in":"path","description":"The identifier for the datasource","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"fieldId","in":"path","description":"The identifier for the field","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventFieldRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/EventFieldRepresentation"}}}},"501":{"description":"Datasource does not support 'EVENT' capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventFieldRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/EventFieldRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventFieldRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/EventFieldRepresentation"}}}}}}},"/datasources/{id}/event/events/{eventId}":{"get":{"tags":["Event"],"summary":"Get the event for the specified identifier.","operationId":"getEventById","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"eventId","in":"path","description":"The identifier of the event","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/EventRepresentation"}}}},"501":{"description":"Datasource does not support 'EVENT' capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/EventRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/EventRepresentation"}}}}}}},"/datasources/{id}/context/{contextItemId}":{"get":{"tags":["Context"],"summary":"Get a context item for the given datasource and context id.","operationId":"getContextItem","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"contextItemId","in":"path","description":"The identifier of the contextItem","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextItemRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextItemRepresentation"}}}},"501":{"description":"Datasource does not support 'CONTEXT' capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextItemRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextItemRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextItemRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextItemRepresentation"}}}}}}},"/datasources/{id}/context/workflow":{"get":{"tags":["Context"],"summary":"Get a list of available context workflows for the given datasource","operationId":"getContextWorkflows","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}},{"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/PagedModelWorkflowRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelWorkflowRepresentation"}}}},"501":{"description":"Datasource does not support 'CONTEXT' capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelWorkflowRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelWorkflowRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelWorkflowRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelWorkflowRepresentation"}}}}}}},"/datasources/{id}/context/type":{"get":{"tags":["Context"],"summary":"Get a list of available context types for the given datasource","operationId":"getContextTypes","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}},{"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/PagedModelContextTypeRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextTypeRepresentation"}}}},"501":{"description":"Datasource does not support 'CONTEXT' capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelContextTypeRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextTypeRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelContextTypeRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextTypeRepresentation"}}}}}}},"/datasources/{id}/context/field":{"get":{"tags":["Context"],"summary":"Get a list of available context fields for the given datasource","operationId":"getContextFields","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}},{"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/PagedModelFieldRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelFieldRepresentation"}}}},"501":{"description":"Datasource does not support 'CONTEXT' capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelFieldRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelFieldRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelFieldRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelFieldRepresentation"}}}}}}},"/datasources/{id}/context/changes":{"get":{"tags":["Context"],"summary":"Returns a list of changed context items in the source system as well as the type of change that happened.","operationId":"getContextChanges","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"since","in":"query","description":"The start date of the query period. Internet DateTime format, see RFC3339 e.g.: '2012-01-01T00:00:00Z’.","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"The page to get. This is a cookie that is returned by a previous call to the /changes endpoint.","required":false,"schema":{"type":"string"}},{"name":"size","in":"query","description":"The page size","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPagedResourcesContextChange"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/CursorPagedResourcesContextChange"}}}},"501":{"description":"Datasource does not support 'CONTEXT' capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPagedResourcesContextChange"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/CursorPagedResourcesContextChange"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPagedResourcesContextChange"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/CursorPagedResourcesContextChange"}}}}}}},"/datasources/{id}/assets/{assetId}":{"get":{"tags":["Asset"],"summary":"Get a specific asset denoted by the provided assetId","operationId":"getAssetsById","parameters":[{"name":"id","in":"path","description":"The identifier of the datasource","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"assetId","in":"path","description":"The identifier of the asset","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetRepresentation"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetRepresentation"}}}},"501":{"description":"Datasource does not support 'ASSET' capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetRepresentation"}}}}}}},"/datasources/search":{"get":{"tags":["Datasources"],"summary":"Search datasources","operationId":"searchDatasources","parameters":[{"name":"types","in":"query","description":"The datasource type","required":false,"schema":{"type":"string"}},{"name":"capabilityTypes","in":"query","description":"The capability type","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","description":"The name of the datasource","required":false,"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/PagedModelDatasourceRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelDatasourceRepresentation"}}}}}}},"/connectors/{id}/version":{"get":{"tags":["Connectors"],"summary":"Get the version of a connector.","operationId":"getConnectorVersion","parameters":[{"name":"id","in":"path","description":"The identifier of the connector","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionInfo"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionInfo"}}}}}}},"/connectors/datasources":{"get":{"tags":["Connectors"],"summary":"Get a list of all datasources which belong to a connector","operationId":"getDatasourcesWhichBelongToConnector","parameters":[{"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/PagedModelDatasourceRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelDatasourceRepresentation"}}}}}}},"/configurations":{"get":{"tags":["Configuration"],"summary":"Get the full list of configuration items","operationId":"getAllConfigurationItems","parameters":[{"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/PagedModelConfigurationItemRepresentation"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelConfigurationItemRepresentation"}}}}}}},"/timeseries/{ids}":{"delete":{"tags":["TimeSeries"],"summary":"Delete time series definitions.","operationId":"deleteTimeSeriesDefinition","parameters":[{"name":"ids","in":"path","description":"The id's  of the time series","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No content"},"404":{"description":"The resource was not found"}}}},"/imported/timeseries/":{"delete":{"tags":["ImportedTimeSeries"],"summary":"Delete all imported time series.","operationId":"deleteImportedTimeSeriesForLoggedInOwner","responses":{"204":{"description":"No content"},"404":{"description":"The resource was not found"}}}}},"components":{"schemas":{"TimeSeriesDefinitionModel":{"required":["datasourceId","name","type"],"type":"object","properties":{"id":{"type":"string","format":"uuid"},"datasourceId":{"type":"string","format":"uuid"},"externalId":{"type":"string"},"name":{"type":"string"},"description":{"maxLength":1024,"minLength":0,"type":"string"},"type":{"type":"string","enum":["ANALOG","DIGITAL","DISCRETE","STRING"]},"dependentTimeSeriesDefinitions":{"type":"array","items":{"type":"string","format":"uuid"}}}},"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"}}},"TimeSeriesDefinitionRepresentation":{"type":"object","properties":{"datasourceId":{"type":"string","format":"uuid"},"ownerId":{"type":"string"},"externalId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"type":{"type":"string"},"units":{"type":"string"},"interpolationType":{"type":"string"},"datasourceType":{"type":"string"},"deleted":{"type":"boolean"},"plotDataUrl":{"type":"string"},"indexDataUrl":{"type":"string"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"id":{"type":"string","format":"uuid"}}},"DatasourceModel":{"required":["name","type"],"type":"object","properties":{"type":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"connectorId":{"type":"string","format":"uuid"},"datasourceId":{"type":"string","format":"uuid"},"maxConnections":{"minimum":0,"type":"integer","format":"int32"},"onlySupportsRawValues":{"type":"boolean"},"maxPlotPeriodInDays":{"type":"integer","format":"int32"},"capabilityTypes":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"providerTypeProperties":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/ProviderTypePropertyModel"}}}},"ProviderTypePropertyModel":{"required":["name"],"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"encrypted":{"type":"boolean"}}},"DatasourceRepresentation":{"type":"object","properties":{"type":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"maxConnections":{"type":"integer","format":"int32"},"onlySupportsRawValues":{"type":"boolean"},"status":{"type":"string","enum":["ACTIVE","DELETED","SYNC_IN_PROGRESS","SYNC_ERROR","NOT_SYNCABLE"]},"statusDescription":{"type":"string"},"syncedBy":{"type":"string"},"syncedOn":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"createOn":{"type":"string","format":"date-time"},"modifiedBy":{"type":"string"},"modifiedOn":{"type":"string","format":"date-time"},"indexingGranularity":{"type":"string"},"maxPlotPeriodInDays":{"type":"integer","format":"int32"},"capabilityTypes":{"uniqueItems":true,"type":"array","items":{"type":"string","enum":["TIME_SERIES","ASSET","EVENT","EVENT_WRITE","CONTEXT"]}},"connectorId":{"type":"string","format":"uuid"},"providerTypeProperties":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/ProviderTypePropertyRepresentation"}},"builtin":{"type":"boolean"},"datasourceId":{"type":"string","format":"uuid"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"ProviderTypePropertyRepresentation":{"type":"object","properties":{"name":{"maxLength":255,"minLength":1,"type":"string"},"value":{"type":"string"},"encrypted":{"type":"boolean"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"ConnectorModel":{"required":["host","name"],"type":"object","properties":{"name":{"maxLength":100,"minLength":1,"type":"string"},"description":{"type":"string"},"host":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"maxConnections":{"type":"integer","format":"int32"}}},"ConnectorRepresentation":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["ACTIVE","DELETED","SYNC_IN_PROGRESS","SYNC_ERROR","NOT_SYNCABLE"]},"statusDescription":{"type":"string"},"host":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"syncedBy":{"type":"string"},"syncedOn":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"createOn":{"type":"string","format":"date-time"},"modifiedBy":{"type":"string"},"modifiedOn":{"type":"string","format":"date-time"},"connectorId":{"type":"string","format":"uuid"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"ConfigurationItemRepresentation":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"description":{"type":"string"},"createdBy":{"type":"string"},"createOn":{"type":"string","format":"date-time"},"modifiedBy":{"type":"string"},"modifiedOn":{"type":"string","format":"date-time"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"TimeSeriesValueMappingRepresesentation":{"type":"object","properties":{"timeSeriesId":{"type":"string","format":"uuid"},"stringValue":{"type":"string"},"intValue":{"type":"integer","format":"int32"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"ValueMappingRequestModel":{"type":"object","properties":{"intValues":{"type":"array","items":{"type":"integer","format":"int32"}}}},"RsqlRequest":{"required":["query"],"type":"object","properties":{"query":{"type":"string"}}},"PageMetadata":{"type":"object","properties":{"size":{"type":"integer","format":"int64"},"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int64"},"number":{"type":"integer","format":"int64"}}},"PagedModelTimeSeriesValueMappingRepresesentation":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/TimeSeriesValueMappingRepresesentation"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedModelTimeSeriesDefinitionRepresentation":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/TimeSeriesDefinitionRepresentation"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"BasicSearchRequest":{"required":["query"],"type":"object","properties":{"query":{"maxLength":2147483647,"minLength":3,"type":"string"},"datasources":{"type":"array","items":{"type":"string","format":"uuid"}}}},"CollectionModelTimeSeriesDefinitionRepresentation":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/TimeSeriesDefinitionRepresentation"}}}},"AdvancedSearchRequest":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"datasources":{"type":"array","items":{"type":"string","format":"uuid"}}}},"NotImportedTimeSeries":{"type":"object","properties":{"tagName":{"type":"string"},"reason":{"type":"string"},"details":{"type":"object","additionalProperties":{"type":"string"}}}},"ConnectionStatus":{"type":"object","properties":{"healthy":{"type":"boolean"}}},"ComponentModel":{"type":"object","properties":{"identifier":{"type":"string"},"type":{"type":"string"}}},"ErrorModel":{"type":"object","properties":{"type":{"type":"string"},"key":{"type":"string"},"message":{"type":"string"}}},"EventModel":{"type":"object","properties":{"identifier":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"type":{"$ref":"#/components/schemas/EventTypeModel"},"state":{"type":"string"},"occurredAt":{"type":"string","format":"date-time"},"modifiedAt":{"type":"string","format":"date-time"},"components":{"type":"array","items":{"$ref":"#/components/schemas/ComponentModel"}},"fields":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string"}}},"keywords":{"type":"array","items":{"type":"string"}},"errors":{"type":"array","items":{"$ref":"#/components/schemas/ErrorModel"}},"groupingKey":{"type":"string"}}},"EventTypeModel":{"type":"object","properties":{"identifier":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"},"startState":{"type":"string"},"endState":{"type":"string"},"states":{"type":"array","items":{"type":"string"}},"fields":{"type":"array","items":{"$ref":"#/components/schemas/IdentifierModel"}},"write":{"type":"boolean"}}},"IdentifierModel":{"type":"object","properties":{"identifier":{"type":"string"}}},"Component":{"type":"object","properties":{"identifier":{"type":"string"},"type":{"type":"string","enum":["TAG","ATTRIBUTE","ASSET"]}}},"Error":{"type":"object","properties":{"type":{"type":"string"},"key":{"type":"string"},"message":{"type":"string"}}},"EventRepresentation":{"type":"object","properties":{"identifier":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"type":{"$ref":"#/components/schemas/EventType"},"state":{"type":"string"},"occurredAt":{"type":"string","format":"date-time"},"modifiedAt":{"type":"string","format":"date-time"},"components":{"type":"array","items":{"$ref":"#/components/schemas/Component"}},"fields":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string"}}},"keywords":{"type":"array","items":{"type":"string"}},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"}},"groupingKey":{"type":"string"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"EventType":{"type":"object","properties":{"identifier":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"},"startState":{"type":"string"},"endState":{"type":"string"},"states":{"type":"array","items":{"type":"string"}},"fields":{"type":"array","items":{"$ref":"#/components/schemas/Identifier"}}}},"Identifier":{"type":"object","properties":{"identifier":{"type":"string"}}},"ContextItemRepresentation":{"type":"object","properties":{"identifier":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"type":{"$ref":"#/components/schemas/ContextTypeItemModel"},"events":{"type":"array","items":{"$ref":"#/components/schemas/EventModel"}},"components":{"type":"array","items":{"$ref":"#/components/schemas/ComponentModel"}},"fields":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string"}}},"keywords":{"type":"array","items":{"type":"string"}},"lastModifiedDate":{"type":"string"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/ErrorModel"}},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"ContextTypeItemModel":{"type":"object","properties":{"identifier":{"type":"string"},"name":{"type":"string"},"workflowIdentifier":{"type":"string"}}},"Asset":{"type":"object","properties":{"identifier":{"type":"string"},"parentIdentifier":{"type":"string"},"type":{"type":"string"},"template":{"$ref":"#/components/schemas/Template"},"data":{"$ref":"#/components/schemas/Data"},"name":{"type":"string"},"description":{"type":"string"}}},"AssetRepresentation":{"type":"object","properties":{"identifier":{"type":"string"},"parentIdentifier":{"type":"string"},"type":{"type":"string"},"children":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}},"template":{"$ref":"#/components/schemas/Template"},"data":{"oneOf":[{"$ref":"#/components/schemas/DataReferenceData"},{"$ref":"#/components/schemas/NumericData"},{"$ref":"#/components/schemas/StringArrayData"},{"$ref":"#/components/schemas/StringData"}]},"name":{"type":"string"},"description":{"type":"string"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"Data":{"type":"object","properties":{"type":{"type":"string","enum":["DATA_REFERENCE","STRING_ARRAY","NUMERIC","STRING"]},"value":{"type":"object"}},"discriminator":{"propertyName":"type","mapping":{"STRING":"#/components/schemas/StringData","NUMERIC":"#/components/schemas/NumericData","STRING_ARRAY":"#/components/schemas/StringArrayData","DATA_REFERENCE":"#/components/schemas/DataReferenceData"}}},"DataReferenceData":{"type":"object","allOf":[{"$ref":"#/components/schemas/Data"},{"type":"object","properties":{"value":{"type":"string"}}}]},"NumericData":{"type":"object","allOf":[{"$ref":"#/components/schemas/Data"},{"type":"object","properties":{"value":{"type":"number"}}}]},"StringArrayData":{"type":"object","allOf":[{"$ref":"#/components/schemas/Data"},{"type":"object","properties":{"value":{"type":"array","items":{"type":"string"}}}}]},"StringData":{"type":"object","allOf":[{"$ref":"#/components/schemas/Data"},{"type":"object","properties":{"value":{"type":"string"}}}]},"Template":{"type":"object","properties":{"identifier":{"type":"string"},"name":{"type":"string"}}},"ConnectionTest":{"type":"object","properties":{"networkLatency":{"type":"integer","format":"int64"},"connectionSpeed":{"type":"integer","format":"int64"},"retriesCount":{"type":"integer","format":"int64"}}},"Dependency":{"type":"object","properties":{"identifier":{"type":"string","format":"uuid"},"externalIdentifier":{"type":"string"},"datasourceIdentifier":{"type":"string","format":"uuid"},"datasourceType":{"type":"string"},"dependents":{"type":"array","items":{"$ref":"#/components/schemas/Dependency"}},"dependencies":{"type":"array","items":{"$ref":"#/components/schemas/Dependency"}}}},"TimeSeriesDependencyTreeDefinitionRepresentation":{"type":"object","properties":{"dependents":{"type":"array","items":{"$ref":"#/components/schemas/Dependency"}},"dependencies":{"type":"array","items":{"$ref":"#/components/schemas/Dependency"}},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"PagedModelTimeSeriesRelationRepresentation":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/TimeSeriesRelationRepresentation"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"TimeSeriesRelationRepresentation":{"type":"object","properties":{"timeSeriesId":{"type":"string","format":"uuid"},"timeSeriesExternalId":{"type":"string"},"timeSeriesDatasourceId":{"type":"string","format":"uuid"},"relationTimeSeriesId":{"type":"string","format":"uuid"},"relationTimeSeriesExternalId":{"type":"string"},"relationTimeSeriesDatasourceId":{"type":"string","format":"uuid"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"IndexHorizonRepresentation":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"horizon":{"type":"string","format":"date-time"}}},"BoolCapabilityProperty":{"type":"object","allOf":[{"$ref":"#/components/schemas/CapabilityProperty"}]},"BoolGroupCapabilityProperty":{"type":"object","allOf":[{"$ref":"#/components/schemas/CapabilityProperty"},{"type":"object","properties":{"groupType":{"type":"string"}}}]},"CapabilityProperty":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["SINGLE_LINE","MULTI_LINE","BOOL","DROPDOWN","BOOL_GROUP"]},"capabilities":{"type":"array","items":{"type":"string","enum":["TIME_SERIES","ASSET","EVENT","EVENT_WRITE","CONTEXT"]}},"required":{"type":"boolean"}},"discriminator":{"propertyName":"type"}},"DropDownCapabilityProperty":{"type":"object","allOf":[{"$ref":"#/components/schemas/CapabilityProperty"},{"type":"object","properties":{"options":{"type":"array","items":{"$ref":"#/components/schemas/DropDownOption"}}}}]},"DropDownOption":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"MultiLineCapabilityProperty":{"type":"object","allOf":[{"$ref":"#/components/schemas/CapabilityProperty"},{"type":"object","properties":{"placeholder":{"type":"string"}}}]},"ProviderMetaDataRepresentation":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"experimental":{"type":"boolean"},"connectors":{"type":"array","items":{"type":"string"}},"capabilities":{"uniqueItems":true,"type":"array","items":{"type":"string","enum":["TIME_SERIES","ASSET","EVENT","EVENT_WRITE","CONTEXT"]}},"properties":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/BoolCapabilityProperty"},{"$ref":"#/components/schemas/BoolGroupCapabilityProperty"},{"$ref":"#/components/schemas/DropDownCapabilityProperty"},{"$ref":"#/components/schemas/MultiLineCapabilityProperty"},{"$ref":"#/components/schemas/SingleLineCapabilityProperty"}]}},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"SingleLineCapabilityProperty":{"type":"object","allOf":[{"$ref":"#/components/schemas/CapabilityProperty"},{"type":"object","properties":{"placeholder":{"type":"string"},"encrypted":{"type":"boolean"}}}]},"CapabilitiesModel":{"type":"object","properties":{"canChangeInterpolationType":{"type":"boolean"}}},"HistorianDetailsModel":{"type":"object","properties":{"dbId":{"type":"string"},"name":{"type":"string"},"server":{"type":"string"}}},"LegacyStateModel":{"type":"object","properties":{"Name":{"type":"string"},"Code":{"type":"integer","format":"int32"},"Offset":{"type":"integer","format":"int32"}}},"LegacyTagDetailsModel":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"interpolationType":{"type":"string"},"units":{"type":"string"},"source":{"type":"string"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"deleted":{"type":"boolean"},"capabilities":{"$ref":"#/components/schemas/CapabilitiesModel"},"historian":{"$ref":"#/components/schemas/HistorianDetailsModel"},"Type":{"type":"string"},"States":{"type":"array","items":{"$ref":"#/components/schemas/LegacyStateModel"}},"type":{"type":"string"},"Name":{"type":"string"},"TagName":{"type":"string"}}},"LegacyAccessibilityModel":{"type":"object","properties":{"accessibility":{"type":"string","enum":["accessible","denied","deleted","undefined"]}}},"ImportedTimeSeriesRepresentation":{"type":"object","properties":{"identifier":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string"},"unitOfMeasurement":{"type":"string"},"timeSeriesType":{"type":"string","enum":["ANALOG","DIGITAL","DISCRETE","STRING"]},"createOn":{"type":"string","format":"date-time"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"PagedModelImportedTimeSeriesRepresentation":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/ImportedTimeSeriesRepresentation"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedModelDatasourceRepresentation":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/DatasourceRepresentation"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"MetricRepresentation":{"type":"object","properties":{"datasourceId":{"type":"string","format":"uuid"},"datasourceIndex95pInMillis":{"type":"integer","format":"int64"},"datasourceIndex50pInMillis":{"type":"integer","format":"int64"},"datasourcePlot95pInMillis":{"type":"integer","format":"int64"},"datasourcePlot50pInMillis":{"type":"integer","format":"int64"},"datasourceSync95pInMillis":{"type":"integer","format":"int64"},"datasourceSync50pInMillis":{"type":"integer","format":"int64"},"connectorId":{"type":"string","format":"uuid"},"connectorIndex95pInMillis":{"type":"integer","format":"int64"},"connectorIndex50pInMillis":{"type":"integer","format":"int64"},"connectorPlot95pInMillis":{"type":"integer","format":"int64"},"connectorPlot50pInMillis":{"type":"integer","format":"int64"},"connectorSync50pInMillis":{"type":"integer","format":"int64"},"connectorSync95pInMillis":{"type":"integer","format":"int64"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"CursorPageMetadata":{"type":"object","properties":{"size":{"type":"integer","format":"int64"},"hasNext":{"type":"boolean"},"continuationToken":{"type":"string"}}},"CursorPagedModelEventTypeRepresentation":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/EventTypeRepresentation"}},"page":{"$ref":"#/components/schemas/CursorPageMetadata"}}},"EventTypeRepresentation":{"type":"object","properties":{"identifier":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"},"startState":{"type":"string"},"endState":{"type":"string"},"states":{"type":"array","items":{"type":"string"}},"fields":{"type":"array","items":{"$ref":"#/components/schemas/Identifier"}},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"CursorPagedModelEventRepresentation":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/EventRepresentation"}},"page":{"$ref":"#/components/schemas/CursorPageMetadata"}}},"CursorPagedModelEventFieldRepresentation":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/EventFieldRepresentation"}},"page":{"$ref":"#/components/schemas/CursorPageMetadata"}}},"EventFieldRepresentation":{"type":"object","properties":{"identifier":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["STRING","NUMERIC","ENUMERATION"]},"placeholder":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"PagedModelContextItemRepresentation":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/ContextItemRepresentation"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedModelWorkflowRepresentation":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowRepresentation"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"WorkflowRepresentation":{"type":"object","properties":{"identifier":{"type":"string"},"name":{"type":"string"},"startState":{"type":"string"},"endState":{"type":"string"},"states":{"type":"array","items":{"type":"string"}},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"ContextTypeRepresentation":{"type":"object","properties":{"identifier":{"type":"string"},"name":{"type":"string"},"workflow":{"$ref":"#/components/schemas/IdentifierModel"},"color":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/IdentifierModel"}},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"PagedModelContextTypeRepresentation":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/ContextTypeRepresentation"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"FieldRepresentation":{"type":"object","properties":{"identifier":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"placeholder":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"PagedModelFieldRepresentation":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/FieldRepresentation"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"ContextChange":{"type":"object","properties":{"changedItem":{"$ref":"#/components/schemas/ContextItem"},"changeType":{"type":"string","enum":["ADD","MODIFY","DELETE"]}}},"ContextItem":{"type":"object","properties":{"identifier":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"type":{"$ref":"#/components/schemas/ContextTypeItem"},"events":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"components":{"type":"array","items":{"$ref":"#/components/schemas/Component"}},"fields":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string"}}},"keywords":{"type":"array","items":{"type":"string"}},"lastModifiedDate":{"type":"string"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"}}}},"ContextTypeItem":{"type":"object","properties":{"identifier":{"type":"string"},"name":{"type":"string"},"workflowIdentifier":{"type":"string"}}},"CursorPagedResourcesContextChange":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/ContextChange"}},"nextPage":{"type":"string"}}},"Event":{"type":"object","properties":{"identifier":{"type":"string"},"occurred":{"type":"string"},"state":{"type":"string"}}},"PagedModelConnectorRepresentation":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/ConnectorRepresentation"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"VersionInfo":{"type":"object","properties":{"version":{"type":"string"}}},"PagedModelConfigurationItemRepresentation":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/ConfigurationItemRepresentation"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}}},"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"}}}}