mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2025-08-06 06:51:31 +00:00
Initial Rough Cut of Heimdall Tracking System
This commit is contained in:
11
foundation-heimdall/src/main/resources/heimdall.yaml
Normal file
11
foundation-heimdall/src/main/resources/heimdall.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
# Whether Heimdall should be enabled for tracking events.
|
||||
enabled: false
|
||||
|
||||
# Database connection information.
|
||||
db:
|
||||
# JDBC URL
|
||||
url: "jdbc:postgresql://localhost/foundation"
|
||||
# JDBC Username
|
||||
username: "foundation"
|
||||
# JDBC Password
|
||||
password: "foundation"
|
20
foundation-heimdall/src/main/resources/init.sql
Normal file
20
foundation-heimdall/src/main/resources/init.sql
Normal file
@ -0,0 +1,20 @@
|
||||
--
|
||||
create extension if not exists "uuid-ossp";
|
||||
--
|
||||
create extension if not exists timescaledb;
|
||||
--
|
||||
create schema if not exists heimdall;
|
||||
--
|
||||
create table if not exists heimdall.player_positions (
|
||||
time timestamp not null,
|
||||
player uuid not null,
|
||||
world uuid not null,
|
||||
x double precision not null,
|
||||
y double precision not null,
|
||||
z double precision not null,
|
||||
pitch double precision not null,
|
||||
yaw double precision not null,
|
||||
PRIMARY KEY (time, player, world)
|
||||
);
|
||||
--
|
||||
select create_hypertable('heimdall.player_positions', 'time', 'player', 4, if_not_exists => TRUE);
|
10
foundation-heimdall/src/main/resources/plugin.yml
Normal file
10
foundation-heimdall/src/main/resources/plugin.yml
Normal file
@ -0,0 +1,10 @@
|
||||
name: Foundation-Heimdall
|
||||
version: '${version}'
|
||||
main: cloud.kubelet.foundation.heimdall.FoundationHeimdallPlugin
|
||||
api-version: 1.18
|
||||
prefix: Foundation-Heimdall
|
||||
load: STARTUP
|
||||
depend:
|
||||
- Foundation
|
||||
authors:
|
||||
- kubelet
|
Reference in New Issue
Block a user