@lansweeper/data-platform-outbound-grpc 0.4.9 → 0.5.0
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/CHANGELOG.md +23 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/outbound_grpc_pb.d.ts +34 -0
- package/gen-proto/outbound_grpc_pb.js +46 -0
- package/gen-proto/outbound_pb.d.ts +96 -0
- package/gen-proto/outbound_pb.js +748 -1
- package/generated-go/outbound.pb.go +13613 -13321
- package/generated-go/outbound_grpc.pb.go +90 -10
- package/java.json +1 -1
- package/model/pom.xml +1 -1
- package/model/src/main/proto/outbound.proto +29 -3
- package/model/target/classes/com/lansweeper/dp/outbound/v1/CorrelationIndexRealignmentResponse$1.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/CorrelationIndexRealignmentResponse$Builder.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/CorrelationIndexRealignmentResponse.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/CorrelationIndexRealignmentResponseOrBuilder.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/CorrelationRealignment$1.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/CorrelationRealignment$Builder.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/CorrelationRealignment.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/CorrelationRealignmentOrBuilder.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/CorrelationRealignmentRequest$1.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/CorrelationRealignmentRequest$Builder.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/CorrelationRealignmentRequest.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/CorrelationRealignmentRequestOrBuilder.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/Outbound.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/Site$1.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/Site$Builder$UnlinkedInstallationsConverter.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/Site$Builder.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/Site.class +0 -0
- package/model/target/classes/com/lansweeper/dp/outbound/v1/SiteOrBuilder.class +0 -0
- package/model/target/classes/outbound.proto +29 -3
- package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/CorrelationIndexRealignmentResponse.java +969 -0
- package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/CorrelationIndexRealignmentResponseOrBuilder.java +55 -0
- package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/CorrelationRealignment.java +587 -0
- package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/CorrelationRealignmentOrBuilder.java +32 -0
- package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/CorrelationRealignmentRequest.java +793 -0
- package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/CorrelationRealignmentRequestOrBuilder.java +49 -0
- package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Outbound.java +4012 -3957
- package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Site.java +233 -0
- package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/SiteOrBuilder.java +27 -0
- package/model/target/maven-archiver/pom.properties +2 -2
- package/model/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +12 -0
- package/model/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +6 -0
- package/model/target/{outbound-model-0.4.8-sources.jar → outbound-model-0.4.10-sources.jar} +0 -0
- package/model/target/{outbound-model-0.4.8.jar → outbound-model-0.4.10.jar} +0 -0
- package/package.json +2 -2
- package/pom.xml +1 -1
- package/proto/outbound.proto +29 -3
- package/service/pom.xml +1 -1
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreBackofficeServiceGrpc$1.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreBackofficeServiceGrpc$2.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreBackofficeServiceGrpc$3.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreBackofficeServiceGrpc$DataCoreBackofficeServiceBaseDescriptorSupplier.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreBackofficeServiceGrpc$DataCoreBackofficeServiceBlockingStub.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreBackofficeServiceGrpc$DataCoreBackofficeServiceFileDescriptorSupplier.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreBackofficeServiceGrpc$DataCoreBackofficeServiceFutureStub.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreBackofficeServiceGrpc$DataCoreBackofficeServiceImplBase.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreBackofficeServiceGrpc$DataCoreBackofficeServiceMethodDescriptorSupplier.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreBackofficeServiceGrpc$DataCoreBackofficeServiceStub.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreBackofficeServiceGrpc$MethodHandlers.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/DataCoreBackofficeServiceGrpc.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/ReactorDataCoreBackofficeServiceGrpc$DataCoreBackofficeServiceImplBase.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/ReactorDataCoreBackofficeServiceGrpc$MethodHandlers.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/ReactorDataCoreBackofficeServiceGrpc$ReactorDataCoreBackofficeServiceStub.class +0 -0
- package/service/target/classes/com/lansweeper/dp/outbound/v1/ReactorDataCoreBackofficeServiceGrpc.class +0 -0
- package/service/target/generated-sources/protobuf/grpc-java/com/lansweeper/dp/outbound/v1/DataCoreBackofficeServiceGrpc.java +172 -0
- package/service/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/ReactorDataCoreBackofficeServiceGrpc.java +80 -0
- package/service/target/maven-archiver/pom.properties +2 -2
- package/service/target/outbound-service-0.4.10-sources.jar +0 -0
- package/service/target/outbound-service-0.4.10.jar +0 -0
- package/service/target/outbound-service-0.4.8-sources.jar +0 -0
- package/service/target/outbound-service-0.4.8.jar +0 -0
|
@@ -320,16 +320,18 @@ var DataCoreOutboundService_ServiceDesc = grpc.ServiceDesc{
|
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
const (
|
|
323
|
-
DataCoreBackofficeService_CreateEntity_FullMethodName
|
|
324
|
-
DataCoreBackofficeService_GetAsset_FullMethodName
|
|
325
|
-
DataCoreBackofficeService_UpdateAsset_FullMethodName
|
|
326
|
-
DataCoreBackofficeService_DeleteAsset_FullMethodName
|
|
327
|
-
DataCoreBackofficeService_ListAssets_FullMethodName
|
|
328
|
-
DataCoreBackofficeService_CreateSite_FullMethodName
|
|
329
|
-
DataCoreBackofficeService_GetSite_FullMethodName
|
|
330
|
-
DataCoreBackofficeService_UpdateSite_FullMethodName
|
|
331
|
-
DataCoreBackofficeService_DeleteSite_FullMethodName
|
|
332
|
-
DataCoreBackofficeService_EntityDeconcile_FullMethodName
|
|
323
|
+
DataCoreBackofficeService_CreateEntity_FullMethodName = "/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/CreateEntity"
|
|
324
|
+
DataCoreBackofficeService_GetAsset_FullMethodName = "/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/GetAsset"
|
|
325
|
+
DataCoreBackofficeService_UpdateAsset_FullMethodName = "/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/UpdateAsset"
|
|
326
|
+
DataCoreBackofficeService_DeleteAsset_FullMethodName = "/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/DeleteAsset"
|
|
327
|
+
DataCoreBackofficeService_ListAssets_FullMethodName = "/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/ListAssets"
|
|
328
|
+
DataCoreBackofficeService_CreateSite_FullMethodName = "/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/CreateSite"
|
|
329
|
+
DataCoreBackofficeService_GetSite_FullMethodName = "/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/GetSite"
|
|
330
|
+
DataCoreBackofficeService_UpdateSite_FullMethodName = "/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/UpdateSite"
|
|
331
|
+
DataCoreBackofficeService_DeleteSite_FullMethodName = "/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/DeleteSite"
|
|
332
|
+
DataCoreBackofficeService_EntityDeconcile_FullMethodName = "/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/EntityDeconcile"
|
|
333
|
+
DataCoreBackofficeService_CorrelationIndexRealignment_FullMethodName = "/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/CorrelationIndexRealignment"
|
|
334
|
+
DataCoreBackofficeService_RefreshEntityCount_FullMethodName = "/com.lansweeper.dp.outbound.v1.DataCoreBackofficeService/RefreshEntityCount"
|
|
333
335
|
)
|
|
334
336
|
|
|
335
337
|
// DataCoreBackofficeServiceClient is the client API for DataCoreBackofficeService service.
|
|
@@ -353,6 +355,10 @@ type DataCoreBackofficeServiceClient interface {
|
|
|
353
355
|
DeleteSite(ctx context.Context, in *SiteKey, opts ...grpc.CallOption) (*Site, error)
|
|
354
356
|
// Deconcile an entity from the aliases (reverse reconciliation)
|
|
355
357
|
EntityDeconcile(ctx context.Context, in *DeconcileRequest, opts ...grpc.CallOption) (*DeconcileResponse, error)
|
|
358
|
+
// Sync RPC to realign the correlation index from the entity metadata of that site.
|
|
359
|
+
CorrelationIndexRealignment(ctx context.Context, in *CorrelationRealignmentRequest, opts ...grpc.CallOption) (*CorrelationIndexRealignmentResponse, error)
|
|
360
|
+
// Sync Number of saved entities in site storage
|
|
361
|
+
RefreshEntityCount(ctx context.Context, in *SiteKey, opts ...grpc.CallOption) (*Site, error)
|
|
356
362
|
}
|
|
357
363
|
|
|
358
364
|
type dataCoreBackofficeServiceClient struct {
|
|
@@ -486,6 +492,26 @@ func (c *dataCoreBackofficeServiceClient) EntityDeconcile(ctx context.Context, i
|
|
|
486
492
|
return out, nil
|
|
487
493
|
}
|
|
488
494
|
|
|
495
|
+
func (c *dataCoreBackofficeServiceClient) CorrelationIndexRealignment(ctx context.Context, in *CorrelationRealignmentRequest, opts ...grpc.CallOption) (*CorrelationIndexRealignmentResponse, error) {
|
|
496
|
+
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
497
|
+
out := new(CorrelationIndexRealignmentResponse)
|
|
498
|
+
err := c.cc.Invoke(ctx, DataCoreBackofficeService_CorrelationIndexRealignment_FullMethodName, in, out, cOpts...)
|
|
499
|
+
if err != nil {
|
|
500
|
+
return nil, err
|
|
501
|
+
}
|
|
502
|
+
return out, nil
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
func (c *dataCoreBackofficeServiceClient) RefreshEntityCount(ctx context.Context, in *SiteKey, opts ...grpc.CallOption) (*Site, error) {
|
|
506
|
+
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
507
|
+
out := new(Site)
|
|
508
|
+
err := c.cc.Invoke(ctx, DataCoreBackofficeService_RefreshEntityCount_FullMethodName, in, out, cOpts...)
|
|
509
|
+
if err != nil {
|
|
510
|
+
return nil, err
|
|
511
|
+
}
|
|
512
|
+
return out, nil
|
|
513
|
+
}
|
|
514
|
+
|
|
489
515
|
// DataCoreBackofficeServiceServer is the server API for DataCoreBackofficeService service.
|
|
490
516
|
// All implementations must embed UnimplementedDataCoreBackofficeServiceServer
|
|
491
517
|
// for forward compatibility
|
|
@@ -507,6 +533,10 @@ type DataCoreBackofficeServiceServer interface {
|
|
|
507
533
|
DeleteSite(context.Context, *SiteKey) (*Site, error)
|
|
508
534
|
// Deconcile an entity from the aliases (reverse reconciliation)
|
|
509
535
|
EntityDeconcile(context.Context, *DeconcileRequest) (*DeconcileResponse, error)
|
|
536
|
+
// Sync RPC to realign the correlation index from the entity metadata of that site.
|
|
537
|
+
CorrelationIndexRealignment(context.Context, *CorrelationRealignmentRequest) (*CorrelationIndexRealignmentResponse, error)
|
|
538
|
+
// Sync Number of saved entities in site storage
|
|
539
|
+
RefreshEntityCount(context.Context, *SiteKey) (*Site, error)
|
|
510
540
|
mustEmbedUnimplementedDataCoreBackofficeServiceServer()
|
|
511
541
|
}
|
|
512
542
|
|
|
@@ -544,6 +574,12 @@ func (UnimplementedDataCoreBackofficeServiceServer) DeleteSite(context.Context,
|
|
|
544
574
|
func (UnimplementedDataCoreBackofficeServiceServer) EntityDeconcile(context.Context, *DeconcileRequest) (*DeconcileResponse, error) {
|
|
545
575
|
return nil, status.Errorf(codes.Unimplemented, "method EntityDeconcile not implemented")
|
|
546
576
|
}
|
|
577
|
+
func (UnimplementedDataCoreBackofficeServiceServer) CorrelationIndexRealignment(context.Context, *CorrelationRealignmentRequest) (*CorrelationIndexRealignmentResponse, error) {
|
|
578
|
+
return nil, status.Errorf(codes.Unimplemented, "method CorrelationIndexRealignment not implemented")
|
|
579
|
+
}
|
|
580
|
+
func (UnimplementedDataCoreBackofficeServiceServer) RefreshEntityCount(context.Context, *SiteKey) (*Site, error) {
|
|
581
|
+
return nil, status.Errorf(codes.Unimplemented, "method RefreshEntityCount not implemented")
|
|
582
|
+
}
|
|
547
583
|
func (UnimplementedDataCoreBackofficeServiceServer) mustEmbedUnimplementedDataCoreBackofficeServiceServer() {
|
|
548
584
|
}
|
|
549
585
|
|
|
@@ -741,6 +777,42 @@ func _DataCoreBackofficeService_EntityDeconcile_Handler(srv interface{}, ctx con
|
|
|
741
777
|
return interceptor(ctx, in, info, handler)
|
|
742
778
|
}
|
|
743
779
|
|
|
780
|
+
func _DataCoreBackofficeService_CorrelationIndexRealignment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
781
|
+
in := new(CorrelationRealignmentRequest)
|
|
782
|
+
if err := dec(in); err != nil {
|
|
783
|
+
return nil, err
|
|
784
|
+
}
|
|
785
|
+
if interceptor == nil {
|
|
786
|
+
return srv.(DataCoreBackofficeServiceServer).CorrelationIndexRealignment(ctx, in)
|
|
787
|
+
}
|
|
788
|
+
info := &grpc.UnaryServerInfo{
|
|
789
|
+
Server: srv,
|
|
790
|
+
FullMethod: DataCoreBackofficeService_CorrelationIndexRealignment_FullMethodName,
|
|
791
|
+
}
|
|
792
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
793
|
+
return srv.(DataCoreBackofficeServiceServer).CorrelationIndexRealignment(ctx, req.(*CorrelationRealignmentRequest))
|
|
794
|
+
}
|
|
795
|
+
return interceptor(ctx, in, info, handler)
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
func _DataCoreBackofficeService_RefreshEntityCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
799
|
+
in := new(SiteKey)
|
|
800
|
+
if err := dec(in); err != nil {
|
|
801
|
+
return nil, err
|
|
802
|
+
}
|
|
803
|
+
if interceptor == nil {
|
|
804
|
+
return srv.(DataCoreBackofficeServiceServer).RefreshEntityCount(ctx, in)
|
|
805
|
+
}
|
|
806
|
+
info := &grpc.UnaryServerInfo{
|
|
807
|
+
Server: srv,
|
|
808
|
+
FullMethod: DataCoreBackofficeService_RefreshEntityCount_FullMethodName,
|
|
809
|
+
}
|
|
810
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
811
|
+
return srv.(DataCoreBackofficeServiceServer).RefreshEntityCount(ctx, req.(*SiteKey))
|
|
812
|
+
}
|
|
813
|
+
return interceptor(ctx, in, info, handler)
|
|
814
|
+
}
|
|
815
|
+
|
|
744
816
|
// DataCoreBackofficeService_ServiceDesc is the grpc.ServiceDesc for DataCoreBackofficeService service.
|
|
745
817
|
// It's only intended for direct use with grpc.RegisterService,
|
|
746
818
|
// and not to be introspected or modified (even as a copy)
|
|
@@ -784,6 +856,14 @@ var DataCoreBackofficeService_ServiceDesc = grpc.ServiceDesc{
|
|
|
784
856
|
MethodName: "EntityDeconcile",
|
|
785
857
|
Handler: _DataCoreBackofficeService_EntityDeconcile_Handler,
|
|
786
858
|
},
|
|
859
|
+
{
|
|
860
|
+
MethodName: "CorrelationIndexRealignment",
|
|
861
|
+
Handler: _DataCoreBackofficeService_CorrelationIndexRealignment_Handler,
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
MethodName: "RefreshEntityCount",
|
|
865
|
+
Handler: _DataCoreBackofficeService_RefreshEntityCount_Handler,
|
|
866
|
+
},
|
|
787
867
|
},
|
|
788
868
|
Streams: []grpc.StreamDesc{
|
|
789
869
|
{
|
package/java.json
CHANGED
package/model/pom.xml
CHANGED
|
@@ -73,6 +73,12 @@ service DataCoreBackofficeService {
|
|
|
73
73
|
|
|
74
74
|
// Deconcile an entity from the aliases (reverse reconciliation)
|
|
75
75
|
rpc EntityDeconcile(DeconcileRequest) returns (DeconcileResponse) {}
|
|
76
|
+
|
|
77
|
+
// Sync RPC to realign the correlation index from the entity metadata of that site.
|
|
78
|
+
rpc CorrelationIndexRealignment (CorrelationRealignmentRequest) returns (CorrelationIndexRealignmentResponse);
|
|
79
|
+
|
|
80
|
+
// Sync Number of saved entities in site storage
|
|
81
|
+
rpc RefreshEntityCount(SiteKey) returns (Site);
|
|
76
82
|
}
|
|
77
83
|
|
|
78
84
|
message Site {
|
|
@@ -92,6 +98,7 @@ message Site {
|
|
|
92
98
|
map<string, UnlinkedInstallationMetadata> unlinked_installations = 14; // Unlinked installations, where the key is the installation id and the value is the metadata
|
|
93
99
|
optional google.protobuf.Timestamp reconcile_revalidation_time = 15;
|
|
94
100
|
optional bool correlation_index_enabled = 16; // Whether the correlation index is enabled for this site
|
|
101
|
+
optional google.protobuf.Timestamp last_correlation_realignment = 17; // Last time the correlation index was realigned using the Job from backoffice
|
|
95
102
|
}
|
|
96
103
|
|
|
97
104
|
/**
|
|
@@ -155,6 +162,25 @@ message DeconcileRequest {
|
|
|
155
162
|
repeated EntityPath aliases = 2;
|
|
156
163
|
}
|
|
157
164
|
|
|
165
|
+
/**
|
|
166
|
+
* We send this request to realign the correlation index from the entity metadata of that site.
|
|
167
|
+
*/
|
|
168
|
+
message CorrelationRealignmentRequest {
|
|
169
|
+
string site_id = 1;
|
|
170
|
+
google.protobuf.Timestamp until_time = 2; // The timestamp we will use to filter the assets to realign. If the asset has been updated after this time, it will NOT be realigned.
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
message CorrelationIndexRealignmentResponse {
|
|
174
|
+
optional CorrelationRealignment assets = 1;
|
|
175
|
+
optional CorrelationRealignment users = 2;
|
|
176
|
+
optional CorrelationRealignment groups = 3;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
message CorrelationRealignment {
|
|
180
|
+
optional uint64 realigned = 1;
|
|
181
|
+
optional uint64 deleted = 2;
|
|
182
|
+
}
|
|
183
|
+
|
|
158
184
|
message CatalogLookupRequest {
|
|
159
185
|
repeated int64 brand_id = 1;
|
|
160
186
|
repeated int64 model_id = 2;
|
|
@@ -809,7 +835,7 @@ message SourceInfo {
|
|
|
809
835
|
string source_id = 1; // source id, like installation id of IT
|
|
810
836
|
string source_type = 2; // source type like e.g. IT
|
|
811
837
|
optional string sensor_id = 10; // sensor id of the source
|
|
812
|
-
optional string source_action_id = 11;
|
|
838
|
+
optional string source_action_id = 11;
|
|
813
839
|
optional string source_agent = 3; // source agent name and version
|
|
814
840
|
optional string source_name = 4; // source name
|
|
815
841
|
optional string source_tag = 8; // source tag
|
|
@@ -4583,10 +4609,10 @@ message Office365Organization {
|
|
|
4583
4609
|
// Users and groups are standalone entities, so they are not included here
|
|
4584
4610
|
repeated Office365Domain domains = 12;
|
|
4585
4611
|
repeated Office365License licenses = 15;
|
|
4586
|
-
map<string, Office365AssignedPlan> assigned_plans = 16 [deprecated=true];
|
|
4612
|
+
map<string, Office365AssignedPlan> assigned_plans = 16 [deprecated = true];
|
|
4587
4613
|
repeated Office365Contact contacts = 17;
|
|
4588
4614
|
repeated Office365Mailbox mailboxes = 18;
|
|
4589
|
-
repeated Office365AssignedLicense assigned_licenses = 19 [deprecated=true];
|
|
4615
|
+
repeated Office365AssignedLicense assigned_licenses = 19 [deprecated = true];
|
|
4590
4616
|
}
|
|
4591
4617
|
|
|
4592
4618
|
message Office365Mailbox {
|
|
Binary file
|
|
Binary file
|
package/model/target/classes/com/lansweeper/dp/outbound/v1/CorrelationIndexRealignmentResponse.class
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/model/target/classes/com/lansweeper/dp/outbound/v1/CorrelationRealignment$Builder.class
ADDED
|
Binary file
|
|
Binary file
|
package/model/target/classes/com/lansweeper/dp/outbound/v1/CorrelationRealignmentOrBuilder.class
ADDED
|
Binary file
|
package/model/target/classes/com/lansweeper/dp/outbound/v1/CorrelationRealignmentRequest$1.class
ADDED
|
Binary file
|
|
Binary file
|
package/model/target/classes/com/lansweeper/dp/outbound/v1/CorrelationRealignmentRequest.class
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -73,6 +73,12 @@ service DataCoreBackofficeService {
|
|
|
73
73
|
|
|
74
74
|
// Deconcile an entity from the aliases (reverse reconciliation)
|
|
75
75
|
rpc EntityDeconcile(DeconcileRequest) returns (DeconcileResponse) {}
|
|
76
|
+
|
|
77
|
+
// Sync RPC to realign the correlation index from the entity metadata of that site.
|
|
78
|
+
rpc CorrelationIndexRealignment (CorrelationRealignmentRequest) returns (CorrelationIndexRealignmentResponse);
|
|
79
|
+
|
|
80
|
+
// Sync Number of saved entities in site storage
|
|
81
|
+
rpc RefreshEntityCount(SiteKey) returns (Site);
|
|
76
82
|
}
|
|
77
83
|
|
|
78
84
|
message Site {
|
|
@@ -92,6 +98,7 @@ message Site {
|
|
|
92
98
|
map<string, UnlinkedInstallationMetadata> unlinked_installations = 14; // Unlinked installations, where the key is the installation id and the value is the metadata
|
|
93
99
|
optional google.protobuf.Timestamp reconcile_revalidation_time = 15;
|
|
94
100
|
optional bool correlation_index_enabled = 16; // Whether the correlation index is enabled for this site
|
|
101
|
+
optional google.protobuf.Timestamp last_correlation_realignment = 17; // Last time the correlation index was realigned using the Job from backoffice
|
|
95
102
|
}
|
|
96
103
|
|
|
97
104
|
/**
|
|
@@ -155,6 +162,25 @@ message DeconcileRequest {
|
|
|
155
162
|
repeated EntityPath aliases = 2;
|
|
156
163
|
}
|
|
157
164
|
|
|
165
|
+
/**
|
|
166
|
+
* We send this request to realign the correlation index from the entity metadata of that site.
|
|
167
|
+
*/
|
|
168
|
+
message CorrelationRealignmentRequest {
|
|
169
|
+
string site_id = 1;
|
|
170
|
+
google.protobuf.Timestamp until_time = 2; // The timestamp we will use to filter the assets to realign. If the asset has been updated after this time, it will NOT be realigned.
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
message CorrelationIndexRealignmentResponse {
|
|
174
|
+
optional CorrelationRealignment assets = 1;
|
|
175
|
+
optional CorrelationRealignment users = 2;
|
|
176
|
+
optional CorrelationRealignment groups = 3;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
message CorrelationRealignment {
|
|
180
|
+
optional uint64 realigned = 1;
|
|
181
|
+
optional uint64 deleted = 2;
|
|
182
|
+
}
|
|
183
|
+
|
|
158
184
|
message CatalogLookupRequest {
|
|
159
185
|
repeated int64 brand_id = 1;
|
|
160
186
|
repeated int64 model_id = 2;
|
|
@@ -809,7 +835,7 @@ message SourceInfo {
|
|
|
809
835
|
string source_id = 1; // source id, like installation id of IT
|
|
810
836
|
string source_type = 2; // source type like e.g. IT
|
|
811
837
|
optional string sensor_id = 10; // sensor id of the source
|
|
812
|
-
optional string source_action_id = 11;
|
|
838
|
+
optional string source_action_id = 11;
|
|
813
839
|
optional string source_agent = 3; // source agent name and version
|
|
814
840
|
optional string source_name = 4; // source name
|
|
815
841
|
optional string source_tag = 8; // source tag
|
|
@@ -4583,10 +4609,10 @@ message Office365Organization {
|
|
|
4583
4609
|
// Users and groups are standalone entities, so they are not included here
|
|
4584
4610
|
repeated Office365Domain domains = 12;
|
|
4585
4611
|
repeated Office365License licenses = 15;
|
|
4586
|
-
map<string, Office365AssignedPlan> assigned_plans = 16 [deprecated=true];
|
|
4612
|
+
map<string, Office365AssignedPlan> assigned_plans = 16 [deprecated = true];
|
|
4587
4613
|
repeated Office365Contact contacts = 17;
|
|
4588
4614
|
repeated Office365Mailbox mailboxes = 18;
|
|
4589
|
-
repeated Office365AssignedLicense assigned_licenses = 19 [deprecated=true];
|
|
4615
|
+
repeated Office365AssignedLicense assigned_licenses = 19 [deprecated = true];
|
|
4590
4616
|
}
|
|
4591
4617
|
|
|
4592
4618
|
message Office365Mailbox {
|