ravendb
Version:
RavenDB client for Node.js
34 lines • 984 B
JavaScript
import { RavenCommand } from "../../Http/RavenCommand.js";
export class GetDetailedStatisticsOperation {
_debugTag;
constructor(debugTag) {
this._debugTag = debugTag;
}
getCommand(conventions) {
return new DetailedDatabaseStatisticsCommand(this._debugTag);
}
get resultType() {
return "CommandResult";
}
}
export class DetailedDatabaseStatisticsCommand extends RavenCommand {
_debugTag;
constructor(debugTag) {
super();
this._debugTag = debugTag;
}
createRequest(node) {
let uri = node.url + "/databases/" + node.database + "/stats/detailed";
if (this._debugTag) {
uri += "?" + this._debugTag;
}
return { uri };
}
async setResponseAsync(bodyStream, fromCache) {
return await this._parseResponseDefaultAsync(bodyStream);
}
get isReadRequest() {
return false;
}
}
//# sourceMappingURL=GetDetailedStatisticsOperation.js.map