Class XperiflowRoutinesClient
Namespace: Workspace.XBR.Xperiflow.Core.RestApi.Routines
Assembly: Xperiflow.dll
public class XperiflowRoutinesClient : IXperiflowRoutinesClient
Implements: Workspace.XBR.Xperiflow.Core.RestApi.Routines.IXperiflowRoutinesClient
Properties
JsonSerializerSettings
protected JsonSerializerSettings JsonSerializerSettings { get; }
ReadResponseAsString
public bool ReadResponseAsString { get; set; }
Methods
GetRoutinesResourceAsync(XperiflowSessionInfo, bool?, IEnumerable<string>?, string?, int?, int?, string?, MemoizedCacheInfo?, CancellationToken)
RoutinesResource
public virtual Task<GetRoutinesResourceResponseContext> GetRoutinesResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, bool? only_latest_version = null, IEnumerable<string>? fields = null, string? filter = null, int? page = null, int? records_per_page = null, string? order_bys = null, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks
Returns a list of Routines
Returns
Task< Workspace.XBR.Xperiflow.Core.RestApi.Routines.GetRoutinesResourceResponseContext >
ok
Parameters
| Type | Name | Description |
|---|---|---|
| Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfo | x_OS_SessionInfo | OneStream session info header object. |
System.Nullable<System.Boolean> | only_latest_version | Whether to include only the latest versions of the routines. |
System.Collections.Generic.IEnumerable<System.String> | fields | A json list of column names to return in the request. |
System.String | filter | A json dictionary of a filter statement. |
System.Nullable<System.Int32> | page | The page to return if using pagination. |
System.Nullable<System.Int32> | records_per_page | The amount of records per page to return if using pagination. |
System.String | order_bys | A json dictionary containing an order by statement. |
| Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfo | cacheInfo | |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Exceptions
Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.
GetRoutineConcurrentMemoryStatisticsResourceAsync(XperiflowSessionInfo, MemoizedCacheInfo?, CancellationToken)
RoutineConcurrentMemoryStatisticsResource
public virtual Task<GetRoutineConcurrentMemoryStatisticsResourceContext> GetRoutineConcurrentMemoryStatisticsResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks
Returns concurrent memory statistics for routines
Returns
Task< Workspace.XBR.Xperiflow.Core.RestApi.Routines.GetRoutineConcurrentMemoryStatisticsResourceContext >
ok
Parameters
| Type | Name | Description |
|---|---|---|
| Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfo | x_OS_SessionInfo | OneStream session info header object. |
| Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfo | cacheInfo | |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Exceptions
Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.
GetTimeSeriesCleaningMethodOptionsResourceAsync(XperiflowSessionInfo, MemoizedCacheInfo?, CancellationToken)
TimeSeriesCleaningMethodOptionsResource
public virtual Task<GetTimeSeriesCleaningMethodOptionsResourceContext> GetTimeSeriesCleaningMethodOptionsResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks
Returns a list of acceptable options for the CleaningMethod column of cleaning manifest table in the TimeSeriesCleaningRoutine
Returns
Task< Workspace.XBR.Xperiflow.Core.RestApi.Routines.GetTimeSeriesCleaningMethodOptionsResourceContext >
ok
Parameters
| Type | Name | Description |
|---|---|---|
| Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfo | x_OS_SessionInfo | OneStream session info header object. |
| Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfo | cacheInfo | |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Exceptions
Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.
GetRoutineMemoryBoundsResourceAsync(XperiflowSessionInfo, MemoizedCacheInfo?, CancellationToken)
RoutineMemoryBoundsResource
public virtual Task<GetRoutineMemoryBoundsResourceResponseContext> GetRoutineMemoryBoundsResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks
Returns memory bounds
Returns
Task< Workspace.XBR.Xperiflow.Core.RestApi.Routines.GetRoutineMemoryBoundsResourceResponseContext >
ok
Parameters
| Type | Name | Description |
|---|---|---|
| Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfo | x_OS_SessionInfo | OneStream session info header object. |
| Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfo | cacheInfo | |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Exceptions
Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.
GetRoutineTypesUpdatedMemoryDefaultsResourceAsync(XperiflowSessionInfo, IEnumerable<string>?, string?, int?, int?, string?, MemoizedCacheInfo?, CancellationToken)
RoutineTypesUpdatedMemoryDefaultsResource
public virtual Task<GetRoutineTypesUpdatedMemoryDefaultsResourceResponseContext> GetRoutineTypesUpdatedMemoryDefaultsResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, IEnumerable<string>? fields = null, string? filter = null, int? page = null, int? records_per_page = null, string? order_bys = null, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks
Returns a datatable of Routine Types updated defaults relation
Returns
ok
Parameters
| Type | Name | Description |
|---|---|---|
| Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfo | x_OS_SessionInfo | OneStream session info header object. |
System.Collections.Generic.IEnumerable<System.String> | fields | A json list of column names to return in the request. |
System.String | filter | A json dictionary of a filter statement. |
System.Nullable<System.Int32> | page | The page to return if using pagination. |
System.Nullable<System.Int32> | records_per_page | The amount of records per page to return if using pagination. |
System.String | order_bys | A json dictionary containing an order by statement. |
| Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfo | cacheInfo | |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Exceptions
Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.
PostRoutineTypesUpdatedMemoryDefaultsResourceAsync(XperiflowSessionInfo, RoutineUpdatedMemoryDefaultsRelationBodyContextDto, MemoizedCacheInfo?, CancellationToken)
RoutineTypesUpdatedMemoryDefaultsResource
public virtual Task<NullDataXperiflowResponseContext> PostRoutineTypesUpdatedMemoryDefaultsResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, RoutineUpdatedMemoryDefaultsRelationBodyContextDto body, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks
Creates a routine type updated default relation in the table.
Returns
Task< Workspace.XBR.Xperiflow.Core.RestApi.Routines.NullDataXperiflowResponseContext >
created
Parameters
| Type | Name | Description |
|---|---|---|
| Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfo | x_OS_SessionInfo | OneStream session info header object. |
| Workspace.XBR.Xperiflow.Core.RestApi.Routines.RoutineUpdatedMemoryDefaultsRelationBodyContextDto | body | |
| Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfo | cacheInfo | |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Exceptions
Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.
GetRoutineTypeUpdatedMemoryDefaultsResourceAsync(XperiflowSessionInfo, string, MemoizedCacheInfo?, CancellationToken)
RoutineTypeUpdatedMemoryDefaultsResource
public virtual Task<GetRoutineTypeUpdatedMemoryBlobContextDto> GetRoutineTypeUpdatedMemoryDefaultsResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, string routine_type, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks
Retrieves an updated memory default for a routine type
Returns
Task< Workspace.XBR.Xperiflow.Core.RestApi.Routines.GetRoutineTypeUpdatedMemoryBlobContextDto >
ok
Parameters
| Type | Name | Description |
|---|---|---|
| Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfo | x_OS_SessionInfo | OneStream session info header object. |
System.String | routine_type | the type of routine. |
| Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfo | cacheInfo | |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Exceptions
Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.
PutRoutineTypeUpdatedMemoryDefaultsResourceAsync(XperiflowSessionInfo, RoutineTypeUpdatedMemoryBlobContextDto, string, MemoizedCacheInfo?, CancellationToken)
RoutineTypeUpdatedMemoryDefaultsResource
public virtual Task<NullDataXperiflowResponseContext> PutRoutineTypeUpdatedMemoryDefaultsResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, RoutineTypeUpdatedMemoryBlobContextDto body, string routine_type, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks
Update method memory defaults for a specified routine type.
Returns
Task< Workspace.XBR.Xperiflow.Core.RestApi.Routines.NullDataXperiflowResponseContext >
ok
Parameters
| Type | Name | Description |
|---|---|---|
| Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfo | x_OS_SessionInfo | OneStream session info header object. |
| Workspace.XBR.Xperiflow.Core.RestApi.Routines.RoutineTypeUpdatedMemoryBlobContextDto | body | |
System.String | routine_type | the type of routine. |
| Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfo | cacheInfo | |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Exceptions
Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.
DeleteRoutineTypeUpdatedMemoryDefaultsResourceAsync(XperiflowSessionInfo, string, MemoizedCacheInfo?, CancellationToken)
RoutineTypeUpdatedMemoryDefaultsResource
public virtual Task<NullDataXperiflowResponseContext> DeleteRoutineTypeUpdatedMemoryDefaultsResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, string routine_type, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks
Delete a routine instance in the database.
Returns
Task< Workspace.XBR.Xperiflow.Core.RestApi.Routines.NullDataXperiflowResponseContext >
ok