Feature store objects
Objects and models for feature sets. See supported Feature store APIs.
vianops_client.models.featurestore.features
- pydantic model V1ColumnMetadata
Bases:
BaseModel
Show JSON schema
{ "title": "V1ColumnMetadata", "type": "object", "properties": { "name": { "description": "Column name.", "title": "Name", "type": "string" }, "dtype": { "description": "Pandas data type of column as a string instance.", "title": "Dtype", "type": "string" }, "sql_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "SQL data type of column as a string instance.", "title": "Sql Type" } }, "required": [ "name", "dtype" ] }
- field dtype: str [Required]
Pandas data type of column as a string instance.
- field name: str [Required]
Column name.
- field sql_type: str | None = None
SQL data type of column as a string instance.
- pydantic model V1CreateRefactoredPipeline
Bases:
BaseModel
Show JSON schema
{ "title": "V1CreateRefactoredPipeline", "type": "object", "properties": { "artifact_uri": { "description": "Artifact uri.", "title": "Artifact Uri", "type": "string" }, "name": { "description": "Name.", "title": "Name", "type": "string" }, "new_pipeline_name": { "description": "New pipeline name.", "title": "New Pipeline Name", "type": "string" }, "pipeline_description": { "description": "Pipeline description.", "title": "Pipeline Description", "type": "string" }, "pipeline_id": { "description": "Pipeline id.", "title": "Pipeline Id", "type": "integer" }, "pipeline_name": { "description": "Pipeline name.", "title": "Pipeline Name", "type": "string" }, "preprocess": { "description": "Dictionary of preprocesses included in pipeline.", "title": "Preprocess", "type": "object" }, "run_id": { "description": "Run id.", "title": "Run Id", "type": "string" }, "Sources": { "description": "Sources.", "title": "Sources", "type": "string" }, "targetcolumn": { "description": "Target column.", "title": "Targetcolumn", "type": "string" }, "targetset": { "description": "Target set.", "title": "Targetset", "type": "string" }, "user": { "description": "Name of user.", "title": "User", "type": "string" } }, "required": [ "artifact_uri", "name", "new_pipeline_name", "pipeline_description", "pipeline_id", "pipeline_name", "preprocess", "run_id", "Sources", "targetcolumn", "targetset", "user" ] }
- Fields:
- field Sources: str [Required]
Sources.
- field artifact_uri: str [Required]
Artifact uri.
- field name: str [Required]
Name.
- field new_pipeline_name: str [Required]
New pipeline name.
- field pipeline_description: str [Required]
Pipeline description.
- field pipeline_id: int [Required]
Pipeline id.
- field pipeline_name: str [Required]
Pipeline name.
- field preprocess: dict [Required]
Dictionary of preprocesses included in pipeline.
- field run_id: str [Required]
Run id.
- field targetcolumn: str [Required]
Target column.
- field targetset: str [Required]
Target set.
- field user: str [Required]
Name of user.
- pydantic model V1FeatureMetadata
Bases:
BaseModel
Show JSON schema
{ "title": "V1FeatureMetadata", "type": "object", "properties": { "setname": { "description": "Feature set name.", "title": "Setname", "type": "string" }, "count": { "description": "Featureset record count.", "title": "Count", "type": "integer" }, "columns": { "description": "List of featureset columns.", "items": { "$ref": "#/$defs/V1ColumnMetadata" }, "title": "Columns", "type": "array" }, "is_customquery": { "default": false, "description": "If `true` custom query must be executed to select subset of the entire feature set; otherwise, `false` (the default value).", "title": "Is Customquery", "type": "boolean" }, "created_date": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "description": "Featureset creation date.", "title": "Created Date" } }, "$defs": { "V1ColumnMetadata": { "properties": { "name": { "description": "Column name.", "title": "Name", "type": "string" }, "dtype": { "description": "Pandas data type of column as a string instance.", "title": "Dtype", "type": "string" }, "sql_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "SQL data type of column as a string instance.", "title": "Sql Type" } }, "required": [ "name", "dtype" ], "title": "V1ColumnMetadata", "type": "object" } }, "required": [ "setname", "count", "columns" ] }
- Fields:
- field columns: List[V1ColumnMetadata] [Required]
List of featureset columns.
- field count: int [Required]
Featureset record count.
- field created_date: float | None = None
Featureset creation date.
- field is_customquery: bool = False
If true custom query must be executed to select subset of the entire feature set; otherwise, false (the default value).
- field setname: str [Required]
Feature set name.
- pydantic model V1FeatureSourceFilters
Bases:
V1Filters
Show JSON schema
{ "title": "V1FeatureSourceFilters", "type": "object", "properties": { "created_by": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of 'created by' users to search for.", "title": "Created By" }, "modified_by": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of 'modified by' users to search for.", "title": "Modified By" }, "created_ts_start": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds for searching for all objects created during a specified time period.", "title": "Created Ts Start" }, "created_ts_end": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds for searching for all objects created during a specified time period.", "title": "Created Ts End" }, "modified_ts_start": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds for searching for all objects modified during a specified time period.", "title": "Modified Ts Start" }, "modified_ts_end": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds for searching for all objects modified during a specified time period.", "title": "Modified Ts End" }, "uuid": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of uuids for this operation.", "title": "Uuid" }, "name": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of names for this operation.", "title": "Name" }, "status": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of statuses for this operation.", "title": "Status" }, "tablenames": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of tablenames for this operation.", "title": "Tablenames" }, "setnames": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of setnames for this operation.", "title": "Setnames" }, "indices": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of indices for this operation", "title": "Indices" } } }
- Config:
populate_by_name: bool = True
alias_generator: function = <function V1FeatureSourceFilters.<lambda> at 0x7f98c4f20ae0>
- Fields:
- field index: List[int] | None = None (alias 'indices')
List of indices for this operation
- field setname: List[str] | None = None (alias 'setnames')
List of setnames for this operation.
- field tablename: List[str] | None = None (alias 'tablenames')
List of tablenames for this operation.
- pydantic model V1FeatureSourceModelPage
Bases:
V1PageModel
Show JSON schema
{ "title": "V1FeatureSourceModelPage", "type": "object", "properties": { "items": { "default": [], "description": "Feature sources returned by search in page.", "items": { "$ref": "#/$defs/V1SaveFeatureSource" }, "title": "Items", "type": "array" }, "current_page": { "default": 0, "description": "Current page of items.", "title": "Current Page", "type": "integer" }, "page_size": { "default": 0, "description": "Number of items on a page.", "title": "Page Size", "type": "integer" }, "previous_page": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "description": "Number of the previous page.", "title": "Previous Page" }, "next_page": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "description": "Number of the next page.", "title": "Next Page" }, "has_previous": { "default": false, "description": "Whether or not there is a previous page.", "title": "Has Previous", "type": "boolean" }, "previous_items": { "default": 0, "title": "Previous Items", "type": "integer" }, "has_next": { "default": false, "description": "Whether or not there is a next page.", "title": "Has Next", "type": "boolean" }, "total": { "default": 0, "description": "Total number of items returned by search over all pages.", "title": "Total", "type": "integer" }, "pages": { "default": 0, "description": "Total number of pages returned by search.", "title": "Pages", "type": "integer" } }, "$defs": { "V1SaveFeatureSource": { "properties": { "index": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "description": "Feature Source Index", "title": "Index" }, "tablename": { "description": "Table name.", "title": "Tablename", "type": "string" }, "setname": { "description": "Feature set name.", "title": "Setname", "type": "string" }, "connection": { "description": "Database connection.", "title": "Connection", "type": "string" }, "setdescription": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Feature set description.", "title": "Setdescription" }, "createddate": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds generated at creation time.", "title": "Createddate" }, "createdby": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "User that created the model.", "title": "Createdby" }, "customquery": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Custom query.", "title": "Customquery" }, "maintain_archives": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": false, "description": "If `true` creates an archive table of a snapshot of the data before it is overwritten or appended; otherwise, `false` (the default value).", "title": "Maintain Archives" }, "query_metadata": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "default": {}, "description": "JSON that breaks down a query into parts consumable downstream by drifter to use as reference for baseline for different computations.", "title": "Query Metadata" }, "status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": "active", "description": "status of featuresource record", "title": "Status" }, "modified_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "user whi modified last", "title": "Modified By" }, "created_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "user who created the record", "title": "Created By" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "description of feature source", "title": "Description" }, "created_ts": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds generated at creation time.", "title": "Created Ts" }, "modified_ts": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds generated at modification time.", "title": "Modified Ts" } }, "required": [ "tablename", "setname", "connection" ], "title": "V1SaveFeatureSource", "type": "object" } } }
- field items: List[V1SaveFeatureSource] = []
Feature sources returned by search in page.
- pydantic model V1FeatureSourceSearch
Bases:
V1PageSearch
Show JSON schema
{ "title": "V1FeatureSourceSearch", "type": "object", "properties": { "page": { "default": 1, "description": "Page number to return. Zero-index based. Cannot be less than zero or greater than number of pages. To make sure you don't exceed the number of pages, set `page` to 1 and run this search operation to return the total number items (`total`). Then run it again to return the exact page (`page`) for the specified number of items per page (`page-size`).", "title": "Page", "type": "integer" }, "page_size": { "default": 25, "description": "Number of items to return on a page. Default is 25 items per page.", "title": "Page Size", "type": "integer" }, "order": { "anyOf": [ { "items": { "$ref": "#/$defs/V1OrderBy" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "Fields to use for ordering returned pages and the sort direction.", "title": "Order" }, "search": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "String to search for (case-insensitive) across all fields in previously created items.", "title": "Search" }, "filters": { "anyOf": [ { "$ref": "#/$defs/V1FeatureSourceFilters" }, { "type": "null" } ], "description": "Specifies different condition(s) for filtering the results. If not provided, all relevant results are retrieved." } }, "$defs": { "V1FeatureSourceFilters": { "properties": { "created_by": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of 'created by' users to search for.", "title": "Created By" }, "modified_by": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of 'modified by' users to search for.", "title": "Modified By" }, "created_ts_start": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds for searching for all objects created during a specified time period.", "title": "Created Ts Start" }, "created_ts_end": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds for searching for all objects created during a specified time period.", "title": "Created Ts End" }, "modified_ts_start": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds for searching for all objects modified during a specified time period.", "title": "Modified Ts Start" }, "modified_ts_end": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds for searching for all objects modified during a specified time period.", "title": "Modified Ts End" }, "uuid": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of uuids for this operation.", "title": "Uuid" }, "name": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of names for this operation.", "title": "Name" }, "status": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of statuses for this operation.", "title": "Status" }, "tablenames": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of tablenames for this operation.", "title": "Tablenames" }, "setnames": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of setnames for this operation.", "title": "Setnames" }, "indices": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of indices for this operation", "title": "Indices" } }, "title": "V1FeatureSourceFilters", "type": "object" }, "V1OrderBy": { "properties": { "field": { "description": "Field to order by.", "title": "Field", "type": "string" }, "direction": { "default": "ASC", "description": "Direction to order the field by. Supported values: `ASC` (ascending) and `DESC` (descending) (case-insensitive).", "enum": [ "ASC", "DESC" ], "title": "Direction", "type": "string" } }, "required": [ "field" ], "title": "V1OrderBy", "type": "object" } } }
- field filters: V1FeatureSourceFilters | None = <class 'vianops_client.models.featurestore.features.V1FeatureSourceFilters'>
Specifies different condition(s) for filtering the results. If not provided, all relevant results are retrieved.
- pydantic model V1FeatureSourcesList
Bases:
RootModel
Show JSON schema
{ "title": "V1FeatureSourcesList", "type": "array", "$defs": { "V1SaveFeatureSource": { "properties": { "index": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "description": "Feature Source Index", "title": "Index" }, "tablename": { "description": "Table name.", "title": "Tablename", "type": "string" }, "setname": { "description": "Feature set name.", "title": "Setname", "type": "string" }, "connection": { "description": "Database connection.", "title": "Connection", "type": "string" }, "setdescription": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Feature set description.", "title": "Setdescription" }, "createddate": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds generated at creation time.", "title": "Createddate" }, "createdby": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "User that created the model.", "title": "Createdby" }, "customquery": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Custom query.", "title": "Customquery" }, "maintain_archives": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": false, "description": "If `true` creates an archive table of a snapshot of the data before it is overwritten or appended; otherwise, `false` (the default value).", "title": "Maintain Archives" }, "query_metadata": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "default": {}, "description": "JSON that breaks down a query into parts consumable downstream by drifter to use as reference for baseline for different computations.", "title": "Query Metadata" }, "status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": "active", "description": "status of featuresource record", "title": "Status" }, "modified_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "user whi modified last", "title": "Modified By" }, "created_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "user who created the record", "title": "Created By" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "description of feature source", "title": "Description" }, "created_ts": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds generated at creation time.", "title": "Created Ts" }, "modified_ts": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds generated at modification time.", "title": "Modified Ts" } }, "required": [ "tablename", "setname", "connection" ], "title": "V1SaveFeatureSource", "type": "object" } }, "items": { "$ref": "#/$defs/V1SaveFeatureSource" } }
- field root: List[V1SaveFeatureSource] [Required]
- pydantic model V1FeatureSourcesUpdates
Bases:
V1SaveFeatureSource
Show JSON schema
{ "title": "V1FeatureSourcesUpdates", "type": "object", "properties": { "index": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "description": "Feature Source Index", "title": "Index" }, "tablename": { "description": "Table name.", "title": "Tablename", "type": "string" }, "setname": { "description": "Feature set name.", "title": "Setname", "type": "string" }, "connection": { "description": "Database connection.", "title": "Connection", "type": "string" }, "setdescription": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Feature set description.", "title": "Setdescription" }, "createddate": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds generated at creation time.", "title": "Createddate" }, "createdby": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "User that created the model.", "title": "Createdby" }, "customquery": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Custom query.", "title": "Customquery" }, "maintain_archives": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": false, "description": "If `true` creates an archive table of a snapshot of the data before it is overwritten or appended; otherwise, `false` (the default value).", "title": "Maintain Archives" }, "query_metadata": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "default": {}, "description": "JSON that breaks down a query into parts consumable downstream by drifter to use as reference for baseline for different computations.", "title": "Query Metadata" }, "status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": "active", "description": "status of featuresource record", "title": "Status" }, "modified_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "user whi modified last", "title": "Modified By" }, "created_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "user who created the record", "title": "Created By" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "description of feature source", "title": "Description" }, "created_ts": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds generated at creation time.", "title": "Created Ts" }, "modified_ts": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds generated at modification time.", "title": "Modified Ts" }, "filters": { "anyOf": [ { "$ref": "#/$defs/V1FeatureSourceFilters" }, { "type": "null" } ], "description": "Specifies different condition(s) for filtering the results. If not provided, all relevant results are retrieved." } }, "$defs": { "V1FeatureSourceFilters": { "properties": { "created_by": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of 'created by' users to search for.", "title": "Created By" }, "modified_by": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of 'modified by' users to search for.", "title": "Modified By" }, "created_ts_start": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds for searching for all objects created during a specified time period.", "title": "Created Ts Start" }, "created_ts_end": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds for searching for all objects created during a specified time period.", "title": "Created Ts End" }, "modified_ts_start": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds for searching for all objects modified during a specified time period.", "title": "Modified Ts Start" }, "modified_ts_end": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds for searching for all objects modified during a specified time period.", "title": "Modified Ts End" }, "uuid": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of uuids for this operation.", "title": "Uuid" }, "name": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of names for this operation.", "title": "Name" }, "status": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of statuses for this operation.", "title": "Status" }, "tablenames": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of tablenames for this operation.", "title": "Tablenames" }, "setnames": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of setnames for this operation.", "title": "Setnames" }, "indices": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of indices for this operation", "title": "Indices" } }, "title": "V1FeatureSourceFilters", "type": "object" } }, "required": [ "tablename", "setname", "connection" ] }
- Config:
from_attributes: bool = True
populate_by_name: bool = True
- Fields:
- field filters: V1FeatureSourceFilters | None = <class 'vianops_client.models.featurestore.features.V1FeatureSourceFilters'>
Specifies different condition(s) for filtering the results. If not provided, all relevant results are retrieved.
- pydantic model V1ImportFeatureSet
Bases:
BaseModel
Show JSON schema
{ "title": "V1ImportFeatureSet", "type": "object", "properties": { "tablename": { "description": "Table name.", "title": "Tablename", "type": "string" }, "setname": { "description": "Feature set name.", "title": "Setname", "type": "string" }, "separator": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": ",", "description": "Data separator.", "title": "Separator" }, "srcurl": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Source url fron where data is to be loaded.", "title": "Srcurl" }, "data": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Featureset data.", "title": "Data" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Feature set description.", "title": "Description" }, "overwrite": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": "replace", "description": "Determines how to manage data if already exists. Supported values: `replace` (overwrite existing data) and `append` (add new data to existing data).", "title": "Overwrite" }, "dtypes": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "A list of pandas data types as a string instance.", "title": "Dtypes" }, "upload_key": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Cache upload key.", "title": "Upload Key" }, "connectionname": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Connection name must match one of the connections already in data source connection list.", "title": "Connectionname" }, "query_metadata": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "default": null, "description": "JSON that breaks down a query into parts consumable downstream by drifter to use as reference for baseline for different computations.", "title": "Query Metadata" } }, "required": [ "tablename", "setname" ] }
- Fields:
- field connectionname: str | None = None
Connection name must match one of the connections already in data source connection list.
- field data: str | None = None
Featureset data.
- field description: str | None = None
Feature set description.
- field dtypes: str | None = None
A list of pandas data types as a string instance.
- field overwrite: str | None = 'replace'
Determines how to manage data if already exists. Supported values: replace (overwrite existing data) and append (add new data to existing data).
- field query_metadata: dict | None = None
JSON that breaks down a query into parts consumable downstream by drifter to use as reference for baseline for different computations.
- field separator: str | None = ','
Data separator.
- field setname: str [Required]
Feature set name.
- field srcurl: str | None = None
Source url fron where data is to be loaded.
- field tablename: str [Required]
Table name.
- field upload_key: str | None = None
Cache upload key.
- pydantic model V1SaveFeatureSource
Bases:
BaseModel
Show JSON schema
{ "title": "V1SaveFeatureSource", "type": "object", "properties": { "index": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "description": "Feature Source Index", "title": "Index" }, "tablename": { "description": "Table name.", "title": "Tablename", "type": "string" }, "setname": { "description": "Feature set name.", "title": "Setname", "type": "string" }, "connection": { "description": "Database connection.", "title": "Connection", "type": "string" }, "setdescription": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Feature set description.", "title": "Setdescription" }, "createddate": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds generated at creation time.", "title": "Createddate" }, "createdby": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "User that created the model.", "title": "Createdby" }, "customquery": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Custom query.", "title": "Customquery" }, "maintain_archives": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": false, "description": "If `true` creates an archive table of a snapshot of the data before it is overwritten or appended; otherwise, `false` (the default value).", "title": "Maintain Archives" }, "query_metadata": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "default": {}, "description": "JSON that breaks down a query into parts consumable downstream by drifter to use as reference for baseline for different computations.", "title": "Query Metadata" }, "status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": "active", "description": "status of featuresource record", "title": "Status" }, "modified_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "user whi modified last", "title": "Modified By" }, "created_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "user who created the record", "title": "Created By" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "description of feature source", "title": "Description" }, "created_ts": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds generated at creation time.", "title": "Created Ts" }, "modified_ts": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "default": null, "description": "Unix time in milliseconds generated at modification time.", "title": "Modified Ts" } }, "required": [ "tablename", "setname", "connection" ] }
- Config:
from_attributes: bool = True
populate_by_name: bool = True
- Fields:
- field connection: str [Required]
Database connection.
- field created_by: str | None = None
user who created the record
- field created_ts: datetime | None = None
Unix time in milliseconds generated at creation time.
- field createdby: str | None = None
User that created the model.
- field createddate: datetime | None = None
Unix time in milliseconds generated at creation time.
- field customquery: str | None = None
Custom query.
- field description: str | None = None
description of feature source
- field index: int | None = None
Feature Source Index
- field maintain_archives: bool | None = False
If true creates an archive table of a snapshot of the data before it is overwritten or appended; otherwise, false (the default value).
- field modified_by: str | None = None
user whi modified last
- field modified_ts: datetime | None = None
Unix time in milliseconds generated at modification time.
- field query_metadata: dict | None = {}
JSON that breaks down a query into parts consumable downstream by drifter to use as reference for baseline for different computations.
- field setdescription: str | None = None
Feature set description.
- field setname: str [Required]
Feature set name.
- field status: str | None = 'active'
status of featuresource record
- field tablename: str [Required]
Table name.