Package codes.grow.packages.skywalking
Class SkyWalkingIds
java.lang.Object
codes.grow.packages.skywalking.SkyWalkingIds
SkyWalking entity ids. OAP derives stable ids from names: service id
base64(name) + ".1"
(".0" for a virtual service), instance id serviceId + "_" + base64(instance),
endpoint id serviceId + "_" + base64(endpoint) (standard Base64 with padding).-
Method Summary
Modifier and TypeMethodDescriptionstatic StringendpointId(String service, String endpoint) The id of an endpoint (of a normal service).static StringinstanceId(String service, String instance) The id of a service instance (of a normal service).static StringThe id of a real (normal) service.static StringThe id of a service.
-
Method Details
-
serviceId
The id of a real (normal) service.- Parameters:
name- service name- Returns:
base64(name) + ".1"
-
serviceId
The id of a service.- Parameters:
name- service namenormal- false for a virtual (conjectured) service- Returns:
base64(name) + ".1"or".0"
-
instanceId
The id of a service instance (of a normal service).- Parameters:
service- service nameinstance- instance name- Returns:
serviceId + "_" + base64(instance)
-
endpointId
The id of an endpoint (of a normal service).- Parameters:
service- service nameendpoint- endpoint name- Returns:
serviceId + "_" + base64(endpoint)
-