@@ -93,17 +93,17 @@ - (id)strongObject
93
93
}
94
94
@end
95
95
96
- // Stores essential-for-logging attributes immutably for use in logs
97
- @interface MTRDeviceEssentialAttributes : NSObject
96
+ // convenience object for commonly-logged device attributes
97
+ @interface MTRDeviceInformationalAttributes : NSObject
98
98
@property (readonly ) UInt16 vendorID;
99
99
@property (readonly ) UInt16 productID;
100
100
@property (readonly ) BOOL usesThread;
101
101
102
- - (void )addEssentialAttributesToCurrentMetricScope ;
102
+ - (void )addInformationalAttributesToCurrentMetricScope ;
103
103
104
104
@end
105
105
106
- @implementation MTRDeviceEssentialAttributes
106
+ @implementation MTRDeviceInformationalAttributes
107
107
108
108
- (instancetype )initWithVendorID : (UInt16 )vendorID productID : (UInt16 )productID usesThread : (BOOL )usesThread {
109
109
self = [super init ];
@@ -117,7 +117,7 @@ - (instancetype)initWithVendorID:(UInt16)vendorID productID:(UInt16)productID us
117
117
return self;
118
118
}
119
119
120
- - (void )addEssentialAttributesToCurrentMetricScope {
120
+ - (void )addInformationalAttributesToCurrentMetricScope {
121
121
using namespace chip ::Tracing::DarwinFramework;
122
122
MATTER_LOG_METRIC (kMetricDeviceVendorID , _vendorID);
123
123
MATTER_LOG_METRIC (kMetricDeviceProductID , _productID);
@@ -1920,11 +1920,11 @@ - (void)_setCachedAttributeValue:(MTRDeviceDataValueDictionary _Nullable)value f
1920
1920
// (removals are OK)
1921
1921
1922
1922
// log when a device violates expectations for Changes Omitted Quality attributes.
1923
- MTRDeviceEssentialAttributes * attributes = [self _essentialAttributesForCurrentState ];
1923
+ MTRDeviceInformationalAttributes * attributes = [self _informationalAttributesForCurrentState ];
1924
1924
1925
1925
using namespace chip ::Tracing::DarwinFramework;
1926
1926
MATTER_LOG_METRIC_BEGIN (kMetricUnexpectedCQualityUpdate );
1927
- [attributes addEssentialAttributesToCurrentMetricScope ];
1927
+ [attributes addInformationalAttributesToCurrentMetricScope ];
1928
1928
MATTER_LOG_METRIC_END (kMetricUnexpectedCQualityUpdate );
1929
1929
1930
1930
return ;
@@ -3539,7 +3539,7 @@ - (void)removeClientDataForKey:(NSString *)key endpointID:(NSNumber *)endpointID
3539
3539
3540
3540
#pragma mark Log Help
3541
3541
3542
- - (MTRDeviceEssentialAttributes *)_essentialAttributesForCurrentState {
3542
+ - (MTRDeviceInformationalAttributes *)_informationalAttributesForCurrentState {
3543
3543
MTRClusterPath * basicInfoClusterPath = [MTRClusterPath clusterPathWithEndpointID: @(kRootEndpointId ) clusterID: @(MTRClusterIDTypeBasicInformationID)];
3544
3544
MTRDeviceClusterData * basicInfoClusterData = [self _clusterDataForPath: basicInfoClusterPath];
3545
3545
@@ -3550,7 +3550,7 @@ - (MTRDeviceEssentialAttributes *)_essentialAttributesForCurrentState {
3550
3550
3551
3551
BOOL usesThread = [self _deviceUsesThread ];
3552
3552
3553
- return [[MTRDeviceEssentialAttributes alloc ] initWithVendorID: vendorID productID: productID usesThread: usesThread];
3553
+ return [[MTRDeviceInformationalAttributes alloc ] initWithVendorID: vendorID productID: productID usesThread: usesThread];
3554
3554
}
3555
3555
3556
3556
@end
0 commit comments