SophistSolutions / WhyTheFuckIsMyNetworkSoSlow

WhyTheFuckIsMyNetworkSoSlow is a network performance analysis tool, making it easy to quickly examine a network and see what is wrong, and to evaluate longer term trends.
15 stars 1 forks source link

Support new WS API for filtering device list #11

Open LewisPringle opened 5 years ago

LewisPringle commented 5 years ago
DurationRange=a-b, iso8601 durations and either LHS or RHS can be missing (MISING on RHS meaning now/end of time and LHS meaning start)
filterTargetType=
    {contained-in-network: NETWORK-ID-OR-CIDR} or
    {deviceType: [Infrastructure|Speaker|...]}
    {activeInPeriod: iso-8601-duration RANGE }  // NYI
Any of these targetTypes maybe prefixed with "!" meaning NOT (reverse sense of test)
then
    filter: [{include|exclude  : filterTargetType]}
       - if first filter is an 'include' start with NONE included, and if
           first filter is an 'exclude' start with ALL included

(THEN INTEGRATE INTO GUI) EXAMPLE:

        fiter: {exclude: {deviceType:[Unknown]}}
        fiter: {include: {deviceType:[Personal-Computer, Infrastructure]}}
        fiter: {exclude: {deviceType:[Unknown]}, include: {contained-in-network:[192.168.244.1/24]}}
            all devices except those of unknown type, but force inclusion of items from this network
        fiter: {include: {!deviceType:[Unknown]}, exclude: {!contained-in-network:[192.168.244.1/24]}}
            all devices except those of unknown type, but force inclusion of items from this network
LewisPringle commented 5 years ago

original plan (BUT NO DO)