Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Exporter/Stats/Stackdriver: Fix MetricDescriptors ValueType (#197)
Browse files Browse the repository at this point in the history
* StackdriverStatsExporter: valueType to string

* Remove MONEY, STRING and BOOL ValueTypes
  • Loading branch information
mayurkale22 committed Nov 20, 2018
1 parent dfa4612 commit 70370f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
11 changes: 4 additions & 7 deletions packages/opencensus-exporter-stackdriver/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,10 @@ export enum MetricKind {
}

export enum ValueType {
VALUE_TYPE_UNSPECIFIED,
BOOL,
INT64,
DOUBLE,
STRING,
DISTRIBUTION,
MONEY
VALUE_TYPE_UNSPECIFIED = 'VALUE_TYPE_UNSPECIFIED',
INT64 = 'INT64',
DOUBLE = 'DOUBLE',
DISTRIBUTION = 'DISTRIBUTION'
}

export interface LabelDescriptor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,12 @@
* limitations under the License.
*/

import {AggregationType, BaseView, logger, Logger, Measure, Measurement, MeasureType, MeasureUnit, Stats, View} from '@opencensus/core';
import {AggregationType, BaseView, logger, Logger, Measurement, MeasureType, MeasureUnit, Stats, View} from '@opencensus/core';
import * as assert from 'assert';
import * as fs from 'fs';
import * as mocha from 'mocha';
import * as nock from 'nock';
import * as path from 'path';

import {StackdriverStatsExporter} from '../src/stackdriver-monitoring';
import {LabelDescriptor, MetricDescriptor, MetricKind, StackdriverExporterOptions, TimeSeries, ValueType} from '../src/types';

import {MetricDescriptor, MetricKind, StackdriverExporterOptions, TimeSeries, ValueType} from '../src/types';
import * as nocks from './nocks';

let PROJECT_ID = 'fake-project-id';
Expand Down

0 comments on commit 70370f9

Please sign in to comment.