Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk updates #196

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
tmp
tmp
/.project
/.settings/
65 changes: 46 additions & 19 deletions dist/components/endpoint/endpoint_config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/components/endpoint/endpoint_config.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/components/endpoint/endpoint_details.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/components/endpoint/endpoint_list.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions dist/components/endpoint/partials/endpoint_config.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ <h1>{{ctrl.endpoint.name}}<a ng-click="ctrl.gotoDashboard(ctrl.endpoint)"><i ng-
</div>
</div>
<br>
<!-- Bulk update -->
<div class="gf-form-group">
<div class="gf-form-inline">
<endpoint-probe-select model="ctrl.selectedFootprint" probes="ctrl.probes" style="modal-collector-select"></endpoint-probe-select>
<button class="btn btn-success" ng-click="ctrl.replaceAllEndpointChecksFootprint(ctrl.selectedFootprint)">Replace All</button>
<button class="btn btn-success" ng-click="ctrl.appendAllEndpointChecksFootprint(ctrl.selectedFootprint)">Append All</button>
</div>
</div>
<div class="gf-form-buttons-row">
</div>
</div>
Expand Down Expand Up @@ -124,6 +132,13 @@ <h2 class="inline-header">{{ctrl.endpoint.name }}</h2>
<a ng-click="ctrl.skipDiscovery()">skip</a>
</div>
</div>
<!-- Initial Probes -->
<div class="gf-form-group" ng-show="ctrl.discovered">
<div class="gf-form-inline">
<endpoint-probe-select model="ctrl.selectedFootprint" probes="ctrl.probes" style="modal-collector-select"></endpoint-probe-select>
<button class="btn btn-success" ng-click="ctrl.initialEndpointChecksFootprint(ctrl.selectedFootprint)">Update Default Probes</button>
</div>
</div>
</div>

<div ng-if="ctrl.pageReady && (ctrl.showConfig || ctrl.endpoint.id || ctrl.discoveryError)">
Expand Down
29 changes: 17 additions & 12 deletions dist/components/endpoint/partials/pingForm.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
<div class="gf-form-group gf-form-group--header" id="ping">
<div class="gf-form-group gf-form-group--header" id="ping" ng-form="pingForm">
<div class="wp-config-box--hit-area" ng-click="ctrl.showPing = !ctrl.showPing">
<div class="playlist-column-header section-header-flex-container">
<h3 class="page-headering">Ping</h3>
<div>
<a href="#">
<!-- Monitoring -->
<i class="icon-gf icon-gf-monitoring-tiny" style="font-size:17px; vertical-align: text-bottom;" ng-show="ctrl.checks['ping'].enabled"></i>
<span class="freqMsg" ng-show="ctrl.checks['ping'].enabled" > Every {{ctrl.checks['ping'].frequency}}s from {{ctrl.probeCount(ctrl.checks['ping'])}} {{ctrl.probeCount(ctrl.checks['ping']) == 1 ? "Probe" : "Probes"}} |</span>
<i class="icon-gf icon-gf-monitoring-tiny" style="font-size:17px; vertical-align: text-bottom;"ng-show="!ctrl.checks['ping'].enabled"></i>
<span class="freqMsg disabled" ng-show="!ctrl.checks['ping'].enabled" > Not enabled |</span>
<span class="freqMsg" ng-show="!ctrl.checks['ping'].enabled && ctrl.discovered" > Not Discovered |</span>
<!-- Checks -->
<i ng-show="ctrl.checks['ping'].enabled" class="icon-gf icon-gf-status" style="font-size:17px; vertical-align: sub;"></i>
<span ng-show="ctrl.checks['ping'].enabled" class="freqMsg" bs-tooltip="'Estimated checks per month, in Millions'">{{ctrl.totalChecks(ctrl.checks['ping'])| number:1}}M/mo</span><span ng-show="ctrl.checks['ping'].enabled" class="freqMsg"> |</span
<!-- Monitoring Enabled-->
<span ng-show="(ctrl.checks['ping'].enabled && !pingForm.$dirty) || (!ctrl.checks['ping'].enabled && pingForm.$dirty)">
<i class="icon-gf icon-gf-monitoring-tiny" style="font-size:17px; vertical-align: text-bottom;"></i>
<span class="freqMsg" >Every {{ctrl.checks['ping'].frequency}}s from {{ctrl.probeCount(ctrl.checks['ping'])}} {{ctrl.probeCount(ctrl.checks['ping']) == 1 ? "Probe" : "Probes"}} |</span>
<!-- Checks -->
<i class="icon-gf icon-gf-status" style="font-size:17px; vertical-align: sub;"></i>
<span class="freqMsg" bs-tooltip="'Estimated checks per month, in Millions'">{{ctrl.totalChecks(ctrl.checks['ping'])| number:1}}M/mo</span><span class="freqMsg"> |</span>
</span>
<!-- Monitoring Disabled -->
<span ng-show="(!ctrl.checks['ping'].enabled && pingForm.$pristine) || (ctrl.checks['ping'].enabled && pingForm.$dirty)">
<i class="icon-gf icon-gf-monitoring-tiny" style="font-size:17px; vertical-align: text-bottom;"></i>
<span class="freqMsg disabled" > Not enabled |</span>
<span class="freqMsg" ng-show="!ctrl.checks['ping'].enabled && ctrl.discovered" > Not Discovered |</span>
</span>
<!-- Configure -->
<span class="highlight-word"> Configure</span>
<span><i class="fa fa-caret-down" ng-show="ctrl.showPing"></i></span>
Expand All @@ -27,7 +32,7 @@ <h3 class="page-headering">Ping</h3>
<div class="gf-form">
<i class="icon-gf icon-gf-monitoring inline-icon"></i>
<h3 class="inline-header">Monitoring</h3>
<editor-checkbox text="Enabled" model="ctrl.checks['ping'].enabled"></editor-checkbox>
<editor-checkbox ng-click="pingForm.$setDirty()" text="Enabled" model="ctrl.checks['ping'].enabled"></editor-checkbox>
</div>
<div class="endpoint-config-left-margin">
<p>At the selected <span class="emphasis-word">frequency</span>, we'll send a burst of 10 ICMP echo ("ping") packets to the <span class="emphasis-word">hostname</span>.</p>
Expand Down Expand Up @@ -103,7 +108,7 @@ <h3 class="inline-header">Alerting</h3>

<div class="endpoint-config-left-margin" ng-if="ctrl.endpoint.id">
<div class="gf-form-button-row">
<button type="submit" class="btn btn-success" ng-click="ctrl.updateCheck(ctrl.checks['ping'])">Update Ping Settings</button>
<button type="submit" class="btn btn-success" ng-click="ctrl.updateCheck(ctrl.checks['ping']) && pingForm.$setPristine()">Update Ping Settings</button>
<a class="btn btn-link" ng-click="ctrl.cancel()">Cancel</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion dist/css/worldping.dark.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/worldping.light.css.map

Large diffs are not rendered by default.

137 changes: 21 additions & 116 deletions dist/directives/all.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/directives/all.js.map

Large diffs are not rendered by default.

Loading