HUB
Sign inSign up

ucsdets/user-space

By ucsdets

•Updated over 5 years ago

Image
0

10K+

ucsdets/user-space repository overview

⁠user-space

Prometheus exporter to get how much user space is left on its-dsmlp-fs01

⁠Test curls

curl -H "Authorization: Bearer dsmlp-apikey 4ok91ZkGk2lxi0rnZ3wnCW7oDspVOz7g" -d opt/user-space/test/test-files/test.output localhost:3000/users/

curl -H "Authorization: Bearer dsmlp-apikey 4ok91ZkGk2lxi0rnZ3wnCW7oDspVOz7g" --data-binary "@/opt/user-space/test/test-files/test.json" localhost:3000/users/active

curl -H "Authorization: Bearer dsmlp-apikey 4ok91ZkGk2lxi0rnZ3wnCW7oDspVOz7g" -XPOST "localhost:3000/tasks/test&command=start&everyXHour=1"

⁠Postgres notes

psql --username=user --dbname=db


{ isActive: true,
  lastModified: { '$lte': 2020-04-09T22:28:29.991Z },
  spaceUsedGb: { '$gte': 60 } }

TODO add a delete API endpoint for users and have those move to a separate collection

Tag summary
Recent tags
Content type
Image
Digest
Size
607.5 MB
Last updated
over 6 years ago
docker pull ucsdets/user-space:latest