Repository URL to install this package:
|
Version:
6.2.4 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const apollo_server_1 = require("apollo-server");
exports.ProcessManagerModel = apollo_server_1.gql `
type ProcessManagerStats {
name: String
processId: Int
processManagerProcessId: Int
monitor: Monitor
env: ProcessManagerEnv
}
type Monitor {
memory: Float
cpu: Float
}
type ProcessManagerEnv {
cwd: String
errorLogPath: String
logPath: String
restartTime: String
status: String
executionPath: String
}
type RestartResponse {
never: String
}
type LogEntry {
message: String
timestamp: String
timestampFull: String
correlationId: String
}
`;
exports.Query = apollo_server_1.gql `
type Query {
stats(password: String!): ProcessManagerStats
logs(
password: String!
before: String
after: String
matches: String
): [LogEntry]
}
`;
exports.Mutation = apollo_server_1.gql `
type Mutation {
restart(password: String!): RestartResponse
}
`;
exports.Schema = apollo_server_1.gql `
${exports.ProcessManagerModel}
${exports.Query}
${exports.Mutation}
schema {
query: Query
mutation: Mutation
}
`;
exports.default = exports.ProcessManagerModel;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTW9kZWwuZ3JhcGhxbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ncmFwaHFsLW1vZHVsZXMvcG0yL01vZGVsLmdyYXBocWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBbUM7QUFFdEIsUUFBQSxtQkFBbUIsR0FBRyxtQkFBRyxDQUFBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Q0E4QnJDLENBQUE7QUFFWSxRQUFBLEtBQUssR0FBRyxtQkFBRyxDQUFBOzs7Ozs7Ozs7O0NBVXZCLENBQUE7QUFFWSxRQUFBLFFBQVEsR0FBRyxtQkFBRyxDQUFBOzs7O0NBSTFCLENBQUE7QUFFWSxRQUFBLE1BQU0sR0FBRyxtQkFBRyxDQUFBO0lBQ3JCLDJCQUFtQjtJQUNuQixhQUFLO0lBQ0wsZ0JBQVE7Ozs7OztDQU1YLENBQUE7QUFFRCxrQkFBZSwyQkFBbUIsQ0FBQSJ9