@lansweeper/discovery-cloud-proto 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lansweeper/discovery-cloud-proto",
3
3
  "description": "Discovery Public Cloud (Azure,AWS,GCP) proto",
4
- "version": "0.0.13",
4
+ "version": "0.0.14",
5
5
  "main": "gen-proto/index.js",
6
6
  "types": "gen-proto/index.d.ts",
7
7
  "license": "MIT",
@@ -16,5 +16,5 @@
16
16
  "devDependencies": {
17
17
  "@types/google-protobuf": "^3.15.5"
18
18
  },
19
- "gitHead": "262e3c1abfbe7efe247b29af925080d22a9db494"
19
+ "gitHead": "3d1297767b65fd87bfa58a8d14a34f772af711f0"
20
20
  }
@@ -4,6 +4,7 @@ package com.lansweeper.discovery.cloud.api.v1;
4
4
 
5
5
  import "google/protobuf/any.proto";
6
6
  import "google/protobuf/wrappers.proto";
7
+ import "google/protobuf/timestamp.proto";
7
8
 
8
9
  option csharp_namespace = "Lansweeper.Discovery.Model.Proto.Cloud.Api";
9
10
  option go_package = "./generated-go";
@@ -35,26 +36,18 @@ message CloudEntity {
35
36
  string environment_id = 9;
36
37
  string cloud_provider = 10;
37
38
  optional string region_id = 11;
38
- NullableErrorList errors = 12;
39
+ repeated ScanError scan_error = 12;
39
40
  }
40
41
 
41
- message NullableErrorList {
42
- oneof kind {
43
- ErrorList data = 1;
44
- }
45
- }
46
-
47
- message ErrorList {
48
- repeated Error items = 1;
49
- }
50
-
51
- message Error {
52
- optional string error_id = 1;
53
- optional string cfg_n_name = 2;
54
- optional string error_text = 3;
55
- optional string last_changed = 4;
56
- optional string error_type_id = 5;
57
- optional string error_type_name = 6;
42
+ /**
43
+ * Scan errors.
44
+ */
45
+ message ScanError {
46
+ string section = 1; // name of section
47
+ string error = 2; // error descr
48
+ optional string source = 3; // e.g. "WMI"
49
+ optional google.protobuf.Timestamp timestamp = 4;
50
+ optional int64 duration = 5;
58
51
  }
59
52
 
60
53
  //This file is a first attempt to use protobuf format to send to kafka for ingestion