Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix attribute constant #1996

Merged
merged 1 commit into from
Oct 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/istio/utils/attribute_names.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ struct AttributeName {
static const char kDestinationUID[];
static const char kDestinationNamespace[];
static const char kOriginIp[];
static const char kConnectionReceviedBytes[];
static const char kConnectionReceviedTotalBytes[];
static const char kConnectionReceivedBytes[];
static const char kConnectionReceivedTotalBytes[];
static const char kConnectionSendBytes[];
static const char kConnectionSendTotalBytes[];
static const char kConnectionDuration[];
Expand Down
4 changes: 2 additions & 2 deletions src/istio/control/tcp/attributes_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ void AttributesBuilder::ExtractReportAttributes(

ReportData::ReportInfo info;
report_data->GetReportInfo(&info);
builder.AddInt64(utils::AttributeName::kConnectionReceviedBytes,
builder.AddInt64(utils::AttributeName::kConnectionReceivedBytes,
info.received_bytes - last_report_info->received_bytes);
builder.AddInt64(utils::AttributeName::kConnectionReceviedTotalBytes,
builder.AddInt64(utils::AttributeName::kConnectionReceivedTotalBytes,
info.received_bytes);
builder.AddInt64(utils::AttributeName::kConnectionSendBytes,
info.send_bytes - last_report_info->send_bytes);
Expand Down
4 changes: 2 additions & 2 deletions src/istio/utils/attribute_names.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ const char AttributeName::kDestinationPort[] = "destination.port";
const char AttributeName::kDestinationUID[] = "destination.uid";
const char AttributeName::kDestinationNamespace[] = "destination.namespace";
const char AttributeName::kOriginIp[] = "origin.ip";
const char AttributeName::kConnectionReceviedBytes[] =
const char AttributeName::kConnectionReceivedBytes[] =
"connection.received.bytes";
const char AttributeName::kConnectionReceviedTotalBytes[] =
const char AttributeName::kConnectionReceivedTotalBytes[] =
"connection.received.bytes_total";
const char AttributeName::kConnectionSendBytes[] = "connection.sent.bytes";
const char AttributeName::kConnectionSendTotalBytes[] =
Expand Down