Add dataset.type
This commit is contained in:
parent
e67d5e702d
commit
fbcf50cbe2
|
@ -106,7 +106,7 @@ describe('Ingest Manager - storedDatasourcesToAgentInputs', () => {
|
|||
id: 'some-uuid',
|
||||
name: 'mock-datasource',
|
||||
type: 'test-logs',
|
||||
dataset: { namespace: 'default' },
|
||||
dataset: { namespace: 'default', type: 'test-logs' },
|
||||
use_output: 'default',
|
||||
streams: [
|
||||
{
|
||||
|
@ -142,7 +142,7 @@ describe('Ingest Manager - storedDatasourcesToAgentInputs', () => {
|
|||
id: 'some-uuid',
|
||||
name: 'mock-datasource',
|
||||
type: 'test-logs',
|
||||
dataset: { namespace: 'default' },
|
||||
dataset: { namespace: 'default', type: 'test-logs' },
|
||||
use_output: 'default',
|
||||
streams: [
|
||||
{
|
||||
|
|
|
@ -24,7 +24,10 @@ export const storedDatasourcesToAgentInputs = (
|
|||
id: datasource.id || datasource.name,
|
||||
name: datasource.name,
|
||||
type: input.type,
|
||||
dataset: { namespace: datasource.namespace || 'default' },
|
||||
dataset: {
|
||||
namespace: datasource.namespace || 'default',
|
||||
type: input.type,
|
||||
},
|
||||
use_output: DEFAULT_OUTPUT.name,
|
||||
...Object.entries(input.config || {}).reduce((acc, [key, { value }]) => {
|
||||
acc[key] = value;
|
||||
|
|
|
@ -39,7 +39,10 @@ export interface FullAgentConfigInput {
|
|||
id: string;
|
||||
name: string;
|
||||
type: string;
|
||||
dataset: { namespace: string };
|
||||
dataset: {
|
||||
namespace: string;
|
||||
type: string;
|
||||
};
|
||||
use_output: string;
|
||||
package?: Pick<DatasourcePackage, 'name' | 'version'>;
|
||||
streams: FullAgentConfigInputStream[];
|
||||
|
|
Loading…
Reference in a new issue