Creating a Data Asset

Create a data asset to connect to data so that you can create and train models in Anomaly Detection.

    1. Open the navigation menu and click Analytics & AI. Under AI Services, click Anomaly Detection.
    2. In the left-side navigation menu, click Projects.
    3. Select the compartment that contains the project that you want to create the data asset in.
    4. Click the name of the project.

      The project details page opens.

    5. Under Details, click Data assets.
    6. Click Create data asset.
    7. (Optional) Enter a unique name (255 character limit) for the resource. If you don't provide a name, one is automatically generated.

      For example:

      aianomalydetection<resource>20230825155844

    8. (Optional) Enter a description (400 character limit) for the resource.
    9. Select the type of data asset to create and follow the instructions in that section:
    Add an Object Storage Data Asset
    1. Select Oracle object storage.
    2. Select the bucket that you want to use in the compartment.

      The default namespace for the bucket is displayed and is from the tenancy. The namespace is a unique system-generated and immutable Object Storage namespace name that spans all compartments in a region.

    3. Select the training data file to use for this data asset.
    4. (Optional) Click Show advanced options to assign tags to the resource. Tags help you to easily find and track resources by selecting a tag namespace, and then entering the key and value.

      To add more than one tag, click Add tag.

      Tagging describes the various tags that you can use organize and find resources including cost-tracking tags.

    5. Click Create.
    The data asset is created. The create process can take a couple of minutes. When the data asset is created successfully, it's in an ACTIVE state.
    Add an Autonomous Transaction Processing Data Asset

    You need the connection details for the Autonomous Transaction Processing (ATP) database including the wallet file.

    If you need to use a private endpoint to access an external database, create the private endpoint in an accessible compartment.

    1. Select the Oracle autonomous transaction processing type.
    2. Enter the name of the database.
    3. Enter the name of the table to use.
    4. Enter the database user to use.
    5. Select ATP vault credentials.
    6. Select ATP vault configuration.
    7. (Optional) Select Attach private endpoint to select an existing private endpoint, and then select the private endpoint to use.

      You can change compartments if the private endpoint exists outside the compartment that you selected for the data asset.

    8. (Optional) Click Show advanced options to assign tags to the resource. Tags help you to easily find and track resources by selecting a tag namespace, and then entering the key and value.

      To add more than one tag, click Add tag.

      Tagging describes the various tags that you can use organize and find resources including cost-tracking tags.

    9. Click Create.
    The data asset is created. The create process can take a couple of minutes. When the data asset is created successfully, it's in an ACTIVE state.
    Add an InfluxDB Database Data Asset

    You need the measurement name for the data structure in your InfluxDB database, the database URL, and the name of the database's retention policy.

    If you need to use a private endpoint to access an external database, create the private endpoint in an accessible compartment.

    1. Select InfluxDB.
    2. Enter the database user to use.
    3. Select vault credentials.
    4. Enter the measurement name.
    5. Enter the URL of the database.
    6. Select the database version for the database.
    7. Enter the database name.
    8. Enter the name of the database's retention policy.
    9. (Optional) Select Attach private endpoint to select an existing private endpoint, and then select the private endpoint to use.

      You can change compartments if the private endpoint exists outside the compartment that you selected for the data asset.

    10. (Optional) Click Show advanced options to assign tags to the resource. Tags help you to easily find and track resources by selecting a tag namespace, and then entering the key and value.

      To add more than one tag, click Add tag.

      Tagging describes the various tags that you can use organize and find resources including cost-tracking tags.

    11. Click Create.
    The data asset is created. The create process can take a couple of minutes. When the data asset is created successfully, it's in an ACTIVE state.
  • Use the oci anomaly-detection data-asset create commands and required parameters to create a data asset in a compartment:

    oci anomaly-detection data-asset create --compartment-id <compartment-id>, -c [<name>] ... [OPTIONS]
    oci anomaly-detection data-asset create-data-source-atp --compartment-id <compartment-id>, -c [<name>] ... [OPTIONS]
    oci anomaly-detection data-asset create-data-source-influx --compartment-id <compartment-id>, -c [<name>] ... [OPTIONS]
    oci anomaly-detection data-asset create-data-source-os --compartment-id <compartment-id>, -c [<name>] ... [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.

  • Run the CreateDataAsset operation to create a data asset.