MCPcopy Create free account
hub / github.com/apple/foundationdb / toJSON

Method toJSON

fdbclient/FileBackupAgent.actor.cpp:4906–4916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4904 bool present() const { return version.present(); }
4905
4906 JsonBuilderObject toJSON() const {
4907 JsonBuilderObject doc;
4908 if (version.present()) {
4909 doc.setKey("Version", version.get());
4910 if (epochs.present()) {
4911 doc.setKey("EpochSeconds", epochs.get());
4912 doc.setKey("Timestamp", timeStampToString(epochs));
4913 }
4914 }
4915 return doc;
4916 }
4917 };
4918
4919 // Helper actor for generating status

Callers 1

string> getStatusJSONMethod · 0.45

Calls 4

timeStampToStringFunction · 0.85
getMethod · 0.65
presentMethod · 0.45
setKeyMethod · 0.45

Tested by

no test coverage detected