Skip to content

varianter/startskudd2024-rdd-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Periodic seed functions RDD

Test project for Startskudd 2024 - Seeding test data for Rock Displacement Dashboard Elastic Search Index.

Running locally

In local.settings.json be sure to set KeyVault_Name to the current unique key vault name. You should also be added to the Developers group in Azure, and have done az login to use Default Credentials to get access to the key vault.

For running on emulators locally you should have Azurite installed and make sure it is running.

After setup:

  1. Install dependencies yarn
  2. Start locally: yarn start
  3. Have fun

Mappings

{
  "mappings": {
    "properties": {
      "deltaMovementInMm": {
        "type": "float"
      },
      "readingDate": {
        "type": "date"
      },
      "readingPlacement": {
        "properties": {
          "depthInMeter": {
            "type": "float"
          },
          "x": {
            "type": "long"
          },
          "y": {
            "type": "long"
          }
        }
      },
      "sensor": {
        "type": "nested",
        "properties": {
          "id": {
            "type": "keyword"
          },
          "placement": {
            "properties": {
              "depthInMeter": {
                "type": "float"
              },
              "x": {
                "type": "long"
              },
              "y": {
                "type": "long"
              }
            }
          }
        }
      },
      "status": {
        "type": "text",
        "fields": {
          "keyword": {
            "type": "keyword",
            "ignore_above": 256
          }
        }
      }
    }
  }
}

About

Data generation for RDD case

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published