telemetry

package
v1.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

*

  • Copyright 2025 Comcast Cable Communications Management, LLC *
  • Licensed 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. *
  • SPDX-License-Identifier: Apache-2.0

*

  • Copyright 2025 Comcast Cable Communications Management, LLC *
  • Licensed 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. *
  • SPDX-License-Identifier: Apache-2.0

*

  • Copyright 2025 Comcast Cable Communications Management, LLC *
  • Licensed 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. *
  • SPDX-License-Identifier: Apache-2.0

*

  • Copyright 2025 Comcast Cable Communications Management, LLC *
  • Licensed 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. *
  • SPDX-License-Identifier: Apache-2.0

*

  • Copyright 2025 Comcast Cable Communications Management, LLC *
  • Licensed 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. *
  • SPDX-License-Identifier: Apache-2.0

*

  • Copyright 2025 Comcast Cable Communications Management, LLC *
  • Licensed 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. *
  • SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	ContextAttributeName = "contextAttributeName"
	ExpectedValue        = "expectedValue"
	RuleId               = "ruleId"
	Expires              = "expires"
	TelemetryId          = "telemetryId"
)
View Source
const (
	NumberOfItems = "numberOfItems"
	PageNumber    = "pageNumber"
	PageSize      = "pageSize"
)

Variables

This section is empty.

Functions

func BindToTelemetry

func BindToTelemetry(w http.ResponseWriter, r *http.Request)

func ConvertPermanentTelemetryProfiletoTelemetryProfile

func ConvertPermanentTelemetryProfiletoTelemetryProfile(permanentTelemetryProfile xwlogupload.PermanentTelemetryProfile) *xwlogupload.TelemetryProfile

func Create

func Create(entity *xwlogupload.TelemetryTwoRule, writeApplication string) error

func CreateRuleForAttribute

func CreateRuleForAttribute(contextAttribute string, expectedValue string) *xwlogupload.TimestampedRule

func CreateTelemetryEntryFor

func CreateTelemetryEntryFor(w http.ResponseWriter, r *http.Request)

func CreateTelemetryProfile

func CreateTelemetryProfile(contextAttribute string, expectedValue string, telemetry *xwlogupload.TelemetryProfile) *xwlogupload.TimestampedRule

func CreateTelemetryRule

func CreateTelemetryRule(tmrule *xwlogupload.TelemetryRule, app string) *xwhttp.ResponseEntity

func CreateTelemetryRuleHandler

func CreateTelemetryRuleHandler(w http.ResponseWriter, r *http.Request)

func CreateTelemetryTwoRuleHandler

func CreateTelemetryTwoRuleHandler(w http.ResponseWriter, r *http.Request)

func CreateTelemetryTwoRulesPackageHandler

func CreateTelemetryTwoRulesPackageHandler(w http.ResponseWriter, r *http.Request)

func Delete

func DeleteOneTelemetryRule

func DeleteOneTelemetryRule(id string) error

func DeleteOneTelemetryTwoRuleHandler

func DeleteOneTelemetryTwoRuleHandler(w http.ResponseWriter, r *http.Request)

func DeleteTelemetryRulebyId

func DeleteTelemetryRulebyId(id string, app string) *xwhttp.ResponseEntity

func DeleteTelemetryTwoRule

func DeleteTelemetryTwoRule(id string)

func DeleteTelmetryRuleByIdHandler

func DeleteTelmetryRuleByIdHandler(w http.ResponseWriter, r *http.Request)

func DropTelemetryEntryFor

func DropTelemetryEntryFor(w http.ResponseWriter, r *http.Request)

func DropTelemetryFor

func DropTelemetryFor(contextAttribute string, expectedValue string) []*xwlogupload.TelemetryProfile

func GetAll

func GetAll() []*xwlogupload.TelemetryTwoRule

func GetAvailableDescriptors

func GetAvailableDescriptors(applicationType string) []*xwlogupload.PermanentTelemetryRuleDescriptor

func GetAvailableProfileDescriptors

func GetAvailableProfileDescriptors(applicationType string) []*xwlogupload.TelemetryProfileDescriptor

func GetDescriptors

func GetDescriptors(w http.ResponseWriter, r *http.Request)

func GetOne

func GetTelemetryDescriptors

func GetTelemetryDescriptors(w http.ResponseWriter, r *http.Request)

func GetTelemetryRuleByIdHandler

func GetTelemetryRuleByIdHandler(w http.ResponseWriter, r *http.Request)

func GetTelemetryRulesHandler

func GetTelemetryRulesHandler(w http.ResponseWriter, r *http.Request)

func GetTelemetryTwoRuleById

func GetTelemetryTwoRuleById(w http.ResponseWriter, r *http.Request)

func GetTelemetryTwoRulesAllExport

func GetTelemetryTwoRulesAllExport(w http.ResponseWriter, r *http.Request)

func GetTelemetryTwoRulesFilteredWithPage

func GetTelemetryTwoRulesFilteredWithPage(w http.ResponseWriter, r *http.Request)

func PostTelemetryRuleFilteredWithParamsHandler

func PostTelemetryRuleFilteredWithParamsHandler(w http.ResponseWriter, r *http.Request)

func PostTelemtryRuleEntitiesHandler

func PostTelemtryRuleEntitiesHandler(w http.ResponseWriter, r *http.Request)

func PutTelemetryRuleEntitiesHandler

func PutTelemetryRuleEntitiesHandler(w http.ResponseWriter, r *http.Request)

func TelemetryRuleFilterByContext

func TelemetryRuleFilterByContext(searchContext map[string]string) []*xwlogupload.TelemetryRule

func TelemetryRuleGeneratePageWithContext

func TelemetryRuleGeneratePageWithContext(tmrules []*xwlogupload.TelemetryRule, contextMap map[string]string) (result []*xwlogupload.TelemetryRule, err error)

func TelemetryTestPageHandler

func TelemetryTestPageHandler(w http.ResponseWriter, r *http.Request)

func TelemetryTwoRulesGeneratePage

func TelemetryTwoRulesGeneratePage(list []*xwlogupload.TelemetryTwoRule, page int, pageSize int) (result []*xwlogupload.TelemetryTwoRule)

func TempAddToPermanentRule

func TempAddToPermanentRule(w http.ResponseWriter, r *http.Request)

func Update

func Update(entity *xwlogupload.TelemetryTwoRule, writeApplication string) error

func UpdateTelemetryRule

func UpdateTelemetryRule(tmrule *xwlogupload.TelemetryRule, app string) *xwhttp.ResponseEntity

func UpdateTelemetryRuleHandler

func UpdateTelemetryRuleHandler(w http.ResponseWriter, r *http.Request)

func UpdateTelemetryTwoRuleHandler

func UpdateTelemetryTwoRuleHandler(w http.ResponseWriter, r *http.Request)

func UpdateTelemetryTwoRulesPackageHandler

func UpdateTelemetryTwoRulesPackageHandler(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL