Skip to content

Latest commit

 

History

History
76 lines (68 loc) · 1.69 KB

README.md

File metadata and controls

76 lines (68 loc) · 1.69 KB

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
          }
        }
      }
    }
  }
}