github.com/mier85/go-sensor@v1.30.1-0.20220920111756-9bf41b3bc7e0/acceptor/gcr.go (about) 1 // (c) Copyright IBM Corp. 2021 2 // (c) Copyright Instana Inc. 2020 3 4 package acceptor 5 6 // GCRServiceRevisionInstanceData is a representation of a Google Cloud Run service revision instance 7 // for com.instana.plugin.gcp.run.revision.instance plugin 8 type GCRServiceRevisionInstanceData struct { 9 Runtime string `json:"runtime,omitempty"` 10 Region string `json:"region"` 11 Service string `json:"service"` 12 Configuration string `json:"configuration,omitempty"` 13 Revision string `json:"revision"` 14 InstanceID string `json:"instanceId"` 15 Port string `json:"port,omitempty"` 16 NumericProjectID int `json:"numericProjectId"` 17 ProjectID string `json:"projectId,omitempty"` 18 } 19 20 // NewGCRServiceRevisionInstancePluginPayload returns payload for the GCR service revision instance 21 // plugin of Instana acceptor 22 func NewGCRServiceRevisionInstancePluginPayload(entityID string, data GCRServiceRevisionInstanceData) PluginPayload { 23 const pluginName = "com.instana.plugin.gcp.run.revision.instance" 24 25 return PluginPayload{ 26 Name: pluginName, 27 EntityID: entityID, 28 Data: data, 29 } 30 }