diff --git a/proto/info/info.proto b/proto/info/info.proto index b0297c89..2bb67420 100644 --- a/proto/info/info.proto +++ b/proto/info/info.proto @@ -912,6 +912,8 @@ message ZInfoSnapshot { } message ZInfoApp { + reserved 9 to 11, 19; // deprecated + string AppID = 1; string appVersion = 2; @@ -920,8 +922,6 @@ message ZInfoApp { // EVE stopped sending this. Can be removed. repeated ZInfoSW softwareList = 8; // XXX to be deprecated in favor of volumeRefs - // deprecated = 9; - // deprecated = 11; google.protobuf.Timestamp bootTime = 12; repeated ZioBundle assignedAdapters = 13; @@ -930,8 +930,6 @@ message ZInfoApp { repeated ZInfoNetwork network = 16; // up/down; allocated IP repeated string volumeRefs = 17; // volume UUIDs repeated ZInfoSnapshot snapshots = 18; // optional field, used to send list of snapshots on device - // optional; information about usage of every patchEnvelope assigned to app - repeated ZInfoPatchEnvelopeUsage patchEnvelope = 19; } // ipSec state information diff --git a/proto/info/patch_envelope.proto b/proto/info/patch_envelope.proto index 50642644..2aed8aae 100644 --- a/proto/info/patch_envelope.proto +++ b/proto/info/patch_envelope.proto @@ -44,16 +44,3 @@ message ZInfoPatchEnvelope { uint64 size = 5; repeated string errors = 6; } - -// Provide information on PatchEnvelope usage per app -message ZInfoPatchEnvelopeUsage { - // UUID of PatchEnvelope - string uuid = 1; - // Version of PatchEnvelope - string version = 2; - // count the number of times app instance called patch APIs - uint64 patch_api_call_count = 3; - // count the number of times app instance actually downloaded - // whole patch envelope or part of it - uint64 download_count = 4; -} diff --git a/proto/metrics/metrics.proto b/proto/metrics/metrics.proto index 7c8e4dda..5c884dae 100644 --- a/proto/metrics/metrics.proto +++ b/proto/metrics/metrics.proto @@ -373,6 +373,21 @@ message appMetric { repeated appContainerMetric container = 7; AppMemoryMetric appMemory = 8; + + repeated AppPatchEnvelopeMetric patch_envelope = 9; +} + +// Provide information on PatchEnvelope usage per app +message AppPatchEnvelopeMetric { + // UUID of PatchEnvelope + string uuid = 1; + // Version of PatchEnvelope + string version = 2; + // count the number of times app instance called patch APIs + uint64 patch_api_call_count = 3; + // count the number of times app instance actually downloaded + // whole patch envelope or part of it + uint64 download_count = 4; } // We track device and app logs separately with these counters.