Exemplo n.º 1
0
"""

from django.conf.urls import patterns, url
from smart_manager.views import (SProbeView, MemInfoView, NetStatView,
                                 DiskStatView, NFSDistribView,
                                 NFSDClientDistribView, NFSDShareDistribView,
                                 NFSDShareClientDistribView, CPUMetricView,
                                 NFSDUidGidDistributionView, LoadAvgView,
                                 SProbeMetadataView, SProbeMetadataDetailView,)


urlpatterns = patterns(
    '',
    # Smart probes
    url(r'^$', SProbeView.as_view(), name='probe-view'),
    url(r'^metadata$', SProbeMetadataView.as_view(), name='probe-view'),
    url(r'^metadata/(?P<pid>[0-9]+)$', SProbeMetadataDetailView.as_view(),
        name='probe-view'),

    # Generic smart probes
    url(r'^diskstat/$', DiskStatView.as_view(),
        name='diskstat-view'),
    url(r'^meminfo/$', MemInfoView.as_view(),
        name='meminfo-view'),
    url(r'^netstat/$', NetStatView.as_view(),
        name='netstat-view'),
    url(r'^cpumetric/$', CPUMetricView.as_view(), name='cpumetric-view'),
    url(r'^loadavg$', LoadAvgView.as_view(), name='loadavg-view'),


    # Advanced smart probes
Exemplo n.º 2
0
from django.conf.urls import patterns, url
from smart_manager.views import (SmartManagerView, SProbeView,
                                 MemInfoView, NetStatView,
                                 DiskStatView, NFSDistribView,
                                 NFSDClientDistribView, NFSDShareDistribView,
                                 NFSDShareClientDistribView, CPUMetricView,
                                 NFSDUidGidDistributionView, LoadAvgView,
                                 SProbeMetadataView)


urlpatterns = patterns('',

    # Smart probes
    url(r'^$', SProbeView.as_view(), name='probe-view'),
    url(r'^metadata$', SProbeMetadataView.as_view(), name='probe-view'),
    url(r'^metadata/(?P<pid>[0-9]+)$', SProbeMetadataView.as_view(),
        name='probe-view'),

    # Generic smart probes
    url(r'^diskstat/$', DiskStatView.as_view(),
        name='diskstat-view'),
    url(r'^meminfo/$', MemInfoView.as_view(),
        name='meminfo-view'),
    url(r'^netstat/$', NetStatView.as_view(),
        name='netstat-view'),
    url(r'^cpumetric/$', CPUMetricView.as_view(), name='cpumetric-view'),
    url(r'^loadavg$', LoadAvgView.as_view(), name='loadavg-view'),


    # Advanced smart probes
Exemplo n.º 3
0
    NFSDClientDistribView,
    NFSDShareDistribView,
    NFSDShareClientDistribView,
    CPUMetricView,
    NFSDUidGidDistributionView,
    LoadAvgView,
    SProbeMetadataView,
    SProbeMetadataDetailView,
)

urlpatterns = patterns(
    '',

    # Smart probes
    url(r'^$', SProbeView.as_view(), name='probe-view'),
    url(r'^metadata$', SProbeMetadataView.as_view(), name='probe-view'),
    url(r'^metadata/(?P<pid>[0-9]+)$',
        SProbeMetadataDetailView.as_view(),
        name='probe-view'),

    # Generic smart probes
    url(r'^diskstat/$', DiskStatView.as_view(), name='diskstat-view'),
    url(r'^meminfo/$', MemInfoView.as_view(), name='meminfo-view'),
    url(r'^netstat/$', NetStatView.as_view(), name='netstat-view'),
    url(r'^cpumetric/$', CPUMetricView.as_view(), name='cpumetric-view'),
    url(r'^loadavg$', LoadAvgView.as_view(), name='loadavg-view'),

    # Advanced smart probes
    url(r'^nfs-1$', NFSDistribView.as_view(), name='nfsdistrib-view'),
    url(r'^nfs-1/(?P<pid>[0-9]+)$',
        NFSDistribView.as_view(),
Exemplo n.º 4
0
    NFSDClientDistribView,
    NFSDShareDistribView,
    NFSDShareClientDistribView,
    CPUMetricView,
    NFSDUidGidDistributionView,
    LoadAvgView,
    SProbeMetadataView,
    SProbeMetadataDetailView,
)


urlpatterns = patterns(
    "",
    # Smart probes
    url(r"^$", SProbeView.as_view(), name="probe-view"),
    url(r"^metadata$", SProbeMetadataView.as_view(), name="probe-view"),
    url(
        r"^metadata/(?P<pid>[0-9]+)$",
        SProbeMetadataDetailView.as_view(),
        name="probe-view",
    ),
    # Generic smart probes
    url(r"^diskstat/$", DiskStatView.as_view(), name="diskstat-view"),
    url(r"^meminfo/$", MemInfoView.as_view(), name="meminfo-view"),
    url(r"^netstat/$", NetStatView.as_view(), name="netstat-view"),
    url(r"^cpumetric/$", CPUMetricView.as_view(), name="cpumetric-view"),
    url(r"^loadavg$", LoadAvgView.as_view(), name="loadavg-view"),
    # Advanced smart probes
    url(r"^nfs-1$", NFSDistribView.as_view(), name="nfsdistrib-view"),
    url(r"^nfs-1/(?P<pid>[0-9]+)$", NFSDistribView.as_view(), name="nfsdistrib-view"),
    url(