Storage Engine API
health_log.idl
Go to the documentation of this file.
1 # Copyright (C) 2017 MongoDB Inc.
2 #
3 # This program is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU Affero General Public License, version 3,
5 # as published by the Free Software Foundation.
6 #
7 # This program is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 # GNU Affero General Public License for more details.
11 #
12 # You should have received a copy of the GNU Affero General Public License
13 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14 #
15 
16 global:
17  cpp_namespace: "mongo"
18 
19 imports:
20  - "mongo/idl/basic_types.idl"
21 
22 types:
23  _id_key:
24  bson_serialization_type: any
25  description: "An _id value."
26  cpp_type: "mongo::BSONKey"
27  serializer: "mongo::BSONKey::serializeToBSON"
28  deserializer: "mongo::BSONKey::parseFromBSON"
29 
30 enums:
31  Severity:
32  description: "The severity of a healthlog entry."
33  type: string
34  values:
35  Info: "info"
36  Warning: "warning"
37  Error: "error"
38  Scope:
39  description: "The scope covered by a healthlog entry."
40  type: string
41  values:
42  Cluster: "cluster"
43  Node: "node"
44  Database: "database"
45  Collection: "collection"
46  Index: "index"
47  Document: "document"
48 
49 structs:
50  HealthLogEntry:
51  description: "An entry in system.local.healthlog."
52  fields:
53  namespace: namespacestring
54  timestamp: date
55  severity: Severity
56  msg: string
57  scope: Scope
58  operation: string
59  data: object
std::shared_ptr< void > data
Definition: ephemeral_for_test_record_store_test.cpp:74