GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #252 from noob-noob/yangminglang · fcccode/uavstack@47e658b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • com.creditease.uav.console/src/main/webapp/uavapp_godeye/notifystgy
    • css
      • uav.notifystgy.css
    • js
      • notifystgy.win.js
  • com.creditease.uav.healthmanager/src/main/java/com/creditease/uav/feature/runtimenotify
    • NotifyStrategy.java
    • StrategyJudgement.java
    • task
      • JudgeNotifyTimerTask.java
  • com.creditease.uav.helper/src/main/java/com/creditease/agent/helpers
    • DateTimeHelper.java
  • com.creditease.uav.hook.mq/src/main/java/com/creditease/uav/hook/rabbitmq/interceptors
    • RabbitmqIT.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎com.creditease.uav.console/src/main/webapp/uavapp_godeye/notifystgy/css/uav.notifystgy.css‎

Copy file name to clipboardExpand all lines: com.creditease.uav.console/src/main/webapp/uavapp_godeye/notifystgy/css/uav.notifystgy.css
+18Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,3 +373,21 @@ StgyDiv .edit-div-option:empty:before{
373373
/**
374374
*触发策略 end
375375
*/
376+
377+
.itemTitle {
378+
text-align:left;
379+
color:#333;
380+
border-left:6px solid #57A69C;
381+
padding-left:5px;
382+
margin-bottom:2px;
383+
}
384+
385+
.itemTip {
386+
color:gray;
387+
font-size:14px;
388+
text-align:left;
389+
}
390+
391+
.dateTimeInput {
392+
width:120px;
393+
}
Collapse file

‎com.creditease.uav.console/src/main/webapp/uavapp_godeye/notifystgy/js/notifystgy.win.js‎

Copy file name to clipboardExpand all lines: com.creditease.uav.console/src/main/webapp/uavapp_godeye/notifystgy/js/notifystgy.win.js
+206-34Lines changed: 206 additions & 34 deletions
Large diffs are not rendered by default.
Collapse file

‎com.creditease.uav.healthmanager/src/main/java/com/creditease/uav/feature/runtimenotify/NotifyStrategy.java‎

Copy file name to clipboardExpand all lines: com.creditease.uav.healthmanager/src/main/java/com/creditease/uav/feature/runtimenotify/NotifyStrategy.java
+53-2Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import java.util.regex.Matcher;
3030
import java.util.regex.Pattern;
3131

32+
import com.alibaba.fastjson.JSONArray;
3233
import com.creditease.agent.helpers.DateTimeHelper;
3334
import com.creditease.agent.helpers.EncodeHelper;
3435
import com.creditease.agent.helpers.JSONHelper;
@@ -282,7 +283,9 @@ protected static class Expression {
282283
private long range = 0;
283284
private String func;
284285
private float sampling = 1;
285-
286+
private String downsample;
287+
private Boolean[] weekdayLimit=new Boolean[] {true,true,true,true,true,true,true};
288+
286289
private Set<String> matchArgExpr = new HashSet<String>();
287290

288291
private long time_from;
@@ -291,7 +294,11 @@ protected static class Expression {
291294
private int unit;
292295
private String upperLimit;
293296
private String lowerLimit;
294-
297+
private String time_end;
298+
private String time_start;
299+
private String day_start;
300+
private String day_end;
301+
295302
public Expression(String exprStr) {
296303
for (String op : OPERATORS) {
297304
if (exprStr.contains(op)) {
@@ -331,6 +338,19 @@ public Expression(Map<String, Object> cond) {
331338
this.time_to = DateTimeHelper
332339
.dateFormat(DateTimeHelper.getToday("yyyy-MM-dd") + " " + cond.get("time_to"), "yyyy-MM-dd HH:mm")
333340
.getTime();
341+
342+
this.time_start=(String) cond.get("time_start");
343+
344+
this.time_end= (String) cond.get("time_end");
345+
346+
this.day_start=(String) cond.get("day_start");
347+
348+
this.day_end= (String) cond.get("day_end");
349+
350+
if(cond.containsKey("weekdayLimit")) {
351+
((JSONArray)cond.get("weekdayLimit")).toArray(this.weekdayLimit);
352+
}
353+
334354
if (cond.get("interval") != null) {
335355
long interval = Long.parseLong((String) cond.get("interval"));
336356
switch (unit) {
@@ -350,6 +370,7 @@ public Expression(Map<String, Object> cond) {
350370
this.upperLimit = (String) cond.get("upperLimit");
351371
this.lowerLimit = (String) cond.get("lowerLimit");
352372
this.func = (String) cond.get("aggr");
373+
this.downsample=(String) cond.get("downsample");
353374
this.type = Type.TIMER;
354375
}
355376

@@ -469,6 +490,36 @@ public void setIdx(int idx) {
469490

470491
this.idx = idx;
471492
}
493+
494+
public String getTime_end() {
495+
496+
return time_end;
497+
}
498+
499+
public String getTime_start() {
500+
501+
return time_start;
502+
}
503+
504+
public String getDownsample() {
505+
506+
return downsample;
507+
}
508+
509+
public String getDay_start() {
510+
511+
return day_start;
512+
}
513+
514+
public String getDay_end() {
515+
516+
return day_end;
517+
}
518+
519+
public Boolean[] getWeekdayLimit() {
520+
521+
return weekdayLimit;
522+
}
472523

473524
}
474525

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.