@opencensus/core
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -1,10 +0,12 @@ | ||
export declare enum ResourceType { | ||
GCP_GCE_INSTANCE = 0, | ||
GCP_GKE_CONTAINER = "GCP_GKE_CONTAINER", | ||
AWS_EC2_INSTANCE = "AWS_EC2_INSTANCE", | ||
export declare enum MonitoredResources { | ||
GCP_GCE_INSTANCE = "gce_instance", | ||
GCP_GKE_CONTAINER = "gke_container", | ||
AWS_EC2_INSTANCE = "aws_ec2_instance", | ||
} | ||
export declare type Resource = keyof typeof ResourceType; | ||
export declare const MonitoredResourceAttributes: any; | ||
export declare type MonitoredResourceType = MonitoredResources.GCP_GKE_CONTAINER | MonitoredResources.GCP_GCE_INSTANCE | MonitoredResources.AWS_EC2_INSTANCE; | ||
export declare type MonitoredResourceMetadata = Record<string, string | Promise<string>>; | ||
export interface MonitoredResource { | ||
readonly type: Resource; | ||
getLabels(): any; | ||
readonly type: MonitoredResourceType; | ||
getLabels(): MonitoredResourceMetadata; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ResourceType; | ||
(function (ResourceType) { | ||
ResourceType[ResourceType["GCP_GCE_INSTANCE"] = 0] = "GCP_GCE_INSTANCE"; | ||
ResourceType["GCP_GKE_CONTAINER"] = "GCP_GKE_CONTAINER"; | ||
ResourceType["AWS_EC2_INSTANCE"] = "AWS_EC2_INSTANCE"; | ||
})(ResourceType = exports.ResourceType || (exports.ResourceType = {})); | ||
var MonitoredResources; | ||
(function (MonitoredResources) { | ||
MonitoredResources["GCP_GCE_INSTANCE"] = "gce_instance"; | ||
MonitoredResources["GCP_GKE_CONTAINER"] = "gke_container"; | ||
MonitoredResources["AWS_EC2_INSTANCE"] = "aws_ec2_instance"; | ||
})(MonitoredResources = exports.MonitoredResources || (exports.MonitoredResources = {})); | ||
; | ||
exports.MonitoredResourceAttributes = { | ||
/** | ||
* GCE common attributes | ||
* See: https://cloud.google.com/appengine/docs/flexible/python/runtime#environment_variables | ||
*/ | ||
GCE: { | ||
/** Numeric VM instance identifier assigned by Compute Engine. */ | ||
instance_id: 'instance/id', | ||
/** | ||
* ProjectID is the identifier of the GCP project associated with this | ||
* resource, such as "my-project". | ||
*/ | ||
project_id: 'project/project-id', | ||
/** Compute Engine zone in which the VM is running. */ | ||
zone: 'instance/zone', | ||
}, | ||
GKE: { | ||
/** Name for the cluster container is running in.*/ | ||
cluster_name: 'instance/attributes/cluster-name', | ||
/** Numeric VM instance identifier assigned by Compute Engine. */ | ||
instance_id: 'instance/id', | ||
/** | ||
* ProjectID is the identifier of the GCP project associated with this | ||
* resource, such as "my-project". | ||
*/ | ||
project_id: 'project/project-id', | ||
/** Compute Engine zone in which the VM is running. */ | ||
zone: 'instance/zone', | ||
}, | ||
GKE_ENV: { | ||
/** ContainerName is the name of the container.*/ | ||
container_name: 'CONTAINER_NAME', | ||
/** Identifier for the cluster namespace the container is running in*/ | ||
namespace_id: 'NAMESPACE', | ||
/** Identifier for the pod the container is running in.*/ | ||
pod_id: 'HOSTNAME' | ||
} | ||
}; | ||
//# sourceMappingURL=types.js.map |
{ | ||
"name": "@opencensus/core", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "OpenCensus is a toolkit for collecting application performance and behavior data.", | ||
@@ -5,0 +5,0 @@ "main": "build/src/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
160275
65
3969
6
2