本文整理了Java中com.netflix.spinnaker.orca.pipeline.model.Execution.getEndTime()
方法的一些代码示例,展示了Execution.getEndTime()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Execution.getEndTime()
方法的具体详情如下:
包路径:com.netflix.spinnaker.orca.pipeline.model.Execution
类名称:Execution
方法名:getEndTime
暂无
代码示例来源:origin: spinnaker/kayenta
Long endTime = pipeline.getEndTime();
if (endTime != null) {
canaryExecutionStatusResponseBuilder
代码示例来源:origin: spinnaker/kayenta
Long endTime = pipeline.getEndTime();
if (endTime != null) {
responseBuilder
代码示例来源:origin: com.netflix.spinnaker.orca/orca-redis
map.put("buildTime", String.valueOf(execution.getBuildTime() != null ? execution.getBuildTime() : 0L));
map.put("startTime", execution.getStartTime() != null ? execution.getStartTime().toString() : null);
map.put("endTime", execution.getEndTime() != null ? execution.getEndTime().toString() : null);
map.put("startTimeExpiry", execution.getStartTimeExpiry() != null ? String.valueOf(execution.getStartTimeExpiry()) : null);
map.put("status", execution.getStatus().name());
代码示例来源:origin: com.netflix.spinnaker.orca/orca-core
@Override
public void afterExecution(Persister persister,
Execution execution,
ExecutionStatus executionStatus,
boolean wasSuccessful) {
if (execution.getType() != ORCHESTRATION) {
// not concerned with pipelines right now (pipelines can have wait stages / manual judgments which skew execution time)
return;
}
if (execution.getApplication() == null || execution.getStartTime() == null || execution.getEndTime() == null) {
// should normally have all attributes but a guard just in case
return;
}
Id id = registry
.createId("executions.totalTime")
.withTag("executionType", "orchestration")
.withTag("successful", Boolean.valueOf(wasSuccessful).toString())
.withTag("application", execution.getApplication().toLowerCase());
registry.timer(id).record(execution.getEndTime() - execution.getStartTime(), TimeUnit.MILLISECONDS);
}
}
代码示例来源:origin: com.netflix.kayenta/kayenta-core
Long endTime = pipeline.getEndTime();
if (endTime != null) {
canaryExecutionStatusResponseBuilder
代码示例来源:origin: com.netflix.kayenta/kayenta-standalone-canary-analysis
Long endTime = pipeline.getEndTime();
if (endTime != null) {
responseBuilder
内容来源于网络,如有侵权,请联系作者删除!