pinpoint-node-agent
Version:
Pinpoint node agent provided by NAVER
36 lines (28 loc) • 670 B
JavaScript
/**
* Pinpoint Node.js Agent
* Copyright 2020-present NAVER Corp.
* Apache License v2.0
*/
const annotationMessages = require('../../../data/v1/Annotation_pb.js')
class BooleanAnnotation {
constructor(key, value) {
this.key = key
this.value = value
}
getKey() {
return this.key
}
getValue() {
return this.value
}
toString() {
return `BooleanAnnotation{${this.key}=${this.value}}`
}
pAnnotation() {
const pAnnotation = new annotationMessages.PAnnotation()
pAnnotation.setKey(this.key)
return pAnnotation
}
}
module.exports = BooleanAnnotation