Socket
Socket
Sign inDemoInstall

@opencensus/core

Package Overview
Dependencies
Maintainers
5
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencensus/core - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

build/src/common/monitored-resource/aws-identity-document-utils.d.ts

16

build/src/common/monitored-resource/types.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc