8#ifndef INCLUDED_BDLM_METRICDESCRIPTOR
9#define INCLUDED_BDLM_METRICDESCRIPTOR
123#include <bdlm_instancecount.h>
130#include <bsl_string.h>
303: d_metricNamespace(k_USE_METRICS_ADAPTER_NAMESPACE_SELECTION, basicAllocator)
304, d_metricName(basicAllocator)
306, d_objectTypeName(basicAllocator)
307, d_objectTypeAbbreviation(basicAllocator)
308, d_objectIdentifier(k_USE_METRICS_ADAPTER_OBJECT_ID_SELECTION, basicAllocator)
321: d_metricNamespace(metricNamespace, basicAllocator)
322, d_metricName(metricName, basicAllocator)
323, d_instanceNumber(instanceNumber)
324, d_objectTypeName(objectTypeName, basicAllocator)
325, d_objectTypeAbbreviation(objectTypeAbbreviation, basicAllocator)
326, d_objectIdentifier(objectIdentifier, basicAllocator)
333: d_metricNamespace(original.d_metricNamespace, basicAllocator)
334, d_metricName(original.d_metricName, basicAllocator)
335, d_instanceNumber(original.d_instanceNumber)
336, d_objectTypeName(original.d_objectTypeName, basicAllocator)
337, d_objectTypeAbbreviation(original.d_objectTypeAbbreviation, basicAllocator)
338, d_objectIdentifier(original.d_objectIdentifier, basicAllocator)
346 d_metricNamespace = rhs.d_metricNamespace;
347 d_metricName = rhs.d_metricName;
348 d_instanceNumber = rhs.d_instanceNumber;
349 d_objectTypeName = rhs.d_objectTypeName;
350 d_objectTypeAbbreviation = rhs.d_objectTypeAbbreviation;
351 d_objectIdentifier = rhs.d_objectIdentifier;
359 d_instanceNumber = value;
365 d_metricName = value;
371 d_metricNamespace = value;
377 d_objectIdentifier = value;
383 d_objectTypeAbbreviation = value;
389 d_objectTypeName = value;
396 return d_instanceNumber;
408 return d_metricNamespace;
414 return d_objectIdentifier;
420 return d_objectTypeAbbreviation;
426 return d_objectTypeName;
441 return lhs.d_metricNamespace == rhs.d_metricNamespace &&
442 lhs.d_metricName == rhs.d_metricName &&
443 lhs.d_instanceNumber == rhs.d_instanceNumber &&
444 lhs.d_objectTypeName == rhs.d_objectTypeName &&
445 lhs.d_objectTypeAbbreviation == rhs.d_objectTypeAbbreviation &&
446 lhs.d_objectIdentifier == rhs.d_objectIdentifier;
452 return lhs.d_metricNamespace != rhs.d_metricNamespace ||
453 lhs.d_metricName != rhs.d_metricName ||
454 lhs.d_instanceNumber != rhs.d_instanceNumber ||
455 lhs.d_objectTypeName != rhs.d_objectTypeName ||
456 lhs.d_objectTypeAbbreviation != rhs.d_objectTypeAbbreviation ||
457 lhs.d_objectIdentifier != rhs.d_objectIdentifier;
Definition bdlm_metricdescriptor.h:142
static const char * k_USE_METRICS_ADAPTER_NAMESPACE_SELECTION
Definition bdlm_metricdescriptor.h:170
void setMetricNamespace(const bsl::string_view &value)
Definition bdlm_metricdescriptor.h:369
MetricDescriptor(bslma::Allocator *basicAllocator=0)
Definition bdlm_metricdescriptor.h:302
~MetricDescriptor()=default
Destroy this object.
const bsl::string & metricNamespace() const
Return the metricNamespace attribute.
Definition bdlm_metricdescriptor.h:406
static const char * k_USE_METRICS_ADAPTER_OBJECT_ID_SELECTION
Definition bdlm_metricdescriptor.h:171
bslma::Allocator * allocator() const
Return the allocator used by this object to supply memory.
Definition bdlm_metricdescriptor.h:432
friend bool operator!=(const MetricDescriptor &, const MetricDescriptor &)
Definition bdlm_metricdescriptor.h:450
const bsl::string & objectTypeAbbreviation() const
Return the objectTypeAbbreviation attribute.
Definition bdlm_metricdescriptor.h:418
void setInstanceNumber(const InstanceCount::Value &value)
Definition bdlm_metricdescriptor.h:357
BSLMF_NESTED_TRAIT_DECLARATION(MetricDescriptor, bslma::UsesBslmaAllocator)
friend bool operator==(const MetricDescriptor &, const MetricDescriptor &)
Definition bdlm_metricdescriptor.h:439
MetricDescriptor & operator=(const MetricDescriptor &rhs)
Definition bdlm_metricdescriptor.h:344
const bsl::string & metricName() const
Return the metricName attribute.
Definition bdlm_metricdescriptor.h:400
void setObjectTypeAbbreviation(const bsl::string_view &value)
Definition bdlm_metricdescriptor.h:381
void setObjectIdentifier(const bsl::string_view &value)
Definition bdlm_metricdescriptor.h:375
void setObjectTypeName(const bsl::string_view &value)
Definition bdlm_metricdescriptor.h:387
const bsl::string & objectTypeName() const
Return the objectTypeName attribute.
Definition bdlm_metricdescriptor.h:424
const bsl::string & objectIdentifier() const
Return the objectIdentifier attribute.
Definition bdlm_metricdescriptor.h:412
const InstanceCount::Value & instanceNumber() const
Return the instanceNumber attribute.
Definition bdlm_metricdescriptor.h:394
void setMetricName(const bsl::string_view &value)
Definition bdlm_metricdescriptor.h:363
Definition bslstl_stringview.h:441
Definition bslstl_string.h:1281
allocator_type get_allocator() const BSLS_KEYWORD_NOEXCEPT
Return the allocator used by this string to supply memory.
Definition bslstl_string.h:6723
Definition bslma_allocator.h:457
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bdlm_instancecount.h:101
bsls::Types::Uint64 Value
Definition bdlm_instancecount.h:111
Definition bslma_usesbslmaallocator.h:343