aboutsummaryrefslogtreecommitdiffstats
path: root/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/performance.html
blob: 5b6747b7325b92259f32bfd70c70a9c7f4880f64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!--
    Copyright (C) 2017 CMCC, Inc. and others. All rights reserved.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<div class="templatemo-content-wrapper" ng-controller="perGridCtrl">
    <div class="templatemo-content">
        <h3>Performance</h3>
        <div>
            <div class="table-container" ng-controller="pipeCtrl as mc">
                <ul class="list" style="padding-left:0;">
                    <li>Source Id <input type="text" ng-model="seek1"/></li>
                    <li>Source Name <input type="text" ng-model="seek2"/></li>
                    <li>Priority <input type="text" ng-model="seek3"/></li>
                    <button class="btn btn-primary" ng-click="mc.callServer(tableState)">search</button>
                </ul>
                <ul class="list" style="padding-left:0;" ng-show='menuState.show'>
                    <li> <p class="input-group" style="float:left">
                        <div style="float:left;line-height:100px;padding-right:4px;">StartTime</div><div style="float:left;padding-top:33px"><input type="text" class="form-control" readonly ng-click="open1()" uib-datepicker-popup ng-model="seek4" is-open="popup1.opened" datepicker-options ng-required="true" close-text="Close" /></div>
                        <div style="display:block;float:left;" uib-timepicker ng-model="seek4" hour-step minute-step show-meridian></div>
                        </p></li>
                    <li><p class="input-group" style="float:left">
                        <div style="float:left;line-height:100px;padding-right:4px;">End Time</div><div style="float:left;padding-top:33px"><input type="text" class="form-control" readonly ng-click="open2()" uib-datepicker-popup ng-model="seek5" is-open="popup2.opened" datepicker-options ng-required="true" close-text="Close" /></div>
                        <div style="display:block;float:left" uib-timepicker ng-model="seek5" hour-step minute-step show-meridian></div>
                        </p></li>
                </ul>
                <div class="row">
                    <div class="col-md-5" style="border-top:1px dotted #ddd">
                    </div>
                    <div class="col-md-2" style="border:1px dotted #ddd;border-top:none;text-align:center"
                         ng-click="toggleMenu()">
                        <span class="caret"></span>
                    </div>
                    <div class="col-md-5" style="border-top:1px dotted #ddd">
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-11">
                        <div class="table-responsive">
                            <h4 class="margin-bottom-15">Query Result</h4>
                        </div>
                    </div>
                    <div class="col-md-1">
                        <!--  <button ng-click="generateCsv()" class="btn btn-primary">CSV</button>-->
                        <button ng-click="toChart()" class="btn btn-primary">Chart</button>
                    </div>
                </div>

                
                <table class="table" st-pipe="mc.callServer" st-table="mc.displayed">
                    <thead>
                    <tr>
                        <th width="10%" >Id</th>
                    <!--    <th >Event Id</th> -->
                        <th width="25%">Event Name</th>
                    <!--    <th >Source Id</th> -->
                        <th width="25%">Source Name</th>
                    <!--    <th >Reporting Entity Id</th> -->
                    <!--    <th >Reporting Entity Name</th> -->
                        <th width="10%">Priority</th>
                        <th width="20%">Start Time</th>
                        <th >Option</th>
                    </tr>
                    </thead>
                    <tbody ng-show="!mc.isLoading">
                    <tr ng-repeat="row in mc.displayed">
                        <td>{{row.performanceHeader.id}}</td>
                    <!--    <td>{{row.performanceHeader.eventId}}</td> -->
                        <td>{{row.performanceHeader.eventName}}</td>
                    <!--    <td>{{row.performanceHeader.sourceId}}</td> -->
                        <td>{{row.performanceHeader.sourceName}}</td>
                    <!--    <td>{{row.performanceHeader.reportingEntityId}}</td>  -->
                    <!--    <td>{{row.performanceHeader.reportingEntityName}}</td> -->
                        <td>{{row.performanceHeader.priority}}</td>
                        <td>{{row.performanceHeader.createTime}}</td>
                        <td><button ng-click="jump(row.performanceHeader.sourceId)" class="btn btn-primary" >Detail</button></td>
                    </tr>
                    </tbody>
                    <tbody ng-show="mc.isLoading">
                    <tr>
                        <td colspan="4" class="text-center"><div class="loading-indicator"></div>
                        </td>
                    </tr>
                    </tbody>
                    <tfoot>
                    <tr>
						<td class="text-center" style="padding-top:30px" colspan="3">
						<label for="items" style="float:left;width:100px;line-height:30px;">items by page</label>
						<div style="float:left;width:130px;">
						<input class="input-sm form-control" name="items" id="items" type="number" ng-model="itemsByPage" />
						</div>
						</td>
                        <td class="text-center" st-pagination="" st-items-by-page="itemsByPage" st-template="app/uui/fusion/scripts/view-models/pagination.html" colspan="3">
                        </td>
                    </tr>
                    </tfoot>
                </table>
            </div>

        </div>
    </div>
</div>