-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
d8c963e
commit 343a3e1
Showing
83 changed files
with
12,038 additions
and
12,742 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
import { AgentName } from '../typings/es_schemas/ui/fields/agent'; | ||
import { Coordinate } from '../typings/timeseries'; | ||
|
||
export enum NodeType { | ||
service = 'service', | ||
backend = 'backend', | ||
} | ||
|
||
interface NodeBase { | ||
id: string; | ||
} | ||
|
||
export interface ServiceNode extends NodeBase { | ||
type: NodeType.service; | ||
serviceName: string; | ||
agentName: AgentName; | ||
environment: string; | ||
} | ||
|
||
export interface BackendNode extends NodeBase { | ||
type: NodeType.backend; | ||
backendName: string; | ||
spanType: string; | ||
spanSubtype: string; | ||
} | ||
|
||
export type Node = ServiceNode | BackendNode; | ||
|
||
export interface ConnectionStatsItem { | ||
location: Node; | ||
stats: { | ||
latency: { | ||
value: number | null; | ||
timeseries: Coordinate[]; | ||
}; | ||
throughput: { | ||
value: number | null; | ||
timeseries: Coordinate[]; | ||
}; | ||
errorRate: { | ||
value: number | null; | ||
timeseries: Coordinate[]; | ||
}; | ||
}; | ||
} | ||
|
||
export interface ConnectionStatsItemWithImpact extends ConnectionStatsItem { | ||
stats: ConnectionStatsItem['stats'] & { | ||
impact: number; | ||
}; | ||
} | ||
|
||
export interface ConnectionStatsItemWithComparisonData { | ||
location: Node; | ||
currentStats: ConnectionStatsItemWithImpact['stats']; | ||
previousStats: ConnectionStatsItemWithImpact['stats'] | null; | ||
} | ||
|
||
export function getNodeName(node: Node) { | ||
return node.type === NodeType.service ? node.serviceName : node.backendName; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-599 KB
(89%)
x-pack/plugins/apm/ftr_e2e/cypress/fixtures/es_archiver/apm_8.0.0/data.json.gz
Binary file not shown.
Oops, something went wrong.