I have ArcGIS Datastore and
1. I want to know how to monitor its health. I need to be able to tell when it's running normally or not.
2. I want to know how much data is stored in it and where.
3. I want to be able to manage backups for it.
4. I can see it has its own log files but I don't see how I am supposed to access them.
This snippet of code dumps out information, but that's about all I've come up with so far.
import arcgis.gis.server
from config import Config
server = arcgis.gis.server.Server(url = Config.SERVER_URL + '/admin',
username = Config.PORTAL_USER, password = Config.PORTAL_PASSWORD
)
dsm = arcgis.gis.server.DataStoreManager(url = server.url + "/data", gis = server)
for ds in dsm.list():
print(ds.properties)
print()