Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions src/DIRAC/MonitoringSystem/Client/WebAppClient.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
""" Module that contains client access to the WebApp handler.
"""

from DIRAC.Core.Base.Client import Client, createClient


@createClient("Monitoring/WebApp")
class WebAppClient(Client):
"""WebAppClient sets url for the WebAppHandler."""

def __init__(self, url=None, **kwargs):
"""
Sets URL for WebApp handler

:param self: self reference
:param url: url of the WebAppHandler
:param kwargs: forwarded to the Base Client class
"""

super().__init__(**kwargs)

if not url:
self.serverURL = "Monitoring/WebApp"

else:
self.serverURL = url
9 changes: 9 additions & 0 deletions src/DIRAC/MonitoringSystem/ConfigTemplate.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,13 @@ Services
}
}
##END
##BEGIN WebApp
WebApp
{
Port = 9199
Authorization
{
Default = authenticated
}
}
}
Loading
Loading