This is an automated email from the ASF dual-hosted git repository. rob pushed a commit to branch 2.2.x in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git
commit d23757fcfa2d225205f73854818cb8c5c25026f8 Author: Robert Butts <r...@apache.org> AuthorDate: Tue Feb 13 21:12:56 2018 -0700 Add Apache license headers (cherry picked from commit 72ffb85c470a3756e2bdf0bd357b4f79c0afbefc) --- traffic_monitor/cache/stats_type_astats.go | 19 +++++++++++++++ traffic_monitor/cache/stats_type_astats_dsnames.go | 27 ++++++++++++++++++---- traffic_monitor/cache/stats_types.go | 19 +++++++++++++++ 3 files changed, 61 insertions(+), 4 deletions(-) diff --git a/traffic_monitor/cache/stats_type_astats.go b/traffic_monitor/cache/stats_type_astats.go index 98b7919..7b19ddd 100644 --- a/traffic_monitor/cache/stats_type_astats.go +++ b/traffic_monitor/cache/stats_type_astats.go @@ -1,5 +1,24 @@ package cache +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // stats_type_astats is the default Stats format for Traffic Control. // It is the Stats format produced by the `astats` plugin to Apache Traffic Server, included with Traffic Control. // diff --git a/traffic_monitor/cache/stats_type_astats_dsnames.go b/traffic_monitor/cache/stats_type_astats_dsnames.go index 88d2a67..eaa3472 100644 --- a/traffic_monitor/cache/stats_type_astats_dsnames.go +++ b/traffic_monitor/cache/stats_type_astats_dsnames.go @@ -1,21 +1,40 @@ package cache +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // stats_type_astats_dsnames is a Stat format similar to the default Astats, but with Fully Qualified Domain Names replaced with Delivery Service names (xml_id) // That is, stat names are of the form: `"plugin.remap_stats.delivery-service-name.stat-name"` -import( +import ( + "fmt" "strconv" "strings" - "fmt" - "github.com/apache/incubator-trafficcontrol/lib/go-tc" "github.com/apache/incubator-trafficcontrol/lib/go-log" + "github.com/apache/incubator-trafficcontrol/lib/go-tc" "github.com/apache/incubator-trafficcontrol/traffic_monitor/dsdata" "github.com/apache/incubator-trafficcontrol/traffic_monitor/todata" ) func init() { - AddStatsType("astats-dsnames", astatsParse, astatsdsnamesPrecompute) + AddStatsType("astats-dsnames", astatsParse, astatsdsnamesPrecompute) } func astatsdsnamesPrecompute(cache tc.CacheName, toData todata.TOData, rawStats map[string]interface{}, system AstatsSystem) PrecomputedData { diff --git a/traffic_monitor/cache/stats_types.go b/traffic_monitor/cache/stats_types.go index ee18623..25278f5 100644 --- a/traffic_monitor/cache/stats_types.go +++ b/traffic_monitor/cache/stats_types.go @@ -1,5 +1,24 @@ package cache +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import ( "io" -- To stop receiving notification emails like this one, please contact r...@apache.org.