@@ -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);
@@ -1926,11 +1926,11 @@ - (void)_setCachedAttributeValue:(MTRDeviceDataValueDictionary _Nullable)value f
1926
1926
// (removals are OK)
1927
1927
1928
1928
// log when a device violates expectations for Changes Omitted Quality attributes.
1929
- MTRDeviceEssentialAttributes * attributes = [self _essentialAttributesForCurrentState ];
1929
+ MTRDeviceInformationalAttributes * attributes = [self _informationalAttributesForCurrentState ];
1930
1930
1931
1931
using namespace chip ::Tracing::DarwinFramework;
1932
1932
MATTER_LOG_METRIC_BEGIN (kMetricUnexpectedCQualityUpdate );
1933
- [attributes addEssentialAttributesToCurrentMetricScope ];
1933
+ [attributes addInformationalAttributesToCurrentMetricScope ];
1934
1934
MATTER_LOG_METRIC_END (kMetricUnexpectedCQualityUpdate );
1935
1935
1936
1936
return ;
@@ -3688,7 +3688,7 @@ - (void)removeClientDataForKey:(NSString *)key endpointID:(NSNumber *)endpointID
3688
3688
3689
3689
#pragma mark Log Help
3690
3690
3691
- - (MTRDeviceEssentialAttributes *)_essentialAttributesForCurrentState {
3691
+ - (MTRDeviceInformationalAttributes *)_informationalAttributesForCurrentState {
3692
3692
MTRClusterPath * basicInfoClusterPath = [MTRClusterPath clusterPathWithEndpointID: @(kRootEndpointId ) clusterID: @(MTRClusterIDTypeBasicInformationID)];
3693
3693
MTRDeviceClusterData * basicInfoClusterData = [self _clusterDataForPath: basicInfoClusterPath];
3694
3694
@@ -3699,7 +3699,7 @@ - (MTRDeviceEssentialAttributes *)_essentialAttributesForCurrentState {
3699
3699
3700
3700
BOOL usesThread = [self _deviceUsesThread ];
3701
3701
3702
- return [[MTRDeviceEssentialAttributes alloc ] initWithVendorID: vendorID productID: productID usesThread: usesThread];
3702
+ return [[MTRDeviceInformationalAttributes alloc ] initWithVendorID: vendorID productID: productID usesThread: usesThread];
3703
3703
}
3704
3704
3705
3705
@end
0 commit comments